[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F567WJ0BYSF2PGQTT6ZZGD":3,"skill-same:01M7F567WJ0BYSF2PGQTT6ZZGD":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7F567WJ0BYSF2PGQTT6ZZGD","workflow",null,"Runs every implementation task through an Issue — intake before the first edit, the plan a plan-derived Issue waits on, the milestone an Issue of a stage belongs to, the labels that show where a task is, the check and the developer's go that stand between finished work and a commit, branch and MR shape, what a discovered blocker does to the task in hand, how commits are written and how an MR is merged, and the one documented way around all of it. Activate before editing project files on any request that is not read-only, before committing or pushing anything, and when asked to merge.","workflowaiorg\u002Fworkflow","workflowaiorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F344728430?v=4","01M7F5606QN4BXN2KJNCJPCKAZ","01M7F5607RE7Y5NNRN60FW9NJ3",0,"MIT","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Fbase\u002Ffiles\u002Fcore\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: workflow\ndescription: \"Runs every implementation task through an Issue — intake before the first edit, the plan a plan-derived Issue waits on, the milestone an Issue of a stage belongs to, the labels that show where a task is, the check and the developer's go that stand between finished work and a commit, branch and MR shape, what a discovered blocker does to the task in hand, how commits are written and how an MR is merged, and the one documented way around all of it. Activate before editing project files on any request that is not read-only, before committing or pushing anything, and when asked to merge.\"\n---\n\n# Skill: The workflow\n\nThe forge holds who is doing what, how far it got and whether it was accepted.\nThe repository holds the implementation, the specs and the engineering rules. This skill is the\nseam between the two, and it holds on any forge. How each step is done on this project's forge —\nthe CLI, the label syntax, the traps — is the `forge-[[ .forge ]]` skill; activate it with this one.\n*How* to build the thing lives in `.workflow\u002FGUIDE.md` and the skills of each area; this file does\nnot restate it.\n\nAn MR here is the forge's unit of review; the `forge-[[ .forge ]]` skill says what it is called there.\n\n---\n\n## When this skill applies\n\nActivate it when you are:\n\n- Asked to implement, change, fix or remove anything in the repository — a one-file fix included\n- Handed an Issue, or a request that should have one behind it\n- Discovering, mid-task, that something outside the task must change first\n- Finished with the work and about to commit, push, open an MR or answer a review on one\n- Asked to merge an MR\n\n**Not this skill:** explaining, inspecting, reviewing someone else's MR — read-only work needs no\nIssue and writes nothing to the forge. Drafting a plan needs no Issue either, but it is written in\na worktree of its own and lands through an MR: see\n[Plans](#plans-have-a-worktree-and-an-mr-of-their-own). Not this skill either: what to build (the\nskills of each area).\n\n---\n\n## Intake: an Issue before the first edit\n\n1. **Given an Issue**, read its description, its discussion and its linked MRs before touching a\n   file. **Given a plain request**, search the project's issues for one that already covers it and\n   reuse it without widening its scope; if there is none, create one *before* the first edit and\n   put the request in it in the requester's own words.\n2. **Every Issue opens with `## In plain words`:** what is missing, why it matters and what\n   changes, in a few short sentences a 10-year-old could follow — everyday words, with no file\n   paths, code names, labels, commands or project jargon. If it cannot be said that simply, the\n   Issue is not understood well enough to start. Every Issue you create has it — sub-Issues,\n   blockers and `[ADR]` Issues included — and one handed to you without it gets it added before\n   work starts. Below it, an executable Issue says, with\n   real values: the original request; the observable result; scope and non-goals; the expected\n   files; the acceptance checks and the commands that run them; and, when the work comes from a\n   plan, the plan path under `.workflow\u002Fplans\u002F` and the section. It carries one `type` and one\n   `area` label from the moment it is created, and the status `todo`.\n3. **Settle the Milestone field** of every Issue you create or are handed, by\n   [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it), before any work starts: the\n   milestone of the stage it belongs to, or none for a one-off. A stage named only in the\n   description does not count.\n4. **One Issue is one outcome.** Work with several independent outcomes is split into linked\n   Issues before anything is edited, all linked from one parent Issue.\n5. A request outside any agreed scope is a question to the owner, not an edit. Ask, and write\n   nothing until the answer. The same holds for a concern or question the developer raises about a\n   plan, a design or the code: answer it in chat with a recommendation and its trade-off, and\n   change nothing until they agree — even where you are allowed to edit, as in a plan's worktree. A\n   rewritten file presents a decision as already made, and the decision is theirs.\n6. No access to the forge, or no Issue you are allowed to create: report the exact blocker and\n   stop. Do not code first and promise the Issue later.\n\n**An Issue that comes from a plan waits for that plan to be accepted.** Run `\u002Fplan-check \u003Cplan-dir>`:\nthe `plan-reviewer` subagent reads the plan in a fresh context and returns `READY TO IMPLEMENT` or\n`NOT READY`. `NOT READY` means the plan is fixed first, and what changes in it is the developer's\ncall — it is the agreement, not your draft. A clean verdict is evidence, not permission: **the\ndeveloper accepts the plan, and until they have, you create no Issue, no milestone and no branch from\nit.** Drafting and reviewing a plan needs no Issue of its own, and no Issue of the plan starts work\nuntil the plan's own MR has merged — see [Plans](#plans-have-a-worktree-and-an-mr-of-their-own).\n\n---\n\n## Milestone: an Issue of a stage belongs to it\n\nThe test for every Issue: **does it move some milestone's completion criteria?**\n\n- **Yes** — its Milestone field is set to that milestone, the stage whose result it delivers.\n- **No** — it is a **one-off**, and it has no milestone. A one-off belongs to no stage: a workflow\n  or skill fix, a tooling bug, something found in passing. Never create or reopen a milestone for\n  one — a milestone that exists to hold one task says nothing about any stage.\n\nNo milestone is a decision, not an omission: it means the test was run and the answer was no. This\nis a rule of this skill that the agent follows and checks; the forge does not enforce it, and\nnothing automates it.\n\n**Milestones are buckets, not steps.** They have no order, nothing runs them one after another,\nand several are normally open and worked on at the same time. A milestone says what has to be\ntrue when its group of work is done — never when that work happens relative to another\nmilestone. Order lives in the dependencies written inside each Issue; a milestone never implies\none.\n\n1. **Reuse first.** Look through the project's existing milestones for the one whose stage of the\n   plan and expected result the Issue serves, and assign it. Never create a duplicate, and never\n   pick an arbitrary milestone just so the field is not empty.\n2. **None fits, and the stage is already agreed:** create one milestone for that stage with a\n   plain name; its goal and boundaries; its completion criteria; and links to the plan and the\n   parent Issue where they exist. Leave start and due dates empty unless the owner has given them —\n   dates are never invented. **The name carries no letter or number in front of it:** a number in\n   front reads as a step in a sequence, which is exactly what a milestone is not.\n3. **Ask the owner and do not start the task** when creating a milestone would widen the agreed\n   scope, when it is unclear which stage the Issue belongs to, or when you lack the rights to\n   create or assign one. Write the question in the Issue.\n4. **The milestone list has one owner.** Anyone may propose a milestone; one person creates it.\n   The forge does not enforce this, so it is a rule people keep, not a permission. Two people\n   creating milestones independently puts the same work in two stages, and then the board tells\n   nobody anything.\n5. **One stage, one milestone.** Every Issue of a stage shares it; a small task never gets a\n   milestone of its own.\n6. **Sub-Issues and blockers take the same test.** Usually they share the milestone of the Issue\n   they came from — or none, when that Issue is a one-off — but check it against what the new\n   Issue delivers; if it belongs to another stage, assign that one and keep the dependency link\n   between the two Issues explicit.\n7. **Before the status `in progress`,** check again that the milestone is settled — set and still\n   correct, or deliberately none for a one-off. A closed milestone is not reopened by an agent —\n   if it is the only fit for an Issue of a stage, ask the owner.\n8. **A milestone settles only the stage.** It does not replace checking the assignee, your\n   authority over the area, the dependencies and the acceptance criteria.\n\nThis is not a mandate to re-sort existing Issues: fix the milestone of the Issue you are about to\nwork on, not of the whole board.\nA hotfix has no Issue and so no milestone; this section does not change\n[Hotfix](#hotfix-the-one-way-around-the-workflow).\n\n---\n\n## How much one task may carry\n\nKeep one Issue to one outcome and split big work into sub-Issues, unless it truly has to land\ntogether — a new endpoint with its handler, its storage, its migration and its tests is one outcome\nand lands as one. **From around 13 changed files, the MR description says why the work was not\nsplit.** That is the whole rule. A generated file counts as one with its source in `.agents\u002F`:\na skill and its copies for every assistant are one file. Never drop a test or a contract change\nto make a diff look smaller.\n\n**Whatever its size, an MR is complete when it leaves Draft.** Nothing in it is postponed, and no\ncomment or file exists only to explain a temporary state — \"removed together with its last call\nsite\", \"built in the next stage\" — because such a comment ages into a lie. No dead props, keys or\nbranches; no plan-tracking or review write-ups among the product changes. The unit is a complete\nsurface, not a screen: a shared component moves together with everything that uses it. Splitting\nwork across MRs that each leave a mixed state is how dead files and non-working buttons reach\nproduction. An element that truly cannot be avoided is named in the MR description as its single\nexception.\n\n---\n\n## Labels: the board shows where every task is\n\nThree groups of labels, each Issue carrying one of each:\n\n| Group | Values |\n|---|---|\n| Status | `todo`, `in progress`, `in review`, `blocked` |\n| Type | `feature`, `bug`, `chore`, `docs`, `decision` |\n| Area | one per part of the project — the project part of this skill lists them |\n\nHow a label is spelled and swapped on this forge is the `forge-[[ .forge ]]` skill. A maintainer\ncreates and changes the labels there, and the repository keeps no copy of the set — a second copy\nis one more thing that can quietly stop being true. The board has one column per status and shows\nopen Issues only: a closed Issue keeps the status it had. An agent only *uses* labels — if one this\nskill names is missing, say so in the Issue and tell the maintainer; do not create labels ad hoc.\n\nType and area are set when the Issue is created, and corrected if they are wrong. Status is set\nby whoever moves the task, at these moments:\n\n| Moment | Status |\n|---|---|\n| Issue created | `todo` |\n| Branch and worktree created, work started (milestone checked) | `in progress` |\n| MR moved out of Draft | `in review` |\n| Blocker found | `blocked`, plus a comment linking the blocker's Issue |\n| Blocker resolved | back to `in progress`, after re-checking the milestone |\n| MR merged | the Issue closes automatically (see Closing) |\n\nAn Issue carries exactly one status. Before setting one, check that it has no other, and repair it\nif a hand edit on the board left two.\n\n---\n\n## Branch and MR\n\n- One Issue, one branch, normally one MR. The branch is `\u003Cissue>-\u003Cshort-slug>`, e.g.\n  `12-sound-toggle`; a plan's is `plan-\u003Cslug>`\n  ([Plans](#plans-have-a-worktree-and-an-mr-of-their-own)). Nothing is committed to `main` directly —\n  the only exception is a maintainer's hotfix (below). Work is handed to another executor through\n  its Issue, never as a working tree someone else has to guess at: see the checkpoint in\n  [A discovered blocker](#a-discovered-blocker).\n- One active Issue per session — see [A worktree per Issue](#a-worktree-per-issue). Before\n  claiming — whether handed an Issue or choosing the next one yourself — check the assignee, the\n  latest comments, the dependencies and the Milestone field; an Issue someone else is working on is\n  not taken over without a written handoff, and an Issue whose milestone is wrong is not\n  started until [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it) is settled.\n- **An agent commits nothing and pushes nothing on its own.** The work stays in the working tree —\n  uncommitted, unpushed, no branch on the server, no MR, not even a Draft one — until the developer\n  has read it and said go. Committing first is already too late: it puts a message and a boundary on\n  work nobody has agreed to, and every later change then arrives as a second commit or a rewritten\n  history.\n- **\"Go\" is the usual word, not the only one.** Any clear approval of the work in hand counts the\n  same — \"all good, proceed\", \"commit it\", \"agreed\". An approval covers only the work it was given\n  for; the next step needs its own.\n- Once they say go: commit, push — the first push is `git push -u origin \u003Cbranch>`, since the\n  branch starts with no upstream — and open the MR as a Draft. The description carries `Closes #n`\n  from the start, plus the result, the scope, and the checks run with their results.\n\n### A worktree per Issue\n\nWork waits uncommitted until the developer's go, so one working tree can hold one Issue's work at a\ntime. Each Issue therefore gets its own git worktree, and several can be worked on at once, one\nsession each, while the root checkout stays on `main`. The agent makes it; the developer runs\nnothing.\n\n- **Start and resume are one command.** When you start an Issue, before the status `in progress`,\n  run `wf worktree \u003Cissue> \u003Cslug>` and go to the path it prints last. A new Issue gets\n  `.claude\u002Fworktrees\u002F\u003Cissue>-\u003Cslug>` on the branch `\u003Cissue>-\u003Cslug>` from `origin\u002Fmain`; an Issue\n  whose branch is already checked out somewhere gets that checkout back, and one that has only a\n  branch gets a worktree on that branch. The gitignored files `.wf.yml` lists under `worktree:` are\n  copied in from the root checkout.\n- **Then say what the Issue is about.** Once it is started or resumed, before the first edit,\n  tell the developer in two or three plain sentences what the work is, so a wrong Issue or a\n  misread one is caught before anything is written.\n- **Work there.** Claude Code moves the session in with a plain `cd \u003Cpath>` in the shell — never\n  `EnterWorktree`, which turns on a check that refuses any command that may run git when part of it\n  is only known at run time — `$(cat file)`, a heredoc — and has no setting to turn it off. After\n  the `cd`, every command and every hook runs in the worktree. A tool that cannot move its session\n  stays at the repo root and runs everything inside the worktree — `cd \u003Cworktree> && …`,\n  `git -C \u003Cworktree> …` — `\u002Fpre-mr-check` included. Nothing stops a command from running in the\n  root checkout by mistake: anything the work leaves in the root checkout's `git status` was\n  written to the wrong tree. The one exception: when the printed path is the root checkout itself,\n  the Issue was started there before it had a worktree — work there in place, and the root stays\n  off `main` until that Issue's MR merges.\n- **One Issue per session and per working tree** by default. A session that switches Issues leaves\n  the first one's work in its worktree, uncommitted, and says in that Issue where it stopped. Two or\n  more Issues share one tree only when the developer asks, and they say which Issue's worktree\n  carries the others; its MR closes every Issue in it.\n- **Clean up** once the MR has merged: `git worktree remove \u003Cworktree>` and `git branch -D \u003Cbranch>`.\n  `git worktree remove` refuses while anything is uncommitted — that is the answer, not an obstacle\n  to force past.\n\n### Plans have a worktree and an MR of their own\n\nA plan comes before its Issues, so it cannot live in one of theirs; and two sessions planning at\nonce must not share a folder. So a plan is written the way an Issue is worked — alone, in its own\nworktree — and reaches `main` before any of its Issues start, where every one of them finds it.\n\n- **A plan lives at `.workflow\u002Fplans\u002F\u003CDD-MM-YYYY>-\u003Cshort-slug>\u002FPLAN.md`** — the date it was\n  started, then a two-to-four-word kebab-case slug naming the work. One directory per plan;\n  anything else the plan needs sits beside its `PLAN.md`, never loose in `.workflow\u002Fplans\u002F`.\n  `wf spec-coverage` fails on any other name.\n- **Draft and revise in the plan's worktree.** `wf worktree plan \u003Cslug>` makes or finds\n  `.claude\u002Fworktrees\u002Fplan-\u003Cslug>` on the branch `plan-\u003Cslug>` from `origin\u002Fmain`, where `\u003Cslug>` is\n  the plan directory's slug. A new plan and a revision of one already on `main` are both written\n  there, never in the root checkout. `\u002Fplan-check` reviews it there.\n- **Accepted, it lands on its own.** When the developer accepts the plan, create its parent Issue\n  (and the milestone, by the rules above). Then, on their go, commit the plan and open its MR: the\n  one MR with no `Closes` — it names the parent Issue as `Part of #n`, since the plan starts that\n  Issue's work rather than finishing it. It carries the plan and nothing else.\n- **Issues start after it merges.** Every Issue of the plan branches from an `origin\u002Fmain` that\n  already holds the plan. The last Issue still archives the plan in its own MR, by\n  [Settling](#settling).\n- **Clean up once the plan's MR merges**, as for an Issue: `git worktree remove` and\n  `git branch -D plan-\u003Cslug>`. A later revision starts over with `wf worktree plan \u003Cslug>`,\n  which then branches fresh from `origin\u002Fmain` — a kept branch would predate the squash-merge and\n  everything since — and lands in an MR of its own, `Part of #parent`.\n\n### When the work is finished\n\n1. **Say what you did.** What changed, what you checked, what you did not, and what you are unsure\n   about — before any of it is committed.\n2. **Offer the check, in one line:** `\u002Fpre-mr-check` runs the gate steps the changed paths call\n   for and then has the `code-reviewer` subagent read the change in a fresh context, where it\n   reports and never edits. It is the developer's to refuse — but being asked is not optional, and\n   **refusing it authorises nothing.** The one time it is not offered is when there is genuinely\n   nothing to speak to: an empty tree, or a one-sentence change that matches no gate step. Then say\n   so in one line and offer nothing. A skill, a plan or a generated file is never \"just docs\" —\n   those have gate steps of their own.\n3. **Wait.** Whatever the answer and whatever the verdict, the work stays in the tree:\n\n| The developer says | What you do |\n|---|---|\n| No | Report what changed. Commit nothing, push nothing. They will read it themselves, or say what to change |\n| Yes → `NOT READY` | Report what `\u002Fpre-mr-check` reported: the gate failures and the kept 🔴 findings. Commit nothing, push nothing. They decide what gets fixed now |\n| Yes → `READY FOR REVIEW` | Report what `\u002Fpre-mr-check` reported: the verdict, the kept 🟡\u002F🟢 findings and the dropped ones, and **propose** the commit message, the MR description and the label. Then wait |\n| Go | If an acceptance check of the Issue is still open — a measurement only a person can run, say — the reply opens with one plain line, \"#n is not finished: \u003Cwhat is left>\", and waits; an approval given after that line covers the open check, and the MR description names it. Never fold it into a 🟡, a trailing note or a `[pending]` line in the MR description. Otherwise: commit, push, open or update the MR; and when the Issue's work is done, move its status from `in progress` to `in review` and take the MR out of Draft |\n\nNothing reaches the remote or the forge before that go — no commit, no branch, no MR, no\ndescription, no comment, no label. The check is what the developer reads while deciding; it is\nnever a substitute for their deciding.\n\n**How many rounds there are is the developer's call, never yours.** After every verdict you stop:\nreport what is left, say what each finding would cost to fix, and wait. You never decide to fix and\nre-run on your own — one run may be enough and the developer commits over an open 🟡, or they may\nsend it back five times. Findings do not have to reach zero for work to be good enough; only the\ndeveloper says when it is.\n\nFour lines keep it honest:\n\n- **Unsure counts as a blocker.** You wrote the code, so the tie-break leans to stopping.\n- Relay a finding — the reviewer's or your own — only after checking it is real and sized right,\n  by the bar in the `code-reviewer`'s \"How to report\". Noise is dropped, not listed as low priority.\n- A finding that is real work outside this Issue's scope is a linked Issue by\n  [the blocker table](#a-discovered-blocker), never a quiet fix in this MR.\n- A finding the developer dismisses is recorded in the MR thread — once they have approved that\n  posting — and not raised again on a re-run.\n\n---\n\n## Review\n\nMove an MR out of Draft only with results for the commit under review; a check that was not run,\nor failed, is written down as such, not left out — and that includes `\u002Fpre-mr-check` when the\ndeveloper declined it. Every finding gets either a fixing commit or a written objection, in its\nthread. Fixes are new commits on top — the reviewer cites hashes — never a rewritten history. A new\ncommit reopens every review thread it touches.\n\nEvery push after the first goes through [the same sequence](#when-the-work-is-finished): the fix\nstays in the tree, the check is offered, the developer says go. A round of review answers is not an\nexception to it.\n\n---\n\n## Commits and merging\n\nA commit message is read by someone who was not there, in `git log`, years from now. It explains\nthe change on its own:\n\n- A summary line in plain words, under about 72 characters; a blank line; then a list of what\n  was done.\n- No internal jargon, no tool output, no references to review threads.\n- **No AI signatures of any kind** — no `Co-Authored-By` for a tool, no \"Generated with\", no\n  session links. Only the substance of the change.\n\n```\nAdd a sound on\u002Foff switch\n\n- Add a button in the header that mutes and unmutes the sound\n- Remember the choice between visits\n- Keep the sound on by default for new users\n```\n\nSquashing an MR into one commit with a message in this shape keeps `main` readable and is the\npreferred way to merge; it is not required. **When asked to merge an MR with more than one commit,\nask whether to squash before merging.** If yes, write the squash message in the shape above; if no,\nmerge as is. An MR with a single commit has nothing to squash: merge it as is, without asking.\n\n---\n\n## A discovered blocker\n\nWhen the task in hand needs a change outside its own scope:\n\n| Situation | What you do |\n|---|---|\n| Something outside the task must change first | Stop editing the original. Leave a checkpoint in its Issue: done and remaining, the branch and its worktree, the checks run, the exact next step, the evidence. Nothing is committed for a checkpoint either — describe the state of the tree in the comment, and ask the developer if the work should be parked on a commit before you leave it. Find or create the blocker's Issue by the intake rules, settle its milestone by [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it) rule 6, link the two both ways, set the original's status to `blocked`. |\n| The blocker is in your area and inside the agreed scope | Take it in its own branch and MR through the normal review. Never fold it into the original MR. |\n| It belongs to the other side, needs a business decision, or more permissions than you have | Hand it to its owner in the blocker's Issue and stop that path. |\n| Debt noticed in passing that the task does not need | Record it in an Issue and leave it alone. Discovering it is not authority to fix it. This means debt in code the MR did not write: duplication or a shortcut in the MR's own diff is fixed in that MR, and a convention that forces it is amended in the same MR — code quality wins, and the convention is what gets fixed. |\n| A decision you are about to make would constrain future code | Stop and open an `[ADR]` Issue — type `decision`, the relevant area, the milestone of the Issue it blocks if that has one, and **the record itself as the body**, word for word, below its `## In plain words` and above one line naming what it blocks. One Issue per record. Set the original to `blocked` and link the two. The developer's answer in that thread is what accepts it; the record then lands in its own MR, never folded into this one. The test for whether a decision qualifies, and the file's shape, are in the `domain-specs` skill, *When a decision earns a record* — most do not qualify. |\n| The blocker is merged (and deployed, if that was the need) | Come back: update the branch, rerun the checks, set `in progress`, continue from the checkpoint. |\n\n---\n\n## Settling\n\nEvery Issue leaves the repo's own record of itself true, **in the same MR as the work** — never in\na follow-up. A separate cleanup pass does not happen; the git log of every project proves it.\n\n1. **The domain's `.workflow\u002Fspecs\u002F\u003Cdomain>\u002FSPEC.md`** is updated to match what this MR changed,\n   citing any record accepted for it at the point of the claim. If the domain has no spec yet,\n   writing its first one is an Issue of its own and not yours to start here — say so in the MR\n   description. The exception is an Issue that creates the domain: it writes the first spec, as\n   the `domain-specs` skill says.\n2. **Anything the work turned up that would constrain future code** opens an `[ADR]` Issue, by the\n   [blocker](#a-discovered-blocker) row above, before this MR merges. Settling never *writes* a\n   record: records are accepted in their own Issue, ahead of the code.\n3. **If this Issue is the last of its plan's Issues** — the parent closes with it — the plan\n   directory moves to `.workflow\u002Fplans\u002Farchive\u002F\u003Cdate>-\u003Cslug>\u002F` and its header gains\n   `Settled: \u003Cdate>`. A plan with phases still ahead of it stays where it is; a phase closing is\n   not the plan closing. **The move belongs in this MR, not after it merges.** You already know\n   whether anything of the plan is left, so \"wait until it is merged and then tidy up\" is the\n   follow-up this section exists to prevent — and the plan is no harder to review at its archived\n   path, where the diff shows it as a rename.\n4. **What this MR deletes, it deletes completely.** Everything that only existed for the deleted\n   thing goes too: its functions, its mocks, its config fields and env vars, its tests and test\n   data. Dead code that was there before the MR is not touched; it gets its own Issue.\n\n**An Issue with no behaviour change settles in one line in the MR description and touches no\nfiles.** Most of the board is small tasks, and a settle step that is not cheap on those is a\nsettle step that gets skipped.\n\nWhat goes in a spec, what stays out, and when a decision earns a record: the `domain-specs` skill.\nThat skill owns the formats; this one owns when in the Issue's life they are written.\n\n---\n\n## Closing\n\n- An Issue closes **automatically** when its MR merges — the description carries `Closes #n`.\n  Nobody closes Issues by hand.\n- A parent Issue closes when its last child MR merges, carrying `Closes #parent` too.\n- **An MR that must not close an Issue never names it next to a closing word** — \"close\", \"fix\",\n  \"resolve\" or \"implement\" in any form — not even negated, since a forge reads \"does not close #n\"\n  as `close #n`. Write \"#n stays open until …\" instead, and after the merge check that the Issue is\n  still open; if it was closed anyway, reopen it — the one reopen allowed.\n- A bug found after merge is a **new** `bug` Issue linked to the original. A closed Issue is never\n  reopened.\n- Merge is not deployment. If the result can only be seen in production, checking it there is\n  part of the new Issue's work, not a reason to keep the old one open.\n\n---\n\n## Hotfix: the one way around the workflow\n\nA hotfix is a commit pushed directly to the target branch. It skips intake, branch, MR and review.\n\n- The commit message starts with `Hotfix:`, then says in plain words what was broken and what\n  the fix does.\n- An agent does a hotfix **only when the developer's request itself starts with `Hotfix:`**. An\n  agent never decides on its own that something is a hotfix.\n- Where `main` is protected, an agent that cannot push prepares the commit on the developer's\n  checkout and hands the push to them; it does not open an MR instead.\n- If a push to `main` deploys anything with no review, say so to the developer before the push.\n- No Issue is written afterwards. The `Hotfix:` prefix is the record —\n  `git log --format='%h %s' | grep -E '^[0-9a-f]+ Hotfix:'` lists every one with its subject.\n  Follow-up work is a normal Issue.\n\n---\n\n## Definition of done\n\n- [ ] The MR links an Issue that existed before the first edit and carries `Closes #n`; a plan's\n      own MR instead carries `Part of #parent`, naming the Issue created when the plan was accepted.\n      The linked Issue opens with `## In plain words` a 10-year-old could follow, and holds the\n      request in the requester's own words with its type, area and status labels\n- [ ] The developer read the work before anything was committed or pushed, and where it came from a\n      plan, they had accepted that plan before the Issue existed\n- [ ] `\u002Fpre-mr-check` was offered before each push; where it ran, the gate was green or ⚪ and every\n      kept 🔴 finding has a fixing commit or a written objection; where it was declined, or not offered\n      because there was nothing to check, the description says so\n- [ ] The Issue's milestone was settled before `in progress` — its stage's, or none for a one-off —\n      and every sub-Issue or blocker Issue it spawned took the same test\n- [ ] From around 13 changed files (generated files counted as one with their source), the\n      description says why the work was not split\n- [ ] Nothing in the MR is postponed or half-migrated, and no comment or file explains a temporary\n      state\n- [ ] The MR description states result, scope, and the checks with their results\n- [ ] Every reviewer finding has a fixing commit or a written objection in its thread\n- [ ] Every commit message is summary + list in plain words, with no AI signature\n- [ ] Anything discovered on the way lives in its own linked Issue, not in this MR\n- [ ] The work is [settled](#settling) in this MR — the domain's `SPEC.md` matches what changed, any\n      constraining decision has an accepted record behind it, and a settled plan is archived; or the\n      description says in one line that nothing changed\n","# Skill: The workflow\n\nThe forge holds who is doing what, how far it got and whether it was accepted.\nThe repository holds the implementation, the specs and the engineering rules. This skill is the\nseam between the two, and it holds on any forge. How each step is done on this project's forge —\nthe CLI, the label syntax, the traps — is the `forge-[[ .forge ]]` skill; activate it with this one.\n*How* to build the thing lives in `.workflow\u002FGUIDE.md` and the skills of each area; this file does\nnot restate it.\n\nAn MR here is the forge's unit of review; the `forge-[[ .forge ]]` skill says what it is called there.\n\n---\n\n## When this skill applies\n\nActivate it when you are:\n\n- Asked to implement, change, fix or remove anything in the repository — a one-file fix included\n- Handed an Issue, or a request that should have one behind it\n- Discovering, mid-task, that something outside the task must change first\n- Finished with the work and about to commit, push, open an MR or answer a review on one\n- Asked to merge an MR\n\n**Not this skill:** explaining, inspecting, reviewing someone else's MR — read-only work needs no\nIssue and writes nothing to the forge. Drafting a plan needs no Issue either, but it is written in\na worktree of its own and lands through an MR: see\n[Plans](#plans-have-a-worktree-and-an-mr-of-their-own). Not this skill either: what to build (the\nskills of each area).\n\n---\n\n## Intake: an Issue before the first edit\n\n1. **Given an Issue**, read its description, its discussion and its linked MRs before touching a\n   file. **Given a plain request**, search the project's issues for one that already covers it and\n   reuse it without widening its scope; if there is none, create one *before* the first edit and\n   put the request in it in the requester's own words.\n2. **Every Issue opens with `## In plain words`:** what is missing, why it matters and what\n   changes, in a few short sentences a 10-year-old could follow — everyday words, with no file\n   paths, code names, labels, commands or project jargon. If it cannot be said that simply, the\n   Issue is not understood well enough to start. Every Issue you create has it — sub-Issues,\n   blockers and `[ADR]` Issues included — and one handed to you without it gets it added before\n   work starts. Below it, an executable Issue says, with\n   real values: the original request; the observable result; scope and non-goals; the expected\n   files; the acceptance checks and the commands that run them; and, when the work comes from a\n   plan, the plan path under `.workflow\u002Fplans\u002F` and the section. It carries one `type` and one\n   `area` label from the moment it is created, and the status `todo`.\n3. **Settle the Milestone field** of every Issue you create or are handed, by\n   [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it), before any work starts: the\n   milestone of the stage it belongs to, or none for a one-off. A stage named only in the\n   description does not count.\n4. **One Issue is one outcome.** Work with several independent outcomes is split into linked\n   Issues before anything is edited, all linked from one parent Issue.\n5. A request outside any agreed scope is a question to the owner, not an edit. Ask, and write\n   nothing until the answer. The same holds for a concern or question the developer raises about a\n   plan, a design or the code: answer it in chat with a recommendation and its trade-off, and\n   change nothing until they agree — even where you are allowed to edit, as in a plan's worktree. A\n   rewritten file presents a decision as already made, and the decision is theirs.\n6. No access to the forge, or no Issue you are allowed to create: report the exact blocker and\n   stop. Do not code first and promise the Issue later.\n\n**An Issue that comes from a plan waits for that plan to be accepted.** Run `\u002Fplan-check \u003Cplan-dir>`:\nthe `plan-reviewer` subagent reads the plan in a fresh context and returns `READY TO IMPLEMENT` or\n`NOT READY`. `NOT READY` means the plan is fixed first, and what changes in it is the developer's\ncall — it is the agreement, not your draft. A clean verdict is evidence, not permission: **the\ndeveloper accepts the plan, and until they have, you create no Issue, no milestone and no branch from\nit.** Drafting and reviewing a plan needs no Issue of its own, and no Issue of the plan starts work\nuntil the plan's own MR has merged — see [Plans](#plans-have-a-worktree-and-an-mr-of-their-own).\n\n---\n\n## Milestone: an Issue of a stage belongs to it\n\nThe test for every Issue: **does it move some milestone's completion criteria?**\n\n- **Yes** — its Milestone field is set to that milestone, the stage whose result it delivers.\n- **No** — it is a **one-off**, and it has no milestone. A one-off belongs to no stage: a workflow\n  or skill fix, a tooling bug, something found in passing. Never create or reopen a milestone for\n  one — a milestone that exists to hold one task says nothing about any stage.\n\nNo milestone is a decision, not an omission: it means the test was run and the answer was no. This\nis a rule of this skill that the agent follows and checks; the forge does not enforce it, and\nnothing automates it.\n\n**Milestones are buckets, not steps.** They have no order, nothing runs them one after another,\nand several are normally open and worked on at the same time. A milestone says what has to be\ntrue when its group of work is done — never when that work happens relative to another\nmilestone. Order lives in the dependencies written inside each Issue; a milestone never implies\none.\n\n1. **Reuse first.** Look through the project's existing milestones for the one whose stage of the\n   plan and expected result the Issue serves, and assign it. Never create a duplicate, and never\n   pick an arbitrary milestone just so the field is not empty.\n2. **None fits, and the stage is already agreed:** create one milestone for that stage with a\n   plain name; its goal and boundaries; its completion criteria; and links to the plan and the\n   parent Issue where they exist. Leave start and due dates empty unless the owner has given them —\n   dates are never invented. **The name carries no letter or number in front of it:** a number in\n   front reads as a step in a sequence, which is exactly what a milestone is not.\n3. **Ask the owner and do not start the task** when creating a milestone would widen the agreed\n   scope, when it is unclear which stage the Issue belongs to, or when you lack the rights to\n   create or assign one. Write the question in the Issue.\n4. **The milestone list has one owner.** Anyone may propose a milestone; one person creates it.\n   The forge does not enforce this, so it is a rule people keep, not a permission. Two people\n   creating milestones independently puts the same work in two stages, and then the board tells\n   nobody anything.\n5. **One stage, one milestone.** Every Issue of a stage shares it; a small task never gets a\n   milestone of its own.\n6. **Sub-Issues and blockers take the same test.** Usually they share the milestone of the Issue\n   they came from — or none, when that Issue is a one-off — but check it against what the new\n   Issue delivers; if it belongs to another stage, assign that one and keep the dependency link\n   between the two Issues explicit.\n7. **Before the status `in progress`,** check again that the milestone is settled — set and still\n   correct, or deliberately none for a one-off. A closed milestone is not reopened by an agent —\n   if it is the only fit for an Issue of a stage, ask the owner.\n8. **A milestone settles only the stage.** It does not replace checking the assignee, your\n   authority over the area, the dependencies and the acceptance criteria.\n\nThis is not a mandate to re-sort existing Issues: fix the milestone of the Issue you are about to\nwork on, not of the whole board.\nA hotfix has no Issue and so no milestone; this section does not change\n[Hotfix](#hotfix-the-one-way-around-the-workflow).\n\n---\n\n## How much one task may carry\n\nKeep one Issue to one outcome and split big work into sub-Issues, unless it truly has to land\ntogether — a new endpoint with its handler, its storage, its migration and its tests is one outcome\nand lands as one. **From around 13 changed files, the MR description says why the work was not\nsplit.** That is the whole rule. A generated file counts as one with its source in `.agents\u002F`:\na skill and its copies for every assistant are one file. Never drop a test or a contract change\nto make a diff look smaller.\n\n**Whatever its size, an MR is complete when it leaves Draft.** Nothing in it is postponed, and no\ncomment or file exists only to explain a temporary state — \"removed together with its last call\nsite\", \"built in the next stage\" — because such a comment ages into a lie. No dead props, keys or\nbranches; no plan-tracking or review write-ups among the product changes. The unit is a complete\nsurface, not a screen: a shared component moves together with everything that uses it. Splitting\nwork across MRs that each leave a mixed state is how dead files and non-working buttons reach\nproduction. An element that truly cannot be avoided is named in the MR description as its single\nexception.\n\n---\n\n## Labels: the board shows where every task is\n\nThree groups of labels, each Issue carrying one of each:\n\n| Group | Values |\n|---|---|\n| Status | `todo`, `in progress`, `in review`, `blocked` |\n| Type | `feature`, `bug`, `chore`, `docs`, `decision` |\n| Area | one per part of the project — the project part of this skill lists them |\n\nHow a label is spelled and swapped on this forge is the `forge-[[ .forge ]]` skill. A maintainer\ncreates and changes the labels there, and the repository keeps no copy of the set — a second copy\nis one more thing that can quietly stop being true. The board has one column per status and shows\nopen Issues only: a closed Issue keeps the status it had. An agent only *uses* labels — if one this\nskill names is missing, say so in the Issue and tell the maintainer; do not create labels ad hoc.\n\nType and area are set when the Issue is created, and corrected if they are wrong. Status is set\nby whoever moves the task, at these moments:\n\n| Moment | Status |\n|---|---|\n| Issue created | `todo` |\n| Branch and worktree created, work started (milestone checked) | `in progress` |\n| MR moved out of Draft | `in review` |\n| Blocker found | `blocked`, plus a comment linking the blocker's Issue |\n| Blocker resolved | back to `in progress`, after re-checking the milestone |\n| MR merged | the Issue closes automatically (see Closing) |\n\nAn Issue carries exactly one status. Before setting one, check that it has no other, and repair it\nif a hand edit on the board left two.\n\n---\n\n## Branch and MR\n\n- One Issue, one branch, normally one MR. The branch is `\u003Cissue>-\u003Cshort-slug>`, e.g.\n  `12-sound-toggle`; a plan's is `plan-\u003Cslug>`\n  ([Plans](#plans-have-a-worktree-and-an-mr-of-their-own)). Nothing is committed to `main` directly —\n  the only exception is a maintainer's hotfix (below). Work is handed to another executor through\n  its Issue, never as a working tree someone else has to guess at: see the checkpoint in\n  [A discovered blocker](#a-discovered-blocker).\n- One active Issue per session — see [A worktree per Issue](#a-worktree-per-issue). Before\n  claiming — whether handed an Issue or choosing the next one yourself — check the assignee, the\n  latest comments, the dependencies and the Milestone field; an Issue someone else is working on is\n  not taken over without a written handoff, and an Issue whose milestone is wrong is not\n  started until [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it) is settled.\n- **An agent commits nothing and pushes nothing on its own.** The work stays in the working tree —\n  uncommitted, unpushed, no branch on the server, no MR, not even a Draft one — until the developer\n  has read it and said go. Committing first is already too late: it puts a message and a boundary on\n  work nobody has agreed to, and every later change then arrives as a second commit or a rewritten\n  history.\n- **\"Go\" is the usual word, not the only one.** Any clear approval of the work in hand counts the\n  same — \"all good, proceed\", \"commit it\", \"agreed\". An approval covers only the work it was given\n  for; the next step needs its own.\n- Once they say go: commit, push — the first push is `git push -u origin \u003Cbranch>`, since the\n  branch starts with no upstream — and open the MR as a Draft. The description carries `Closes #n`\n  from the start, plus the result, the scope, and the checks run with their results.\n\n### A worktree per Issue\n\nWork waits uncommitted until the developer's go, so one working tree can hold one Issue's work at a\ntime. Each Issue therefore gets its own git worktree, and several can be worked on at once, one\nsession each, while the root checkout stays on `main`. The agent makes it; the developer runs\nnothing.\n\n- **Start and resume are one command.** When you start an Issue, before the status `in progress`,\n  run `wf worktree \u003Cissue> \u003Cslug>` and go to the path it prints last. A new Issue gets\n  `.claude\u002Fworktrees\u002F\u003Cissue>-\u003Cslug>` on the branch `\u003Cissue>-\u003Cslug>` from `origin\u002Fmain`; an Issue\n  whose branch is already checked out somewhere gets that checkout back, and one that has only a\n  branch gets a worktree on that branch. The gitignored files `.wf.yml` lists under `worktree:` are\n  copied in from the root checkout.\n- **Then say what the Issue is about.** Once it is started or resumed, before the first edit,\n  tell the developer in two or three plain sentences what the work is, so a wrong Issue or a\n  misread one is caught before anything is written.\n- **Work there.** Claude Code moves the session in with a plain `cd \u003Cpath>` in the shell — never\n  `EnterWorktree`, which turns on a check that refuses any command that may run git when part of it\n  is only known at run time — `$(cat file)`, a heredoc — and has no setting to turn it off. After\n  the `cd`, every command and every hook runs in the worktree. A tool that cannot move its session\n  stays at the repo root and runs everything inside the worktree — `cd \u003Cworktree> && …`,\n  `git -C \u003Cworktree> …` — `\u002Fpre-mr-check` included. Nothing stops a command from running in the\n  root checkout by mistake: anything the work leaves in the root checkout's `git status` was\n  written to the wrong tree. The one exception: when the printed path is the root checkout itself,\n  the Issue was started there before it had a worktree — work there in place, and the root stays\n  off `main` until that Issue's MR merges.\n- **One Issue per session and per working tree** by default. A session that switches Issues leaves\n  the first one's work in its worktree, uncommitted, and says in that Issue where it stopped. Two or\n  more Issues share one tree only when the developer asks, and they say which Issue's worktree\n  carries the others; its MR closes every Issue in it.\n- **Clean up** once the MR has merged: `git worktree remove \u003Cworktree>` and `git branch -D \u003Cbranch>`.\n  `git worktree remove` refuses while anything is uncommitted — that is the answer, not an obstacle\n  to force past.\n\n### Plans have a worktree and an MR of their own\n\nA plan comes before its Issues, so it cannot live in one of theirs; and two sessions planning at\nonce must not share a folder. So a plan is written the way an Issue is worked — alone, in its own\nworktree — and reaches `main` before any of its Issues start, where every one of them finds it.\n\n- **A plan lives at `.workflow\u002Fplans\u002F\u003CDD-MM-YYYY>-\u003Cshort-slug>\u002FPLAN.md`** — the date it was\n  started, then a two-to-four-word kebab-case slug naming the work. One directory per plan;\n  anything else the plan needs sits beside its `PLAN.md`, never loose in `.workflow\u002Fplans\u002F`.\n  `wf spec-coverage` fails on any other name.\n- **Draft and revise in the plan's worktree.** `wf worktree plan \u003Cslug>` makes or finds\n  `.claude\u002Fworktrees\u002Fplan-\u003Cslug>` on the branch `plan-\u003Cslug>` from `origin\u002Fmain`, where `\u003Cslug>` is\n  the plan directory's slug. A new plan and a revision of one already on `main` are both written\n  there, never in the root checkout. `\u002Fplan-check` reviews it there.\n- **Accepted, it lands on its own.** When the developer accepts the plan, create its parent Issue\n  (and the milestone, by the rules above). Then, on their go, commit the plan and open its MR: the\n  one MR with no `Closes` — it names the parent Issue as `Part of #n`, since the plan starts that\n  Issue's work rather than finishing it. It carries the plan and nothing else.\n- **Issues start after it merges.** Every Issue of the plan branches from an `origin\u002Fmain` that\n  already holds the plan. The last Issue still archives the plan in its own MR, by\n  [Settling](#settling).\n- **Clean up once the plan's MR merges**, as for an Issue: `git worktree remove` and\n  `git branch -D plan-\u003Cslug>`. A later revision starts over with `wf worktree plan \u003Cslug>`,\n  which then branches fresh from `origin\u002Fmain` — a kept branch would predate the squash-merge and\n  everything since — and lands in an MR of its own, `Part of #parent`.\n\n### When the work is finished\n\n1. **Say what you did.** What changed, what you checked, what you did not, and what you are unsure\n   about — before any of it is committed.\n2. **Offer the check, in one line:** `\u002Fpre-mr-check` runs the gate steps the changed paths call\n   for and then has the `code-reviewer` subagent read the change in a fresh context, where it\n   reports and never edits. It is the developer's to refuse — but being asked is not optional, and\n   **refusing it authorises nothing.** The one time it is not offered is when there is genuinely\n   nothing to speak to: an empty tree, or a one-sentence change that matches no gate step. Then say\n   so in one line and offer nothing. A skill, a plan or a generated file is never \"just docs\" —\n   those have gate steps of their own.\n3. **Wait.** Whatever the answer and whatever the verdict, the work stays in the tree:\n\n| The developer says | What you do |\n|---|---|\n| No | Report what changed. Commit nothing, push nothing. They will read it themselves, or say what to change |\n| Yes → `NOT READY` | Report what `\u002Fpre-mr-check` reported: the gate failures and the kept 🔴 findings. Commit nothing, push nothing. They decide what gets fixed now |\n| Yes → `READY FOR REVIEW` | Report what `\u002Fpre-mr-check` reported: the verdict, the kept 🟡\u002F🟢 findings and the dropped ones, and **propose** the commit message, the MR description and the label. Then wait |\n| Go | If an acceptance check of the Issue is still open — a measurement only a person can run, say — the reply opens with one plain line, \"#n is not finished: \u003Cwhat is left>\", and waits; an approval given after that line covers the open check, and the MR description names it. Never fold it into a 🟡, a trailing note or a `[pending]` line in the MR description. Otherwise: commit, push, open or update the MR; and when the Issue's work is done, move its status from `in progress` to `in review` and take the MR out of Draft |\n\nNothing reaches the remote or the forge before that go — no commit, no branch, no MR, no\ndescription, no comment, no label. The check is what the developer reads while deciding; it is\nnever a substitute for their deciding.\n\n**How many rounds there are is the developer's call, never yours.** After every verdict you stop:\nreport what is left, say what each finding would cost to fix, and wait. You never decide to fix and\nre-run on your own — one run may be enough and the developer commits over an open 🟡, or they may\nsend it back five times. Findings do not have to reach zero for work to be good enough; only the\ndeveloper says when it is.\n\nFour lines keep it honest:\n\n- **Unsure counts as a blocker.** You wrote the code, so the tie-break leans to stopping.\n- Relay a finding — the reviewer's or your own — only after checking it is real and sized right,\n  by the bar in the `code-reviewer`'s \"How to report\". Noise is dropped, not listed as low priority.\n- A finding that is real work outside this Issue's scope is a linked Issue by\n  [the blocker table](#a-discovered-blocker), never a quiet fix in this MR.\n- A finding the developer dismisses is recorded in the MR thread — once they have approved that\n  posting — and not raised again on a re-run.\n\n---\n\n## Review\n\nMove an MR out of Draft only with results for the commit under review; a check that was not run,\nor failed, is written down as such, not left out — and that includes `\u002Fpre-mr-check` when the\ndeveloper declined it. Every finding gets either a fixing commit or a written objection, in its\nthread. Fixes are new commits on top — the reviewer cites hashes — never a rewritten history. A new\ncommit reopens every review thread it touches.\n\nEvery push after the first goes through [the same sequence](#when-the-work-is-finished): the fix\nstays in the tree, the check is offered, the developer says go. A round of review answers is not an\nexception to it.\n\n---\n\n## Commits and merging\n\nA commit message is read by someone who was not there, in `git log`, years from now. It explains\nthe change on its own:\n\n- A summary line in plain words, under about 72 characters; a blank line; then a list of what\n  was done.\n- No internal jargon, no tool output, no references to review threads.\n- **No AI signatures of any kind** — no `Co-Authored-By` for a tool, no \"Generated with\", no\n  session links. Only the substance of the change.\n\n```\nAdd a sound on\u002Foff switch\n\n- Add a button in the header that mutes and unmutes the sound\n- Remember the choice between visits\n- Keep the sound on by default for new users\n```\n\nSquashing an MR into one commit with a message in this shape keeps `main` readable and is the\npreferred way to merge; it is not required. **When asked to merge an MR with more than one commit,\nask whether to squash before merging.** If yes, write the squash message in the shape above; if no,\nmerge as is. An MR with a single commit has nothing to squash: merge it as is, without asking.\n\n---\n\n## A discovered blocker\n\nWhen the task in hand needs a change outside its own scope:\n\n| Situation | What you do |\n|---|---|\n| Something outside the task must change first | Stop editing the original. Leave a checkpoint in its Issue: done and remaining, the branch and its worktree, the checks run, the exact next step, the evidence. Nothing is committed for a checkpoint either — describe the state of the tree in the comment, and ask the developer if the work should be parked on a commit before you leave it. Find or create the blocker's Issue by the intake rules, settle its milestone by [Milestone](#milestone-an-issue-of-a-stage-belongs-to-it) rule 6, link the two both ways, set the original's status to `blocked`. |\n| The blocker is in your area and inside the agreed scope | Take it in its own branch and MR through the normal review. Never fold it into the original MR. |\n| It belongs to the other side, needs a business decision, or more permissions than you have | Hand it to its owner in the blocker's Issue and stop that path. |\n| Debt noticed in passing that the task does not need | Record it in an Issue and leave it alone. Discovering it is not authority to fix it. This means debt in code the MR did not write: duplication or a shortcut in the MR's own diff is fixed in that MR, and a convention that forces it is amended in the same MR — code quality wins, and the convention is what gets fixed. |\n| A decision you are about to make would constrain future code | Stop and open an `[ADR]` Issue — type `decision`, the relevant area, the milestone of the Issue it blocks if that has one, and **the record itself as the body**, word for word, below its `## In plain words` and above one line naming what it blocks. One Issue per record. Set the original to `blocked` and link the two. The developer's answer in that thread is what accepts it; the record then lands in its own MR, never folded into this one. The test for whether a decision qualifies, and the file's shape, are in the `domain-specs` skill, *When a decision earns a record* — most do not qualify. |\n| The blocker is merged (and deployed, if that was the need) | Come back: update the branch, rerun the checks, set `in progress`, continue from the checkpoint. |\n\n---\n\n## Settling\n\nEvery Issue leaves the repo's own record of itself true, **in the same MR as the work** — never in\na follow-up. A separate cleanup pass does not happen; the git log of every project proves it.\n\n1. **The domain's `.workflow\u002Fspecs\u002F\u003Cdomain>\u002FSPEC.md`** is updated to match what this MR changed,\n   citing any record accepted for it at the point of the claim. If the domain has no spec yet,\n   writing its first one is an Issue of its own and not yours to start here — say so in the MR\n   description. The exception is an Issue that creates the domain: it writes the first spec, as\n   the `domain-specs` skill says.\n2. **Anything the work turned up that would constrain future code** opens an `[ADR]` Issue, by the\n   [blocker](#a-discovered-blocker) row above, before this MR merges. Settling never *writes* a\n   record: records are accepted in their own Issue, ahead of the code.\n3. **If this Issue is the last of its plan's Issues** — the parent closes with it — the plan\n   directory moves to `.workflow\u002Fplans\u002Farchive\u002F\u003Cdate>-\u003Cslug>\u002F` and its header gains\n   `Settled: \u003Cdate>`. A plan with phases still ahead of it stays where it is; a phase closing is\n   not the plan closing. **The move belongs in this MR, not after it merges.** You already know\n   whether anything of the plan is left, so \"wait until it is merged and then tidy up\" is the\n   follow-up this section exists to prevent — and the plan is no harder to review at its archived\n   path, where the diff shows it as a rename.\n4. **What this MR deletes, it deletes completely.** Everything that only existed for the deleted\n   thing goes too: its functions, its mocks, its config fields and env vars, its tests and test\n   data. Dead code that was there before the MR is not touched; it gets its own Issue.\n\n**An Issue with no behaviour change settles in one line in the MR description and touches no\nfiles.** Most of the board is small tasks, and a settle step that is not cheap on those is a\nsettle step that gets skipped.\n\nWhat goes in a spec, what stays out, and when a decision earns a record: the `domain-specs` skill.\nThat skill owns the formats; this one owns when in the Issue's life they are written.\n\n---\n\n## Closing\n\n- An Issue closes **automatically** when its MR merges — the description carries `Closes #n`.\n  Nobody closes Issues by hand.\n- A parent Issue closes when its last child MR merges, carrying `Closes #parent` too.\n- **An MR that must not close an Issue never names it next to a closing word** — \"close\", \"fix\",\n  \"resolve\" or \"implement\" in any form — not even negated, since a forge reads \"does not close #n\"\n  as `close #n`. Write \"#n stays open until …\" instead, and after the merge check that the Issue is\n  still open; if it was closed anyway, reopen it — the one reopen allowed.\n- A bug found after merge is a **new** `bug` Issue linked to the original. A closed Issue is never\n  reopened.\n- Merge is not deployment. If the result can only be seen in production, checking it there is\n  part of the new Issue's work, not a reason to keep the old one open.\n\n---\n\n## Hotfix: the one way around the workflow\n\nA hotfix is a commit pushed directly to the target branch. It skips intake, branch, MR and review.\n\n- The commit message starts with `Hotfix:`, then says in plain words what was broken and what\n  the fix does.\n- An agent does a hotfix **only when the developer's request itself starts with `Hotfix:`**. An\n  agent never decides on its own that something is a hotfix.\n- Where `main` is protected, an agent that cannot push prepares the commit on the developer's\n  checkout and hands the push to them; it does not open an MR instead.\n- If a push to `main` deploys anything with no review, say so to the developer before the push.\n- No Issue is written afterwards. The `Hotfix:` prefix is the record —\n  `git log --format='%h %s' | grep -E '^[0-9a-f]+ Hotfix:'` lists every one with its subject.\n  Follow-up work is a normal Issue.\n\n---\n\n## Definition of done\n\n- [ ] The MR links an Issue that existed before the first edit and carries `Closes #n`; a plan's\n      own MR instead carries `Part of #parent`, naming the Issue created when the plan was accepted.\n      The linked Issue opens with `## In plain words` a 10-year-old could follow, and holds the\n      request in the requester's own words with its type, area and status labels\n- [ ] The developer read the work before anything was committed or pushed, and where it came from a\n      plan, they had accepted that plan before the Issue existed\n- [ ] `\u002Fpre-mr-check` was offered before each push; where it ran, the gate was green or ⚪ and every\n      kept 🔴 finding has a fixing commit or a written objection; where it was declined, or not offered\n      because there was nothing to check, the description says so\n- [ ] The Issue's milestone was settled before `in progress` — its stage's, or none for a one-off —\n      and every sub-Issue or blocker Issue it spawned took the same test\n- [ ] From around 13 changed files (generated files counted as one with their source), the\n      description says why the work was not split\n- [ ] Nothing in the MR is postponed or half-migrated, and no comment or file explains a temporary\n      state\n- [ ] The MR description states result, scope, and the checks with their results\n- [ ] Every reviewer finding has a fixing commit or a written objection in its thread\n- [ ] Every commit message is summary + list in plain words, with no AI signature\n- [ ] Anything discovered on the way lives in its own linked Issue, not in this MR\n- [ ] The work is [settled](#settling) in this MR — the domain's `SPEC.md` matches what changed, any\n      constraining decision has an accepted record behind it, and a settled plan is archived; or the\n      description says in one line that nothing changed\n",{"name":5,"description":7},"main","68fb57dd74de5ed76dcfaff357932684f77650e6","internal\u002Fbase\u002Ffiles\u002Fcore\u002Fskills\u002Fworkflow","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg","2026-11-13 17:41:05",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add workflowaiorg\u002Fworkflow --skill workflow",{"tool":35,"command":36},"bunx","bunx skills add workflowaiorg\u002Fworkflow --skill workflow",{"tool":38,"command":39},"pnpm","pnpm dlx skills add workflowaiorg\u002Fworkflow --skill workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Fbase\u002Ffiles\u002Fcore\u002Fskills\u002Fworkflow\u002FSKILL.md",true,[],[44,51,58,65,72,77],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7F58YP2QA8F89599TDWEY0Y","notes","Where notes go.","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.opencode\u002Fskills\u002Fnotes\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7F58X62078DBFA7YZH0M9VP","naming","How things are named, including the sample's tables.","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.opencode\u002Fskills\u002Fnaming\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7F58VXX28G09AJCA667GHBS","local","A skill only this project has.","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.opencode\u002Fskills\u002Flocal\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7F58TQ8XVBD6SDV0S4T6E77","hello","Greets sample's developers.","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.opencode\u002Fskills\u002Fhello\u002FSKILL.md",[],[],{"skillNo":73,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M7F58R379TW8C6VY572RK11F","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.github\u002Fskills\u002Fnotes\u002FSKILL.md",[],[],{"skillNo":78,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7F58PNRREJ4KPY496M2XHSY","https:\u002F\u002Fgithub.com\u002Fworkflowaiorg\u002Fworkflow\u002Fblob\u002Fmain\u002Finternal\u002Frender\u002Ftestdata\u002Fsync\u002Fwant\u002F.github\u002Fskills\u002Fnaming\u002FSKILL.md",[],[]]