Documentation
Safe documentation-only workflow. Edit markdown files without touching application source code, configs, or infrastructure. Applies Agent(content-writer) for all writing tasks.
**⚠️ CONSTRAINT: This workflow NEVER modifies source code (*.java, *.ts, *.tsx, .py, .go), configs (.yaml, .yml, .json), infrastructure (.tf, Dockerfile, Helm), or dependency files (pom.xml, package.json, requirements.txt).
1. Define Scope
Ask the user (or extract from parent workflow):
- What documentation? (technical docs, API reference, README, PRD, design doc, ADR, blog post, release notes, UI copy)
- Content type:
- Internal (technical docs, design docs, ADRs) →
Agent(content-writer) only
- Public-facing (blog, landing page, marketing) →
Agent(content-writer) + Agent(seo-engineer)
- Action: Create new / update existing / restructure
- Target files: Which
.md files will be affected
2. Apply Roles
| Content Type |
Primary Role |
Additional Role |
| Technical documentation |
Agent(content-writer) |
— |
| API reference |
Agent(content-writer) |
Stack-specific role for accuracy |
| Blog / landing page content |
Agent(content-writer) |
Agent(seo-engineer) |
| PRD / acceptance criteria |
Agent(product-manager) |
— |
| Architecture / ADR |
Agent(solution-architect) |
— |
| Release notes |
Agent(content-writer) |
— |
| UI microcopy |
Agent(content-writer) |
Agent(frontend-engineer) for context |
| Page content (landing, product) |
Agent(content-designer) |
Agent(seo-engineer), Agent(ui-ux-designer) |
3. Gather Context
Before writing:
- Read project's
CLAUDE.md — terminology, conventions, tech stack
- Read existing docs — understand structure, tone, terminology already in use
- Identify Diátaxis mode — Tutorial, How-to, Reference, or Explanation
- Check related code (read-only) — verify technical accuracy of claims
4. Write Content
Follow Agent(content-writer) standards:
- Diátaxis framework for documentation structure
- English only unless explicitly requested otherwise
- Progressive disclosure — overview first, details on demand
- Tested examples — all code snippets must be accurate
- Consistent terminology — match existing project conventions
For Blog / Public Content
Additionally apply @humanizer skill — scan for and remove AI writing patterns. Then follow Agent(seo-engineer) standards:
- Title tag: Descriptive, matches search intent
- Meta description: Compelling summary
- Heading hierarchy: One H1, logical H2→H3 flow
- Internal links: Descriptive anchor text to related content
- Images: Descriptive alt text
- Structured data: Article/BlogPosting schema (JSON-LD) where applicable
- No keyword stuffing — write for users, not crawlers
5. Verify
For Public Content — Humanization Checklist
For Public Content — SEO Checklist
6. Summary
## Documentation Summary
- **Type**: [technical docs / blog / API reference / release notes / etc.]
- **Content mode**: [Tutorial / How-to / Reference / Explanation]
- **Files changed**:
- [file1.md]: [created/updated — what changed]
- [file2.md]: [created/updated — what changed]
- **Role(s) applied**: [Agent(content-writer), Agent(seo-engineer) if public]
- **SEO review**: [pass / N/A for internal docs]
- **Verification**: [links valid, formatting correct, no code files modified]
- **Next steps**: [if any]
Integration
- Roles:
Agent(content-writer) (primary), Agent(seo-engineer) (public-facing content), Agent(product-manager) (PRDs)
- Skills:
@humanizer (AI writing pattern removal for public-facing content)
- Rules:
humanize-content (auto-enforces humanizer pass)
- Follow-up:
/seo-review (for public content), /pre-commit, /create-pr
- Related:
/feature-dev (inline docs during development), /release (release notes)
1---2name: docs-83description: Documentation workflow — edit markdown docs, technical writing, blog content, release notes without touching source code. Applies Content Writer role. Includes SEO review branch for public-facing content.4---5
6# Documentation
7
8Safe documentation-only workflow. Edit markdown files without touching application source code, configs, or infrastructure. Applies `Agent(content-writer)` for all writing tasks.
9
10**⚠️ CONSTRAINT: This workflow NEVER modifies source code (*.java, *.ts, *.tsx, *.py, *.go), configs (*.yaml, *.yml, *.json), infrastructure (*.tf, Dockerfile, Helm), or dependency files (pom.xml, package.json, requirements.txt).**
11
12## 1. Define Scope
13
14Ask the user (or extract from parent workflow):
15
16- **What documentation?** (technical docs, API reference, README, PRD, design doc, ADR, blog post, release notes, UI copy)
17- **Content type**:
18 - **Internal** (technical docs, design docs, ADRs) → `Agent(content-writer)` only
19 - **Public-facing** (blog, landing page, marketing) → `Agent(content-writer)` + `Agent(seo-engineer)`
20- **Action**: Create new / update existing / restructure
21- **Target files**: Which `.md` files will be affected
22
23## 2. Apply Roles
24
25| Content Type | Primary Role | Additional Role |
26|---|---|---|
27| Technical documentation | `Agent(content-writer)` | — |
28| API reference | `Agent(content-writer)` | Stack-specific role for accuracy |
29| Blog / landing page content | `Agent(content-writer)` | `Agent(seo-engineer)` |
30| PRD / acceptance criteria | `Agent(product-manager)` | — |
31| Architecture / ADR | `Agent(solution-architect)` | — |
32| Release notes | `Agent(content-writer)` | — |
33| UI microcopy | `Agent(content-writer)` | `Agent(frontend-engineer)` for context |
34| Page content (landing, product) | `Agent(content-designer)` | `Agent(seo-engineer)`, `Agent(ui-ux-designer)` |
35
36## 3. Gather Context
37
38Before writing:
39
401. **Read project's `CLAUDE.md`** — terminology, conventions, tech stack
412. **Read existing docs** — understand structure, tone, terminology already in use
423. **Identify Diátaxis mode** — Tutorial, How-to, Reference, or Explanation
434. **Check related code** (read-only) — verify technical accuracy of claims
44
45## 4. Write Content
46
47Follow `Agent(content-writer)` standards:
48
49- **Diátaxis framework** for documentation structure
50- **English only** unless explicitly requested otherwise
51- **Progressive disclosure** — overview first, details on demand
52- **Tested examples** — all code snippets must be accurate
53- **Consistent terminology** — match existing project conventions
54
55### For Blog / Public Content
56
57Additionally apply `@humanizer` skill — scan for and remove AI writing patterns. Then follow `Agent(seo-engineer)` standards:
58
59- **Title tag**: Descriptive, matches search intent
60- **Meta description**: Compelling summary
61- **Heading hierarchy**: One H1, logical H2→H3 flow
62- **Internal links**: Descriptive anchor text to related content
63- **Images**: Descriptive alt text
64- **Structured data**: Article/BlogPosting schema (JSON-LD) where applicable
65- **No keyword stuffing** — write for users, not crawlers
66
67## 5. Verify
68
69- [ ] All internal links are valid (no broken references)
70- [ ] Code examples are accurate and match current implementation
71- [ ] Terminology is consistent with project conventions
72- [ ] Formatting follows existing documentation patterns
73- [ ] No secrets, PII, or internal-only information in public content
74- [ ] No source code, config, or infrastructure files were modified
75
76### For Public Content — Humanization Checklist
77
78- [ ] Text scanned for AI writing patterns (`@humanizer` skill)
79- [ ] Anti-AI audit performed for text longer than 2 paragraphs
80- [ ] Text sounds natural when read aloud
81
82### For Public Content — SEO Checklist
83
84- [ ] Title and meta description present and unique
85- [ ] Heading hierarchy is logical (H1→H2→H3)
86- [ ] Internal links with descriptive anchors added
87- [ ] Images have alt text
88- [ ] Page is indexable (no accidental noindex)
89- [ ] Canonical URL is correct
90- [ ] Structured data validates (Rich Results Test)
91
92## 6. Summary
93
94```
95## Documentation Summary
96- **Type**: [technical docs / blog / API reference / release notes / etc.]
97- **Content mode**: [Tutorial / How-to / Reference / Explanation]
98- **Files changed**:
99 - [file1.md]: [created/updated — what changed]
100 - [file2.md]: [created/updated — what changed]
101- **Role(s) applied**: [Agent(content-writer), Agent(seo-engineer) if public]
102- **SEO review**: [pass / N/A for internal docs]
103- **Verification**: [links valid, formatting correct, no code files modified]
104- **Next steps**: [if any]
105```
106
107## Integration
108
109- **Roles**: `Agent(content-writer)` (primary), `Agent(seo-engineer)` (public-facing content), `Agent(product-manager)` (PRDs)
110- **Skills**: `@humanizer` (AI writing pattern removal for public-facing content)
111- **Rules**: `humanize-content` (auto-enforces humanizer pass)
112- **Follow-up**: `/seo-review` (for public content), `/pre-commit`, `/create-pr`
113- **Related**: `/feature-dev` (inline docs during development), `/release` (release notes)