/saschb2b-skills:comment-stinkyfrom saschb2b-skills
Detects 37 categories of code-comment smells across six pillars, explains costs, and proposes rewrites. Activates when writing, editing, or auditing comments.
Ships in saschb2b-skills. 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.
A code-comment smell detector and a write-time gate, in any language. It exists because of one specific failure mode. A coding agent's working context is a diff, so it writes comments aimed at whoever reviews that diff. The diff is transitory. The comment is permanent. One commit later the comment describes a state nobody can see, and the reader who needed to know why the code is shaped this way gets a paragraph about a change instead.
The rule the whole skill reduces to: write for a reader who has only this file open and does not know that a change ever happened. The reasoning behind it is in comment-audience.md, and why agents specifically break it is in agent-context-collapse.md.
Three operating documents. Read the one the task needs. taxonomy.md is the positive half, the nine kinds of comment worth writing and where every other kind of information actually belongs. catalog.md is the smell catalog, six pillars and 37 categories with detection signals, fixes, exceptions, and sources. write-gate.md is the four-question gate plus the trigger-phrase table and the rewrite recipes.
Six pillars, 37 categories, in catalog.md. The background models live as linked concepts under references/concepts/; read one when a finding needs the model explained, not just named.
now, no longer, used to), ghost references to code that is not in the tree, comparatives measured against the deleted version, changelog text parked in the source, reviewer defense, prompt echo, session residue, eulogies for deleted code, commented-out code.// where the ecosystem's doc-comment form is what tools read, essays where two sentences do, and debt with no owner, ticket, or condition (bare TODOs, and the undated "for now" that never gets listed anywhere).| Mode | Trigger | What to do |
|---|---|---|
| Write gate | you are about to add or edit a comment, anywhere, at any time | Run the four questions in write-gate.md before the comment lands. This is the implicit mode and it is the point of the skill. |
| Self-check | you just finished an edit and are about to hand it over | Extract only the comment lines you added (command in write-gate.md) and gate each one. Cheap, and it catches the smell at the only moment it is free to fix. |
| Diff scan | "review the comments on this branch", a PR | Comment lines added or changed in the diff, plus the surrounding code needed to judge truth. |
| File or folder scan | files or directories named | Every comment, docstring, and doc comment in scope, judged against the code it sits on. |
| Repo sweep | "audit the comments in this codebase" | Prioritize the files with the highest comment density, the most recent churn, and the public API surface. Skip vendored, generated, and license headers. |
| Fragment sniff | a pasted function or comment | Only that surface. State what you assumed about the code off-screen. |
| Author mode | "comment this", "document this function" | Skip the scan. Pick the kind from taxonomy.md, write it, then gate it. |
The catalog carries a per-smell exception line. These cut across all of them.
eslint-disable with a reason, and codegen markers are machinery, not prose. Leave them.no-slop and the wider "this was hard to understand" repair to breadcrumbs rather than duplicating them. The split with no-slop is substance versus sound: that skill decides whether a sentence reads as generated (em dashes, slop vocabulary, marketing voice), this one decides whether the comment should exist, what it should say, and where the information belongs. Its references/code-comments.md is the one-page register pass over the same surface.Comment Stinky report, <scope>
src/features/shell/components/CommandPalette.tsx
[Rancid] ghost-reference (change narration), line 489
Smell: the rationale ends "the old fixed Actions-then-Concepts order buried
the thing most queries are looking for." No such order exists in the tree.
Cost: the reader cannot check the claim or find what it refers to, so the
whole comment reads as unverifiable and gets ignored.
Rewrite: "Groups are ordered by their own best match, so typing 'agent'
leads with the Agent Panel concept rather than with whichever action was
declared first." The reason survives; the history goes to git.
[Funky] restates-the-code (redundancy), line 311
Smell: "// No animation; just redraw the new position" above a bare draw call.
Cost: one more line to keep true, and it says nothing the call does not.
Rewrite: delete. If the absence of animation is deliberate, say why
("dragging skips the tween so the node tracks the cursor exactly").
Summary: 1 rancid, 1 funky across 1 file.
When the scope is clean, say so plainly: "Smells fresh. No comment smells found in <scope>."
The positive taxonomy adapts Salvatore Sanfilippo's comment classification and Ousterhout's A Philosophy of Software Design chapters on comments; the routing table draws on Chris Beams on commit messages and Fowler on code as documentation. The change-narration pillar is grounded in a survey of agent-written comments in the okf-viewer codebase. Each catalog entry carries its own link.
CARD.manifest.json (opens in a new tab)CARD.md (opens in a new tab)CARD.md.sigstore (opens in a new tab)CARD.svg (opens in a new tab)permissions.yaml (opens in a new tab)references/catalog.md (opens in a new tab)references/concepts/agent-context-collapse.md (opens in a new tab)references/concepts/comment-audience.md (opens in a new tab)references/concepts/comment-decay.md (opens in a new tab)references/concepts/commit-message-craft.md (opens in a new tab)references/concepts/index.md (opens in a new tab)references/concepts/information-routing.md (opens in a new tab)references/concepts/interface-vs-implementation.md (opens in a new tab)references/concepts/nonobvious-information.md (opens in a new tab)references/concepts/why-not-what.md (opens in a new tab)references/index.md (opens in a new tab)references/log.md (opens in a new tab)references/taxonomy.md (opens in a new tab)references/write-gate.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/android-composeModern Android development with Jetpack Compose as the default UI toolkit and Material 3 Expressive as the default design direction, a dated snapshot. Covers Compose fundamentals (composables, modifiers, state hoisting, side effects, lazy lists, strong skipping, recomposition), Material 3 and Expressive theming and components (MaterialExpressiveTheme, MotionScheme, button groups, split buttons, FAB menu, floating toolbars, wavy progress indicators, shape morphing, dynamic color), architecture (ViewModel, StateFlow, collectAsStateWithLifecycle, Hilt), type-safe Navigation Compose and Navigation 3, data (Room, DataStore, Retrofit, Ktor, Coil), the Gradle Kotlin DSL build with version catalogs and KSP, testing, performance, and View interop. Use when building Android UI in Compose, theming with Material 3 or Expressive, wiring architecture or navigation, configuring the build, or debugging Compose issues. Check the project's versions first; re-verify version facts against the official Android and AndroidX docs./ask-uxForce UX questioning before any UI work, refactor, or redesign. Use when the user asks to design, redesign, restyle, polish, "fix", or "make nicer" a screen, component, page, or flow. Also use when the user describes a problem in UI terms ("the button is hard to find", "this form is confusing", "this page is ugly") and is about to reach for a visual fix, since most UI-shaped complaints have UX-shaped causes./audit-actionsAudit a repository's GitHub Actions workflows for unsafe pull_request_target usage that can lead to supply chain compromise. Use when the user asks to audit workflows, review CI/CD security, check pwn request risk, harden Actions, or after a supply chain incident in a dependency. Also use proactively when reviewing any PR that touches .github/workflows/./autopilotWork autonomously on a project without waiting for direction. On command, survey the codebase, pick one high-value low-risk improvement, do it, verify it, commit it, then pick the next, looping like a self-directed intern. Use when the user hands off open-endedly ("work on your own", "keep improving this", "find something worth doing", "don't wait for me", "go autonomous", "run for a while", "be a passionate intern", "do whatever you think is valuable") or invokes /autopilot, and you have to choose the work yourself rather than wait for instructions or feedback./breadcrumbsHeal codebase understanding gaps exposed during implementation, debugging, or investigation. Use when tracing reveals misleading names, repeated backtracking, disconnected navigation paths, hidden contracts, surprising dependencies, stale documentation, unclear errors, undocumented constraints, false leads, or avoidable complexity. Make the smallest durable improvement at the source through clearer code, types, validation, tests, errors, comments, or existing documentation. Also use when a task was harder to grasp than it should have been or you think "that should have been documented." Do not create a breadcrumb trail, investigation log, freshness system, or separate knowledge store./codegen-apiSet up typesafe API code generation in 2026, preferring framework-agnostic options factories over generated hooks. Walks the decision matrix for REST (OpenAPI via hey-api) and GraphQL (graphql-codegen client preset, gql.tada), wires the minimal config for the chosen stack, and uses fragment masking for component composition. Use when starting an API integration, wiring an OpenAPI spec into a frontend, setting up GraphQL types, asked about useQuery, queryOptions, TypedDocumentNode, or fragment masking, or when seeing legacy patterns like generated useGetX hooks, per-query prop types, or @graphql-codegen/typescript-react-apollo. Counterweight to LLM training corpora that mostly reflect the pre-2024 hooks pattern, biasing default output toward generated hooks.Generated from the plugin's indexed repository (saschb2b/skills) — no native marketplace selected
npx claudepluginhub p/saschb2b-saschb2b-skillsOther plugins' skills for the same job