agentleFS
ole-techwoodole-techwood/Skills/skills/documentation/SKILL.md

documentation

Skill2 starsChanged 4 months agoMITView on GitHub

Records decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

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

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

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 18

    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:

    Use short paragraphs. Target 1-3 sentences per paragraph.

    line 14
  2. Distinctive:

    Use direct, cut-to-the-chase sentences.

    line 16
  3. Distinctive:

    Prefer structure over verbosity:

    line 20
  4. Distinctive:

    Use bullets for lists, decisions, and acceptance checks

    line 23
  5. Distinctive:

    Keep examples small but complete

    line 24
  6. Distinctive:

    Put dense reference material in tables or checklists

    line 25
  7. Distinctive:

    When compressing text, never compress meaning:

    line 27
  8. Distinctive:

    Keep exact names for APIs, files, commands, error messages, and statuses

    line 29
  9. Distinctive:

    Keep ordering when order matters (especially runbooks and migrations)

    line 30
  10. Distinctive:

    Keep irreversible-action warnings explicit

    line 31
  11. Distinctive:

    Keep links and cross-references to related ADRs/specs

    line 32
  12. Distinctive:

    No fluff, no repeated statements

    line 38
  13. Distinctive:

    No loss of technically important information

    line 39
  14. Distinctive:

    When you find yourself explaining the same thing repeatedly

    line 48
  15. Distinctive:

    When NOT to use: Don't document obvious code.

    line 50
  16. Distinctive:

    Write API docs for fast scanning:

    line 76
  17. Distinctive:

    Start with one-sentence behavior summary

    line 78
  18. Distinctive:

    No ADRs in a project with significant architectural choices

    line 111

“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

Documentation and ADRs

Overview

Document decisions, not just code. The most valuable documentation captures the why — the context, constraints, and trade-offs that led to a decision. Code shows what was built; documentation explains why it was built this way and what alternatives were considered. This context is essential for future humans and agents working in the codebase.

Writing Style (Human-First, No Detail Loss)

Use short paragraphs. Target 1-3 sentences per paragraph.

Use direct, cut-to-the-chase sentences. Put key point first, then constraints and trade-offs.

Preserve all critical details. Do not remove rationale, assumptions, risks, alternatives, constraints, or operational caveats.

Prefer structure over verbosity:

  • One idea per paragraph
  • Use bullets for lists, decisions, and acceptance checks
  • Keep examples small but complete
  • Put dense reference material in tables or checklists

When compressing text, never compress meaning:

  • Keep exact names for APIs, files, commands, error messages, and statuses
  • Keep ordering when order matters (especially runbooks and migrations)
  • Keep irreversible-action warnings explicit
  • Keep links and cross-references to related ADRs/specs

Quality bar for every doc update:

  • Easy to skim in under 60 seconds
  • Enough depth to execute without tribal knowledge
  • No fluff, no repeated statements
  • No loss of technically important information

When to Use

  • Making a significant architectural decision
  • Choosing between competing approaches
  • Adding or changing a public API
  • Shipping a feature that changes user-facing behavior
  • Onboarding new team members (or agents) to the project
  • When you find yourself explaining the same thing repeatedly

When NOT to use: Don't document obvious code. Don't add comments that restate what the code already says. Don't write docs for throwaway prototypes.

Solution Architecture Document

A Solution Architecture Document (SAD) is a detailed blueprint that outlines how a technical system or software application will be built to solve a specific business problem. It bridges the gap between business goals and technical execution by detailing system components, data flows, and technologies.

For detailed SAD guidance, see references/solution.md.

Architecture Decision Records (ADRs)

An Architectural Decision (AD) is a justified design choice that addresses a functional or non-functional requirement that is architecturally significant.

An Architecturally Significant Requirement (ASR) is a requirement that has a measurable effect on the architecture and quality of a software and/or hardware system. An Architectural Decision Record (ADR) captures a single AD and its rationale; Put it simply, ADR can help you understand the reasons for a chosen architectural decision, along with its trade-offs and consequences.

The collection of ADRs created and maintained in a project constitute its decision log. All these are within the topic of Architectural Knowledge Management (AKM), but ADR usage can be extended to design and other decisions (“any decision record”).

For detailed guidance on ADRs, see references/decision.md.

Inline Documentation

For detailed guidance on inline documentation, see references/inline-documentation.md.

API Documentation

For public APIs (REST, GraphQL, library interfaces):

Write API docs for fast scanning:

  • Start with one-sentence behavior summary
  • List required inputs and defaults
  • List outputs and side effects
  • List failure modes and error types
  • Include one minimal real usage example

For detailed API documentation examples, see references/api-documentation.md.

Documentation for Agents

Special consideration for AI agent context:

  • CLAUDE.md / rules files — Document project conventions so agents follow them
  • Spec files — Keep specs updated so agents build the right thing
  • ADRs — Help agents understand why past decisions were made (prevents re-deciding)
  • Inline gotchas — Prevent agents from falling into known traps

Common Rationalizations

RationalizationReality
"The code is self-documenting"Code shows what. It doesn't show why, what alternatives were rejected, or what constraints apply.
"We'll write docs when the API stabilizes"APIs stabilize faster when you document them. The doc is the first test of the design.
"Nobody reads docs"Agents do. Future engineers do. Your 3-months-later self does.
"ADRs are overhead"A 10-minute ADR prevents a 2-hour debate about the same decision six months later.
"Comments get outdated"Comments on why are stable. Comments on what get outdated — that's why you only write the former.

Red Flags

  • Architectural decisions with no written rationale
  • Public APIs with no documentation or types
  • Commented-out code instead of deletion
  • TODO comments that have been there for weeks
  • No ADRs in a project with significant architectural choices
  • Documentation that restates the code instead of explaining intent

Verification

After documenting:

  • ADRs exist for all significant architectural decisions
  • API functions have parameter and return type documentation
  • Known gotchas are documented inline where they matter
  • No commented-out code remains
  • Rules files (CLAUDE.md etc.) are current and accurate
  • Paragraphs are short and skimmable (1-3 sentences)
  • Sentences are direct and cut to the chase
  • No important details were removed during simplification
  • Ordered procedures preserve exact execution order

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.