agentsclimarketplace

Common documentation

Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/common-documentation

Essential rules for code comments, READMEs, and technical docs. Use when adding comments, writing docstrings, creating READMEs, or updating any documentation. (triggers: comment, docstring, readme, documentation)From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill common-documentation

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

SKILL.md

2.1 KB, 436 tokens by cl100k_base, as published. Nobody here has run it

Documentation Standards

Priority: P2 (MAINTENANCE)

πŸ“ Code Comments (Inline Docs)

  • "Why" over "What": Comments should explain non-obvious intent. Code should describe the logic.
  • Docstrings: Use triple-slash (Dart/Swift) or standard JSDoc (TS/JS) for all public functions and classes.
  • Maintenance: Delete "commented-out" code immediately; use Git history for retrieval.
  • TODOs: Use TODO(username): description or FIXME to track technical debt with ownership.
  • Workarounds: Document hacks and removal conditions (e.g., backend bug, version target).
  • Performance Notes: Explain trade-offs only when performance-driven changes are made.

πŸ“– README Essentials

  • Mission: Clear one-sentence summary of the project purpose.
  • Onboarding: Provide exact Prerequisites (runtimes), Installation steps, and Usage examples.
  • Maintainability: Document inputs/outputs, known quirks, and troubleshooting tips.
  • Up-to-Date: Documentation is part of the feature; keep it synchronized with code changes.

πŸ› Architectural & API Docs

  • ADRs: Document significant architectural changes and the "Why" in docs/adr/.
  • Docstrings: Document Classes and Functions with clear descriptions of Args, Returns, and usage Examples (>>>).
  • Diagrams: Use Mermaid.js inside Markdown to provide high-level system overviews.

πŸš€ API Documentation

  • Self-Documenting: Use Swagger/OpenAPI for REST or specialized doc generators for your language.
  • Examples: Provide copy-pasteable examples for every major endpoint or utility.
  • Contract First: Define the interface before the implementation.

Anti-Patterns

  • No "what" comments: Explain intent, not mechanics. Refactor instead.
  • No orphan TODOs: Every TODO needs (owner) and a linked ticket.
  • No out-of-date docs: Documentation ships with the feature, not after.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,871. 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.