add-convention
Assess and add a CONVENTION (a reusable rule, practice, or naming/process standard) to a documentation-led repo — decides FIRST whether it is worth codifying…
Scaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, _agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", or "add AGENTS.md
$ npx -y skills add EvolveHQ/docflow --skill bootstrap --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/bootstrapContext preview
The summary Claude sees to decide when to auto-load this skill.
Scaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, _agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", or "add AGENTS.md
name: bootstrap description: Scaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, _agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", or "add AGENTS.md and a plan queue". Works on fresh repos and existing ones — preserves existing content and merges rather than overwrites. Opens with an express / guided / full depth choice, so a quick conservative setup needs almost no questions.
You are installing (or retrofitting) a documentation-led convention set in the current repo. The end state is a repo that can be driven by both humans and coding agents off a small set of canonical files. Carry over the *mechanism* described here — nothing about any other project.
Inspect the repo before asking anything. Reuse explicit answers and sign-off already supplied in this session; never replace them with profile defaults or ask for them again. Before writing, summarise the resolved artefact root, depth, queue, gate and coordination/integration modes against those answers. If a host mirrors a selected folder into a sandbox, identify the actual target path and how verified outputs reach the selected folder; never call an untouched target complete merely because a scratch mirror passed.
`CLAUDE.md`, `docs/`, `adr/`, `.github/` before proposing changes.
conventions conflict with the ones below, surface the conflict in your assessment summary.
(renumber, keep, translate) rather than creating a parallel tree.
ADR catalogue): you are **adding to an existing setup**, not scaffolding. Do **not** re-scaffold the core or re-ask settled questions — read the recorded choices from `CONVENTIONS.md`/`AGENTS.md` (ADR shape, status lifecycle, **artefact root**, multi-agent mode, and which optional layers already exist). Then offer to **enable any opted-out optional layer** still absent — `plan/`, `_agent/`, `GLOSSARY.md`, `domains/`, or the second ADR shape (the technology template) — and write only the chosen ones, by **merge**, under the recorded artefact root, leaving everything else untouched. Ask only the questions the new layers need (e.g. the coordination question when enabling `_agent/` — where a single writer without both a recorded verify gate and a plan queue correctly ends up with no `_agent/` at all, and the layer is simply not needed). This is the entry point for adding a layer you deferred at first bootstrap. A repo still carrying coordination files an earlier scaffold wrote keeps them: leave them in place here and let the audit skill report the layout.
**Enabling the second ADR shape is a scheme switch, not a file copy.** It is the one deferred layer that changes a choice already recorded, so write all of it in one pass or none of it: replace §ADR Shapes in `CONVENTIONS.md` with the two-shape text, add the technology section-order and shape bullets to `AGENTS.md`, write `adr/0000-template-technology.md`, and regenerate `INDEX.md` with the Shape column. Existing ADRs keep their numbers and stay capability — an absent `shape:` field already means capability, so no ADR is rewritten and nothing is renumbered. Half of the switch strands the repo in the state the Step 4.5 cross-check calls a contradiction: a technology template that a single-shape scheme will never select.
**A repo already on the legacy range encoding gets the migration offer instead.** Some two-shape repos were scaffolded before the shape became a declared field and encode it in the **number**: §ADR Shapes records a cutoff (capability below it, technology at or above), and `adr/` holds a template numbered other than `0000` (e.g. `adr/0100-template.md`). Either signal alone identifies it. Such a repo is not missing a layer — it has both shapes already — so do not offer the scheme switch above, which would strand it with two rival encodings. Offer the **migration onto the declared field**, on the same terms the audit skill uses:
ADRs keep their numbers; technology ADRs take the numbers following the highest capability ADR, in their original relative order. Alongside it, list the references that follow (`depends-on`, `supersedes` / `superseded-by`, relative `adr/NNNN-*.md` links, `INDEX.md`, domain `README.md` listings, `plan/todo/` owning-ADR lines) and what is left as history (`plan/done/` footers, commit messages, tags).
Declining is a valid outcome: the repo keeps the range encoding and keeps passing its own rules.
migration step specifies — renumber, stamp `shape:` on every ADR, rewrite every in-catalogue reference, replace the boundary template with `adr/0000-template-technology.md`, rewrite §ADR Shapes to the declared field and drop any seed-ADR exception clause, regenerate `INDEX.md` with the Shape column — and land it as **one commit whose message lists every old-to-new pair**. That procedure is the single source of truth; do not paraphrase a second variant of it here.
absent (`plan/`, `_agent/`, `GLOSSARY.md`, `domains/`).
State which situation applies in one line before asking the assessment questions.
A plugin for ADR-driven, documentation-led projects, working on Claude Code, Claude Cowork, pi, Codex, and OpenCode from the same skill files (see Install).
Repo: EvolveHQ/docflow
Assess and add a CONVENTION (a reusable rule, practice, or naming/process standard) to a documentation-led repo — decides FIRST whether it is worth codifying…
Orchestrate a wave of parallel agents over the plan/todo queue in a documentation-led repo — asks how many agents, the budget (items/waves, with hours as a…
Audit a documentation-led repo against its own conventions — contiguous ADR numbering, INDEX sync, plan/ coverage, required sections, status validity,…
Decompose a problem, feature, or goal into candidate ADRs and plan items for a documentation-led repo — one decision per ADR, dependency edges, suggested…
Author a new ADR — record a DECISION (what the system must do, or how it is built) in a documentation-led repo. Picks the next contiguous number, chooses the…
Queue a UNIT OF WORK in the plan/todo queue of a documentation-led repo, tracing to an existing ADR — names the owning ADR(s), scope, exit criteria mapped to…