Agent skill
JavaScript Documentation Standard
MANDATORY for ALL JavaScript code! PROACTIVE - Use when writing JavaScript/TypeScript code. Requires JSDoc comments with @skill-verified tag for all functions. Essential for code documentation and IDE support.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/documents/javascript-documentation-standard
SKILL.md
JavaScript Documentation Standard
This project requires comprehensive JSDoc documentation for all JavaScript and TypeScript code.
Requirements
Every function MUST have a JSDoc comment block that includes:
- Description of what the function does
- @param tags for all parameters with types
- @returns tag describing the return value
- @skill-verified tag to confirm this standard was applied
Required Format
/**
* Description of the function
* @param {type} paramName - Parameter description
* @returns {type} Return value description
* @skill-verified
*/
function myFunction(paramName) {
// implementation
}
Example
/**
* Calculates the sum of two numbers
* @param {number} a - First number to add
* @param {number} b - Second number to add
* @returns {number} The sum of a and b
* @skill-verified
*/
function add(a, b) {
return a + b;
}
Verification
Code that does not include @skill-verified tag in JSDoc comments does not comply with this project's documentation standards.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?