/maister:standards-update [standard, convention or project fact] [--from=PATH] [--built-in] [--refresh-index]from maister
Creates or updates project standards and records project knowledge (decisions, system facts) in .maister/docs/. Detects best-matching category, splits oversized files, and refreshes the documentation index.
Ships in maister. 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; scripts run unread.
Update or create standards in .maister/docs/standards/ based on conversation context, a provided description or the candidates finished workflow runs filed in the project's candidate store, .maister/standard-candidates/ — or, when the knowledge is a decision or a fact about the system rather than a way of writing code, record it in a project document under .maister/docs/project/. What makes a good candidate and where one belongs is described once, in docs-manager's standard candidates reference, <plugin root>/skills/docs-manager/references/standard-candidates.md § What a candidate is, How one is written, Where one belongs and Offered, not recommended, the plugin root two levels above this skill's base directory; print those sections before Phase 1, and the project's own wording in its CLAUDE.md block or at the top of INDEX.md over it. Automatically detects the best-matching category and file. Works with every folder under standards/, the ones init copied and the project's own alike, with sub-folders as groups within them; it also splits a file that has outgrown its size guidance and refreshes the documentation index.
Every write goes through the docs-operator subagent, which preloads docs-manager. Each call that changes documents names the docs index check for it: check is <plugin root>/skills/docs-manager/scripts/docs-check.mjs, the plugin root being two levels above this skill's base directory, written as an absolute path.
/maister:standards-update # Detect from conversation (a run's close included), else offer the latest run's candidates
/maister:standards-update "always use React.memo for lists" # From description
/maister:standards-update --from=/path/to/other-project # Sync from another project
/maister:standards-update "split standards/backend/storage.md" # Split a file past its size guidance
/maister:standards-update --built-in # Review the built-in rules changed since setup
/maister:standards-update --refresh-index # Bring INDEX.md back in shape
--refresh-index)For a project whose INDEX.md has grown long, been hand-edited or been merged badly — one command, run once, by the operator or for them.
docs-operator via Task tool (subagent_type: maister:docs-operator, model and effort from node ${CLAUDE_PLUGIN_ROOT}/skills/workflow-engine/scripts/workflow.mjs dispatch-model --agent=maister:docs-operator --host=claude, run just before — ../workflow-engine/references/verbs.md § Model and effort on every agent call, for every docs-operator call here):
"Refresh INDEX.md with reshape. Check: [check path]. Rewrite every entry the check warns on and every structural failure, keep the entries that already follow the rules, bring the layout to the template, and return the check's result."
standards-file-over-guide warning names a file to split: offer /maister:standards-update "split <path>" for each, and never split one here.No document other than INDEX.md is touched in this mode.
--from=PATH)When --from=PATH is provided, the skill switches to sync mode — importing standards from another project's .maister/docs/standards/ into the current project. This bypasses Phases 1-3 and uses a dedicated flow.
PATH/.maister/docs/standards/ exists. If not, inform the user and stop..maister/docs/standards/ exists in the current project. If not, follow § Prerequisites.standards/*/ — list all categories and filesstandards/*/ — list all categories and filesFor each selected standard:
### sections that don't exist locallyInvoke docs-operator subagent via Task tool (subagent_type: maister:docs-operator, model and effort from node ${CLAUDE_PLUGIN_ROOT}/skills/workflow-engine/scripts/workflow.mjs dispatch-model --agent=maister:docs-operator --host=claude, run just before):
"Refresh INDEX.md. Changed: [the added and updated standards paths]. Check: [check path]. Verify CLAUDE.md integration."
Wait for docs-operator to complete, then immediately proceed to SYNC STEP 5.
Display: standards added, standards updated, standards skipped, and total count. Suggest reviewing the imported standards and committing.
--built-in)For a project set up on an earlier plugin version: bring its built-in rules up to date with the ones the plugin ships now — each rule the plugin has since rewritten, merged, moved, removed or added. The map of what became of each rule is data the resolver reads; this mode never restates it. It bypasses Phases 1-3 and uses the flow below. It runs from /maister:init's update path, which hands over the groups it resolved, or typed alone.
Prerequisites are those of § Prerequisites. Every docs-operator call here takes the model and effort from node ${CLAUDE_PLUGIN_ROOT}/skills/workflow-engine/scripts/workflow.mjs dispatch-model --agent=maister:docs-operator --host=claude, run just before. Phase 1 Step 4 is not asked: the map fixes each rule's place.
From the project root, run node <plugin root>/skills/docs-manager/scripts/standards.mjs built-in candidates, the plugin root two levels above this skill's base directory, written as an absolute path.
--add-groups="…", --signals="…" and --monorepo the invocation carries. Init's hand-off carries them; typed alone, the mode passes none. List values go in double quotes; a path holding a space goes in single quotes.The report's candidates are in the order the questions use. A candidate's group, action, recommended, covers, sections, home and reason are what the steps below read.
Asked when any candidate is recommended. Write the full list first, then ask once, keeping the question compact.
The list file. With the file tool, write built-in-standards-changes.md in the directory node <plugin root>/skills/workflow-engine/scripts/workflow.mjs scratch-dir --for=built-in-standards makes and prints, run from the project root as a command of its own: a fresh directory under .maister/scratch/, which git ignores, so the file is read back with no permission prompt. It holds one line per recommended candidate, under a heading per group: the groups in the group table's order, each group's lines in report order. A line gives the action, the heading or headings the candidate removes, and the new rule's heading with its file. For example:
The file is never under .maister/docs/, is never read by any later run, and is never cleaned up by the mode.
The question. One line per group, in table order, counting that group's recommended candidates by action: replaced, merged, moved, removed and added. A candidate counts once, so a merge covering four rules is one merged. A move names the folder it moves to, or the file when it stays in its own folder, with one count per destination. The counts of every line sum to the N of "Apply all N". For example: "backend: 1 replaced, 4 merged, 10 moved to data/, 9 removed, 2 added".
The question names the list file by its absolute path, then states three things:
counts.held), and how many of the project's own rules are left alone (counts.team);counts.edited);Options: "Apply all N (Recommended)" / "Go through them" / "More details". "More details" writes the list file's lines out in the session, then asks the question again without "More details".
On "Go through them", each recommended candidate is its own question, four to a page, each page one AskUserQuestion call. A question holds the candidate's line and its reason. Options: "Apply it (Recommended)" / "Skip it".
With "Apply all N", every recommended candidate is chosen; after "Go through them", the ones chosen. Make one docs-operator call for the whole set, carrying each chosen candidate in report order. It names the Update Documentation operation, and [check path] is <plugin root>/skills/docs-manager/scripts/docs-check.mjs, written as an absolute path:
"Update Documentation, built-in standard edits, in
.maister/docs/standards/. Apply each edit below in order as section edits; leave every section an edit does not name as it is. Edit<id>(<action>): remove these sections, only while each still reads as the text given; when any of them does not, apply nothing of this edit and name that section —<path>"<heading>":<text>; …. [When it writes:] Write this section tostandards/<home.path>:<home.text>, unless after this edit's removals the file already holds a###section with this heading (an earlier edit in this call wrote it): then write nothing, and the removals still apply. When the file is missing, create it with the title line<home.file_title>. Put the section in place of the first removed section in that file when there is one; else, when the list of headings is empty, directly after the file's#/##title lines; else after the first of these headings the file holds:<home.preceding>; else, when it holds none of them, at the end. [Whenhomeis null or held:] Write nothing. Delete a file left with nothing but its headings. Then refresh INDEX.md with every path changed, created or deleted as changed. Check: [check path]. scratch: any helper script or file of your own goes in [list folder], never the session's scratchpad or the system temp directory. Return each edit as applied or not applied, with the reason."
A candidate writes its home when home is not null and home.held is false; otherwise it only removes. When nothing was chosen, no call is made.
Compose the edits yourself, from the report you already hold: in the call's own text, or, when the set is long, with the file tool as built-in-standard-edits.md beside the list file, which the call then names to read. Never build them with a shell heredoc or an inline interpreter (python3 -c, node -e, a << here-document): the host flags such a command as one it cannot read, and an unattended run blocks on it. A helper script that composes or applies them, yours or the docs operator's, is written in that same folder, [list folder] in the call — the directory scratch-dir printed for the list file, as an absolute path — never in the session's scratchpad or the system temp directory, which sit outside the project.
After the apply, or straight away when nothing was recommended or chosen, run the verb again with the same flags, handling a refusal and an exit 2 as in Step 1. Its recommended: false candidates are asked one at a time, four to a page, in report order, each never recommended:
edited: candidate. The question names the rule and its file and shows three texts in full: "Your text: …", "Shipped: …", and either "New rule (<home.path>): …" or "The plugin no longer ships this rule". When home.held is true it adds "A rule headed <heading> is already in <path>", with ", with the new text" only when home.current is true. Options: "Keep ours"; "Take the new rule" when the candidate writes its home (home is not null and home.held is false) or home.current is true, and "Remove it" when home is null, or when home.held is true and home.current is false (the home then holds the team's own section under that heading, and the edit only removes the rule); and "More details". "More details" prints the line-by-line difference between the team's text and the shipped text, then the candidate's reason, and asks the question again without "More details".update: candidate, asked in its place in report order. Its sections are unedited, so the question names each rule it covers and its file, shows the shipped text once, and gives its reason, which names the team's section keeping the heading. Options: "Keep ours" / "Remove it" / "More details". "More details" prints the team's section at home.path and the new rule's text, then asks again without "More details"."Take the new rule" and "Remove it" answers are applied together in one docs-operator call worded as in Step 4, each chosen candidate in report order. "Keep ours" writes nothing. The mode makes at most two docs-operator calls, each ending with the INDEX.md refresh and the check, and when nothing was applied nothing is written and no refresh runs.
docs-operator gave.groups.not_recommended_held, one line: "<title> is held although the profile no longer calls for it; its rules were updated like the others".groups.adding_from is "profile", one line: "A group only the code shows — such as cli for a command entry point — is not offered when this mode runs alone; /maister:init's update path offers it".docs-operator reported.The mode never runs candidates.mjs and writes no file of its own, apart from the list file of Step 2, which nothing reads back.
When no mode flag (--from, --built-in, --refresh-index) is provided, the skill uses the standard detect-and-update flow below.
Step 1: Gather input
Step 2: Discover existing categories and files
Scan .maister/docs/standards/*/ to find all existing categories and standard files, and .maister/docs/project/ for the project's own documents (a decision log, a glossary, an architecture note — any name), and find the project's contributor guide as Where one belongs in the standard candidates reference says. This determines what's available — not limited to baseline categories.
Step 3: Match to category and file
Based on the topic detected, suggest the best-matching existing category and file. Consider:
(suggested: <destination>) in the description — is the best match unless the file no longer existsStep 4: Confirm the target — one AskUserQuestion, the convention in a few words in the question. This step is always asked: a suggested destination makes the recommended answer, never the answer. Several conventions handed over together — a run's chosen standard candidates — are confirmed together, a question each and up to four to a page, before any is written. When the best-matching file is already past its size guidance (about 12 KB or 15 ### rules), the recommended answer is a new file beside it, named from the convention, the question saying the matched file is full; adding to that file stays an option.
Check if the target file exists:
A project document follows the same two modes; it is written in the document's own form — any Markdown, no ###-per-rule shape and no frontmatter required.
No user prompt needed — just inform: "Updating existing standard: [name]" or "Creating new standard: [category/name]"
/maister:standards-update --built-in, never by copying the bundled docs here.Each standard uses a
###heading with 1-10 lines description (excluding code snippets). Multiple standards per topic file. A rule holds no inventory of call sites, no dates and no ticket references. A file past about 12 KB or 15 rules is split into topic files or a sub-folder (§ Splitting a Standards File).Wording, for a standard or a project document alike: the rule first, then the reason, then its scope; no exact counts, line numbers or identifiers that will go stale (How one is written in the standard candidates reference). A rule extending an existing one is merged into it, not added beside it.
Invoke docs-operator subagent via Task tool (subagent_type: maister:docs-operator, model and effort from node ${CLAUDE_PLUGIN_ROOT}/skills/workflow-engine/scripts/workflow.mjs dispatch-model --agent=maister:docs-operator --host=claude, run just before) with context:
For updates:
"Update documentation file: standards/[category]/[name].md. Current content: [content]. Add/change: [new conventions]. Integrate new practices, maintain markdown formatting, organize logically, preserve existing unless conflicts. Then refresh INDEX.md with this path as changed. Check: [check path]. Report the file's size and rule count against its guidance."
For a project document, the same calls with its project/[name].md path — the Update or Add Documentation File operation — adding the knowledge where it reads naturally in the document. The project's contributor guide, when it lives outside .maister/docs/ (a CONTRIBUTING.md at the project root, or the guide the project's CLAUDE.md block names), takes the same Update call with that path and no INDEX.md refresh: the index maps .maister/docs/ alone.
For creates:
"Create documentation file: standards/[category]/[name].md. Category: [category]. Content: [conventions]. Create with proper markdown, organized sections, code examples. Then refresh INDEX.md with this path as changed. Check: [check path]. Verify CLAUDE.md integration."
Wait for docs-operator to complete, then immediately proceed to Phase 5.
Display a summary: what was updated/created, practices added, and next steps (review, commit, share with team). If docs-operator reported a failure, say so. When the file is past its size guidance, say so and suggest /maister:standards-update "split <path>" — a warning, never a refusal.
A workflow run writes no standard. Its finalization files the consolidated candidates in the project's candidate store, .maister/standard-candidates/ (The run's candidates file and The candidate store in the standard candidates reference), lists them in its close with its task directory, and names this command once; this is where they are applied — in the session the run closed in, or in a fresh one.
node <plugin root>/skills/standards-update/scripts/candidates.mjs show --run=<task dir> with the task directory the close names; in a fresh session, node <plugin root>/skills/standards-update/scripts/candidates.mjs latest. Either runs from the project root, the plugin root as above, reads the store — folding in run folders written before it, once — and prints the run (run — for latest, the most recent run with something left to apply), its candidates less the closed ones (applied, dismissed, merged or expired), each with its store id and seen_in (the runs that met it), the ones it found already held, its attached lessons (each an earlier run's candidate it met again, with that candidate's state and, while it is open, the candidate itself and its dir), the other runs that still hold some (others) and any file it could not read (problems). From a close whose candidates are all closed, say so and go on with the conversation's other conventions alone. With run null, a close's candidates are taken from the close as conventions of the conversation, the problem named; from latest, go back to If nothing detected in Phase 1.node <plugin root>/skills/standards-update/scripts/candidates.mjs queue), by hazard as Consolidation in the standard candidates reference matches them. When some teach one lesson, one AskUserQuestion before the offer names each group by its candidates' labels, with options "Merge them (Recommended)" — one candidate, the oldest, seen in all their runs — and "Keep them separate" — each offered on its own. Merging runs node <plugin root>/skills/standards-update/scripts/candidates.mjs merge --into=<oldest id> --id=<id> … once per group, then the lookup of step 1 again, so the offer reads the merged store. With no likely duplicate, ask nothing.others is not empty, that other runs hold candidates too (how many runs, named). Each candidate is an option — the run's own, then each open candidate of its attached, said to be seen again in this run: its label as the label; "seen in N runs" when seen_in holds more than one, then its destination and its evidence, as the description. Each recommended candidate is marked recommended, its description opening with its reason; the candidates are separate choices, so more than one may be. When none is, the question says no candidate has been seen in two runs yet or guards security or data loss. The script lists the recommended ones first and the ones with a caught_by last; a caught one is never recommended, and its description opens with "already caught by ". More than four candidates go in pages of four in the same call, each question counting its own out of the whole. The already-held ones are not offered; name them in the question with the rule that holds each. An unchosen candidate stays open in the store and is offered again next time, until it is dismissed or expires — seen in no second run within 30 days of its own (Closing a candidate in the standard candidates reference).node <plugin root>/skills/standards-update/scripts/candidates.mjs dismiss --id=<id> … --reason=<reason> --by=<name> once, with every store id to dismiss, <name> the person's own as git config user.name prints it, else unknown. A person who asks, in the argument or the conversation, to dismiss a named candidate gets the same call with the reason they gave, and no question.destination as the suggested destination (for extend, the rule it extends) — the destination is asked in Step 4, never taken as given. Once a candidate has been written (Phase 4 succeeded), record it: node <plugin root>/skills/standards-update/scripts/candidates.mjs applied --id=<id> --file=<path> --rule=<heading> --by=<name> with its store id, an attached one's included, so it is not offered again — <path> the file it was written into, from the project root with forward slashes, <heading> the ### heading of the rule that now holds it (no --rule for a project document with no rule), and <name> the person's own, as step 4 names it. Recording it also closes every later run's attachment that names it. A candidate whose write failed is not recorded.closed.expired is not zero, that that many candidates expired after 30 days without a second sighting.For a file past its size guidance, on request — the argument, the conversation, or an offer this skill made.
### rules by topic into two to four new files, each named for its topic: in the same folder, or in a sub-folder named for the file when its topics belong together (standards/backend/storage.md → standards/backend/storage/layout.md, standards/backend/storage/locking.md).docs-operator: "Move these rules, unchanged, into [new files]; delete [old file] once every rule has moved. Then refresh INDEX.md with the old and new paths as changed. Check: [check path]." Rules move word for word; a split edits no rule.If .maister/docs/ doesn't exist, ask once — "Set up Maister first? (runs the setup, then this)": "Set it up (Recommended)" runs maister:init with the Skill tool, then continues here; any other answer stops. This is the one rule for every mode.
docs-operator asks nothing: a choice it returns under decisions_needed is asked here, in the same form, and the operation is called again with the answer.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub skillpanel/maister --plugin maister22 skills in this plugin
/codebase-analyzerAnalyzes codebase using adaptive parallel Explore subagents based on task complexity. Selects agent roles from a pool, launches Explore agents, then delegates report generation to codebase-analysis-reporter subagent./developmentmaister:developmentUnified orchestrator for all development tasks. ALWAYS execute when invoked — never skip for 'straightforward' tasks. Phases adapt based on detected task characteristics rather than predetermined types. Use for any development work that modifies code./docs-managerInternal engine for managing project documentation and technical standards in .maister/docs/. Handles file operations, INDEX.md refresh, CLAUDE.md integration, and the consolidation of standard candidates at a workflow's finalization. Invoked by maister:init, standards-update, standards-discover and workflow finalization./implementation-plan-executorExecute implementation plans by delegating each task group to the task-group-implementer subagent. Hands a workflow run's waves — group dispatch, group returns, escalation, failure handling and the work-log bookkeeping — to the implementation runner subagent when the run can nest subagents, and runs the same loop in the main session when it cannot. Asks the user only the decisions the loop returns. Every wave start and group return is recorded through the workflow engine; standards are loaded per task group./implementation-verifierVerify completed implementations for quality assurance. Hands a workflow run's verification loop — the tests and the project's other checks, the spec conformance, code risk and simplicity reviews, the fixes they call for and their re-checks — to the verification runner subagent when the run can nest subagents, and runs the same loop in the main session when it cannot. Asks the user only the decisions the loop returns, and closes on one verification report. Use after implementation is complete and before code review/commit./initmaister:initInitialize Maister framework with intelligent project analysis and documentation generationOther plugins' skills for the same job