document-it
What this skill does
This skill creates, maintains, and reviews explanatory architecture guides — in Markdown, a Claude
Artifact, or both — from already-available, sufficient, and current understanding. It is
independently callable: a documentation request does not require a fresh investigation to begin.
| User intention |
Result |
| Document existing architecture |
A new guide (Markdown, Artifact, or both) |
| Reconcile a guide with verified changed reality |
An updated existing guide |
| Evaluate whether a guide is complete |
A findings report, not a rewrite |
Evidence: reuse first, route to lab-it only when needed
Before writing or updating anything, establish whether currently available understanding is
sufficient and current:
- Sufficient, current evidence already exists — from this conversation, a recent
investigation, or evidence directly verifiable against the real system right now. Use it
directly. Don't repeat a full investigation just because a documentation workflow is starting.
- Evidence is missing or stale. Route the relevant investigation through
lab-it's canonical
investigation method (its "Shared investigation and decision discipline") rather than
duplicating that method here. Once lab-it returns verified findings, resume the documentation
workflow.
This distinction determines the entry point, not the destination: the result is always a guide, or
a review of one — never a plan.md. An approved plan.md stays lab-it's output regardless of
which skill performed the underlying investigation; file extension does not decide ownership.
Format selection
For a new guide, ask the user whether they want an Artifact, Markdown, or both — unless
they've already specified. Don't infer the format from context. See rules/authoring.md for the
Artifact/Markdown mechanics, the docs/ location default, and how to handle unavailable
publishing capability.
Document existing architecture
Triggered by a user request for a new guide — an existing guide for this capability does not
block an explicit request for another; that's a separate, deliberate choice the user is entitled
to make, not an error condition. Route: establish sufficient current evidence (reuse, or route to
lab-it) → recap and obtain confirmation → decide structure from the architectural center of
gravity → write in the confirmed format(s) → publish/save → run rules/review.md. See
rules/authoring.md for the full procedure, including the mandatory recap-and-confirm gate before
anything is published or saved.
Update an existing guide
Use this workflow when a published guide needs reconciling with verified current reality —
triggered by a stale architectural claim, a stale evidence reference, changed configuration or
runtime behavior, or a prior documentation defect, not only a changed implementation. See
rules/authoring.md for locating the target, the three missing/inaccessible/unavailable-tooling
situations, and identity preservation. rules/maintenance.md governs every judgment call once the
target is confirmed reachable — read it before making any edit.
Maintaining both formats
When a guide is maintained in both Markdown and Artifact:
- Keep architectural claims synchronized across both on an update, unless the user explicitly
requests otherwise for that update.
- Format-appropriate presentation, not identical rendering. Use
rules/review.md for both —
one shared checklist, with a handful of items that apply to only one medium (favicon/URL checks
apply to Artifact only; a link-integrity/structure check applies to Markdown only).
- Keep the association between the two outputs discoverable through a minimal cross-reference
each carries to the other's location — not a registry, and nothing beyond that is required.
- Report precisely which outputs changed, and name any remaining divergence, rather than
reporting a single "done." State the reason, and distinguish two different cases: a publication
failure (e.g., the Markdown update succeeds but the Artifact can't be reached) versus the user
explicitly limiting this update to one format. The second is authorized divergence, not a
defect — report which output changed, which the user chose to leave as-is, and don't claim the
untouched one is current.
Review a guide
Run rules/review.md against the actual published or saved guide — Artifact, Markdown, or both —
any time you're asked to evaluate whether a guide is complete or still architecturally misleading,
independent of whether you also just wrote or updated it. See rules/review.md for the full
checklist and its medium-conditional items.
Ownership and handoff
This skill owns:
- creating new architecture guides, in Markdown, Artifact, or both;
- maintaining and reconciling existing guides with verified current reality;
- reviewing a guide for architectural completeness.
This skill does not own:
- investigation from scratch when understanding is missing or stale (→
lab-it);
- architecture decisions reached with the user, or
plan.md synthesis (→ lab-it — file
extension does not decide ownership: an approved plan.md stays lab-it's even though it is a
.md file);
- application implementation;
- debugging or diff review;
- API reference documentation;
- feature classification and issue decomposition;
- GitHub issue mutation;
- delivery sequencing;
- Git workflow.
Rule and supporting-file routing
These are loaded only when their workflow needs them — none is a universal prerequisite:
- format selection, new-guide creation, existing-guide update →
rules/authoring.md
- guide writing (Markdown and Artifact) →
rules/doc-style.md
- Artifact scaffold →
rules/template.html
- guide review →
rules/review.md
- guide maintenance →
rules/maintenance.md
Output-specific non-negotiables
- Explain architecture, not implementation: why it exists, why it's shaped that way, and — where
extension is relevant — how it can be extended. Code blocks exist only at genuine extension
seams, never a walkthrough of a whole method body.
- When a real line exists between reusable infrastructure and integration-specific code, make it
explicit in whatever structure the guide already uses — never a mandated section or table.
- Explain runtime ownership and lifecycle wherever the system has either — don't invent one for a
capability with no runtime story.
- Ground material architectural claims in concrete evidence or enforcement references when an
identifiable mechanism exists; never force a misleading one.
- No API documentation, no endpoint inventories, no line-by-line implementation walkthroughs, no
duplicated explanations across sections.
- Not every guide needs a limitations section. When limitations or deferred work materially affect
understanding, state the reason rather than adding a generic TODO list.
- A guide is never done until it has passed a
rules/review.md pass — writing and reviewing are
two separate steps.
1---2name: document-it3description: Creates, updates, and reviews explanatory architecture guides in Markdown, a Claude Artifact, or both — reusing sufficient, current, verified understanding already available, and routing to lab-it's investigation method only when evidence is missing or stale. Trigger to document existing architecture, update an existing guide, or review a guide's completeness. Not for debugging or reviewing a diff. Not for investigating a system from scratch, resolving architecture decisions for a proposed feature, or synthesizing plan.md — those stay with lab-it.4---56# document-it78## What this skill does910This skill creates, maintains, and reviews explanatory architecture guides — in Markdown, a Claude11Artifact, or both — from already-available, sufficient, and current understanding. It is12independently callable: a documentation request does not require a fresh investigation to begin.1314| User intention | Result |15| --------------------------------------------------- | ------------------------------------------------ |16| Document existing architecture | A new guide (Markdown, Artifact, or both) |17| Reconcile a guide with verified changed reality | An updated existing guide |18| Evaluate whether a guide is complete | A findings report, not a rewrite |1920## Evidence: reuse first, route to `lab-it` only when needed2122Before writing or updating anything, establish whether currently available understanding is23sufficient and current:2425- **Sufficient, current evidence already exists** — from this conversation, a recent26 investigation, or evidence directly verifiable against the real system right now. Use it27 directly. Don't repeat a full investigation just because a documentation workflow is starting.28- **Evidence is missing or stale.** Route the relevant investigation through `lab-it`'s canonical29 investigation method (its "Shared investigation and decision discipline") rather than30 duplicating that method here. Once `lab-it` returns verified findings, resume the documentation31 workflow.3233This distinction determines the entry point, not the destination: the result is always a guide, or34a review of one — never a `plan.md`. An approved `plan.md` stays `lab-it`'s output regardless of35which skill performed the underlying investigation; file extension does not decide ownership.3637## Format selection3839For a **new guide**, ask the user whether they want an Artifact, Markdown, or both — unless40they've already specified. Don't infer the format from context. See `rules/authoring.md` for the41Artifact/Markdown mechanics, the `docs/` location default, and how to handle unavailable42publishing capability.4344## Document existing architecture4546Triggered by a user request for a new guide — an existing guide for this capability does not47block an explicit request for another; that's a separate, deliberate choice the user is entitled48to make, not an error condition. Route: establish sufficient current evidence (reuse, or route to49`lab-it`) → recap and obtain confirmation → decide structure from the architectural center of50gravity → write in the confirmed format(s) → publish/save → run `rules/review.md`. See51`rules/authoring.md` for the full procedure, including the mandatory recap-and-confirm gate before52anything is published or saved.5354## Update an existing guide5556Use this workflow when a published guide needs reconciling with verified current reality —57triggered by a stale architectural claim, a stale evidence reference, changed configuration or58runtime behavior, or a prior documentation defect, not only a changed implementation. See59`rules/authoring.md` for locating the target, the three missing/inaccessible/unavailable-tooling60situations, and identity preservation. `rules/maintenance.md` governs every judgment call once the61target is confirmed reachable — read it before making any edit.6263## Maintaining both formats6465When a guide is maintained in both Markdown and Artifact:6667- **Keep architectural claims synchronized** across both on an update, unless the user explicitly68 requests otherwise for that update.69- **Format-appropriate presentation, not identical rendering.** Use `rules/review.md` for both —70 one shared checklist, with a handful of items that apply to only one medium (favicon/URL checks71 apply to Artifact only; a link-integrity/structure check applies to Markdown only).72- **Keep the association between the two outputs discoverable** through a minimal cross-reference73 each carries to the other's location — not a registry, and nothing beyond that is required.74- **Report precisely which outputs changed**, and name any remaining divergence, rather than75 reporting a single "done." State the reason, and distinguish two different cases: a publication76 failure (e.g., the Markdown update succeeds but the Artifact can't be reached) versus the user77 explicitly limiting this update to one format. The second is authorized divergence, not a78 defect — report which output changed, which the user chose to leave as-is, and don't claim the79 untouched one is current.8081## Review a guide8283Run `rules/review.md` against the actual published or saved guide — Artifact, Markdown, or both —84any time you're asked to evaluate whether a guide is complete or still architecturally misleading,85independent of whether you also just wrote or updated it. See `rules/review.md` for the full86checklist and its medium-conditional items.8788## Ownership and handoff8990This skill owns:9192- creating new architecture guides, in Markdown, Artifact, or both;93- maintaining and reconciling existing guides with verified current reality;94- reviewing a guide for architectural completeness.9596This skill does not own:9798- investigation from scratch when understanding is missing or stale (→ `lab-it`);99- architecture decisions reached with the user, or `plan.md` synthesis (→ `lab-it` — file100 extension does not decide ownership: an approved `plan.md` stays `lab-it`'s even though it is a101 `.md` file);102- application implementation;103- debugging or diff review;104- API reference documentation;105- feature classification and issue decomposition;106- GitHub issue mutation;107- delivery sequencing;108- Git workflow.109110## Rule and supporting-file routing111112These are loaded only when their workflow needs them — none is a universal prerequisite:113114- format selection, new-guide creation, existing-guide update → `rules/authoring.md`115- guide writing (Markdown and Artifact) → `rules/doc-style.md`116- Artifact scaffold → `rules/template.html`117- guide review → `rules/review.md`118- guide maintenance → `rules/maintenance.md`119120## Output-specific non-negotiables121122- Explain architecture, not implementation: why it exists, why it's shaped that way, and — where123 extension is relevant — how it can be extended. Code blocks exist only at genuine extension124 seams, never a walkthrough of a whole method body.125- When a real line exists between reusable infrastructure and integration-specific code, make it126 explicit in whatever structure the guide already uses — never a mandated section or table.127- Explain runtime ownership and lifecycle wherever the system has either — don't invent one for a128 capability with no runtime story.129- Ground material architectural claims in concrete evidence or enforcement references when an130 identifiable mechanism exists; never force a misleading one.131- No API documentation, no endpoint inventories, no line-by-line implementation walkthroughs, no132 duplicated explanations across sections.133- Not every guide needs a limitations section. When limitations or deferred work materially affect134 understanding, state the reason rather than adding a generic TODO list.135- A guide is never done until it has passed a `rules/review.md` pass — writing and reviewing are136 two separate steps.