skills/art-of-comment/SKILL.md
Guide for editing existing and writing inline comments and JSDoc. Use when generating comments for documenting new components or functions, non-obvious code behaviour, or complex logic.
npx skillsauth add rakaadi/agent-kit art-of-commentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Every comment should earn its place. A good comment adds context the code alone cannot convey: why a decision was made, what trade-off was accepted, what side effect or constraint matters, or how a non-obvious piece fits the bigger picture. A comment that merely restates the code is noise and adds maintenance burden. When in doubt, prefer no comment over a redundant one.
/** ... */ when hover documentation would help a caller understand purpose, important parameters, return semantics, side effects, or usage constraints.Read the example file that matches the kind of comment you are writing or reviewing.
example-inline-comment-triage.md — Inline comment keep/remove decisions, duplicate comments, and trade-off comments. Read when deciding whether an inline comment earns its place.example-reusable-interface-docs.md — Reusable interface JSDoc that documents the caller-facing contract without leaking internals. Read when writing declaration-level docs for shared symbols.example-evidence-backed-comments.md — Evidence-backed workaround and compatibility comments. Read when documenting a browser bug, platform limitation, or reproduction note.example-design-signal.md — Cases where better names remove the need for comments. Read when a comment seems to compensate for unclear naming or structure.The stale-comment rule does not need a dedicated example. Apply it whenever you modify code with existing comments.
development
Guide for writing a unit test. Use when writing a unit test for functions or components, and when fixing a bug in existing code.
development
Use when you have a spec or requirements for a multi-step task, before touching code. Supports either Markdown plans or review-oriented HTML plan artifacts.
documentation
Protocol for dispatching subagents effectively. Use this skill EVERY TIME you are about to delegate work to a custom or built-in agent. Covers when to dispatch, which agent to pick, how to write self-contained prompts, and parallel execution. Trigger phrases: "delegate to agent", "dispatch subagent", "run agent", "use subagent", "context isolation", "parallel agents".
development
Guide for code refactoring, use this skill to guide you when user asked to refactor a components or functions and when an implementation of a plan requiring a code refactoring.