/docflow:add-conventionfrom docflow
Assesses whether a proposed convention is worth codifying, then routes it to the correct documentation file (AGENTS.md, CONVENTIONS.md, GLOSSARY, or /new-adr). Pushes back on premature or duplicate conventions.
Ships in docflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add a convention — but only after assessing whether it should exist and where it belongs. This skill is a gatekeeper and a router, not a stenographer.
CONVENTIONS.md and AGENTS.md in full so you can detect
overlap with existing rules and judge fit.Run the shared assessment protocol; the triage (Step 1) and routing (Step 2) questions are asked under it:
Reuse supplied answers first. Treat applicable choices already supplied in the request or this session, including depth, as answered. Summarise them without asking again; defaults never replace explicit choices. If every material choice is supplied, proceed. Ask only about a material missing or conflicting choice. A repository preference alone is not a current answer or execution grant.
Depth selector for unresolved choices. If depth is not supplied and
choices remain, ask how deep this assessment should go:
express — every choice takes its recommended default; only
questions with no derivable default (the free-text essentials) are
still asked; guided — only the questions marked high-impact
below, plus the free-text essentials; full — every question
below. If the repo's CONVENTIONS.md records an Assessment depth:,
pre-select it as the recommended option when asking; a recorded depth
is never applied silently. Otherwise
recommend full when the request arrived with little or no
context and express when it is already fully specified. At any
question the operator may answer "defaults from here" or "go
deeper"; honour the switch immediately.
Ask questions one at a time, each with a recommended option and a one-line reason; wait for each answer.
Use structured selection (single- or multiple-choice). If the host exposes a structured single-/multi-select question tool, use it and mark the recommended option; otherwise list options A/B/C in plain text and name the recommended one. Use free text only where an enumerable set is impossible (e.g. the exact wording).
The operator decides. Never proceed past a question without an answer, and never guess scope when invoked with no context.
Questions (skip any the request already answers):
AGENTS.md hard rule / CONVENTIONS.md guidance /
GLOSSARY.md term / actually a decision (hand off to the new-adr
skill). Recommended: per the rule's nature (see Step 2).
(High-impact — asked in guided: the wrong home is churn to move.)Apply triage. Recommend against adding when:
Recommend for adding when it is a recurring decision whose ambiguity causes rework, it is stable, and it can be stated so an agent can follow it without further interpretation. State your recommendation and the reason before doing anything.
Decide the home, and explain the choice:
AGENTS.md §Hard rules,
with the substance in CONVENTIONS.md. Use for non-negotiable
constraints.CONVENTIONS.md.
Use for "how we do things" that informs but doesn't gate.GLOSSARY.md (create it if absent —
adding the first term enables the glossary layer; place it at the
recorded artefact root). Read the repo's CONVENTIONS.md §Glossary and
inspect the rule it actually declares; the canonical structure is an
optional H1 heading and optional introductory prose, then exactly one
two-column Markdown table whose header is Term | Definition. Every
term is its own row. Never record a term as a heading, a bullet or a
paragraph, and never add a second table or a different column shape. A
§Glossary that states an older or unrelated glossary convention is not
adoption of this table: use the canonical shape and offer the audit
skill's separately consented rule-and-file migration rather than copying
the old shape. An absent GLOSSARY.md remains a valid state; this skill
creates one only because a term is actually being added.If a convention is a triage/process rule (e.g. how incoming work is
triaged), prefer CONVENTIONS.md with a hard-rule bullet in AGENTS.md
only for the parts that are non-negotiable.
Draft the exact wording for its home file. Keep it tight, testable, and in the repo's language. Show the diff. Confirm before writing.
Apply the edit(s). If a convention rises to a hard rule, ensure
AGENTS.md and CONVENTIONS.md stay consistent. Conventional Commit
(docs: ...); no ADR touched means no Rationale: footer is required,
but add one if the repo's contract asks for it on convention changes.
Adding or extending a glossary. Use the canonical structure defined below and the declared-rule checks; the shape must not drift between runs.
CONVENTIONS.md has no §Glossary
section (a legacy repo that predates it, or a layer enabled before the
rule was recorded), fall back to the product default canonical shape
above: optional # Glossary heading and intro prose, then one
Term | Definition table. Do not invent a different shape for that
repo, and do not silently edit unrelated conventions.Term | Definition table, follow it and change it only on an explicit
request. If it states a different or older glossary convention (bullets,
prose, another column shape), the repo has not adopted this table:
do not copy the old shape, and do not silently rewrite the rule. Use the
canonical shape for the term and offer the audit skill's migration, which
covers the rule and the file together as one separately consented diff.## Glossary section in CONVENTIONS.md stating the shape actually
used. Show that diff and write it only if the user accepts; never rewrite
or reorder other CONVENTIONS.md sections to make room, and if the user
declines, keep the glossary canonical but leave CONVENTIONS.md
unchanged.# Glossary heading and any
short introductory prose the repo needs, then the single two-column
table with header Term | Definition and the new term as its first
row. Do not invent placeholder terms.\|. If a
definition is genuinely multiline, keep it in one cell with <br> for
the hard break rather than spilling into extra rows.GLOSSARY.md is bullets, prose,
headings or a mixed shape, do not append a competing row and do not
rewrite the file as a side effect of adding a term. Surface the
non-canonical structure and offer the audit skill's consented migration;
apply it only if the user accepts the concrete diff. A declined
migration leaves the file as the user keeps it.Name the rule and propagation performed; list repositories not updated.
End every run, including blocked, failed and stopped runs, with a section headed exactly Status at a glance, containing these three labels:
Routine progress messages need no block. Keep final results brief and distinguish work prepared on a PR from work confirmed shipped.
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/agent-waveRun a bounded wave over the plan/todo queue in a documentation-led repo, using available parallel agents or sequential execution. Establishes width, budget and supervision; isolates work and collects verified outcomes. Use for "spawn a wave of agents", "run the queue in parallel", "fan out the work", or "agent wave", not for authoring a decision or queuing a new item./auditAudit a documentation-led repo against its own conventions — contiguous ADR numbering, INDEX sync, plan/ coverage, required sections, status validity, cross-reference resolution, language mandate, ADR-privacy leaks into user-visible code, cross-worktree collisions (duplicate numbers, duplicate plan ownership, same ADR edited on two branches), and — for a multi-repo product — cross-repo federation checks (bidirectional membership, identity collisions, dangling cross-repo references, roll-up drift, convention drift). Reports a punch list and offers to fix the mechanical issues. Use when the user says "audit the ADRs", "lint the conventions", "check repo consistency", or "are the ADRs in sync"./bootstrapScaffold 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.npx claudepluginhub evolvehq/docflow --plugin docflowOther plugins' skills for the same job