agentleFS
carlokopcarlokop/skills/tester-write-tests/SKILL.md

tester-write-tests

Skill0 starsChanged 53 days agoMITView on GitHub

Fase 2 of the tester-agent workflow: after test-plan.md is saved, write missing tests one by one and run each focused command, then save agent-summary.md (becomes FinalReport.agentSummary). Only test files may change. Use when implementing tests from a tester-agent plan or writing tests one by one.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the saved test-plan.md end-to-end.

    line 25
  2. Very specific:

    Create or edit only test files (globs: tests/, /*.test.*, /*.spec.*, or project overrides).

    line 29
  3. Distinctive:

    Run a focused command for that test only.

    line 30
  4. Distinctive:

    Test bug → fix the test file → re-run.

    line 32
  5. Very specific:

    Write .tester-agent/reports/{runId}/agent-summary.md with the implementation headings below.

    line 34
  6. Distinctive:

    Only test files this run creates or updates.

    line 49
  7. Distinctive:

    Leave unrelated dirty application files untouched.

    line 50
  8. Very specific:

    Do not write report.md / report.json / report.csv in this phase.

    line 51
  9. Distinctive:

    Do not update Jira, Google Sheets, or other external systems.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tester Write Tests (Fase 2)

Implement coverage from the saved test plan. Write and run tests one by one. Persist the CLI agentSummary markdown for Fase 3.

Prerequisites

  • Fase 1 complete: .tester-agent/reports/{runId}/test-plan.md exists.
  • Prompt shape: .cursor/skills/tester-agent/templates/prompts/test-implementation.md
  • Report contract: .cursor/skills/tester-agent/reports.md
  • DoD / examples: .tester-agent/ overrides or bundled templates/workflow/.
  • Plan content rules: .cursor/skills/tester-agent/test-design.md

Instructions

  1. Read the saved test-plan.md end-to-end.
  2. Inspect existing tests now (allowed in this phase only).
  3. Derive an ordered work list from the plan: acceptance checks, then each surface's chosen technique (robustness checklist, pairwise rows, valid/invalid transitions, or security cases). Prefer one focused test (or one pairwise row) per iteration.
  4. For each item in the work list:
    1. Create or edit only test files (globs: tests/**, **/*.test.*, **/*.spec.*, or project overrides).
    2. Run a focused command for that test only.
    3. On failure, decide at high effort whether the test is wrong or the application missed the acceptance check. Log [fase 2] effort: high.
    4. Test bug → fix the test file → re-run.
    5. App bug vs acceptance → Residual Risk → next (no production edits).
  5. Write .tester-agent/reports/{runId}/agent-summary.md with the implementation headings below.
    This file is the skill handoff for CLI field FinalReport.agentSummary (the CLI keeps it in memory; skills need the file).
  6. Mark Fase 2 done on the workflow checklist.

Tell the user and append the same line to $REPORT_DIR/progress.log when it happens:

  • [fase 2] start: testplan {path}
  • [fase 2] gelezen: {path} for the plan and each existing test file opened
  • [fase 2] geschreven: {test file}
  • [fase 2] commando: {command}
  • [fase 2] resultaat: {command} exit {code}
  • [fase 2] geschreven: {path to agent-summary.md}

Hard rules

  • Only test files this run creates or updates. No production code, config, migrations, Docker, manifests, lockfiles.
  • Leave unrelated dirty application files untouched. Do not git restore, git checkout, git reset, git clean, or git stash when a test fails. Fix the test file you wrote, or record residual risk.
  • Do not write report.md / report.json / report.csv in this phase.
  • Do not update Jira, Google Sheets, or other external systems.
  • Implement every planned case: acceptance checks, applicable robustness items, pairwise rows, transitions, and security cases. Skip only rows marked N/A or listed under Not tested.
  • Assert the documented error contract (exception vs rejection vs safe default), plus status, response shape, and database side effects when the plan requires them.
  • Integration test per acceptance criterion; unit test only for pure helpers.

Required agent-summary.md headings

## Existing Coverage
## Gaps Found
## Test Changes Made
## Commands To Run
## Residual Risk

Under ## Commands To Run, list every concrete shell command Fase 3 should execute (bash code block, one command per line).

One-by-one loop (mandatory)

for each planned test:
  write/update test file(s)
  run focused command
  pass → next
  fail (test bug) → fix test → re-run
  fail (app bug) → residual risk → next

Done when

  • Existing coverage compared to plan
  • Each planned test written and focused-run (or residual risk recorded)
  • agent-summary.md written (CLI-compatible agentSummary body)
  • ## Commands To Run ready for Fase 3
  • Workflow checklist Fase 2 checked

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.