/d3nexus:doc-lifecyclefrom d3nexus
Orchestrates work whose deliverable is a document rather than code — a runbook, handbook, onboarding guide or set of reference pages. Owns the sequence and the four approval gates connecting doc-brainstorming, doc-designer, doc-implementation and doc_quality_check. Use it when a document spans enough sections to need a breakdown.
Ships in d3nexus. 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.
None: SKILL.md is the whole skill.
The orchestrator for work that ends in a document. It owns sequence and gates only — each stage's how stays in that stage's own skill. If you need to know how to run a stage, open its skill; if you need to know what runs next or what must be true before it does, stay here.
The development-side sibling is dev-lifecycle. The two mirror each other section for section on
purpose: independently maintained orchestrators drift, and a readable diff between these two files
is what makes drift visible.
Announce at start: "I'm using the doc-lifecycle skill to orchestrate the <doc_slug> document."
Every stage is entered by invoking its skill. This file names what runs next; it does not replace it. Reading a stage's description here and then doing that stage's work yourself skips the gate the stage owns.
The threshold is real. Opening gates around a small edit costs more than having no lifecycle at all, because people route around a gate that wastes their time. Edit directly, with no brief, no outline and no gate, when the work is:
decision-records directly.dev-lifecycle no matter how much prose it involves.Reach for this skill when a document has enough sections that a reviewer could accept some and reject others.
flowchart TD
S0["Stage 0 — Inception<br/>(doc-brainstorming)"]
G1{"Gate 1<br/>Spec approved?"}
S1["Stage 1 — Brief & Outline<br/>(doc-designer)"]
G2{"Gate 2<br/>Brief & outline approved?"}
S2["Stage 2 — Drafting<br/>(doc-implementation)"]
G3{"Gate 3<br/>doc_quality_check 🟢?"}
G4{"Gate 4<br/>User sign-off?"}
S3["Stage 3 — Finish Branch<br/>(finishing-a-development-branch)"]
S0 --> G1
G1 -->|no, revise| S0
G1 -->|yes| S1
S1 --> G2
G2 -->|no, revise| S1
G2 -->|yes| S2
S2 --> G3
G3 -->|no, fix findings| S2
G3 -->|yes| G4
G4 -->|no, request changes| S2
G4 -->|yes| S3
Gates 1, 2 and 4 are human approvals; Gate 3 is a machine verdict. Never cross one on your own judgement.
Every durable document produced by this lifecycle MUST be emitted as a synchronized English
.en.md and Vietnamese .vi.md pair. English is canonical; Vietnamese matches its structure and
facts. Every variant MUST contain a linked table of contents covering every ## section, regardless
of document length. The only exception is Kanban task_*.md, which remains English-only.
Every markdown document produced by this lifecycle MUST pass markdown lint standards:
# Title (H1) at the start of the file. Heading levels MUST increment by one (no skipping levels from # to ###). Space after # (# Title, not #Title). No trailing punctuation in headings (., :, ,, ;).bash`, markdown, ````python, mermaid`, dot, ````json). Bare fences without a language are prohibited.- for unordered lists), 2-space or 4-space nested indentation, and blank lines separating list blocks from surrounding paragraphs.#anchor) must match existing headings.All diagrams included in any durable document (spec, brief & outline, drafted guides, reference pages) MUST adhere strictly to the latest modern linting rules:
Mermaid Standards & Lint Rules:
flowchart over graph: ALWAYS use flowchart syntax (e.g. flowchart TD, flowchart LR). NEVER use legacy graph syntax (graph TD, graph LR). graph is legacy Mermaid syntax; flowchart is the current keyword that enables per-subgraph direction control (e.g. direction LR inside a subgraph), richer node shapes, better rendering engines, and styling.(), brackets [], braces {}, colons :, slashes /, ampersands &, or punctuation in double quotes (e.g. node1["Step (Validation)"], gate1{"Gate 1: Approved?"}). Unquoted parentheses or colons break parser AST and trigger linter warnings.end, subgraph, graph, flowchart).-->, -.->, ==>). Quote edge labels containing parentheses or punctuation (A -->|"yes (verified)"| B). Do not append trailing semicolons ; on flowchart lines.end, unique alphanumeric subgraph ID, and a quoted label: subgraph ID ["Label"] ... end.sequenceDiagram with explicit participants, valid arrows (->>, -->>, -), --))), closed blocks, and optional autonumber.stateDiagram-v2 instead of legacy stateDiagram.Graphviz (DOT) Standards & Lint Rules:
writing-skills/graphviz-conventions.dot):
[shape=diamond] for decisions (questions ending in ?).[shape=box] for actions (imperative verbs: "Write guide", "Draft section").[shape=plaintext] for shell commands or literal code.[shape=ellipse] for states or situations.[shape=octagon, style=filled, fillcolor=red, fontcolor=white] for critical warnings (STOP:).[shape=doublecircle] for entry/exit points (Process starts, Process complete).;.digraph, edge operator MUST be -> (NEVER --). Label branches explicitly ([label="yes"], [label="no"]).cluster_.Four, not five. Code and prose differ in ways that change what verification can mean: the unit of work is a section rather than an independently testable deliverable, verification is mechanical checks plus human judgement rather than a machine running tests, the governing constraint is the audience rather than the architecture, and the cost of being wrong is low. Because the cost of being wrong is low, the gate count stays below the development side's five.
| Gate | Name | Approver | Enforced in | Handoff artefact |
|---|---|---|---|---|
| 1 | Spec Approved | User | doc-brainstorming user review gate | <date>-<topic>-design.en.md + .vi.md |
| 2 | Brief & Outline | User | doc-designer breakdown checkpoint | <doc_dir>.en.md + .vi.md + task_*.md |
| 3 | Draft Verified | doc_quality_check | doc-implementation final phase | 🟢 document quality report |
| 4 | Sign-Off | User | doc-implementation review checkpoint | User confirmation to finish the branch |
doc-brainstormingInvoke d3nexus:doc-brainstorming. Do not decide the content yourself: Gate 1 is its user
review gate, and a spec that never passed through it has not cleared the gate.
Entry: any document request that reaches this lifecycle. Exit (Gate 1): the user has approved the content spec.
This stage is not optional. It was, and its skip condition asked whether the content was already known — a question an agent answers yes to essentially always, having just read the request and believed it understood it. The stage is mandatory in its existence and elastic in its depth: "write a runbook for X" still passes through, and its spec may be three sentences. The gate question is not "is the content known?" but "was a spec presented and approved?", which can actually be answered.
doc-designerInvoke d3nexus:doc-designer. Do not write the outline yourself: Gate 2 is its breakdown
checkpoint, and an outline that never passed through it has not cleared the gate.
Entry: an approved Stage 0 spec. Exit (Gate 2): the user has confirmed the outline and the section breakdown.
Produces the audience, exactly one Diátaxis mode, the outline, and one task per section. The
overview's Meta Data carries Kind: document, which records what the work item is for the board
and the archive.
doc-implementationEntry: Gate 2 passed; outline and task_*.md files exist.
Exit (Gate 4): doc_quality_check reports 🟢 (Gate 3) and the user signs off on the draft.
One worktree, one section at a time, one commit per section. Each section commit updates the English canonical document and its Vietnamese translation together. No test suite runs — there is nothing to run. Each section is re-read against its own purpose line in the outline, and on divergence the outline pair is synced before the next section starts.
Gate 3 acceptance criteria. doc_quality_check grants 🟢 only when all four of its checks
pass:
.en.md and .vi.md variants exist; no placeholder text; every internal
link resolves; markdown lint passes (heading hierarchy, language-tagged code blocks, formatting hygiene); mermaid parses and adheres to modern syntax (e.g. flowchart instead of legacy graph, quoted special-character labels); dot/graphviz follows semantic shapes and statement semicolons; fenced samples are syntactically valid; and each variant carries
a complete table of contents linking every ## section, regardless of document length.Acceptance criterion is actually met.finishing-a-development-branchEntry: Gate 4 passed (user confirmed). Exit: the branch is integrated and completed tasks are archived into the document's directory.
The finished document lands where it belongs — docs/, a README, a skill's references/. A
deliverable left inside .devtool/ has not shipped; that directory is a workspace, not a
publication target.
| Gate | On failure, return to |
|---|---|
| 1 | Stage 0 — revise the content spec; re-confirm with the user |
| 2 | Stage 1 — revise the brief or the outline; re-confirm the breakdown |
| 3 | Stage 2 — fix the findings, then re-run doc_quality_check in full |
| 4 | Stage 2 — apply the requested changes |
Never advance on a partial pass, and never re-run only the previously failing check at Gate 3 — the 🟢 verdict must come from a complete run.
Acceptance criterion that is a length, a section count, or "explains X" rather than something
the reader can do..devtool/.graph TD/graph LR), unquoted special-character labels, or malformed Graphviz (DOT) diagrams.task_*.md; task files remain English-only.| Stage | Skill | Gate it enforces |
|---|---|---|
| 0 | doc-brainstorming | 1 |
| 1 | doc-designer | 2 |
| 2 | doc-implementation | triggers 3, enforces 4 |
| 2 (verification) | doc_quality_check | 3 |
| 3 | finishing-a-development-branch | — |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job