jota-batuta/batuta-dots/technical-writer

Claude Code and agent skill by jota-batuta/batuta-dots

Trust tier 2
  • community
LLM review pending
Source check pending

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-writer

SKILL.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:

  1. What is this? — one sentence, no jargon
  2. Why should I care? — the pain it solves, not the features it has
  3. How do I start? — shortest path to working code
markdown
# ProjectName
> One-sentence description of what this does and why it matters.
## Why This Exists
<!-- 2-3 sentences: the PROBLEM, not features. What pain does this eliminate? -->
## Quick Start
<!-- Shortest path to working. No theory. Install + 3 lines of code + expected output. -->

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.

VERIFICATION:
├── Copy the snippet into a clean environment
├── Run it exactly as written
├── Confirm the output matches what's documented
├── If it fails → fix the example, not the text around it
└── If it requires setup → document the prerequisites BEFORE the snippet
Pattern 3: Divio Documentation System

Documentation serves four distinct purposes. Never mix them in the same section:

TypePurposeOriented toExample
TutorialLearningNewcomers"Build your first X" — step-by-step, hand-holding
How-to GuideProblem-solvingPractitioners"How to configure Y" — goal-oriented, assumes knowledge
ReferenceInformationUsers who need factsAPI docs, config tables — complete, accurate, no narrative
ExplanationUnderstandingCurious 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:

  1. Module docstring with business context (what this module does and why)
  2. Docstrings on all public functions (what, args, returns)
  3. 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:

markdown
# ADR-{number}: {Title}
## Status
Accepted | Superseded by ADR-{N} | Deprecated
## Context
What problem led to this decision?
## Decision
What did we choose and why?
## Alternatives Considered
What did we reject and why?
## Consequences
What are the tradeoffs? What becomes easier or harder?

Rules:

  • Don't delete old ADRs — they capture historical context even when superseded
  • Store in docs/adr/ or openspec/decisions/
  • Reference in code: // See ADR-003 for why we chose cursor pagination

Decision Trees

SituationDoc TypeFormat
New user, first contact with projectTutorialStep-by-step with expected output at each step
User knows the basics, has a specific goalHow-to GuideGoal-oriented steps, skip theory
User needs to look up a function/endpointReferenceTable or structured list, complete, no narrative
User asks "why does this work this way?"ExplanationProse, tradeoffs, alternatives considered
New feature shipsREADME update + API reference + changelog entryMixed
Breaking change shipsMigration guide + changelog + deprecation noticeStructured
Internal architecture decisionADR (Architecture Decision Record)Template with context, decision, consequences

Anti-Patterns (Never Do This)

Anti-PatternWhy It Is WrongDo This Instead
Wall-of-text READMEUsers leave in 10 seconds5-second test: what, why, quick start
Code examples not testedBroken examples destroy trustCopy-paste into clean env, verify output
Mixing tutorial + referenceNewcomers get lost, experts get boredSeparate by Divio type
Docs that assume context"As described above" in a standalone pageEvery doc stands alone or links prerequisites
Passive voice throughout"The function is called" — unclear who actsSecond person, present tense, active voice: "You call the function"
No version alignmentDocs describe v1, code is v3Version docs alongside code, deprecate old docs
Features-first READMELists features nobody understands yetLead with the PAIN, then the solution

Stack Integration

LayerIntegration Point
SDD Pipelinesdd-apply invokes for documentation deliverables; sdd-verify Step 5 validates
Batuta PhilosophyEnforces DOCUMENTATION > CODE — code without docs is incomplete
CI/CDDocs build in pipeline (docs fail = build fail)

Code Examples

markdown
# Example: README Quick Start Section
## Quick Start

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"

markdown
# Example: API Reference Entry
## `createPipeline(options)`
Creates a new SDD pipeline instance.
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `options.name` | `string` | Yes | Change name (kebab-case) |
| `options.autoVerify` | `boolean` | No | Run verification after apply. Default: `true` |
**Returns:** `Pipeline` instance
**Throws:** `InvalidNameError` if name contains spaces or uppercase
**Example:**
\```typescript
const pipeline = createPipeline({ name: 'user-auth' });
\```

Commands

bash
# Audit documentation completeness for a project
grep -rn "^## " README.md | head -20
# Check for broken internal links in markdown
grep -rn "\[.*\](.*\.md)" docs/ | while read line; do
file=$(echo "$line" | grep -oP '\(.*?\.md\)' | tr -d '()');
[ ! -f "docs/$file" ] && echo "BROKEN: $line";
done
# Count undocumented public functions (Python)
grep -rn "^def [^_]" src/ | wc -l # total public functions
grep -rn '"""' src/ | wc -l # approximate docstring count

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

RationalizationReality
"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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jota-batuta/batuta-dots/technical-writer/badge)](https://verified-skill.com/skills/jota-batuta/batuta-dots/technical-writer)

Something wrong with this skill or its page? Tell us.