Skip to content
Development
Skill

/common-documentation

Write effective code comments, READMEs, and technical documentation following intent-first principles. Use when adding comments, writing docstrings, creating READMEs, or updating any documentation.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-documentation --agent claude-code

SKILL.md

common-documentation.SKILL.md
name: common-documentation
description: Write effective code comments, READMEs, and technical documentation following intent-first principles. Use when adding comments, writing docstrings, creating READMEs, or updating any documentation.
metadata:
  triggers:
    keywords:
    - comment
    - docstring
    - readme
    - documentation

Documentation Standards

**Priority: P2 (MEDIUM)**

1. Intent-First Comments

  • Explain **"Why"** logic exists. Avoid "What" mechanics.
  • Use triple-slash (Dart/Swift) or JSDoc (TS/JS) for public members.
  • Delete commented-out code. Use Git history.
  • Format: `TODO(username): description`. Link tickets.
  • For retry backoff, explain that jitter prevents the **thundering herd**; document intent rather than restating the delay calculation.

2. README Structure

  • **Mission**: Project purpose (one sentence).
  • **Onboarding**: Prerequisites, installation, usage (exact).
  • **Maintenance**: Document inputs/outputs, known quirks, fixes.
  • **Sync**: Documentation ships with feature.

3. ADRs & Architecture

  • **ADRs**: Document rationale for system changes in `docs/adr/`.
  • **Docstrings**: Include Args, Returns, and Usage examples (`>>>`).
  • **Diagrams**: Use Mermaid.js inside Markdown.

4. API Docs

  • Use Swagger/OpenAPI for REST.
  • Provide copy-pasteable examples for endpoints.
  • Define contract before implementation.

Anti-Patterns

  • **No "what" comments**: Explain intent. Refactor mechanics.
  • **No orphan TODOs**: Require owner and ticket.
  • **No stale docs**: Document during development.
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills13d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react4d252k
@facebook@facebookInstall Skill

Questions about common-documentation.

Which coding agents can use common-documentation?
common-documentation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.