Agent skill

docs-write

Write or update documentation (tutorial, how-to, reference, explanation) with clear style, structure, visuals, API/ADR/runbook patterns. Use when: (1) Creating or updating docs after code changes, (2) During PR preparation or addressing review feedback, (3) Adding new features that need documentation, (4) Updating API endpoints, database schemas, or configuration, (5) Creating ADRs or runbooks, (6) Adding or updating diagrams and visual documentation, (7) When documentation needs to be written or revised, (8) For tutorial creation, how-to guides, or technical writing, or (9) For documentation standards compliance and structure. Triggers: write docs, update documentation, create documentation, write tutorial, document API, write ADR, create runbook, add documentation, document this, write how-to.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/LukasStrickler/ai-dev-atelier/tree/main/content/skills/docs-write

Metadata

Additional technical details for this skill

author
ai-dev-atelier
version
1.0

SKILL.md

Docs Write

Quick Checklist

  • Audience and doc type (tutorial/how-to/reference/explanation)
  • Clear style, active voice, consistent terms
  • Structure: headings, skimmable, examples first
  • Include visuals when helpful (mermaid inline; puml when reused)
  • API: auth, requests/responses, errors, breaking changes
  • ADR/runbook: context, decision/steps, rollback, contacts
  • Cross-links and filenames; run docs-check after edits

Workflow

Writing Documentation

IMPORTANT: Before writing documentation, read references/documentation-guide.md to understand all standards, patterns, and requirements. Do not make assumptions about documentation style, structure, or content - always reference the guide for specific details.

  1. Read the full guide first: Load references/documentation-guide.md to understand complete documentation standards

    • This ensures you have all context about style, structure, doc types, and examples
    • Do not proceed with writing until the guide is loaded in context
  2. Determine doc type: Read references/documentation-guide.md section "Doc Types (Divio)" to choose tutorial, how-to, reference, or explanation

    • Tutorial: Learning-oriented, step-by-step for beginners
    • How-to: Goal-oriented, task-focused
    • Reference: Fact-oriented, API/technical details
    • Explanation: Understanding-oriented, concepts and context
  3. Review style guidelines: Read references/documentation-guide.md sections:

    • "Style and Voice" - Active voice, clear language, consistent terminology
    • "Structure and Skimmability" - Headings, examples first, clear organization
    • Reference the guide for exact formatting, terminology, and style requirements
  4. Draft content: Use the checklist above, include code examples, and follow the structure guidelines from the guide

  5. Add visuals if needed: Read references/documentation-guide.md section "Visuals and Diagrams"

    • Use Mermaid for inline diagrams (ER diagrams, sequence diagrams)
    • Use PlantUML (.puml files) for diagrams referenced from multiple docs
    • See examples in the guide for exact syntax - do not guess
    • Use look_at to interpret screenshots or diagrams before documenting
    • Use ui_to_artifact for a starter code snippet from a mockup
  6. For API documentation: Read references/documentation-guide.md section "API Documentation"

    • Document authentication, request/response formats, error codes
    • Include examples for all endpoints (see guide for format)
    • Document breaking changes prominently
  7. For ADRs/Runbooks: Read references/documentation-guide.md section "ADRs and Runbooks"

    • ADRs: Context, decision, consequences
    • Runbooks: Steps, rollback procedures, contacts
    • Follow exact templates from the guide
  8. Review and finalize: Read references/documentation-guide.md section "Templates and Checklists"

    • Verify all checklist items are addressed
    • Add cross-references to related documentation
    • Ensure consistent terminology (check guide for exact terms)
  9. Verify: Run bash skills/docs-check/scripts/check-docs.sh to ensure documentation is complete

Reference Files

REQUIRED: Always read references/documentation-guide.md before writing documentation. The guide contains all standards, examples, and requirements. Do not make assumptions - load the guide and reference specific sections.

Read these sections from references/documentation-guide.md as needed:

  • Style and Voice (#style-and-voice) - Writing style, active voice, terminology
  • Structure and Skimmability (#structure-and-skimmability) - Organization, headings, examples
  • Doc Types (Divio) (#doc-types-divio) - Tutorial, how-to, reference, explanation types
  • API Documentation (#api-documentation) - API docs patterns, examples, error handling
  • ADRs and Runbooks (#adrs-and-runbooks) - Decision records and operational procedures
  • Visuals and Diagrams (#visuals-and-diagrams) - Mermaid and PlantUML usage
  • Templates and Checklists (#templates-and-checklists) - Documentation checklists
  • When to Document (#when-to-document) - What changes require documentation

Full guide: references/documentation-guide.md - Complete documentation standards and best practices

Integration with Other Skills

  • Use after ada::docs:check flags required updates.
  • Combine with ada::code-review outcomes to address documentation feedback.
  • Run ada::code-quality after docs updates if code touched.

Examples

  • New feature: choose how-to; add overview, steps, examples, and links; add diagram if complex.
  • API change: document auth, requests/responses, errors, breaking changes; link to workflows.
  • Schema change: update schema doc and ER diagram; link from API/feature docs if impacted.

Expand your agent's capabilities with these related and highly-rated skills.

LukasStrickler/ai-dev-atelier

resolve-pr-comments

Resolve bot review comments (CodeRabbit, Copilot, Gemini) on GitHub PRs using subagents. Use when: (1) User asks to 'review PR comments' or 'resolve PR comments', (2) User says 'work through PR N comments' or 'handle bot comments', (3) Need to triage CodeRabbit/Copilot/Gemini review comments, (4) Processing PR feedback at scale, (5) Want to see what's already fixed vs still pending. NOT for: creating PRs, reviewing code yourself, writing new reviews. Triggers: review PR comments, resolve PR comments, work through PR comments, handle bot comments, process CodeRabbit comments, triage PR feedback, fix PR review issues, resolve bot comments, pr comment resolver.

2 0
Explore
LukasStrickler/ai-dev-atelier

tdd

Strict Red-Green-Refactor workflow for robust, self-documenting code. Discovers project test setup via codebase exploration before assuming frameworks. Use when: (1) Implementing new features with test-first approach, (2) Fixing bugs with reproduction tests, (3) Refactoring existing code with test safety net, (4) Adding tests to legacy code, (5) Ensuring code quality before committing, (6) When tests exist but workflow unclear, or (7) When establishing testing practices in a new project. Triggers: test, tdd, red-green-refactor, failing test, test first, test-driven, write tests, add tests, run tests.

2 0
Explore
LukasStrickler/ai-dev-atelier

use-graphite

Manage stacked PRs with Graphite CLI (gt) instead of git push/gh pr create. Auto-detects Graphite repos and blocks conflicting commands with helpful alternatives. Use when: (1) About to run git push or gh pr create in a Graphite repo, (2) Creating a new branch for a feature, (3) Submitting code for review, (4) Large changes that should be split into reviewable chunks, (5) Hook blocks your git command and suggests gt equivalent. NOT for: repos not initialized with Graphite, git add/commit/status/log. Triggers: git push blocked, gh pr create blocked, create branch, submit PR, stacked PRs, split large PR, gt create, gt submit, graphite workflow.

2 0
Explore
LukasStrickler/ai-dev-atelier

git-commit

Write clear git commits with Conventional Commits format. Detects project conventions from history and config. Guides commit granularity. Use when: (1) Completing working code, (2) Code builds and tests pass, (3) Ready to save, (4) Before pushing, (5) After review feedback. Triggers: automatically when finishing commitable work that builds and passes tests.

2 0
Explore
LukasStrickler/ai-dev-atelier

code-review

Review code changes using CodeRabbit CLI - supports uncommitted files (task mode) or all PR files vs main branch (pr mode). Catches bugs, security issues, and code quality problems before committing or when reviewing pull requests. Use when: (1) Reviewing uncommitted changes before committing (task mode), (2) Reviewing all changed files in a PR against main branch (pr mode), (3) Working on subtasks and want to check progress, (4) Need feedback on work-in-progress code, (5) Preparing PR for merge, (6) When CodeRabbit review is needed, (7) For bug detection and security scanning, or (8) For automated code quality assessment. Triggers: review code, check code quality, review changes, code review, review PR, check for bugs, security scan, review uncommitted, finalize code, pre-commit review.

2 0
Explore
LukasStrickler/ai-dev-atelier

image-generation

Generate, edit, and upscale AI images. Use when creating visual assets for apps, websites, or documentation. FREE Cloudflare tier for iterate generation (~96/day), Fal.ai for paid tiers. Four quality tiers (iterate/default/premium/max). Supports text specialists, multi-ref editing, SVG, background removal. Triggers: generate image, create image, edit image, upscale, logo, picture of, remove background.

2 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results