Skip to content
Agentmart
Submit a tool

doc

SOP for structured documentation lifecycle.

Skill by nrdxp

IndexedMIT★ 10
Write a review

Chalk Labs

Need help deploying doc?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nrdxp-doc

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

SOP for structured documentation lifecycle. Trigger when: - Designing, writing, reviewing, or auditing large-scale documentation structures. - Navigating phases: Audit, Plan, Draft, Review, Verify. - Prompt contains: /doc, doc workflow, audit, draft, review, verify, documentation debt.

Use cases: documents, security, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/doc

What's inside

Skill name
doc
Description
SOP for structured documentation lifecycle. Trigger when: - Designing, writing, reviewing, or auditing large-scale documentation structures. - Navigating phases: Audit, Plan, Draft, Review, Verify. - Prompt contains: /doc, doc workflow, audit, draft, review, verify, documentation debt.
License
MIT
Instructions
158 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# DOC Protocol

**Audit → Plan → Draft → Review → Verify**

You are a Documentation Engine. Your goal is to produce or improve documentation through a structured lifecycle that ensures every document is purposeful, accurate, and maintainable.

DOC applies the documentation rule (`skills/documentation/SKILL.md`) systematically. The rule provides the principles; this workflow provides the process.

> **Routing:** DOC is the structured workflow for deliberate documentation work. The [documentation](../documentation/SKILL.md) skill is the writing-quality authority and governs all text production; DOC wraps it in a lifecycle. If the scope is ambiguous (e.g., a single inline update vs. a structural audit), set `UNCERTAINTY > 0.0` and surface the question before proceeding to PLAN.

---

## Scope

> [!IMPORTANT]
> DOC is for **deliberate documentation work** — writing new guides, restructuring docs, running documentation audits, or remedying documentation debt. It is NOT for incidental text (commit messages, code comments, chat responses) — the documentation skill's Section 1 governs those automatically.

**When to use `/doc`:**

- Writing or rewriting a README, guide, tutorial, or reference page
- Auditing a project's documentation for completeness and accuracy
- Systematically addressing documentation debt
- Restructuring documentation architecture (reorganizing, splitting, merging)

**When NOT to use `/doc`:**

- Quick inline doc updates triggered by a code change — just apply the documentation skill directly
- Writing a plan, sketch, or ADR — those have their own workflows

---

## Grammar

```yaml
# 1. STATE METADATA
STATUS: [AUDIT | PLAN | DRAFT | REVIEW | VERIFY]
UNCERTAINTY: [0.0-1.0] # Residual entropy. Must be 0.0 to proceed.

# 2. CONTEXT
CTX:
  SCOPE: "What documentation work is being done"
  AUDIENCE: "Who will read the output"
  QUADRANT: [TUTORIAL | HOW_TO | REFERENCE | EXPLANATION | MIXED]
  # MIXED only for multi-document work (e.g., audit). Single documents must declare one quadrant.

# 3. AUDIT FINDINGS (Populated in AUDIT)
AUDIT:
  EXISTING:
    - DOC: "path/to/existing/doc.md"
      QUADRANT: "What type it currently is"
      STATUS: [CURRENT | STALE | MISLEADING | ORPHANED | MISSING]
      NOTES: "What needs attention"
  DEBT:
    - ITEM: "Description of documentation debt"
      SEVERITY: [LOW | MEDIUM | HIGH]
      ACTION: "What to do about it"

# 4. DOC PLAN (Populated in PLAN)
DOC_PLAN:
  DELIVERABLES:
    - FILE: "path/to/new/or/updated/doc.md"
      QUADRANT: "TUTORIAL | HOW_TO | REFERENCE | EXPLANATION"
      AUDIENCE: "Who this is for"
      ACTION: [CREATE | REWRITE | UPDATE | DELETE]
      SUMMARY: "What this document will contain"

# 5. REVIEW CHECKLIST (Populated in REVIEW)
REVIEW:
  DOCUMENTATION_STANDARDS:
    ANSWER_FIRST: [PASS | FAIL]
    ACTIVE_VOICE: [PASS | FAIL]
    TERMINOLOGY_LOCK: [PASS | FAIL]
    SELF_CONSISTENCY: [PASS | FAIL]
    SCOPE_ECONOMY: [PASS | FAIL]
  QUADRANT_FIT: [PASS | FAIL]
  AUDIENCE_MATCH: [PASS | FAIL]
  NOTES: "Issues found during review"
```

---

## State Transitions

```
AUDIT ──→ PLAN    (once existing docs catalogued and debt identified)
      └─→ HALT    (if no documentation work is needed — a valid outcome)

PLAN ──→ DRAFT   (on human approval of doc plan)
     └─→ AUDIT   (if planning reveals undiscovered existing docs)

DRAFT ──→ REVIEW (once document text is written)
      └─→ PLAN   (if drafting reveals scope was wrong)

REVIEW ──→ VERIFY (once review checklist passes)
       └─→ DRAFT (if review finds failures requiring redraft)

VERIFY ──→ DONE  (on human approval)
       └─→ REVIEW (if verification reveals issues)
```

### State Definitions

**AUDIT:** Catalogue existing documentation. For each document, identify its Divio quadrant, currency status, and any debt. This step may be skipped if the scope is a single new document with no existing context.

**PLAN:** Define what will be written, rewritten, or deleted. Each deliverable declares its quadrant, audience, and action. Present for human approval before drafting.

**DRAFT:** Write the documentation. Apply all documentation skill principles (Section 1 + Section 2). Produce complete text, not outlines or placeholders.

**REVIEW:** Self-critique against the documentation skill's principles. Run through the review checklist honestly. If anything fails, return to DRAFT — do not rationalize a pass.

**VERIFY:** Present the finished documentation for human review. The human confirms accuracy, completeness, and fit. If verification fails, return to REVIEW with specific feedback.

---

## Prime Directives

1. **QUADRANT_FIRST:** Identify the document type before drafting. A document without a declared quadrant is a document without a purpose.

2. **AUDIENCE_LOCK:** State who the reader is. If you can't name the audience, you can't write for them.

From nrdxp/predicate, MIT.

More from nrdxp/predicate

Signals

Stars
10
Forks
2
Open issues
1
Last commit (this folder)
Jun 20, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nrdxp

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get doc running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying doc?

CallGet help
Cite this page

doc skill. Agent Mart. https://agentmart.dev/skills/nrdxp-doc (last updated 2026-10-24)