Autonomous spec-driven development agent. Reads DEV_SPEC.md, identifies next task, implements code, runs tests, and persists progress — all in one command with minimal user intervention. Use when user says "auto code", "自动开发", "自动写代码", "auto dev", "一键开发", "autopilot", or wants fully automated spec-to-code workflow. Replaces manual dev-workflow pipeline with autonomous execution.
Autonomous agent: one trigger completes read spec → find task → code → test → persist progress.
| User Says | Behavior | |-----------|----------| | "auto code" / "自动开发" | Next task, full cycle | | "auto code B2" | Specific task | | "auto code --no-commit" | Skip git commit |
Sync Spec → Find Task → Implement → Test (≤3 fix rounds) → Persist
Only pause at the very end for commit confirmation. Everything else runs autonomously.
⚠️ CRITICAL: ALL Python commands MUST run inside the project venv. Before executing ANY
pythonorpytestcommand, activate the venv first:.\.venv\Scripts\Activate.ps1Verify by checking
Get-Command pythonpoints to.venv\Scripts\python.exe. Never use system Python. Never skip this step.
Activate venv first, then sync:
.\.venv\Scripts\Activate.ps1
python .github/skills/auto-coder/scripts/sync_spec.py
Then read the schedule file to get task statuses:
.github/skills/auto-coder/specs/06-schedule.mdTask markers:
| Marker | Status |
|--------|--------|
| [ ] / ⬜ | Not started |
| [~] / 🔶 / (进行中) | In progress |
| [x] / ✅ / (已完成) | Completed |
Priority: first IN_PROGRESS, then first NOT_STARTED. If user specified a task ID, use that directly.
Quick-check predecessor artifacts exist (file-level only). On mismatch, log warning and continue — only stop if the target task itself is blocked.
Read relevant spec from .github/skills/auto-coder/specs/:
05-architecture.md03-tech-stack.md04-testing.mdExtract from spec: inputs/outputs, design principles (Pluggable? Config-driven? Factory?), file list, acceptance criteria.
Plan files to create/modify before writing any code.
Code — mandatory standards:
Write tests alongside code:
tests/unit/test_<module>.py or tests/integration/ per spectest_<func>_<scenario>_<expected>Self-review before running tests: all planned files exist, type hints present, no hardcoded values, tests import correctly.
Round 0..2:
Run pytest on relevant test file
If pass → go to step 5
If fail → analyze error, apply fix, re-run
Round 3 still failing → STOP, show failure report to user
DEV_SPEC.md (global file): change task marker [ ] → [x]python .github/skills/auto-coder/scripts/sync_spec.py --force✅ [A3] 配置加载与校验 — done
Files: src/core/settings.py, tests/unit/test_settings.py
Tests: 8/8 passed
Commit: feat(config): [A3] implement config loader
"commit" → git add + commit
"skip" → end
"next" → commit + start next task
On "next", loop back to step 1 for the next task.
.venv before ANY python/pytest command — no exceptions. If unsure whether venv is active, run .\.venv\Scripts\Activate.ps1 again (idempotent)auto-coder/
├── SKILL.md ← this file
├── .spec_hash ← auto-generated hash
├── scripts/
│ └── sync_spec.py ← splits DEV_SPEC.md into chapters
└── specs/ ← auto-generated chapter files
├── 01-overview.md
├── 02-features.md
├── 03-tech-stack.md
├── 04-testing.md
├── 05-architecture.md
├── 06-schedule.md
└── 07-future.md
All paths are self-contained. This skill has no external dependencies on other skills.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer