write-document
Skill0 starsChanged 4 months agoMITView on GitHub
Use whenever a delivery run needs a Knowledge Object created from its template or an existing one updated to reflect changed behavior: filing a business rule, requirement, ADR, user story, or any other graph-node fact into the knowledge graph, or writing/updating a non-graph prose document (an ExecPlan, a query/roadmap/test-strategy document) under the run workspace. This is the promote_to_product_knowledge action of the planning stretch, the documentation_update action of the implementation stretch, and the ADR-drafting half of technical_design's stop condition — one Agent-tool dispatch each, parameterized by doctype and mode, distinct from the later review-evidence documentation_evidence_review pass that judges this work, not produces it.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- danielvm-git/bigpowers★ 252same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acceptance-auditSkill
- agent-conductSkill
- clarify-requirementsSkill
- debriefSkill
- delivery-governanceSkill
- detailed-prototypesSkill
- detect-driftSkill
- documentation-standardsSkill
- documentation-updateSkill
- evidence-verificationSkill
- exec-plans-standardSkill
- finalize-promoted-knowledgeSkill
- gather-requirementsSkill
- governanceSkill
- implement-sliceSkill
- init-workspaceSkill
- parallel-tracksSkill
- planning-security-scopeSkill
- promote-to-product-knowledgeSkill
- reasoningSkill
- record-evidenceSkill
- refresh-generated-contextSkill
- repair-manifest-and-linksSkill
- reproduce-failureSkill
- resolve-open-questionsSkill
- review-diffSkill
- review-evidenceSkill
- runtime-validationSkill
- security-architecture-reviewSkill
- security-reviewSkill
- technical-designSkill
- testability-reviewSkill
- verify-fixSkill
- visual-designSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
After a successful create or update, if this dispatch is running inside a run (not a standalone skill invocation), call kaizen.py run …
- Distinctive: line 68
If a fact's canonical destination (which graph node type, or which non-graph run-workspace folder) cannot be determined, stop and ask — …
- Very specific: line 71
Never invent a lifecycle status outside documentation-standards' Approved Lifecycle Statuses list (also the list kaizen_graph.py itself …
- Distinctive: line 72
Never write a graph node's front matter or file content by hand — every graph-mapped write goes through the CLI, so id allocation, the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write Document
Produce or update exactly one properly-shaped Knowledge Object. Every doctype is either graph-mapped (one of the fifteen node types in Graph Node Schema) or non-graph (stays a plain prose file). Which one it is decides how this skill writes it — see below — but both apply the same formatting law from documentation-standards for whichever fields/sections remain.
Dispatch
One synchronous Agent-tool call. subagent_type is whatever role the dispatching action entry names (business-analyst for promote_to_product_knowledge, documentation-steward for documentation_update, solution-architect for the ADR half of technical_design) — this skill defines the contract, not the persona.
Graph-mapped doctypes: route through kaizen graph new/update
For these doctype values, never hand-write the file or its front matter directly — call the CLI, which allocates the id, serializes front matter, and writes the file:
doctype | node type | CLI verb |
business-rule | BR | kaizen graph new business-rule |
requirement | FR | kaizen graph new requirement |
nfr | NFR | kaizen graph new nfr |
adr | ADR | kaizen graph new adr |
user-story | US | kaizen graph new user-story |
question | QST | kaizen graph new question |
acceptance-criteria | AC | kaizen graph new acceptance-criteria |
user-flow | FLOW | kaizen graph new user-flow |
api | API | kaizen graph new api |
event | EVT | kaizen graph new event |
command | CMD | kaizen graph new command |
entity | ENT | kaizen graph new entity |
ui-component | COMP | kaizen graph new ui-component |
ui-page | PAGE | kaizen graph new ui-page |
integration | INT | kaizen graph new integration |
mode: create— resolve the targetknowledge-graphpath from.kaizen/workspace.map.yaml(perinit-workspace), then runpython3 "${CLAUDE_PLUGIN_ROOT}/bin/kaizen.py" graph new <doctype> --title "..." --domain <domain> --field statement="..." [--related ID...](field names per that node type's own template intemplates/). The CLI returns the allocated id and file path — do not invent either yourself.mode: update— runkaizen.py graph update <id> --field k=v...(or--status S) against the existing node id; never edit a node file's front matter by hand.- Resolve the destination node's own body content from the matching template in
templates/(e.g.business-rule-template.mdforbusiness-rule) for what fields/sections that type expects — the CLI writes the skeleton, this skill fills the field values it's given. kaizen.py graph new/update/linkalready reject any value that looks like a run reference (per the one-way reference guard inkaizen_graph.py) — if a call is rejected for that reason, that is a signal the input was wrong, not a tooling failure to route around.- After a successful
createorupdate, if this dispatch is running inside a run (not a standalone skill invocation), callkaizen.py run link-nodes <run-id> --created ID...or--updated ID...so the run's owndiscovery/manifest.yamlrecords which node ids it touched.
Non-graph doctypes: plain file write under the run workspace
These doctype values are not graph nodes and keep the older Purpose / Scope / Canonical Content / Relationships / Validation shell, written as a normal file directly (no CLI involved):
implementation-plan(PLAN) — an ExecPlan or implementation plan; write it under the current run's ownplanning/folder (e.g..kaizen/runs/<run-id>/planning/execplan.md), perexec-plans-standard.query(QRY) — a query/reporting document; write it under the run's relevant stage folder (typicallydiscovery/ordesign/).roadmap(RMAP) — a hand-authored roadmap document. Note to the caller that most roadmap-shaped questions ("every open FR in domain X") are better served bykaizen graph query --type FR --status Requirementsthan a hand-maintained file that goes stale — only write one if genuinely asked for a durable roadmap artifact.test-strategy(TEST) — a test plan tied to this run's own implementation; write it under the run'sverification/folder, never into the graph (acceptance criteria the plan validates against, if durable, are separateACgraph nodes it should link to by id, not restate).
capability and feature doctypes are retired — do not accept either. A capability-shaped grouping need is a plain domain: field on any graph node, not a document; a feature-shaped need is either a user-story node or a decomposition into the atomic BR/FR/NFR nodes it's made of.
Required inputs
- Graph-mapped
mode: create— the structured field values to pass as--field k=v(a resolved requirement-register row's content, or the decision content for an ADR) and, for an ADR specifically, whether the request reached this point via themigrateverb (adds a mandatory rollback plan to its body). - Graph-mapped
mode: update— the node id and the changed field values. - Non-graph
mode: create/update— the content to write, and the existing run workspace path it belongs under.
Required outputs (all mandatory)
- Graph-mapped
mode: create— the new node's id and file path (as returned bykaizen.py graph new), statusRequirementsfor an ordinary promoted fact, orDesignfor a freshly drafted ADR — neverApproved/Acceptedstraight out of this dispatch; for a promoted requirement-register row, the row marked promoted with a link to the new node id; arun link-nodescall recording the new id against the current run, when running inside a run. - Graph-mapped
mode: update— confirmation of the field(s) changed on the existing node id; arun link-nodes --updatedcall when running inside a run. - Non-graph
mode: create/update— the file written or updated at its run-workspace path, with real front matter (id,title,type,status,owner,priority,tags,depends_on,related,last_updated) per the older Documentation Standard field set.
Rules
- If a fact's canonical destination (which graph node type, or which non-graph run-workspace folder) cannot be determined, stop and ask — never invent a new owner or duplicate the fact across two places.
mode: updateon a non-graph document: when the change moved or deleted a path, every active reference to it is repaired — not just noted — before this action reports pass.mode: createfor an ADR: this dispatch produces only the working draft (Designstatus, body## Status: Proposed). Flipping it toApproved/Acceptedhappens only after the evidence-verification checkpoint pass that follows this dispatch approves it — never inside this same dispatch, and always viakaizen.py graph update <id> --status Approved, never a hand edit.- Never invent a lifecycle status outside
documentation-standards' Approved Lifecycle Statuses list (also the listkaizen_graph.pyitself accepts for graph nodes). - Never write a graph node's front matter or file content by hand — every graph-mapped write goes through the CLI, so id allocation, the index cache, and the one-way reference guard all stay correct.
Result
Report each required output produced (with its id and/or location), the result (pass / pass_with_risks / blocked / failure), and blocking questions as an explicit list (empty list stated explicitly).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

