Przejdź do treści
Biblioteka skilli
AI i agenci · Testowanie

onboard

/onboard

Konfiguruje testy regresji CIAgent dla agenta AI w repozytorium: pisze runner, nagrywa złote wzorce, generuje specyfikację testów i ją weryfikuje.

Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Konfiguruje testy regresji CIAgent dla agenta AI w repozytorium: pisze runner, nagrywa złote wzorce, generuje specyfikację testów i ją weryfikuje.

Oryginalny opis (EN)

Set up CIAgent regression testing for the AI agent in this repo — write a runner, record golden baselines, generate a test spec, and verify it. Use when the user asks to add tests, evals, or regression testing for their AI agent, or to set up CIAgent.

Jak działa

  1. 1. Find the agent and install CIAgent
  2. 2. Write the runner
  3. 3. Choose queries
  4. 4. Cost gate — ask before running live
  5. 5. Record golden baselines
  6. 6. Add correctness checks
  7. 7. Verify
  8. 8. Wire CI and hand off
Sekcje z nagłówków SKILL.md, w oryginale · 115 linii, 771 słów
Podgląd SKILL.md
---
name: onboard
description: Set up CIAgent regression testing for the AI agent in this repo — write a runner, record golden baselines, generate a test spec, and verify it. Use when the user asks to add tests, evals, or regression testing for their AI agent, or to set up CIAgent.
allowed-tools: Bash(ciagent *), Bash(pip install *), Bash(python -c *), Read, Grep, Glob, Write, Edit
---

# Onboard CIAgent into this repo

You are setting up CIAgent (`pip install ciagent`) so this repo's AI agent has
recorded golden baselines and a runnable regression suite. The end state: the
user can run `ciagent test --runs 3` and see a stability report for their agent.

Work through the steps in order. Do not skip the cost gate in step 4.

## 1. Find the agent and install CIAgent

- Locate the agent: search for LLM SDK usage (`openai`, `anthropic`, `langgraph`,
  `langchain`) and for the function or endpoint that takes a user message and
  returns the agent's answer.
- Install with the matching extra so trace capture hooks the SDK:
  `pip install "ciagent[openai]"`, `[anthropic]`, `[langgraph]`, or `[all]`.
- Sanity check: `ciagent --version` then `ciagent doctor` (it reports what is
  missing; a missing spec is expected at this point).

## 2. Write the runner

Create `agentci_runner.py` at the repo root (or inside the package if the repo
has one clear package):

```python
def run_for_agentci(query: str) -> str:
    """CIAgent entry point: one query in, final answer text out."""
    # import the user's agent and invoke it ONCE, no chat history
    ...
    return final_answer_text
```

Rules:
- Return the final answer **string**. CIAgent wraps the call in its own trace
  capture, so LLM calls and tool calls are recorded automatically — do not
  build Trace objects unless the repo already produces them.
- Fresh context per call: no shared history between queries.
- Reuse the repo's own config/env loading so the runner works from the repo root.
- Verify it imports and answers before going further:
  `python -c "from agentci_runner import run_for_agentci; print(run_for_agentci('hello'))"`.

## 3. Choose queries

Write `agentci_queries.txt`, one query per line — 8 to 15 queries:

- Cover the agent's main jobs (mine the README, docs, knowledge base, prompts,
  and existing tests for what it is supposed to handle).
- Include at least 2 out-of-scope queries the agent should refuse or deflect.
- Prefer queries whose correct answers contain **hard facts** (prices, dates,
  limits, names) — those become deterministic checks in step 6.

## 4. Cost gate — ask before running live

Recording baselines runs the real agent once per query, on the user's API keys.
State the query count and a cost ballpark, and **ask the user to confirm**
before step 5. If there are no API keys or the user declines: write
`agentci_spec.yaml` by hand instead (same queries, `runner:` set), validate with
`ciagent test --mock`, and tell the user which step to resume later.

## 5. Record golden baselines

```bash
ciagent bootstrap --runner agentci_runner:run_for_agentci \
  --queries agentci_queries.txt --agent <agent-name> --yes
```

This runs every query, saves each trace as a golden baseline under
`./baselines/<agent-name>/`, and writes `agentci_spec.yaml` with path and cost
budgets derived from the recorded traces. Read the printed answers as they
stream by — if an answer is visibly wrong, that query should not be golden:
fix the agent or the query, delete that baseline file, and rerun.

## 6. Add correctness checks

The generated spec has path and cost budgets but no correctness checks. Add a
`correctness:` block per query, derived from the recorded baseline answers and
the repo's docs/KB — never from what you wish the agent said:

```yaml
correctness:
  expected_in_answer: ["30 days"]          # hard facts, AND
  any_expected_in_answer: ["$9.95", "9.95"] # phrasing variants, OR
  not_in_answer: ["I don't know"]           # forbidden content
```

Check facts, not phrasing. If the repo has a knowledge-base directory, run
`ciagent generate-checks --kb <dir> --dry-run` and review its candidates —
every surviving candidate was already validated against the recorded goldens.

## 7. Verify

```bash
ciagent test --mock                      # structure check, zero API calls
ciagent test --yes --format json         # live run (covered by step 4 approval)
ciagent test --runs 3 --yes              # stability report
```

Exit codes: 0 = pass (flaky-but-passing is 0), 1 = correctness failure in every
run, 2 = infra/config error. In the stability report, flips labeled
`agent-variance` mean the agent's answer changed (an agent problem); flips
labeled `judge-flake` mean the eval itself is unstable (a check/judge problem).

If a check fails, fix the agent or fix a factually wrong check. Do not loosen a
correct check to make the run green — report the failure to the user instead.

## 8. Wire CI and hand off

- `ciagent init` scaffolds a GitHub Actions workflow (add `--hook` for a
  pre-push hook if the user wants it).
- Commit: runner, `agentci_queries.txt`, `agentci_spec.yaml`, `baselines/`,
  and the workflow.
- Tell the user: how many goldens were recorded, the suite score, anything
  flaky (with its flip source), and that `ciagent test --runs 3` is the
  command to watch after future agent changes.

Wersje

RepozytoriumWynikLicencja
Ta strona · davepoon/buildwithclaude100MIT
qualcomm/ai-hub-models100BSD-3-Clause
understudylabs/understudy-agent-tools100MIT
ai-answer/contentrepurposesystem100MIT
cookys/autopilot100MIT
logly/mureo100Apache-2.0
lamngockhuong/aiteamkit100MIT
suitedaces/dorabot100MIT
alirezarezvani/claude-skills100MIT

Migawka bazy z 28.10.2026 · wersja paczki 4385b974147c (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90check
    Uruchamia testy regresji CIAgent po zmianie kodu, promptów lub bazy wiedzy agenta AI w repozytorium z plikiem agentci_spec.yaml i interpretuje wyniki.
  • 100evals-bootstrap
    Tworzy szkielet pierwszego zestawu ewaluacji agenta: zamienia prawdziwe awarie w przypadki, pisze kontrole zachowania na śladach i generuje runner.
  • 100agent-evaluation-harness
    Projektuje harness ewaluacyjny dla agenta LLM przed wdrożeniem: złote zbiory, testy regresji, ewaluacje na poziomie śladów, LLM-as-judge i rubryki punktacji.
  • 100set-up-llm-evals
    Buduje ewaluację funkcji LLM: złote zbiory danych, testy deterministyczne, sędziego-model skalibrowanego na ocenach ludzi i bramkę regresji w CI.
  • 90evals-regress
    Buduje zautomatyzowane zestawy regresyjne dla modeli: złote zbiory, alerty progowe i integrację z CI, by wychwytywać pogorszenie jakości po zmianach modelu.
  • 95evals
    Pisze i analizuje oceny agentów AI i aplikacji LLM: testy jakości, pomiar skuteczności i diagnozę błędów agenta.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.