agentsclimarketplace

Documentation

Skill DevelopersGlobal/ai-agent-skills/skills/documentation

AI agent skills for production grade applications

Install
npx -y skills add DevelopersGlobal/ai-agent-skills --skill documentation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Document decisions, not just implementations. ADRs for architectural choices, inline docs for non-obvious code, and runbooks for operational knowledge.

SKILL.md

3.0 KB, as published. Nobody here has run it

Overview

Code explains what. Documentation explains why. The most valuable documentation records decisions that aren't obvious from reading the code: why this architecture, why this tradeoff, why not the obvious alternative.

When to Use

  • After any significant architectural decision
  • Before complex code that future maintainers will question
  • When an operational procedure isn't self-evident
  • When a non-obvious tradeoff was made

Process

Step 1: Architectural Decision Records (ADRs)

For every significant architectural decision:

  1. Write an ADR with:
    • Context: What was the situation requiring a decision?
    • Decision: What was decided?
    • Alternatives considered: What else was evaluated and why rejected?
    • Consequences: What are the positive and negative consequences?
    • Status: Proposed | Accepted | Deprecated | Superseded
  2. Store ADRs in docs/decisions/ as numbered markdown files.

Verify: Every significant decision in the last sprint has an ADR.

Step 2: Code-Level Documentation

  1. Document the WHY, not the WHAT:
    • // Using exponential backoff here — the payment API has strict rate limits (3 req/sec)
    • // Retry the request
  2. Document non-obvious algorithmic choices.
  3. Document external constraints (rate limits, API quirks, platform limitations).
  4. Remove comments that state the obvious — they add noise.

Verify: Every non-obvious code block has a "why" comment.

Step 3: Runbooks

  1. For every production process that humans execute, write a runbook:
    • When is this runbook used?
    • What steps to execute?
    • What does "done" look like?
    • What could go wrong and how to recover?
  2. Runbooks live in docs/runbooks/.

Verify: Every on-call alert has a linked runbook.

Step 4: README Currency

  1. README reflects current state (not v1 state).
  2. Setup instructions work on a fresh machine.
  3. Architecture diagram updated after significant changes.

Common Rationalizations (and Rebuttals)

ExcuseRebuttal
"The code is self-documenting"Code says what; documentation says why. Both are needed.
"I'll document it later"The context in your head right now is irreplaceable. Write it now.
"Docs go stale"Outdated docs are better than no docs. Update when you touch the code.

Verification

  • ADRs written for significant architectural decisions
  • Non-obvious code blocks have "why" comments
  • Every production alert has a linked runbook
  • README is current and setup instructions work

References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.