agentleFS
jamestorrevillasjamestorrevillas/dev-skills/.github/skills/doc-creation/SKILL.md

doc-creation

Skill4 starsChanged 9 months agoMITView on GitHub

Use this skill when creating technical documentation, architecture docs, runbooks, READMEs, API references, changelogs, or any structured technical writing. Trigger on keywords: documentation, docs, README, runbook, architecture doc, technical writing, write a guide, document this, API reference, changelog, how-to guide.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write docs to be machine-readable as well as human-readable:

    line 160

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Technical Documentation

Documentation Philosophy

Write for the reader who is in a hurry and under stress.

Good documentation answers the question before the reader finishes asking it. Every doc should have a clear audience and a clear job to do.


Documentation Types & When to Use Each

TypePurposeWhen to Write
READMEProject overview + quickstartEvery project, day 1
Architecture DocHow the system is designed and whyBefore building complex systems
RunbookStep-by-step operational proceduresFor anything ops needs to do repeatedly
API ReferenceEndpoint contractsWhen exposing an API to others
ADRWhy a significant decision was madeAfter every major technical decision
ChangelogWhat changed between versionsEvery release
How-To GuideTask-oriented instructionsWhen users need to do a specific thing

README Template

# [Project Name]

One-sentence description of what this does and why it exists.

## Prerequisites
- [Dependency 1] v[X.X]
- [Dependency 2]

## Getting Started
\`\`\`bash
# Clone and install
git clone [repo]
cd [project]
npm install

# Configure
cp .env.example .env
# Edit .env with your values

# Run
npm run dev
\`\`\`

## Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| DATABASE_URL | Yes | PostgreSQL connection string |
| JWT_SECRET | Yes | Secret for JWT signing |

## Architecture
[Brief overview or link to architecture doc]

## Testing
\`\`\`bash
npm test              # Unit tests
npm run test:e2e      # End-to-end tests
\`\`\`

## Deployment
[How to deploy or link to runbook]

## Contributing
[How to contribute or link to guide]

Architecture Document Structure

# Architecture: [System/Feature Name]

## Overview
[2-3 sentences: what this does and why it exists]

## Goals & Non-Goals
**Goals:** [what this system is designed to achieve]
**Non-Goals:** [what it explicitly does NOT cover]

## Architecture Diagram
[ASCII diagram or Mermaid diagram]

## Components
### [Component 1]
- **Responsibility:** [what it does]
- **Interface:** [how others interact with it]
- **Dependencies:** [what it needs]

## Data Flow
[How data moves through the system for key use cases]

## Key Decisions
[Link to ADRs or inline rationale for major choices]

## Known Limitations
[Honest description of current constraints]

Runbook Template

# Runbook: [Operation Name]

**When to use:** [Trigger condition]
**Time required:** ~[X minutes]
**Who can run this:** [Role/permission needed]

## Prerequisites
- [ ] Access to [system]
- [ ] [Tool] installed

## Steps
1. [First action — be specific, include exact commands]
   \`\`\`bash
   [exact command]
   \`\`\`
   Expected output: [what success looks like]

2. [Next step]

## Verification
[How to confirm the operation succeeded]

## Rollback
[If something goes wrong, how to undo]

## Escalation
If stuck after [X minutes]: contact [person/team]

Writing Style Guidelines

  • Active voice — "The system sends a notification" not "A notification is sent"
  • Present tense — "The function returns..." not "The function will return..."
  • Specific — "Run npm install" not "Install dependencies"
  • Short sentences — one idea per sentence
  • Examples — show, don't just tell
  • Maintain it — outdated docs are worse than no docs. Update docs in the same PR as code changes.

AI-Optimized Documentation (for RAG systems)

Write docs to be machine-readable as well as human-readable:

  • Consistent terminology throughout
  • Each section is self-contained (can be read without other sections)
  • Include explicit labels: "Purpose:", "When to use:", "Example:"
  • Modular structure — individual chunks make sense in isolation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.