tsdoc
Skill0 starsChanged 5 months agoMITView on GitHub
Write or fix doc comments in TypeScript using TSDoc conventions. Use when adding JSDoc/docblocks to .ts files, cleaning up AI-generated or wordy comments, documenting interfaces/types/functions, or when a comment uses @property or {Type} annotations that should be TSDoc instead.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- catesandrew/skillstheir own version, first seen Nov 1, 2026
- bm629/agent-skillstheir own version, first seen Aug 21, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- bm629/agent-skills★ 2same name
- catesandrew/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectureSkill
- code-reviewSkill
- debugSkill
- dep-auditSkill
- deploy-checklistSkill
- documentationSkill
- end-agent-sessionSkill
- incident-responseSkill
- likec4-dslSkill
- load-agentSkill
- manual-testSkill
- market-scanSkill
- new-agentSkill
- new-goal-loopSkill
- nexus-microSkill
- nexusSkill
- nexus-sprintSkill
- orchestration-cost-policySkill
- persona-forgeSkill
- project-onboardSkill
- prompt-refinerSkill
- public-readinessSkill
- release-prepSkill
- render-mermaidSkill
- secrets-syncSkill
- standupSkill
- system-designSkill
- tech-debtSkill
- testing-strategySkill
- tmux-session-captureSkill
- web-ui-automation-componentsSkill
- web-ui-automation-surveySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Write TypeScript doc comments the way the TS toolchain actually reads them.
- Very specific: line 32
One doc comment per declaration: Put a / ... */ on the interface/type/ function/class and on every member -- not a single @property block …
- Very specific: line 93
Diff first: if the file was already touched (git diff -- <file>).
- Distinctive: line 99
Don't touch types or logic.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/tsdoc
Write TypeScript doc comments the way the TS toolchain actually reads them.
Why TSDoc, not classic JSDoc
In a .ts codebase the things that consume doc comments are:
- The IDE (VS Code, IntelliJ) via the TypeScript language server. It shows the doc comment attached to each declaration on hover.
- TypeDoc, the standard TS doc-site generator. Same model -- per-declaration TSDoc comments.
Neither reads @property tags in an interface header, and both ignore the
{Type} in @param {Type} name -- TypeScript already has the type. The only
tool that reads @property/{Type} is the legacy jsdoc CLI, which TS projects
don't use. So a tidy consolidated @property header documents nothing the IDE
will ever show on the member you hover.
Rules
- One doc comment per declaration. Put a
/** ... */on the interface/type/ function/class and on every member -- not a single@propertyblock in the header. Member hover only shows the comment on that member. - No
@propertytags. Replace them with a/** */above each field. - No
{Type}annotations anywhere (@param,@returns, members). TS supplies the type; the brace form is redundant and ignored. - Methods/functions:
@param name - descriptionand@returns description. Hyphen after the param name, no brace types. - Cross-reference with
{@link Symbol}or{@link Symbol.member}-- TSDoc-native, clickable in-IDE and in TypeDoc. - Lead with substance. First sentence says what it is and any non-obvious
invariant (e.g. "exactly one of
a/bis set"). Cut generic filler like "Represents a structure that encapsulates...". - ASCII only (repo convention):
--not em dash,->not arrow, straight quotes. - Optional tags when they earn their place:
@see,@example,@defaultValue,@deprecated. Skip@interface/@typedef-- TS infers the kind.
Convert: before -> after
Wordy / classic-JSDoc header (does not surface on member hover):
/**
* Represents the capabilities of a surface, indicating the operations
* that are permitted for the surface.
* @interface
* @property {boolean} read - Indicates if reading is allowed.
* @property {boolean} write - Indicates if writing is allowed.
*/
export interface SurfaceCaps {
read: boolean;
write: boolean;
}Proper TSDoc (each member documents itself):
/** Capability flags advertising which operations a surface permits. */
export interface SurfaceCaps {
/** The surface can read/fetch items. */
read: boolean;
/** The surface can persist items. */
write: boolean;
}Method, TSDoc form:
/**
* Fetch and build the canonical item for `ref`.
*
* @param ref - Reference (typically from {@link SourceSurface.list}) to read.
* @returns The neutral-interchange payload for the item.
*/
read(ref: ItemRef): Promise<CanonicalItem>;Workflow
- Diff first if the file was already touched (
git diff -- <file>). AI tools and the JetBrains "Write Documentation" intention often overwrite good comments with generic prose -- recover the substance from the-lines before rewriting. - Apply the rules above, member by member.
- Verify clean: get IDE diagnostics for the file (no broken
{@link}targets, no syntax errors). Build (tsc) stays green -- comments don't change types. - Don't touch types or logic. Docs only.
Enforcing it (optional)
To catch malformed TSDoc on lint, add eslint-plugin-tsdoc and enable
tsdoc/syntax. Only suggest this if the user wants the convention enforced
repo-wide -- it flags syntax, not coverage.
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
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.

