Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/boshu2/agentops --skill test명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use Agent Mail as an optional messaging and file-reservation adapter for explicitly coordinated writers. Triggers: "coordinate writers", "reserve files".
Operate explicit orchestrator, implementer, validator, and scribe roles through a caller-selected agent runtime. Triggers: "agent-native factory", "role-shaped agent panes", "persistent workers".
Initialize minimal AgentOps documentation and verdict storage without taking over repository workflow. Triggers: "bootstrap AgentOps", "initialize AgentOps docs".
SKILL.md 표시 중
SOC 직업 분류 기준
| name | test |
| description | Generate tests and coverage plans. |
Generate real tests, run them, and leave reproducible coverage or TDD evidence.
Do not stop at a plan unless the requested mode is strategy.
| Mode | Use when | Required result |
|---|---|---|
generate | writing tests for existing code | passing focused and suite tests |
coverage | finding and filling important gaps | before/after coverage plus tests |
tdd | implementing new behavior test-first | logged RED → green → refactor cycles |
strategy | designing test architecture only | inventory, risks, and recommendations |
Default to generate. Flags: --mode, --scope, --min-coverage, and
--dry-run narrow the workflow but never weaken its evidence requirements.
Every test asserts through an oracle, and oracles are not equal. Rank them:
exact value > property/invariant > differential (two implementations agree) > smoke (it ran)
Choose the strongest oracle the behavior admits and name the oracle-strength
tier when a test uses anything below exact. A smoke assertion where an exact one was available
is the oracle downgrade failure mode: the test runs the code but proves
almost nothing about it. Stop condition: no acceptance scenario may be covered
only by smoke-tier tests when a stronger oracle is practical; if only smoke is
practical (e.g. nondeterministic external output), record why in
.agents/scratch/tests/summary.md so the gap is a visible decision, not an accident.
A new test earns trust by failing when the behavior it guards is broken. In
tdd mode the recorded RED run is that proof. In other mutating modes, prove
at least one kill per new behavioral test: mutate the covered logic (flip the
branch, break the boundary value, or use the project's mutation tool), confirm
the test fails, then restore. A test that stays green through its own mutation
is the immortal test failure mode — delete or strengthen it before handoff;
never count it as coverage.
Green is only evidence when the harness can go red. Before trusting or reporting a green suite, confirm these floors:
A suite that cannot demonstrate a failure is the dead harness failure mode: its green is decoration. Report a dead harness as a finding; do not build coverage claims on top of it.
When the caller supplies a .feature file with scenarios, work forward from
each Given/When/Then. Name one covering test after the behavior, and add
@covered-by:<test-path>[::<TestName>] above the scenario. Prove the mapping by
running the coverage checker against that caller-supplied feature (not this
skill's own spec):
bash scripts/check-scenario-coverage.sh <path-to-caller-feature> --run
Without scenarios, inventory public behavior, error paths, branches, and edge cases. Rank gaps by risk: high complexity plus low coverage first.
Stop at the first applicable project marker and consult the Standards skill for it:
| Marker | Framework | Baseline command |
|---|---|---|
go.mod | Go test | go test -coverprofile=coverage.out ./... |
pyproject.toml, setup.py | pytest | pytest --cov --cov-report=term-missing |
package.json | Jest/Vitest | npx jest --coverage or npx vitest run --coverage |
Cargo.toml | cargo test | cargo tarpaulin --out Lcov |
Write raw coverage to .agents/scratch/tests/coverage-raw.txt, a ranked gap inventory
to .agents/scratch/tests/gaps.md, and language-native machine output where available.
Read the target function and its callers before writing tests. Cover every branch and error return with exact expected results. Use descriptive test names and one behavioral focus per table row or parameter set.
Load specialized guidance only when its trigger applies:
For golden updates, follow golden-artifact-strategy.md and review the artifact diff; regeneration alone is not acceptance.
In tdd mode:
.agents/scratch/tests/tdd-log.md.In other mutating modes, run each new test immediately, then the owning package or module, then the relevant project suite. A failure caused by a wrong test is fixed in the test; a product defect is reported explicitly rather than masked.
Checkpoint: before coverage measurement, confirm the focused test and the relevant suite are green and the recorded RED evidence names the intended behavior.
Re-run the baseline coverage command. Summarize before/after coverage, tests
added, remaining high-risk gaps, bugs found, and exact validation commands in
.agents/scratch/tests/summary.md. Supply that evidence to Validate when the test
change accompanies a product slice or is ready for acceptance.
<source>_test.go, Test<Uppercase>, table-driven cases, and
exact output assertions; never cov*_test.go or *_extra_test.go.describe/it by public behavior and mock external services,
not internal implementation.Inventory test files, functions, assertion density, unit/integration/e2e split,
fixtures, and CI wiring. Write .agents/scratch/tests/strategy.md with prioritized
structural gaps and a test architecture; do not generate code in this mode.
.agents/scratch/tests/ plus test files in the target's
language-native locations.coverage-raw.txt, coverage-func.txt or
coverage.json, gaps.md, summary.md, tdd-log.md, and strategy.md.bash scripts/check-scenario-coverage.sh ... --run when scenarios exist.Generate mode: inspect a parser, baseline coverage, add table-driven happy, malformed, and empty-input cases, run focused plus package tests, then record the coverage delta and remaining gaps.
TDD mode: write TestParseConfig_MissingName, capture its failing output,
add the minimum validation, rerun green, refactor, run the full package, and log
the cycle in tdd-log.md.
| Problem | Response |
|---|---|
| new test starts green | strengthen it until it proves the missing behavior |
| flaky timing/network test | inject deterministic clocks/data and fake the external boundary |
| coverage rises but risk remains | add behavior and error-path assertions, not padding |
| golden update is large | inspect the diff and split intentional from accidental change |
| product bug discovered | preserve the reproducer, report the bug, and do not mask it |