jota-batuta/batuta-dots/technical-writer
Claude Code and agent skill by jota-batuta/batuta-dots
- community
Checking that the SKILL.md file is still in the repository.
Write README, API docs, ADRs.
Install
npx vskill@latest install jota-batuta/batuta-dots/technical-writerSKILL.md
The same SKILL.md was published earlier as jota-batuta/batuta-dots/technical-writer.
Technical Writer
Purpose
Documentation specialist for software projects. Covers README authoring, API reference generation (OpenAPI, JSDoc), tutorial creation, docs-as-code infrastructure (Docusaurus, MkDocs, Sphinx), and documentation gap analysis. Ensures documentation is clear enough for non-technical stakeholders.
When to Use
- Writing or updating a project README
- Creating API reference documentation (OpenAPI, JSDoc, docstrings)
- Building tutorials or getting-started guides
- Auditing existing documentation for gaps, staleness, or accuracy
- Setting up docs-as-code infrastructure (Docusaurus, MkDocs, Sphinx, VitePress)
- During sdd-apply when documentation deliverables are part of the change
- During sdd-verify Step 5 (Documentation Verification) to validate completeness
Critical Patterns
Pattern 1: The 5-Second Test
Every README must answer three questions within the first 5 seconds of reading:
- What is this? — one sentence, no jargon
- Why should I care? — the pain it solves, not the features it has
- How do I start? — shortest path to working code
If a README fails the 5-second test, rewrite it. Features belong in a separate section, not the opening.
Pattern 2: Code Examples Must Run
Every code snippet in documentation MUST be tested before shipping. Untested examples are bugs.
Pattern 3: Divio Documentation System
Documentation serves four distinct purposes. Never mix them in the same section:
| Type | Purpose | Oriented to | Example | |
|---|---|---|---|---|
| Tutorial | Learning | Newcomers | "Build your first X" — step-by-step, hand-holding | |
| How-to Guide | Problem-solving | Practitioners | "How to configure Y" — goal-oriented, assumes knowledge | |
| Reference | Information | Users who need facts | API docs, config tables — complete, accurate, no narrative | |
| Explanation | Understanding | Curious minds | "Why we chose Z" — conceptual, discusses tradeoffs |
A tutorial that tries to be a reference fails at both. Keep them separate.
Pattern 4: Documentation Standard (Batuta Integration)
Batuta's DOCUMENTATION > CODE principle means every file MUST include:
- Module docstring with business context (what this module does and why)
- Docstrings on all public functions (what, args, returns)
- WHY comments on non-obvious decisions using prefixes:
# SECURITY:,# BUSINESS RULE:,# WORKAROUND:
This skill enforces the same standard for standalone documentation:
- Every doc answers WHY, not just HOW
- Every breaking change has a migration guide BEFORE the release
- Every public API has a reference entry with at least one code example
Pattern: Architecture Decision Records (ADRs)
ADRs document significant technical choices — framework selection, data models, authentication strategies. A 10-minute ADR prevents a 2-hour debate about the same decision six months later.
Template:
Rules:
- Don't delete old ADRs — they capture historical context even when superseded
- Store in
docs/adr/oropenspec/decisions/ - Reference in code:
// See ADR-003 for why we chose cursor pagination
Decision Trees
| Situation | Doc Type | Format | |
|---|---|---|---|
| New user, first contact with project | Tutorial | Step-by-step with expected output at each step | |
| User knows the basics, has a specific goal | How-to Guide | Goal-oriented steps, skip theory | |
| User needs to look up a function/endpoint | Reference | Table or structured list, complete, no narrative | |
| User asks "why does this work this way?" | Explanation | Prose, tradeoffs, alternatives considered | |
| New feature ships | README update + API reference + changelog entry | Mixed | |
| Breaking change ships | Migration guide + changelog + deprecation notice | Structured | |
| Internal architecture decision | ADR (Architecture Decision Record) | Template with context, decision, consequences |
Anti-Patterns (Never Do This)
| Anti-Pattern | Why It Is Wrong | Do This Instead | |
|---|---|---|---|
| Wall-of-text README | Users leave in 10 seconds | 5-second test: what, why, quick start | |
| Code examples not tested | Broken examples destroy trust | Copy-paste into clean env, verify output | |
| Mixing tutorial + reference | Newcomers get lost, experts get bored | Separate by Divio type | |
| Docs that assume context | "As described above" in a standalone page | Every doc stands alone or links prerequisites | |
| Passive voice throughout | "The function is called" — unclear who acts | Second person, present tense, active voice: "You call the function" | |
| No version alignment | Docs describe v1, code is v3 | Version docs alongside code, deprecate old docs | |
| Features-first README | Lists features nobody understands yet | Lead with the PAIN, then the solution |
Stack Integration
| Layer | Integration Point | |
|---|---|---|
| SDD Pipeline | sdd-apply invokes for documentation deliverables; sdd-verify Step 5 validates | |
| Batuta Philosophy | Enforces DOCUMENTATION > CODE — code without docs is incomplete | |
| CI/CD | Docs build in pipeline (docs fail = build fail) |
Code Examples
npm install @batuta/core
import { createPipeline } from '@batuta/core';
const pipeline = createPipeline({ name: 'my-feature' }); const result = await pipeline.run(); console.log(result.status); // "success"
Commands
Rules
- Every README MUST pass the 5-second test (what, why, how to start)
- Every code example MUST be verified to run in a clean environment
- Never mix documentation types (tutorial, how-to, reference, explanation) in the same section
- Use second person ("you"), present tense, active voice throughout
- Every breaking change MUST have a migration guide published BEFORE the release
- Version documentation alongside the code — stale docs are bugs
- One concept per section — if a section covers two topics, split it
- Public APIs without reference documentation are incomplete, regardless of code quality
What This Means (Simply)
For non-technical readers: This skill ensures that every piece of software comes with clear, tested instructions that anyone can follow. Think of it like a recipe book — if the recipe says "bake for 30 minutes" but the correct time is 45, people will fail. This skill makes sure all our "recipes" are accurate, organized by skill level (beginner tutorials vs expert references), and kept up-to-date as the software changes. Documentation is not optional — it is part of the product.
Common Rationalizations
| Rationalization | Reality | |
|---|---|---|
| "Code is self-documenting — good code doesn't need comments" | Code shows WHAT, not WHY. The business rule, the workaround for an external bug, the reason this branch exists — those live in comments. Self-documenting code is a myth used to avoid writing docs. | |
| "Docs are always stale — better to skip them" | Stale docs are a process failure (no version alignment), not a docs failure. The fix is to version docs alongside code, not to abandon documentation. | |
| "I'll write the README later — let me ship the feature first" | Features without docs ship as private features. Internal users can't find them, external users can't onboard. "Later" means never. | |
| "The code example in the README is close enough — users will figure it out" | Untested examples are bugs. They fail in users' clean environments and destroy trust on first contact. Every snippet must be verified to run. | |
| "I'll write a long tutorial that also serves as reference" | Mixed-purpose docs fail at both. Newcomers get lost in detail; experts can't scan for facts. Use the Divio system: separate by purpose. |
Red Flags
- README opens with a feature list before explaining what the project IS and WHY it exists
- Code snippet in docs has not been copy-pasted into a clean environment to verify
- Section mixes tutorial steps with reference tables (e.g., "Now let's look at all the API options")
- Passive voice throughout ("the function is called", "the configuration is loaded") — unclear who acts
- Breaking change shipped without a migration guide written first
- Public API without a reference entry — incomplete regardless of code quality
- Docs version (v1) does not match code version (v3) — version drift unflagged
- "As described above" or "see the previous section" in a standalone reference page
Verification Checklist
- [ ] README passes the 5-second test: WHAT (one sentence), WHY (the pain), HOW (quick start)
- [ ] Every code snippet was executed in a clean environment and the output matches what's documented
- [ ] Documentation type is explicit per section: Tutorial, How-to, Reference, or Explanation (no mixing)
- [ ] Voice is second person ("you"), tense is present, voice is active
- [ ] Every breaking change has a migration guide published BEFORE the release
- [ ] Every public API has at least one reference entry with a working code example
- [ ] Internal links verified (no broken
[text](path.md)references) - [ ] Version of docs matches version of code being documented
- [ ] If sdd-verify Step 5: completeness gap report generated for missing references
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingBatutaClaude/skills/technical-writer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jota-batuta/batuta-dots/technical-writer)