Agent skill
Global Commenting
Write purposeful code comments that explain the "why" behind technical decisions, complex logic, and non-obvious implementations using JSDoc for components and APIs. Use this skill when documenting component props, explaining complex algorithms, noting performance optimizations, documenting workarounds, or adding API documentation. When working on component prop interfaces requiring JSDoc documentation, complex business logic or algorithms, performance optimization rationale, browser compatibility workarounds or hacks, API route documentation with request/response formats, configuration file explanations, Content Collection schema documentation, or regex patterns and what they match.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/global-commenting-spaceplushy-portfolio-08dc31b8
SKILL.md
Global Commenting
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global commenting.
When to use this skill
- When documenting component props with JSDoc (@prop, @param annotations)
- When explaining complex algorithms, business logic, or non-obvious implementation choices
- When documenting performance optimizations and the rationale behind them
- When noting browser compatibility issues or workarounds for bugs
- When documenting API routes with request/response format specifications
- When explaining Content Collection Zod schemas and validation constraints
- When clarifying regex patterns and what they're designed to match
- When documenting configuration files (astro.config.mjs, tailwind.config.mjs)
- When adding file-level documentation headers for complex components or utilities
- When explaining technical debt, TODOs, or future refactoring needs
- Avoiding commenting obvious code, change history (use git), or commented-out code blocks
Instructions
For details, refer to the information provided in this file: global commenting
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?