Loading...
Loading...
Generate complete automated TDD development pipelines from a todolist.md file. Creates a self-contained directory with autodev.sh, system_prompt.md, gate_check.sh, and task cards that drive Claude Code through spec-anchored, gate-guarded, card-by-card development — fully automated with no human in the loop. Features: TDD 5-step closure, 3-level AI decision protocol, independent acceptance verification, auto-repair on test failure, Bug Hunt phase for post-development P0/P1/P2 bug scanning and fixing. Use when user says "帮我生成 autodev", "create autodev for", "generate autodev pipeline", or needs to turn a todolist.md into an automated gated TDD development pipeline.
npx skill4agent add grnfromdark/autodevskill auto-devautodev.shdecisions.jsonl| Item | What to look for |
|---|---|
| Groups | Top-level sections (Group 1, Group 2...) — these become Phases |
| Tasks | Individual numbered items within groups — these become Cards (or get merged into Cards) |
| Dependencies | Which tasks depend on others — determines Card ordering |
| Execution phases | If the todolist defines phases (Phase A, B, C...) — use them directly |
| Test commands | How to run tests — becomes the test verification step |
| Key constraints | Backward compatibility, safety rules, P1 fixes — become system_prompt constraints |
| Source files | Which files are being modified — becomes Card "read existing code" sections |
| Spec/design docs | Referenced design documents — becomes the "single source of truth" |
1. What is the spec/design document path?
→ This is the "single source of truth" referenced by all cards
2. What is the test command?
→ e.g., "python3 -m pytest tests/test_foo.py -q" or "npm test"
3. Are there any interactive/manual tests that must be excluded?
→ CRITICAL: Scan the test directories for tests that require interactive input
(stdin prompts, private keys, manual confirmation, GUI interaction, network
services that won't be available in CI). These MUST be excluded from the test
command via --ignore or path filtering.
→ Common patterns to look for:
- input(), getpass(), prompt(), readline() calls in test files
- Tests under directories named: live/, manual/, interactive/, e2e/, integration/
- Tests that connect to external wallets, require API keys at runtime, or need
running services
→ Add --ignore flags for each such directory/file. The generated test command must
be fully non-interactive and able to run unattended.
4. What are the core source files being modified?
→ Listed in system_prompt as "project files"
5. What are the project-specific constraints?
→ e.g., "backward compatible", "no breaking changes", "量纲一致性"
6. Where should the Autodev directory live?
→ Convention: Autodev/{project_name}/
7. If anything is unclear, how should ambiguity be resolved?
→ Infer from repo evidence (todolist, spec, tests, git history, existing patterns),
choose the most conservative backward-compatible option, and record assumptions in
system_prompt.md ("Assumptions & Defaults"). Do NOT block for user confirmation.Group 1 → Phase A → GATE:A
Group 2 → Phase B → GATE:B
...
Last Group → Phase N → GATE:FINAL{Phase}.{Sequence}Autodev/{project_name}/
├── autodev.sh # Main pipeline script
├── system_prompt.md # AI session prompt
├── gate_check.sh # Automated gate checks
├── state # Progress tracker (empty file)
├── decisions.jsonl # Decision audit trail (empty file, runtime populated)
├── logs/ # Runtime logs (empty dir)
├── bug_reports/ # Bug Hunt reports per round (runtime populated)
└── cards/
├── {A.1}.md # Task cards
├── {A.2}.md
├── ...
└── phase_gate.md # Phase gate audit templatesummary.md{PLACEHOLDER}| File | Template Reference | Description |
|---|---|---|
| references/autodev-template.md | Main pipeline script with card execution, testing, AC verification, Bug Hunt |
| references/system-prompt-template.md | AI session prompt with TDD flow, decision protocol, safety rules |
| references/card-template.md | Task card with context, tasks, acceptance criteria |
| references/gate-check-template.md | Automated gate checks (tests, audit, coverage) |
| references/phase-gate-template.md | Phase gate audit template for AI auditor |
{PLACEHOLDER}chmod +x autodev.sh gate_check.sh./autodev.sh --dry-run./autodev.sh --status./autodev.sh --helpls cards/cat statetest -f decisions.jsonl && [ ! -s decisions.jsonl ]! rg -n '\{(PROJECT|SPEC|TODOLIST|TEST_CMD|ALL_STEPS_CONTENT|FIRST_CARD_ID|SOURCE_DIRS|AUTODEV_PATH|AUTODEV_DIR|ENV_PREFIX|ADDITIONAL_FILES|RELEVANT|EXISTING_FILES|ACCEPTANCE_CRITERION|CARD_TITLE|CARD_ID|ALLOWED_PATHS|FORBIDDEN_PATHS|TASKS_WITH)[^}]*\}' autodev.sh gate_check.sh system_prompt.md cards/*.md{REVIEWER_ROLE}! rg -n 'show_help\(\) \{ \.\.\. \}|show_status\(\) \{ \.\.\. \}' autodev.shdecisions.jsonlbuild_prompt()DECISIONS_FILE: