From technical-writer
Write effective code comments following principles from "A Philosophy of Software Design". Use when documenting code, reviewing comments, or improving existing documentation. Optionally accepts a file path or class name to narrow scope.
How this skill is triggered — by the user, by Claude, or both
Slash command
/technical-writer:commentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
If an argument is provided, narrow your focus to just that target:
If an argument is provided, narrow your focus to just that target:
Target: "$ARGUMENTS"
src/auth.rb, lib/parser.go), comment only that file.AuthService, Parser), find and comment that class/module.Comments should describe things that are not obvious from the code.
If a comment repeats what the code already says, it adds no value. Good comments capture information that exists only in the developer's mind: rationale, intent, constraints, and design decisions.
| Need | Go To |
|---|---|
| Core principles of good comments | philosophy.md |
| What to avoid (bad patterns) | antipatterns.md |
| Practical workflow for writing comments | workflow.md |
| Documenting interfaces/APIs | interface_comments.md |
| In-code implementation comments | implementation_comments.md |
| Good vs bad examples | examples.md |
| Language | Convention | Guide |
|---|---|---|
| JavaScript/TypeScript | JSDoc | conventions/jsdoc.md |
| Ruby | YARD | conventions/yard.md |
| Go | godoc | conventions/godoc.md |
| Rust | rustdoc | conventions/rustdoc.md |
| Elixir | ExDoc | conventions/exdoc.md |
Document the abstraction for users who won't read the implementation:
Explain non-obvious code for future maintainers:
npx claudepluginhub dickdavis/personal-marketplace --plugin technical-writerAutomatically generates documentation comments and docstrings for code functions/classes, matching project style or language conventions like Google/NumPy for Python, JSDoc for JS/TS, godoc for Go.
Routes documentation tasks to code comments (audit/cleanup) or system docs (READMEs, API docs, architecture). Use for writing, auditing, or improving any docs.
Adds section-level comments to code files capturing intent, rationale, gotchas, and architecture for LLM context preservation across sessions. Invoke via 'literatize', 'add literate comments', or 'annotate this file'.