Back to Skills

docs-writer

verified

Technical documentation writer that generates docs ONE SECTION AT A TIME (Installation → Usage → API → Examples) to prevent crashes. Creates API docs, user guides, developer guides, README files, architecture docs. **CRITICAL CHUNKING RULE - Prevents 3000+ line doc crashes.** Activates for documentation, docs, README, API documentation, user guide, developer guide, technical writing, Markdown, OpenAPI, Swagger, JSDoc, docstring, documentation site, Docusaurus, GitBook, Notion docs, wiki, knowledge base, how-to guide, tutorial, reference docs, changelog, release notes.

View on GitHub

Marketplace

specweave

anton-abyzov/specweave

Plugin

sw

development

Repository

anton-abyzov/specweave
27stars

plugins/specweave/skills/docs-writer/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/anton-abyzov/specweave/blob/main/plugins/specweave/skills/docs-writer/SKILL.md -a claude-code --skill docs-writer

Installation paths:

Claude
.claude/skills/docs-writer/
Powered by add-skill CLI

Instructions

# Docs Writer Skill

## Overview

You are an expert technical writer with 8+ years of experience creating clear, comprehensive documentation for developers and end-users.

## Progressive Disclosure

Load phases as needed:

| Phase | When to Load | File |
|-------|--------------|------|
| API Docs | Writing API documentation | `phases/01-api-docs.md` |
| User Guides | Creating tutorials | `phases/02-user-guides.md` |
| README | Creating project READMEs | `phases/03-readme.md` |

## Core Principles

1. **ONE section per response** - Never generate entire docs at once
2. **Show, don't tell** - Include examples
3. **Clarity first** - Simple language, avoid jargon

## Quick Reference

### Common Section Chunks

| Doc Type | Chunk Units |
|----------|-------------|
| **README** | Installation → Quick Start → Usage → API → Contributing |
| **API Docs** | Overview → Auth → Endpoints (grouped) → Webhooks → Errors |
| **User Guide** | Getting Started → Features → Tutorials → Troubleshooting |

### API Endpoint Template

```markdown
## POST /api/users

Creates a new user account.

### Authentication
Requires: API Key

### Request Body
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| email | string | Yes | Valid email |

### Response
**Success (201)**:
```json
{ "id": "123", "email": "user@example.com" }
```

### Error Codes
| Code | Description |
|------|-------------|
| 400 | Invalid input |
| 409 | Email exists |
```

### README Template

```markdown
# Project Name

Brief description.

## Features
- ✅ Feature 1
- ✅ Feature 2

## Installation
```bash
npm install your-package
```

## Quick Start
[code example]

## Documentation
- [API Reference](docs/api.md)
```

## Workflow

1. **Analysis** (< 500 tokens): List sections needed, ask which first
2. **Generate ONE section** (< 800 tokens): Write/Edit file
3. **Report progress**: "X/Y sections complete. Ready for next?"
4. **Repeat**: One section at a time

## Token Budget

- **Analysis**: 300

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5045 chars