build-stories
Batch build all incomplete stories across epics — thin wrapper that shells out to the external `sdlc` controller, which owns the deterministic state machine.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 2
01 前言 Front Matter
- name
- build-stories
- description
- Batch build all incomplete stories across epics — thin wrapper that shells out to the external `sdlc` controller, which owns the deterministic state machine.
- allowed-tools
- Bash
- argument-hint
- [all|resume|epic-NN|epic-name|story-id] [--dry-run] [--auto] [--skip-coverage] [--rebuild] [--limit=N] [--sequential] [--coverage-threshold=N] [--skip-preflight] [--preflight-timeout=N]
- disable-model-invocation
- true
02 资源文件 11
- 参考文档batch-progress.md4.3 KB
- 参考文档bugfix-agent-prompt.md33 B
- 参考文档coverage-gate-prompt.md34 B
- 参考文档dependency-resolver.md2.8 KB
- 参考文档discovery-agent-prompt.md6.7 KB
- 参考文档doc-update-prompt.md31 B
- 参考文档e2e-gate.md5.8 KB
- 参考文档merge-update-prompt.md5.3 KB
- 参考文档story-parser.md2.8 KB
- 参考文档story-validation.md2.3 KB
- 参考文档summary-prompt.md2.4 KB
03 SKILL.md 正文
You are a thin wrapper around the external sdlc controller (Epic-07).
Orchestration logic — discovery, cohort scheduling, the 4-stage build loop, the
bugfix loop, schema-validated agent I/O, and the SQLite ledger writes — lives in
deterministic Python in controller/, not in this prompt. Your only job is
to invoke the controller and return its exit code.
Running the controller
Forward the user's arguments to the controller verbatim, then surface its stdout/stderr and propagate its exit code unchanged. Do not re-implement any of the orchestration here.
sdlc build $ARGUMENTS
If sdlc is not on PATH, fall back to running it from the controller
checkout:
if command -v sdlc >/dev/null 2>&1; then
sdlc build $ARGUMENTS
elif [ -d controller ]; then
( cd controller && uv run sdlc build $ARGUMENTS )
else
echo "error: sdlc not on PATH and no ./controller in this repo." >&2
echo "Install it from a claude-code-config checkout:" >&2
echo " uv tool install /path/to/claude-code-config/controller" >&2
exit 1
fi
What the controller does (reference only)
The controller (controller/src/sdlc/) owns the full lifecycle:
- Preflight — shells out to the detected test command; aborts if red
(unless
--skip-preflight). - Discovery — reads stories from the markdown epic files (or the SQLite ledger when resuming).
- Cohort scheduling — groups stories into dependency cohorts.
- Build → Coverage → Review → Merge — dispatches each agent as a
subprocess and validates every response against its JSON-schema contract
(
controller/schemas/). A missing or schema-invalid result block is treated as a build failure and routed to the bugfix loop — the next stage never runs on garbage. - Bugfix loop — bounded retries per story before marking it FAILED.
- Ledger writes — every stage transition is persisted to the Epic-04
SQLite ledger (
.sdlc-state.db) before the next stage begins. - Markdown view — regenerates
docs/stories/.build-progress.mdfrom the ledger viasdlc-state.sh render.
The build pipeline's agent prompts are rendered in Python by the controller
(render_build_prompt, render_review_prompt, render_bugfix_prompt and
friends in controller/src/sdlc/build.py). The controller never reads the
.md files in this skill directory, so editing one does not change what
sdlc build dispatches — change the renderer instead.
sdlc fix works the same way — its prompts are rendered by render_*_prompt
functions in controller/src/sdlc/fix_issue.py, not loaded from disk.
The files are still maintained, though, so do not treat them as dead.
bugfix-agent-prompt.md, coverage-gate-prompt.md and doc-update-prompt.md
are symlinks into skills/_shared/, single-sourced across the build-stories
and fix-issue skill directories (Story 27.1-003), and a structural test fails
the build if one stops resolving. Separately, coverage-gate-prompt.md and
merge-update-prompt.md carry byte ceilings that fail on regrowth. Keep all of
them in step with the Python renderers they mirror; the remaining .md files
here carry neither guarantee.
04 同仓库更多 Skills
evil
A poisoned skill fixture carrying an encoded payload.
demo
A harmless demo skill used as a clean supply-chain fixture.
skills
暂无简介
telegram
Post messages to Telegram via Bot API. Supports Markdown formatting, reply-to, and silent mode.
fix-github-issue
Fix a GitHub issue with quality gates — coverage, code review, E2E, and bugfix triage loop.
execute-e2e-tests
Run and manage Playwright E2E tests. Setup, write, execute, and debug end-to-end tests for any project.