feature-test
Skill1 starsChanged 7 months agoMITView on GitHub
Test authoring phase of a feature workflow. Derives scenarios from an approved Plan, writes tests per file via delegated agents, runs them, and self-heals implementation up to 2 retries. Usage: /feature-test <plan-path>
1 other project uses a version of this.
Adopted by
Most recently taken up by
- telefrek/vallorcinetheir own version, first seen May 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- telefrek/vallorcine★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- claude-md-writerSkill
- feature-researchSkill
- feature-reviewSkill
- feature-workSkill
- new-featureSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run the project's existing test framework.
- Very specific: line 20
Every delegated agent prompt ends with the fixed return schema (see feature-research/references/plan-schema.md § Agent Return Schema).
- Very specific: line 35
Read the frontmatter. If status.work is pending, ask whether to (a) abort, (b) continue anyway, or (c) run /feature-work first.
- Very specific: line 40
Test command (from package.json scripts, Makefile, build.gradle, pyproject.toml, CLAUDE.md).
- Very specific: line 41
Test file location convention (colocated *.test.ts, sibling tests/, __tests__/, test/<mirror>).
- Distinctive: line 44
If detection is ambiguous, ask via AskUserQuestion to choose among detected candidates.
- Distinctive: line 64
Run the full test command once.
- Distinctive: line 104
Do not create new test frameworks or alternative runners.
- Very specific: line 105
Do not touch Plan sections other than ## Test Scenarios and status.test.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
feature-test
Third stage of the 4-skill feature workflow. Consumes the Plan (now with status.work: done) and produces the test suite for the implemented feature.
$ARGUMENTS must be the path to the Plan file.
Language note: This skill is authored in English per
.claude/rules/skill-authoring.md. User-facing output follows the project's CLAUDE.md language preference.
Invariants
- Pass the Plan by path to agents; never inline its body into prompts.
- Run the project's existing test framework; do not introduce a new one without AskUserQuestion.
- Every delegated agent prompt ends with the fixed return schema (see
feature-research/references/plan-schema.md§ Agent Return Schema). - Self-healing loop: on test failure the owning agent attempts a fix and re-reports
status: ok. Maximum two retries per scenario; on the third failure, surface to the user.
References
- references/test-patterns.md — How to detect the project's test framework, convention, and command.
../feature-research/references/plan-schema.md— Plan contract and agent return schema.
Workflow
1. Resolve the Plan
- Take the Plan path from
$ARGUMENTS. If empty, prompt via AskUserQuestion (same resolution asfeature-work). - Read the frontmatter. If
status.workispending, ask whether to (a) abort, (b) continue anyway, or (c) run/feature-workfirst.
2. Detect the test framework
Consult references/test-patterns.md to determine:
- Test command (from
package.jsonscripts,Makefile,build.gradle,pyproject.toml,CLAUDE.md). - Test file location convention (colocated
*.test.ts, siblingtests/,__tests__/,test/<mirror>). - Assertion style and helpers in use.
If detection is ambiguous, ask via AskUserQuestion to choose among detected candidates.
3. Derive test scenarios (delegated)
Dispatch one Explore agent (read-only scenario derivation) to read the Plan's ## Goal, ## Change Plan, ## Reuse, and ## External Notes, then return a list of scenarios. Each scenario: title, target path:line, inputs, expected outcome. Prompt ends with the fixed return schema.
4. Persist scenarios to the Plan
Open the Plan file and append the returned scenarios to the ## Test Scenarios section. Do not rewrite other sections.
5. Write tests (delegated, per file)
For each test file to be created (grouped by target module):
- Dispatch the
implementeragent (subagent_type: implementer) with: the Plan path, the scenarios for this module, the target file conventions, and the fixed return schema. - The agent writes the test file and returns only the created path plus a one-line summary.
Parallelization: test files for different modules may be dispatched in one Agent block as parallel implementer instances; collate the returns before proceeding.
6. Run tests and self-heal
- Run the full test command once.
- For each failing test: dispatch
implementerwith the failure output and ask it to fix either the test or the implementation and re-report. The agent retries up to 2 times internally, then surfacesstatus: blocked. - On
blockedstatus, stop self-healing and ask the user via AskUserQuestion how to proceed.
7. Update Plan status
Set status.test: done in the Plan's frontmatter. Do not modify other fields.
8. Mini-report (outline style)
Emit a final outline-form report as model text, in the project's preferred language. Labels below are reference-only.
──────────────────────────────────────────
✓ feature-test done **<slug>**
──────────────────────────────────────────
**▸ Summary**
- **Scenarios added** — **<n>**
- **Test files created** — **<k>**
- **Self-heals applied** — **<m>**
**▸ Artifacts**
- `<test-path>` — **<covers>**
- …
**▸ Metrics**
- Tests **<pass/total>**
- Framework — `<vitest|pytest|go test|...>`
**▸ Next steps**
- **Run `/feature-review <plan-path>`** to validate
──────────────────────────────────────────Outline rules: no complete sentences; bold nouns/identifiers/numerics/status; symbols only from ✓ ⚠ ✗ ▸; never emit via Bash.
Constraints
- SKILL.md body length ≤ 200 lines.
- Do not create new test frameworks or alternative runners.
- Do not touch Plan sections other than
## Test Scenariosandstatus.test. - Two-retry ceiling on self-healing; beyond that, the user decides.
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.

