xiaohongshu
xiaohongshu
jsdoc
Guidelines for writing minimal, high-quality JSDoc comments in TypeScript.
Full skill instructions
This skill provides simple, focused guidelines for writing JSDoc comments in TypeScript codebases.
@default, @example, @note)Write inline JSDoc comments directly above properties, focusing on what the option does rather than repeating type information.
export type Options = {
/**
* Brief description of what this property does.
* @default 'defaultValue'
*/
propertyName?: string
}
| Tag | Purpose | Example |
|---|---|---|
@default | Default value | @default 'dist' |
@example | Usage example | @example serverIndex: 0 |
@note | Important caveat | @note May change in v2 |
@deprecated | Mark as deprecated | @deprecated Use newOption instead |
| Tag | Purpose | Example |
|---|---|---|
@see | Reference docs | @see https://example.com/docs |
@internal | Internal API | @internal |
@beta | Experimental | @beta |
@param - Use TypeScript parameters@returns - Use TypeScript return type@type - Use TypeScript type annotation@typedef - Use type or interface/** Output directory for generated files. */
outDir?: string
/**
* Set a suffix for generated files.
* @default 'generated'
*/
suffix?: string
/**
* Choose output format.
* - 'type' generates type aliases
* - 'interface' generates interfaces
* @default 'type'
*/
format?: 'type' | 'interface'
/**
* Server index to use.
* @example
* - `0` returns production URL
* - `1` returns development URL
*/
serverIndex?: number
transformers?: {
/** Customize file names. */
name?: (name: string) => string
/** Customize output paths. */
path?: (path: string) => string
}
Only add JSDoc when it adds value beyond the signature:
// ✅ No JSDoc needed - signature is clear
function camelCase(str: string): string {
return str.replace(/-./g, x => x[1].toUpperCase())
}
// ✅ JSDoc adds value - explains behavior
/**
* Convert path to template string.
* @example /api/{id} => `/api/${id}`
*/
function toTemplate(path: string): string {
// implementation
}
✅ DO:
@default for default values@example for complex or non-obvious usage@note for version info or important caveats❌ DON'T:
@param or @returns tagsFor consistency, use this tag order:
@default (if applicable)@example (if helpful)@note (if needed)@deprecated (if applicable)@see (if providing references)| Skill | Use For |
|---|---|
| ../documentation/SKILL.md | Writing markdown documentation files |
| ../coding-style/SKILL.md | General coding conventions |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience