Agent skill · Backend & API

code-documentation

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

MoizIbnYousafgithub.com/MoizIbnYousafGitHub ↗
claude-codecodexcursorMIT
Install
npx skills add MoizIbnYousaf/Ai-Agent-Skills --skill code-documentation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 6 KB
Bundled scripts: none
Version: 4.1.0
Path: skills/code-documentation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,114
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Code Documentation ## README Structure ### Standard README Template ```markdown # Project Name Brief description of what this project does. ## Quick Start \`\`\`bash npm install npm run dev \`\`\` ## Installation Detailed installation instructions... ## Usage \`\`\`typescript import { something } from 'project'; // Example usage const result = something.doThing(); \`\`\` ## API Reference ### `functionName(param: Type): ReturnType` Description of what the function does. **Parameters:** - `param` - Description of parameter **Returns:** Description of return value **Example:** \`\`\`typescript const result = functionName('value'); \`\`\` ## Configuration | Option | Type | Default | Description | |--------|------|---------|-------------| | `option1` | `string` | `'default'` | What it does | ## Contributing How to contribute... ## License MIT ``` ## API Documentation ### JSDoc/TSDoc Style ```typescript /** * Creates a new user account. * * @param userData - The user data for account creation * @param options - Optional configuration * @returns The created user object * @throws {ValidationError} If email is invalid * @example * ```ts * const user = await createUser({ * email: 'user@exa

What's inside
Steps it walks through
  1. README Structure
  2. Standard README Template
  3. API Documentation
  4. JSDoc/TSDoc Style
  5. OpenAPI/Swagger
  6. Inline Comments
  7. When to Comment
  8. When NOT to Comment
  9. Architecture Documentation
  10. ADR (Architecture Decision Record)
  11. Component Documentation
  12. Documentation Principles
More from Ai-Agent-Skills
All skills →
About this skill
What does the code-documentation skill do?

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

How do I install it?

Run `npx skills add MoizIbnYousaf/Ai-Agent-Skills --skill code-documentation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From MoizIbnYousaf/Ai-Agent-Skills, a repository with 1,114 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going