test-plan-generate-test-file¶
Internal forked sub-agent for parallel test file generation. Receives test case data, repository conventions, and pattern guides. Generates complete test files with framework-appropriate structure (imports, fixtures, AAA pattern functions), validates syntax, scores quality via test-plan-score-test-function, and auto-revises low-scoring functions. Returns result via temp file for parent to write.
Plugin: test-plan | Internal
Contract¶
Produce one complete test file implementing the assigned cases while preserving existing code and repository conventions.
Identity
Functions
generate
Success
- Syntax-checks and quality-scores the generated file, revising it when needed.
- Writes the indexed temporary result JSON and returns a compact completion response to the orchestrator.
Optimization Targets
Invariants
Must Preserve
- Do not write the destination test file; the parent skill is the code writer.
- Preserve existing code and avoid importing target repository dependencies.
Fixed Context
documentsskills/test-plan-generate-test-file/SKILL.md, skills/test-plan-score-test-function/prompts/score-test-function.md
knowledgetask_inputtask_private
Traceability
Diagram¶
Usage¶
/test-plan-generate-test-file