agentleFS
hellobrophyhellobrophy/claude-skills/code-documentation/SKILL.md

code-documentation

Skill0 starsChanged 8 months agoMITView on GitHub

Generates comprehensive code documentation following JSDoc standards. Use when writing documentation, adding docstrings, or documenting APIs.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use data-analysis, changelog-generator and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

  • ArogyaReddySkill

    changelog-generator

    Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When asked to document code:

    line 10
  2. Distinctive:

    Use JSDoc format for JavaScript/TypeScript

    line 12
  3. Distinctive:

    Write descriptions that explain the "why," not just the "what"

    line 14
  4. Distinctive:

    Add @throws annotations for functions that can throw

    line 15
  5. Very specific:

    When the codebase uses TypeScript, omit JSDoc type annotations ({number}, {string}, etc.) — the types are already in the signature.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Documentation Skill

Instructions

When asked to document code:

  1. Use JSDoc format for JavaScript/TypeScript
  2. Include @param, @returns, and @example tags
  3. Write descriptions that explain the "why," not just the "what"
  4. Add @throws annotations for functions that can throw

TypeScript projects

When the codebase uses TypeScript, omit JSDoc type annotations ({number}, {string}, etc.) — the types are already in the signature. Keep only the descriptions:

/**
 * Calculates the discounted price based on a percentage reduction.
 * Useful for applying promotional discounts at checkout.
 *
 * @param price - Original price before discount
 * @param percentage - Discount percentage (0-100)
 * @returns The price after applying the discount
 * @example
 * calculateDiscount(100, 20) // Returns 80
 */
function calculateDiscount(price: number, percentage: number): number {
  return price * (1 - percentage / 100);
}

JavaScript projects

Include full JSDoc type annotations when there is no TypeScript:

/**
 * Calculates the discounted price based on a percentage reduction.
 * Useful for applying promotional discounts at checkout.
 *
 * @param {number} price - Original price before discount
 * @param {number} percentage - Discount percentage (0-100)
 * @returns {number} The price after applying the discount
 * @example
 * calculateDiscount(100, 20) // Returns 80
 */
function calculateDiscount(price, percentage) {
  return price * (1 - percentage / 100);
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.