/samocode:comment-hygienefrom samocode
Curates source-code comments and docstrings by deleting stale/AI-slop comments and keeping only non-obvious WHY explanations. Never changes executable code.
Ships in samocode. 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.
Curate comments and docstrings so each one earns its place: delete the noise, keep the load-bearing WHY the code cannot express. Validated across Claude Code and Codex — bulk-stripping comments cuts agent comprehension ~30%, while curation costs nothing. So curate; never bulk-strip.
For every comment and docstring ask: could a competent reader recover this by reading the code itself?
i += 1 # increment i).Args/Returns boilerplate echoing the types.The non-obvious WHY: a constraint, invariant, gotcha, workaround reason, surprising ordering, or unit/precision requirement — one short line, essence only.
# Truncate to milliseconds — the datastore rejects microsecond precision.
# Snapshot is authoritative here; the live record may have drifted.
A comment that contradicts the current code is worse than none — it never fails a test, so it lies silently. Fix it to match the code, or delete it. Never preserve a lie.
Change comments and docstrings ONLY. Executable code stays byte-identical.
ast.dump), or at minimum python -m py_compile and confirm the
diff touches only comment/docstring lines.Scope: $ARGUMENTS (a path/dir, or the current branch diff git diff origin/main...HEAD if unset).
Use as a review lens (e.g. inside a PR review). Do NOT edit.
Scope: the diff under review. For each comment issue, emit a finding — file, line, type ∈ {slop, restates-code, stale-contradicts-code, over-stripped-why}, and the recommended action. Flag BOTH directions:
Do not flag a concise comment that genuinely carries non-obvious WHY — that is correct, not a finding.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (yuvasee/samocode) — no native marketplace selected
npx claudepluginhub p/yuvasee-samocode20 skills in this plugin
/claudeRun Anthropic Claude CLI as a subagent for second opinions, code reviews, and questions. Use from a Codex (or other) session when you want Claude's perspective./code-clarityReview changed code for human comprehension cost — names, local reasoning, hidden state, working-memory load — and report findings with an impact/cost/risk assessment table. Review-only; never modifies code. Use when asked for a clarity review, readability review, comprehension-cost analysis of a diff/PR, or when running /code-clarity. Works in Claude Code and Codex./codexRun OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective./companionStart and supervise Samocode while the parent does independent scoped work and maintains a human-readable HTML explanation in the session. Use when asked to run Samocode with a live walkthrough, companion, or parallel parent work; not for a standalone status query./create-pr-commentsCreate GitHub PR review comments from review findings. Use after running a code review to post findings as line-bound comments./implementationExecute implementation tasks with different approaches (single, dual-agent, plan-based).Other plugins' skills for the same job