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.
In this repository6 other files it gives its agents.
- npm-testSkill
- refactorSkill
- security-auditSkill
- tester-agentSkill
- tester-planSkill
- tester-run-testsSkill
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
- Very specific: line 25
Read the saved test-plan.md end-to-end.
- Very specific: line 29
Create or edit only test files (globs: tests/, /*.test.*, /*.spec.*, or project overrides).
- Distinctive: line 30
Run a focused command for that test only.
- Distinctive: line 32
Test bug → fix the test file → re-run.
- Very specific: line 34
Write .tester-agent/reports/{runId}/agent-summary.md with the implementation headings below.
- Distinctive: line 49
Only test files this run creates or updates.
- Distinctive: line 50
Leave unrelated dirty application files untouched.
- Very specific: line 51
Do not write report.md / report.json / report.csv in this phase.
- Distinctive: line 52
Do not update Jira, Google Sheets, or other external systems.
≈ “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.
Files
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.mdexists. - 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 bundledtemplates/workflow/. - Plan content rules:
.cursor/skills/tester-agent/test-design.md
Instructions
- Read the saved
test-plan.mdend-to-end. - Inspect existing tests now (allowed in this phase only).
- 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.
- For each item in the work list:
- Create or edit only test files (globs:
tests/**,**/*.test.*,**/*.spec.*, or project overrides). - Run a focused command for that test only.
- On failure, decide at high effort whether the test is wrong or the application missed the acceptance check. Log
[fase 2] effort: high. - Test bug → fix the test file → re-run.
- App bug vs acceptance → Residual Risk → next (no production edits).
- Create or edit only test files (globs:
- Write
.tester-agent/reports/{runId}/agent-summary.mdwith the implementation headings below.
This file is the skill handoff for CLI fieldFinalReport.agentSummary(the CLI keeps it in memory; skills need the file). - 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, orgit stashwhen a test fails. Fix the test file you wrote, or record residual risk. - Do not write
report.md/report.json/report.csvin 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 RiskUnder ## 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 → nextDone when
- Existing coverage compared to plan
- Each planned test written and focused-run (or residual risk recorded)
agent-summary.mdwritten (CLI-compatibleagentSummarybody)## Commands To Runready for Fase 3- Workflow checklist Fase 2 checked
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
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.

