Documentation guidelines

From thienanblog/awesome-ai-agent-skills · View interactive version

Documentation guidelines is an AI agent skill from the GitHub repository thienanblog/awesome-ai-agent-skills. Create, audit, or consolidate durable project documentation, including feature rules, contracts, workflows, and runbooks. Use when documentation is the main deliverable; routine code changes can update their owning docs directly.

How to use this skill

Skill file

Documentation Guidelines

Capture durable meaning that code alone does not explain: business intent, ownership, invariants, permissions, contracts, and operational decisions. Let source and tests own implementation details and executable evidence.

Delegation

Run in the main conversation by default. Delegation can increase usage: obtain explicit approval for the proposed agent count and scope before using subagents. Reuse that approval within its bounds; ask again before expanding the approved count or scope.

Find the owner and evidence

Read the relevant documentation index and owner when present, then verify affected facts against source, tests, schemas, configuration, and runtime evidence. Follow links needed to understand the changed contract; stop when further reading no longer affects the result. Missing or stale documentation is a reason to inspect source, not a prerequisite that blocks work.

For the scope at hand, identify applicable actors, triggers, rules, state transitions, inputs/outputs, side effects, failure paths, ownership, and compatibility requirements. Omit irrelevant categories; record unresolved material facts without inventing them.

Change docs when durable meaning changes

| Change | Documentation action |

|---|---|

| Internal refactor, formatting, or fix restoring documented behavior | Update only affected paths or evidence anchors, if any |

| User behavior, business rule, or workflow | Update its existing owner |

| API, schema, permissions, events, or compatibility | Update the contract and affected consumer mappings |

| Setup, migration, deployment, backup, or recovery | Update the owning runbook |

| Entity renamed, moved, or removed | Repair discovery routes and stale references |

| Duplicate or contradictory docs | Preserve valid facts in one owner, repair links, then remove stale copies within scope |

Avoid docs changes that merely record task activity. Keep transient plans, command logs, and CI output in the task, PR, or an existing evidence surface unless they represent a durable operating requirement.

Write for discovery and maintenance

Read templates.md for the document type, architecture.md for multi-owner structure, or audit-cleanup.md for consolidation.

Verify and report

Trace discovery from the existing entrypoint to the updated owner. Check links, identifiers, commands, evidence anchors, and any affected consumer contracts. Search for contradictory copies and old names. Run focused doc or generation validators plus applicable required gates; application tests are warranted only if the change affects executable behavior or their contract.

Report the durable facts changed, important removals or consolidations, verification, and remaining gaps.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.