matiinchauspe/yunque/yun-build-plan
Claude Code and agent skill by matiinchauspe/yunque
- community
Checking that the SKILL.md file is still in the repository.
Build an already-sliced plan to completion, leaving one branch to review.
Install
npx vskill@latest install matiinchauspe/yunque/yun-build-planSKILL.md
The same SKILL.md was published earlier as matiinchauspe/yunque/yun-build-plan.
yun-build-plan
Take a plan already sliced into tracer bullets and build it to completion, leaving ONE branch for a human to review and merge. The walk: read the chain and compute the frontier → dispatch one ticket to a run → resolve the ticket → read again, until the frontier drains or the walk stops on something it must surface.
The walk keeps no state of its own, and writes to git only to commit a run a human approved — in an attended walk; unattended, every git command it runs is a read. Each run is cut from the branch the last one produced, so the chain integrates by construction: the newest branch already carries every ticket before it, and the last one is the deliverable. Every pass reads that chain back out of git and the ticket store rather than remembering it, which makes every pass a resume — the first and the seventh run the same steps.
`LIMITS.md` holds one shape this walk refuses to build, one judgment it cannot make and proceeds anyway, why the walk is serial rather than fanned out, and every place the mechanism is weaker than it looks — including why a green gate, a chained branch, and a resolved ticket each mean less than they appear to.
Inputs
A human types this skill, plausibly bare. Ask for whichever of the first three you were not given:
<repo>— the synced repo underrepos/<repo>/that every ticket builds in.<feature key>— the key scoping the ticket set, asartifact-convention.mdresolves it.<slug>— kebab-case, prefixing every run's workspace and branch so the whole chain shares one
aw/<slug>/… namespace. Not decoration: it is what step 1 reads the chain back out of. Derive it from the feature key unless the user names one — but where tickets already read resolved, ask for the slug that chain was built under, or a derived one opens a second namespace beside it and the chain becomes unreadable.
<base>— the ref the chain starts from, where that is not the mainline: a feature branch a fresh
plan builds onto, or the chain a broken derivation cannot read for itself. Where step 1 can derive a tip, that tip wins — a base supplied over it would override a fact with a guess.
- attended — whether a human reviews each run's changes uncommitted before it chains. Ask
when you were not told. Attended, the run leaves its work uncommitted and the walk commits it on the human's ok; unattended, the run commits and nothing waits on a person.
Preconditions
- The work is already sliced. Implementation tickets published with their blocking edges drawn.
If it isn't, hand back to yun-slice-plan — there is nothing here to walk.
- `repos/<repo>/` is synced and a full clone.
yun-spawn-worktreerequires both and answers
either one missing by stopping to ask a human who is not there. Hand back to yun-sync-repo, rather than discovering it one failed dispatch at a time.
- One walk per feature — and at the contract's bottom tier, one walk per repo. It holds no lock.
Two walks on one feature build two divergent chains, and since neither contains the other, no branch is the deliverable. Lower down the collision is coarser: the inline floor execution-convention degrades to is single-writer per repo, whatever feature it builds.
Steps
1. Read the chain, then compute the frontier
Two reads, from scratch, every pass — nothing below is carried from the last one:
listthe implementation namespace throughskills/_shared/artifact-convention.mdfor every
ticket's number, blocking edges and status. What that set means for a walk is this walk's to say; the contract hands over tickets, never a frontier.
git -C repos/<repo> branch --list 'aw/<slug>/*'— never a baregit, never acd. Every branch
this walk ever left stands here, one per dispatch, under the ticket number it ran for.
Cross them, and two facts fall out:
- The chain's tip. No ticket reads `resolved` → nothing is chained here, whatever failed
branches are standing, and the base is the <base> you were given — confirm it resolves in the repo before dispatching onto it — else the mainline, resolved by execution-convention's rule and recorded as the ref it resolved to; a stale ref is the human's to correct, since this walk never fetches. Otherwise every resolved ticket must have a branch under its number, and one of those branches must hold all the rest as ancestors: that one is the tip, the deliverable so far, and the next dispatch's base. Ancestry is what orders them, since dispatch follows the edges rather than the numbers. Check it per ticket, because the aggregate lies — prune one branch and the newest survivor still holds every remaining branch as an ancestor, so it reads as a clean tip while that ticket's work sits outside the deliverable.
- The failed set — every ticket reading
openthat has a branch under its number. It was
dispatched and never resolved. Skip it, permanently. Its newest log entry, read through fetch, overrides that four times. A `parked` entry → the ticket is parked: off the frontier, and reported with its question, never as skipped, whether or not its workspace still stands. An `answered` entry → the ticket is answered: takeable, and step 2 dispatches it as a resume. A `checkpoint` entry → takeable the same way, resumed from its baton. An awaiting review entry, with the workspace still standing with uncommitted changes → take it straight to step 3's stop for the human rather than dispatching, with the tip as the base it was handed, since nothing chained past it. An awaiting review ticket whose workspace is gone is failed like any other.
The frontier is what remains: open, unblocked — every edge list returns for it already resolved — and neither failed nor parked, in number order, minus whatever step 2 declined on this pass. Only resolved unblocks: a blocker closed any other way left no code behind, so a ticket that declared a dependency on it would build against a hole.
Deriving is the point, not an optimization. A skip set kept in this thread dies with a compaction, and the frontier then re-offers the failed ticket forever: dispatch, fail, skip, forget, dispatch. State in context is tolerable only when losing it costs a re-read rather than a different answer — true of step 2's declines, false of everything above. Derived, the bound survives a restart too: every pass resolves a ticket, leaves a branch on one, or stops, all three monotonic over a finite set recorded in the repo — and a resume spends its answer or baton in a resumed entry before it leaves its branch, so each re-offers its ticket once, and step 3's ceiling bounds how many batons one ticket writes.
Permanent is a decision. A failed run's branch is the record that it ran, so deleting that branch is how a human retries the ticket. A ticket that took an answer or a baton has several: append another answered entry to resume it from the one holding the others, or delete them all and append one to start it fresh — the log outlives the branches, and only an answered entry restarts step 3's ceiling. Past the commits a human approves, the walk never writes to git, which makes a human's git commands the entire control surface — and nothing needs syncing, because the repo is the state.
When the derivation breaks — a resolved ticket without its branch, or no branch holding the rest as ancestors — neither the chain nor a base is readable. Stop and ask for `<base>`, or take the one you were given, and confirm it resolves in the repo before going on. Two rules here, not one: the walk never picks the mainline itself, because that would look like a fresh walk and drop every resolved ticket out of the deliverable in silence — but a human may name it, and once a human has merged the deliverable into the mainline and pruned the refs, the mainline is the correct answer. Either way nothing verifies that base, so step 4 carries it as an assumption and says what rides on it.
An empty frontier has three readings, and only one is a finished walk. Check them in this order, and go to step 4 with whichever one holds:
- No tickets at all under this feature key → nothing was ever sliced here. Say that, rather than
reporting a finished walk over an empty set.
- Nothing open remains → the plan is built.
- Open tickets remain → separate them. Ones in the failed set are reported as skipped; parked
ones as parked, and every ticket waiting on one — directly, or through a chain of open tickets — as waiting on your answer in #NN, naming the parked ticket at the chain's end, unless another of its edges leads to a root below, which strands it whatever the answer; ones step 2 declined — a ticket nothing could fetch, or a batch refused — are takeable and wait on no root, so they are reported as declined rather than stranded; the rest are stranded, each waiting — directly, or through a chain of open tickets — on something that will never resolve: a skipped ticket, a cycle among the edges, a number never published, or a blocker closed some way that is not resolved. Follow each stranded one's edges to that root and name it. A walk that built eleven of twelve and skipped one is neither finished nor simply stuck.
Done when you hold the takeable set and the base, hold a run awaiting review, know which empty reading you are in, or stopped because neither the chain nor a <base> resolved.
2. Dispatch the frontier's first ticket to a run
Read the host working tree first — `git -C repos/<repo> status --porcelain` — and stop the walk when anything is loose there. A run that fail-fasts at the contract's bottom tier leaves its edits in that tree, and the next run commits them under its own ticket, past ancestry, commits and a green gate alike. Nothing tells you in advance which tier a run resolves to, so the read is unconditional — and it is a read rather than a report, because a run that dies reports nothing while the tree still shows it. The one exception is a path this ticket's body names — fetched just below — since its run commits that path under the ticket that carries it: let it through, and step 4 reports it.
fetch the ticket through artifact-convention.md — a second read of a ticket list already returned, deliberately: the walk needs the body, the subagent needs its own copy in a fresh context. An unreachable ticket declines that fetch, not this walk — record the decline and return to step 1, rather than burying a plan behind the one ticket nobody can read.
A body carrying an `Integrates on:` line that names a branch is an expand–contract batch and is declined. `LIMITS.md` holds why, and why only a named branch counts.
Hand the ordinary ticket to a subagent, whose fresh context shares nothing with this thread. Tell it explicitly that this is a dispatched run of yun-implement, and give it the repo, the feature key and the implementation namespace it needs to fetch the ticket for itself, the ticket's number, the base step 1 derived, and the `name` aw/<slug>/<NN>-<random> — this walk's slug, the ticket's number, and a random suffix, which is what the source template settled on after second-granularity timestamps collided. Step 1 matches on the <NN>- prefix, so the suffix costs the walk nothing. Quote practice-convention's rule 2 paragraph A comment carries the why into the package whole — a run left to reach it through conform mirrors the comments around it. In an attended walk, also tell it to leave its work uncommitted on its branch, in its workspace: the human reviews it there.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/yun-build-plan/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/matiinchauspe/yunque/yun-build-plan)