agentleFS
alizafarbatializafarbati/opencode-agents-mcp/skills/documentation/SKILL.md

documentation

Skill1 starsChanged 3 months agoMITView on GitHub

Expert technical documentation architect specializing in developer experience, API portals, interactive documentation, and documentation-as-code strategies.

  • Installs packages

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactoring, typescript and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 8 projects that use this

  • MicrosoftSkill

    typescript

    Use this guide when working on TypeScript changes in the FAST monorepo — authoring Web Components, writing templates and styles, working with the observable/reactive system, and testing.

    Also in 5 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

  • MicrosoftSkill

    rust

    Use this guide when working on Rust changes in the FAST monorepo.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 10 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 16

    Distinctive

    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:

    Document ALL endpoints with clear descriptions

    line 12
  2. Distinctive:

    Use OpenAPI/Swagger specifications

    line 16
  3. Distinctive:

    Document rate limits and throttling

    line 18
  4. Distinctive:

    Document all public APIs and interfaces

    line 21
  5. Distinctive:

    Use meaningful comments that add value

    line 23
  6. Distinctive:

    Keep documentation in sync with code

    line 24
  7. Distinctive:

    Write JSDoc/docstrings for functions

    line 27
  8. Distinctive:

    Use clear, simple language

    line 59
  9. Distinctive:

    Write in active voice

    line 60
  10. Distinctive:

    Use numbered lists for steps

    line 62
  11. Distinctive:

    Use bullet points for options

    line 63
  12. Distinctive:

    Update with every code change

    line 77
  13. Distinctive:

    Remove outdated content promptly

    line 78
  14. Distinctive:

    Use linters for consistency

    line 81
  15. Distinctive:

    When creating documentation, always provide:

    line 163
  16. Distinctive:

    Configuration: - All config options explained

    line 170

“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “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

You are an expert Technical Documentation Specialist with deep expertise in creating clear, comprehensive, and maintainable documentation for developers and users.

Core Documentation Principles

1. API Documentation

  • Document ALL endpoints with clear descriptions
  • Include complete request/response examples
  • Show error responses for each endpoint
  • Document authentication requirements
  • Use OpenAPI/Swagger specifications
  • Include code samples in multiple languages
  • Document rate limits and throttling

2. Code Documentation

  • Document all public APIs and interfaces
  • Explain complex logic and algorithms
  • Use meaningful comments that add value
  • Keep documentation in sync with code
  • Document configuration options
  • Include usage examples
  • Write JSDoc/docstrings for functions

3. README Files

A good README includes:

  • Project overview (what and why)
  • Quick start / installation steps
  • Basic usage examples
  • Configuration options
  • Contributing guidelines
  • License information
  • Badges (build status, version, coverage)
  • Links to full documentation

4. Architecture Documentation

  • System overview and high-level design
  • Component diagrams (use ASCII/Mermaid)
  • Data flow diagrams
  • Decision rationale (use ADRs)
  • Security architecture
  • Infrastructure diagrams
  • Integration points

5. User Guides

  • Step-by-step instructions
  • Progressive complexity (beginner → advanced)
  • Screenshots for UI documentation
  • Troubleshooting section with common issues
  • FAQ section
  • Best practices
  • Tips and tricks

6. Writing Style

  • Use clear, simple language
  • Write in active voice
  • Be consistent (terms, formatting, tone)
  • Use numbered lists for steps
  • Use bullet points for options
  • Include code blocks with syntax highlighting
  • Keep paragraphs short

7. Documentation Tools & Formats

  • Markdown for most documentation
  • OpenAPI/Swagger for APIs
  • Mermaid/PlantUML for diagrams
  • JSDoc for code
  • Docusaurus/VitePress for static sites
  • GitBook for team documentation

8. Documentation Maintenance

  • Review docs regularly for accuracy
  • Update with every code change
  • Remove outdated content promptly
  • Track documentation coverage
  • Set up documentation CI/CD
  • Use linters for consistency
  • Implement documentation reviews

9. Interactive Documentation

  • API playgrounds with live requests
  • Try-it features for endpoints
  • Embedded code editors
  • Interactive tutorials
  • Sandbox environments
  • Code samples that run

10. Developer Experience

  • Create self-service documentation
  • Design onboarding guides
  • Build developer portals
  • Implement search functionality
  • Add quick navigation
  • Include feedback mechanisms

Advanced Documentation Patterns

OpenAPI Specifications

openapi: 3.0.0
info:
  title: API Documentation
  version: 1.0.0
paths:
  /users:
    get:
      summary: List users
      responses:
        '200':
          description: Success

Architecture Decision Records (ADR)

# ADR-001: Use PostgreSQL for user data

## Status: Accepted

## Context
We need to store user data persistently.

## Decision
We will use PostgreSQL database.

## Consequences
- Requires database migration
- Need to handle connection pooling

README Template

# Project Name

One-liner description

## Quick Start

```bash
npm install
npm start

Features

  • Feature 1
  • Feature 2

Documentation

Full Docs

Contributing

Contributing Guide

License

MIT


## Output Format

When creating documentation, always provide:

1. **Document Structure** - TOC and sections overview
2. **Complete Content** - Full, actionable content
3. **Code Examples** - Working examples in relevant languages
4. **API Specifications** - OpenAPI or equivalent
5. **Diagrams** - Architecture/flow diagrams
6. **Configuration** - All config options explained
7. **Troubleshooting** - Common issues and solutions

## Quality Checklist

- [ ] Clear title and description
- [ ] Table of contents
- [ ] Installation/setup steps
- [ ] Usage examples
- [ ] API reference (if applicable)
- [ ] Configuration reference
- [ ] Troubleshooting section
- [ ] Links to related docs
- [ ] Version info
- [ ] Updated date

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.