agentleFS
stijnvanhullestijnvanhulle/agents/.agents/skills/jsdoc/SKILL.md

jsdoc

Skill2 starsChanged 54 days agoMITView on GitHub

Writes or reviews TypeScript JSDoc comments with the house format, tags, ordering, and @example styles. Use when adding or checking doc comments on exports, options, or public APIs, or when asked to document a TypeScript file.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    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:

    Write doc comments that say what a member does, in a shape TypeScript does not already give.

    line 11
  2. Very specific:

    Never @param, @returns, @type, or @typedef: they repeat the signature.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 3 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

JSDoc

Write doc comments that say what a member does, in a shape TypeScript does not already give.

1. Decide whether a member needs one

Comment an exported type, property, or function only when the comment adds what the name and signature do not. Skip the ones whose name says it all.

2. Write the description

Say what the member does, not its type, in full sentences. Always use a multi-line /** ... */ block with the description on its own line, and expand any one-line block. For a default, an enum, nested properties, or a function, follow the pattern in references/examples.md.

3. Add tags, in this order

  1. Description
  2. A bullet list of variants or behaviors, if any
  3. @default, only for a non-obvious default. Never @default false, and never @default undefined, which ? already implies
  4. @example, one concern per example, for complex or multi-variant APIs
  5. @note, for a caveat such as version info or a breaking change
  6. @deprecated, with the migration path
  7. @see. Use @internal and @beta sparingly

Never @param, @returns, @type, or @typedef: they repeat the signature. Put that information in the type itself.

Output

The doc comments in the file, or one line saying nothing needed one. For a review: one bullet per member, its name and what is missing or wrong.

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.