/vocdoni-comments:commentsfrom vocdoni-comments
Use whenever writing, adding, editing or reviewing code comments (doc comments, inline comments, JSDoc), and when asked to trim, shorten or clean up comments, on a branch or across a whole project, package or folder. Keeps comments to 1-3 lines that carry the why, and trims existing ones without losing anything only they said.
Ships in vocdoni-comments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
/comments trim for a branch, /comments trim project [path] for the whole project or a folder, a request to trim or clean them up, or your own change adds blocks over 3 lines): follow trim.md.doc.go, module docstrings) work as docs and aren't held to 3 lines. Usage examples belong in runnable examples (Go Example functions, doctests), not in the doc comment. For comment length this skill takes precedence over the longer-godoc advice in [[go-best-practices]] (its "Documentation is for users" proverb).docs/) or in another comment of the same package, point to it in a few words instead of repeating it.Example, a Go doc comment that narrates history and restates the code, trimmed to its purpose and the constraints only it states.
Before:
// ParseBallot parses the JSON form of a ballot.
// It used to return nil on error. It now returns a wrapped error, so
// callers can match it with errors.Is.
// The function is pure: it reads no election state and takes no locks.
// The vote handler calls it while holding the election lock, so it must
// not block.
// Choice values are checked against MaxChoices later, by validateChoices
// in validate.go.
func ParseBallot(data []byte) (Ballot, error) {
After:
// ParseBallot parses a ballot's JSON form. Errors are wrapped for errors.Is;
// choices are checked later, by validateChoices in validate.go. The vote
// handler calls it under the election lock, so it must not block.
func ParseBallot(data []byte) (Ballot, error) {
Related: [[go-best-practices]], [[go-code-quality]].
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vocdoni/skills --plugin vocdoni-comments