implement
Skill4 starsChanged 3 months agoMITView on GitHub
Internal phase 2 of ticket-flow, normally invoked by ticket-flow:flow — execute the plan for the claimed ticket inside its worktree: incremental commits, typecheck/test after each major step. Invoke directly only to continue implementing a ticket that is already picked up.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- ofweb/skillstheir own version, first seen Oct 5, 2026
- roby2358/skillstheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use setup-ts-deep-modules, ask-matt and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 17 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 36 projects that use this
AWSSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
Also in 75 projects that use this
ArvorCoSkillspecify
Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.
Also in 12 projects that use this
qwlabsSkillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 18 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 22 projects that use this
- +5 more from aws
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- mattpocock/skills★ 335ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- huggingface/OpenEnv★ 2.6ksame name
- stevesolun/ctx★ 588same name
- nodetool-ai/nodetool★ 551same name
- aws/graph-explorer★ 484same name
- boshu2/agentops★ 447same name
- devcxl/mattpocock-skills-zh★ 426same name
- bighadj22/codflow★ 338same name
- ninehills/skills★ 280same name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
In both regimes — committing to the worktree branch itself: run with cwd = the worktree root, not a subdirectory of it.
- Very specific: line 50
Not found: error — "No Kanban item with branch: <branch> in In Progress.
- Distinctive: line 78
After each major step: typecheck/test in the worktree
- Very specific: line 83
If a spec with Acceptance Criteria exists: after each step check which ACs are now met.
- Distinctive: line 101
If the item type = "research" (AC mentions "research doc" or similar):
- Distinctive: line 107
Never trust subagent output blindly — review critically, verify sources
- Very specific: line 117
When in doubt, go one tier up.
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/ticket-flow:implement — Phase 2 of Ticket-Flow
Args: none — operates in the current worktree, derives the item via the branch: marker in the bd notes field.
Prerequisites
- /ticket-flow:pickup has been run (item is In Progress, worktree exists,
branch:marker set) - Current directory = worktree (or the user is asked to switch)
Steps
1. Find the current branch + item
git branch --show-current→ branch name (e.g. worktree-94-multipoint-messung from EnterWorktree, or feature/94-multipoint-messung from manual git worktree).
Resolve the item by the .ticket-flow mode flag (source skills/kanban/bd-helper.sh):
- Find the bd issue whose notes field carries
branch: <branch>. Do not readKANBAN.md.source "${CLAUDE_PLUGIN_ROOT}/skills/kanban/bd-helper.sh" BRANCH="$(git branch --show-current)" BD_ID="$(bd list --json 2>/dev/null | jq -r --arg b "$BRANCH" \ '.[] | select((.notes // "") | test("(^|\\n)branch: " + $b + "$")) | .id' | head -1)" ID="$(bd_kanban_for "$BD_ID")"
IMPORTANT — where a git commit may run depends on the session type. Two different regimes, do not mix them up:
- Worktree-isolated session — a subagent dispatched with
isolation: "worktree", or this session afterEnterWorktree. Git against the main repo is refused outright, in both spellings:cd <main-repo> && git …andgit -C <main-repo>are rejected with "this command changes directory to the shared checkout … before running git. Refusing to run it". There is no workaround and no point burning calls on one. Commit to the worktree branch only; every main-repo write — ticket state,.beads/export commits, the merge — belongs to the controller or a main-repo session. That is exactly how/ticket-flow:flow --parallelsplits the work (see flow P3/P6: only the controller ever writes ticket state). Non-isolated session inside a worktree — an external worktree adopted via
/ticket-flow:pickup --here(orca card, Conductor, worktrunk, bead-workflow-skills) is a normal session that merely happens to sit in a linked worktree. There, main-repo git works, but only as a single shell statement withdangerouslyDisableSandbox: true:cd <main-repo-path> && git add <files> && git commit -F <msg-file>git -C <main-repo>alone is not enough — it hits.git/index.lock: Operation not permitted, because the sandbox ties index-lock writes to the process's physical cwd.
In both regimes — committing to the worktree branch itself: run with cwd = the worktree root, not a subdirectory of it. From a subdir, git commit fails with .git/index.lock: Operation not permitted for the same physical-cwd reason. Fix: cd "$(git rev-parse --show-toplevel)" (the worktree root) before committing.
- Not found: error — "No Kanban item with
branch: <branch>in In Progress. Run /ticket-flow:pickup first." - Found: extract ID, title, tag, plan link
2. Load the plan
- Plan link in the note? → read the plan
- No plan? → decide, don't prompt (see Decide, don't prompt in
skills/flow/SKILL.md). For a trivial bug —bugtag, single-file, scope obvious from the title/spec — proceeding without a structured plan is clear-cut: continue silently. Only stop and ask when there is no plan and the scope is genuinely unclear (afeature/changewith no spec, ambiguous blast radius). - Spec link in the note? → read the spec in parallel for Acceptance Criteria
3. Choose the implementation mode
Assess plan complexity:
| Plan character | Mode | Skill |
| Single-file bug, ≤3 steps | Interactive directly | (no sub-skill) |
| Multi-step, sequential, clean plan | Plan execution | Skill(superpowers:executing-plans) |
| Multiple independent strands (e.g. parallel research) | Subagent dispatch | Skill(superpowers:subagent-driven-development) or dispatching-parallel-agents |
| Research item (output is a doc, not code) | Subagent dispatch for parallel sources, synthesized by you | dispatching-parallel-agents |
The last two rows need a session that can spawn subagents — a dispatched one cannot. A subagent running under flow --parallel/--serial (and any background session) has no Agent, Workflow, TaskOutput, ScheduleWakeup or AskUserQuestion tool: the dispatch simply is not available, and attempting it wastes a turn on a tool that isn't there. In that case drop to the row above — execute the plan yourself, sequentially, committing per sub-step. Only flow --local and a session you started yourself can take the dispatch rows.
Decide, don't prompt (see Decide, don't prompt in skills/flow/SKILL.md): the plan/item almost always picks the row for you — a clean sequential plan → plan execution, a single-file bug → interactive, a research item → subagent dispatch. Infer the mode and proceed. Only when the plan genuinely fits two rows with materially different outcomes — and no default is clearly right — stop and ask which mode.
4. Run the implementation
Work in the chosen mode:
- Incremental commits (smaller thematic commits — not one mega-commit at the end)
- After each major step: typecheck/test in the worktree
- For UI changes: at least a local build (deploy happens in /ticket-flow:finish)
5. Spec verification (ongoing)
If a spec with Acceptance Criteria exists: after each step check which ACs are now met. When all ACs are met: ready for /ticket-flow:finish.
6. Report
Standard report (always):
✓ Implementation for #<id> in <branch> complete
Commits: <count>
Spec ACs met: <met>/<total> (if a spec exists)
Typecheck/test: <status>On implementation failure: stop, report the error (no auto-finish — the user decides whether to run /ticket-flow:finish). If the failure is a hard blocker — external auth, a missing dependency, or a verification that keeps failing after a genuine attempt — also file a structured escalation issue before reporting (see § Escalation on a hard blocker).
Subagent dispatch pattern (for research items)
If the item type = "research" (AC mentions "research doc" or similar):
- Split the plan into 2–4 independent research strands
- Dispatch in parallel: a single message with multiple
Agenttool calls (subagent_type:general-purposeorExplore) - Give each subagent a clear, self-contained prompt: what to research, expected sources, output under 400 words
- Synthesis: combine all results into ONE doc (e.g.
docs/research/<topic>.md) - Never trust subagent output blindly — review critically, verify sources
Model tier per subagent (ticket-flow-sqh) — the Agent tool takes a model parameter; pick it by the dispatched task's complexity instead of always inheriting the session model:
| Dispatched task | Model |
| Mechanical / convention-bound — one well-scoped lookup, a doc fetch, a rote edit | haiku |
| Standard — a research strand, a contained implementation slice | sonnet (or inherit) |
| Cross-file reasoning, architecture, ambiguous scope | opus |
When in doubt, go one tier up. This is a cost lever — it never changes what gets done, only which model does it. The same table applies to the planned flow --parallel dispatch (ticket-flow-x71).
Forbidden: for tasks that need external GUI tools (e.g. hardware-related GUI tools, manual tooling work) → NO subagent dispatch. Use interactive single-session guidance instead.
Escalation on a hard blocker (ticket-flow-8f2)
A hard blocker is a failure this phase genuinely cannot work past on its own — an external auth failure, a missing dependency, or a verification that keeps failing after a real attempt. When you hit one: do not stop with only a raw error, and do not start a silent retry-loop. File a structured escalation issue so the blocker is tracked, then report it to the user with the issue id.
This is escalation, not auto-fix — the user always sees the failure. The point is a durable, structured artifact instead of a lost error message.
Escalation body — four sections, always:
- Task — what the phase was trying to do.
- What was tried — each attempt and how it failed.
- Root-cause hypothesis — the best read of what is actually blocking.
- Suggested next step — one concrete, actionable suggestion for the human.
File a bead (dangerouslyDisableSandbox: true for the bd call; no .beads/ in the project → gh issue create if it tracks blockers on GitHub, otherwise report inline):
bd create --type=bug --priority=1 --title="blocked: <short task title>" \
--description="## Task
<…>
## What was tried
<…>
## Root-cause hypothesis
<…>
## Suggested next step
<…>"Command-like content needs a file detour: when the description contains shell-command-like strings (flag names, one-liners — typical for What was tried), the inline bd create reproducibly fails with failed to open database … operation not permitted — the permission classifier downgrades the sandbox bypass for exactly that call. Write the body to a scratch file first; identical content passed via substitution goes through:
# four-section body written to /tmp/claude/escalation.md first, then:
bd create --type=bug --priority=1 --title="blocked: <short task title>" \
--description="$(cat /tmp/claude/escalation.md)"Then report to the user: the raw error and the escalation issue id.
What it doesn't do
- /ticket-flow:pickup tasks (create worktree, kanban move)
- Deploy
- Merge / kanban move to Testing
→ Phase 1 = /ticket-flow:pickup, Phase 3 = /ticket-flow:finish.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

