start-development
Mandatory entry point for non-trivial development here (code/ submodules and the workbench itself): size, discovery, design doc and task files, then one approval gate; after it, unattended to merge through epic-run (one implementer and one reviewer per task, one scope audit per epic) and a record.
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- start-development
- description
- Mandatory entry point for non-trivial development here (code/ submodules and the workbench itself): size, discovery, design doc and task files, then one approval gate; after it, unattended to merge through epic-run (one implementer and one reviewer per task, one scope audit per epic) and a record.
02 资源文件 66
- 参考文档references/hooks.md4.8 KB
- 参考文档references/merge-hosts.md2.2 KB
- 参考文档references/non-negotiables.md2.7 KB
- 参考文档references/retro.md2.1 KB
- 参考文档references/tickets.md15.2 KB
- 参考文档references/user-run-steps.md1.6 KB
- 参考文档references/workbench-config.md2.1 KB
- 参考文档references/worktrees.md3.1 KB
- 脚本scripts/deploy-hook.py1.6 KB
- 脚本scripts/ticket_cmds/__init__.py370 B
- 脚本scripts/ticket_cmds/actuals.py1.8 KB
- 脚本scripts/ticket_cmds/amend.py1.9 KB
- 脚本scripts/ticket_cmds/close_cmd.py4.0 KB
- 脚本scripts/ticket_cmds/deltas.py5.6 KB
- 脚本scripts/ticket_cmds/migrate.py13.2 KB
- 脚本scripts/ticket_cmds/questions.py4.3 KB
- 脚本scripts/ticket_cmds/retro.py12.1 KB
- 脚本scripts/ticket_cmds/roadmap.py5.0 KB
- 脚本scripts/ticket_cmds/task_cmd.py3.8 KB
- 脚本scripts/ticket.py64.7 KB
- 脚本scripts/user-run-step.py2.9 KB
- 参考文档templates/design.md2.1 KB
- 参考文档templates/epic.md347 B
- 参考文档templates/record.md1.0 KB
- 参考文档templates/retro.md1.1 KB
- 参考文档templates/task.md815 B
- 脚本tests/conftest.py369 B
- 脚本tests/test_deploy_hook.py2.2 KB
- 脚本tests/test_docs_paths_handback.py1.1 KB
- 脚本tests/test_epic_skills_structure.py3.5 KB
- 脚本tests/test_flow_references_remarks.py2.8 KB
- 脚本tests/test_lean_flow_docs.py8.0 KB
- 脚本tests/test_planner_agent.py3.6 KB
- 脚本tests/test_plugin_readme_rules.py2.0 KB
- 脚本tests/test_release.py7.0 KB
- 脚本tests/test_repo_hygiene.py5.1 KB
- 脚本tests/test_review_flow_docs.py5.4 KB
- 脚本tests/test_skill_size.py1.4 KB
- 脚本tests/test_start_development_generic.py1.1 KB
- 脚本tests/test_start_development_remarks.py1.7 KB
- 脚本tests/test_templates.py6.9 KB
- 脚本tests/test_ticket_amend.py4.1 KB
- 脚本tests/test_ticket_check.py12.9 KB
- 脚本tests/test_ticket_close_cmd.py11.0 KB
- 脚本tests/test_ticket_close.py5.3 KB
- 脚本tests/test_ticket_cmd_modules.py2.7 KB
- 脚本tests/test_ticket_deltas.py8.0 KB
- 脚本tests/test_ticket_files.py21.5 KB
- 脚本tests/test_ticket_flow_docs.py2.6 KB
- 脚本tests/test_ticket_integration.py4.5 KB
- 脚本tests/test_ticket_lint.py5.9 KB
- 脚本tests/test_ticket_migrate_map.py18.4 KB
- 脚本tests/test_ticket_migrate.py15.7 KB
- 脚本tests/test_ticket_move.py33.2 KB
- 脚本tests/test_ticket_names.py1.7 KB
- 脚本tests/test_ticket_naming.py4.9 KB
- 脚本tests/test_ticket_overlap_ignore.py5.0 KB
- 脚本tests/test_ticket_questions.py4.0 KB
- 脚本tests/test_ticket_reap_task.py1.2 KB
- 脚本tests/test_ticket_retired_run_loop.py1.9 KB
- 脚本tests/test_ticket_retro.py17.2 KB
- 脚本tests/test_ticket_roadmap.py4.9 KB
- 脚本tests/test_ticket_task_status.py11.5 KB
- 脚本tests/test_ticket_worktrees_refresh.py6.2 KB
- 脚本tests/test_user_run_step.py3.2 KB
- 脚本tests/ticket_repo_helpers.py4.5 KB
03 SKILL.md 正文
start-development
Phases 0 to 7 in order, a todo each, and one approval gate between phase 3 and phase 4.
ticket.py is python3 ${CLAUDE_PLUGIN_ROOT}/skills/start-development/scripts/ticket.py. It owns every file under
docs/plans/, runs in the main checkout and commits its own changes as chore(ticket): <epic> <event> (if the user
answers no at the gate, the orchestrator commits them). Details: references/tickets.md.
Modes
- Component mode - code in
code/submodules; the epic ends in an MR from its integration branch (phase 6). - Meta mode - the workbench superrepo itself (
.claude/,docs/, root configs,CLAUDE.md,MEMORY.md,ROADMAP.md), no submodule. Meta mode tasks commit on the integration branch<epic>, and the epic closes by rebase plus fast-forward of the local main, with or without anoriginremote (ticket.py close); pushing main stays with the user. Work spanning both is two epics, meta first unless a dependency says otherwise.
Phase 0 - Size the work
Say the size and why in one line; borderline starts lean. Both are one epic with task files, one gate, one loop.
- Lean when all hold: one repo, about ten files you can name, no new cross-repo interface, schema or
deployment-topology change, nothing expensive to reverse, no design fork. Lean skips the lenses and design.md: phase
1 is your own recon, you write the tasks with
epic-task-create(ticket.py new-task --points <n>). - Full when any holds: more than one
code/submodule, a cross-repo contract, a genuine fork worth a human decision, authz, secrets, cluster exposure or container privilege, or files you cannot name yet.
Phase 1 - Discovery
Component mode first runs git-submodules-refresh (submodule-auditor on a stale, detached or unpushed checkout) and
finishes it first. Then start-discovery (LSP sweep, codebase-cartographer per repo, start-research, the reuse
hunt), one brief. Never skip the tree state: run each repo's lint and tests now and keep the commands verbatim.
Optional lenses, each recorded in design.md's Research section as ran, or skipped with the reason (a lens nobody
decided on is a gap). Run when: research-code-internal, the plan adds a helper, reader, parser, schema field or
subsystem, or a repo has > ~200 source files; research-code-external, the change has known analogues or an open
fork; research-papers, a scientific or algorithmic core; research-docs, a library or platform API used in a new
way, upgraded, or touched in >= 3 call sites. Every brief ends in ## Plan inputs: four lists, "none" when empty, one
line per entry: reuse (name - file:symbol - which plan items need it), do-not-build (item - what provides it
instead - source), fix-as-ac (anti-pattern - where - the acceptance condition), ideas (adopted / rejected, one
line each, with the source). The planner places every entry (task Notes, a removed item, an AC, Research).
Phase 2 - Design doc
ticket.py check --title "<title>" lists near duplicates; extend one rather than start a twin. Then epic-create
(ticket.py new-epic --title "<title>") writes the README: project brief (what, how, why), description, goals,
non-goals. Several viable approaches or a costly-to-reverse choice: architect-researcher (fable only for one
framed consulting question). Ask the user only what no probe can answer: a fact is settled by a read-only probe, a
preference is theirs. Full size: design.md from templates/design.md at ticket.py path <epic> design, unstated
defaults marked (my call).
Phase 3 - Tasks
Dispatch one workbench:planner (opus) with {epic, briefs[], userDecisions[]}. Through epic-task-create it writes
each task: a verbatim requirement, acceptance conditions with test: or command: evidence, files, a targeted
verify, depends_on, and model (opus when it adds a module or touches more than five files, else sonnet); one
test file's worth of behaviour, at most 8 files. ticket.py lint <epic> must print lint: ok. Then the builder
check: one general-purpose agent on sonnet, no prior context, prompted "You are a talented engineer in this domain,
handed the epic at <epic-dir>: its README.md, its design.md (absent when lean) and the task files under tasks/. Report
only the questions you would still need answered before building, one numbered line each, or 'no questions'." Settle
the answered and minor ones in the docs, marked (my call); probe facts, never ask them; preference calls go to the
gate. A contested or high-risk design (authz, secrets, concurrency, a rules engine, a data migration) gets one
workbench:interrogate before the gate.
The gate
One message, in this order:
- The epic README and design.md paths, and the project brief (what, how, why).
- The task table: id, title, value, files, depends_on, model, points, expected_minutes, expected_tokens.
- The research lenses that ran and the ones skipped, with the reason.
- The builder check's remaining questions as one batch, numbered, each with a recommended answer, worded so that
"yes" accepts it (
ticket.py questionsgathers the open ones of every todo epic). - The
workbench:interrogateverdict, when it ran. - Every irreversible operation in scope (destroy, data deletion, secret rotation, shared force-push), by name.
- "Approve, or tell me what to change."
Approving the message approves the README goals and every task's acceptance conditions; nothing else records approval.
On changes: revise the docs and tasks (ticket.py amend), re-lint, re-present. One gate may cover several epics, each
under its own heading. Everything after the gate runs unattended to merge. An irreversible operation not listed at
the gate stops it.
Phase 4 - Execute
Invoke the epic-run skill; it runs this loop, written once here, and every agent call (implementer, reviewer, each
continued in a fix round) runs in the background, so the session stays free to plan other epics.
- Claim the epic:
ticket.py move <epic> in-progresscreates the integration tree on branch<epic>(references/worktrees.md). Everyticket.pycall stays in the main checkout. - For each task in
ticket.py tasks <epic>order, sequential, every dependency before its dependents: note the tree's HEAD, then oneworkbench:implementer(model from the task) with the task file verbatim and the tree path. - On its return, one
workbench:reviewer(sonnet) with the task file, the tree path and the commit the task started from: the reviewer checks a clean tree at HEAD, runs the task'sverifyon HEAD, checks every acceptance condition against the files, greps for debt markers, then reviews quality. While it reports unmet conditions or findings, continue the same implementer withSendMessage, then the same reviewer: at most two fix rounds. - Clean:
ticket.py task <epic> <task> --status done --verified-head <head> --points-actual <reviewer's pointsActual>. Open after the cap:--status escalated --note "<open findings>"; skip its dependents. After the last: phases 5-7.
Rules: undelivered is a finding; discovered becomes a new task in the same epic (ticket.py new-task --points <n>); an
escalated task is yours to judge: a sharper requirement (ticket.py amend) or workbench:interrogate once. The epic
cannot close while a task is not done; never implement a task yourself, never merge a tree yourself.
Phase 5 - Epic review
ticket.py stage <epic> review(refuses while a task is open).- Whole-diff
start-reviewongit diff <base>...<epic>;workbench:interrogatefor a high-risk diff. - One
scope-auditor(sonnet) with the README, the task files, the tree and the base: goals, non-goals and every acceptance condition against the integrated diff, plus the duplicate sweep. - The one full-suite run: the repo's
suitesfrom.claude/workbench.json, else"${CLAUDE_PLUGIN_ROOT}/skills/worktree-merge/scripts/suite-lock.sh" -- mise run test, andmise run lint. - Security: a diff touching secrets, SOPS, RBAC, ingress, privilege, CI vars, image pins or hooks gets
security-researcher; Terraform or charts:tf-planner/helmfile-differwhen theworkbench-infrapack is enabled. - Each real gap or finding becomes a new task (
ticket.py new-task --points <n>), thenticket.py stage <epic> buildand phase 4; a wrong one is dropped with the reason in your notes. Clean:ticket.py review <epic> --verdict pass --notes-file <notes>(--verdict failgoes back to build).
Phase 6 - Close or merge
- Meta mode:
ticket.py close <epic> --verify '<full suite and lint>'rebases<epic>onto main in the integration tree, verifies the rebased tip, fast-forwards main only when green, then verifies main. A rebase conflict:worktree-mergerin that tree, then close again. - Component mode:
git-worktrees-commit,git-worktrees-push,pullrequests-updatefor the MR from the integration branch;pullrequests-watch, acting on eachRESOLVEDline as it arrives (host per repo,references/merge-hosts.md); merge each MR the moment it is green, mergeable and review-clean. Deploy:pullrequests-watch --deploy, orpython3 ${CLAUDE_PLUGIN_ROOT}/skills/start-development/scripts/deploy-hook.pyfor adeployconfig (references/workbench-config.md); a step only the user may run followsreferences/user-run-steps.md. Post-deploy health:grafana-debugging-startwhen theworkbench-observabilitypack is enabled, else the repo'sdeploy.verifycommand; a failed check continues instart-debugging. - Then
ticket.py move <epic> done(epic-move) removes the integration tree and branch, andepic-worktrees-remove(ticket.py reap --epic <epic>) removes every remaining worktree of the epic.
Phase 7 - Record
Dispatch record-writer (sonnet) with the epic slug, base and branch per repo, MR URLs and your notes (per task:
review rounds, the reviewer's verification tail; escalations judged, findings dropped); it fills templates/record.md
at ticket.py path <epic> record. Then ticket.py retro <epic> and retro-writer (sonnet): references/retro.md; old epics: epic-migrate.
ONE closing message, three lines at most (concise-orchestrator): both paths, what needs the user, what is blocked.
Non-negotiables
Full text in references/non-negotiables.md, the hooks behind them in references/hooks.md: Delivery is not
optional (only a named genuine blocker stops it). Orchestrate. Do not implement (set every subagent's model; at
400k tokens or 75% context, hand off with handoff). Test-driven and verified (a task is done when a reviewer
that did not write it verified it on HEAD). Scope is not negotiable (requirements verbatim, undelivered and
discovered as data, files over summaries; no "later" parking).
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.