simplify-code-comments

simplify-code-comments is a skill for Claude Code from ivklgn/ai-kit. It costs 103 tokens per session (1,164 once invoked), scanned A, original, MIT.

A coding practice for keeping comments focused on information the code cannot show by itself. It removes comments that merely repeat what the code already says.

In plain words
What is it for?
Use it while writing code or reviewing existing code in any programming language to decide which comments to keep and which to delete.
Why use it?
It reduces clutter and prevents comments from becoming duplicated explanations that can go out of date when code changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-kit plugin — 22 skills, 15 commands, 30 agents shipped together

Good fit Use it while writing code or reviewing existing code in any programming language to decide which comments to keep and which to delete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivklgn/ai-kit/simplify-code-comments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ivklgn/ai-kit --skill simplify-code-comments
Clone the repo
git clone --depth 1 https://github.com/ivklgn/ai-kit

Made for: Claude Code.

Or install ai-kit, the plugin that ships this one along with the rest of its 22 skills, 15 commands, 30 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for simplify-code-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivklgn/ai-kit/simplify-code-comments/github.svg)](https://agentmods.dev/skills/ivklgn/ai-kit/simplify-code-comments)
Your own site
<a href="https://agentmods.dev/skills/ivklgn/ai-kit/simplify-code-comments"><img src="https://agentmods.dev/badge/skills/ivklgn/ai-kit/simplify-code-comments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for simplify-code-comments

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivklgn/ai-kit/simplify-code-comments"><img src="https://agentmods.dev/badge/skills/ivklgn/ai-kit/simplify-code-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.01164
Opus 5.5 $0.00041 $0.00466
Sonnet 5.5 $0.00021 $0.00233
Haiku 4.5 $0.00010 $0.00116

Measured 1mo ago against content hash bb424c66d0b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

simplify-code-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-kit/skills/simplify-code-comments/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Simplify Code Comments

A comment is either signal (context the code cannot express) or noise (a restatement of what the code already says). The decision is binary: noise gets deleted, signal stays untouched. There is no third option — never rewrite, shorten, "improve", or replace a noise comment with a better one.

The Two Rules

Rule 1 — When writing code: default to no comments. Self-documenting names carry the "what". Write a comment only when it holds a non-obvious "why" that the code cannot express. If tempted to explain what a line does — rename the variable/function instead, don't comment. If the code is reasonably clear as-is, write nothing and move on; do not add a comment "for readability".

Rule 2 — When cleaning existing code: delete noise, don't polish it. A noise comment is removed wholesale. Do not:

  • rewrite it more concisely
  • move its content into a doc comment
  • replace it with a "better" comment
  • refactor the surrounding code to "make the comment unnecessary" (unless refactoring was the actual task)

And do not over-trim: this is not a minimization contest. Comments classified as signal stay verbatim — no tightening their wording, no merging, no translation. If a pass over a file finds no noise, change nothing.

What Is Signal (keep, untouched)

  • Non-obvious "why": an invariant or pitfall that is easy to break (race conditions, hydration mismatches, ordering requirements, platform quirks)
  • Business rules not derivable from the code — why a boundary/condition is exactly this
  • Hidden behavior: side effects, call-order or environment requirements
  • Ticket/ADR/doc anchors (JIRA-1234, see docs/adr/...) — context links
  • Workarounds with the cause and the removal condition
  • Doc comments on public API (JSDoc, docstring, javadoc, rustdoc, godoc, XML docs): purpose, contract, units, error behavior, constraints — anything beyond what the signature/types already state
  • Deprecation notices with a replacement pointer
  • Tooling directives: # noqa, // eslint-disable, #pragma, // nolint, license headers, shebangs, code-generation markers

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 88 lines · 103 tokens per session scan A bb424c66d0b2

Subscribe to this mod's changes

simplify-code-comments is a skill published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 1,164 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

ai-ml-development

AI and machine learning development with PyTorch, TensorFlow, and LLM integration. Use when building ML models, training pipelines, fine-tuning LLMs, or implementing AI features.

travisjneuman/.claude · 43 tokens

authentication-patterns

OAuth 2.0, JWT, SSO, MFA, NextAuth/Clerk/Supabase Auth implementation patterns.

travisjneuman/.claude · 28 tokens

email-systems

Transactional email (Resend, SendGrid, SES), templates (React Email, MJML), deliverability (SPF/DKIM/DMARC), and inboxing best practices. Use when building email infrastructure, designing templates, or troubleshooting deliverability.

travisjneuman/.claude · 55 tokens

agent-svelte-expert

Specialist subagent: Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity specialist. Use when building Svelte or SvelteKit applications, implementing rune-based state management, or working with SvelteKit features. Trigger phrases: Svelte, SvelteKit, runes, $state, $derived, $effect, $props…

travisjneuman/.claude · 101 tokens

performance-engineering

Web Vitals, bundle optimization, CDN, caching, and load analysis. Use when diagnosing slow pages or APIs, reducing bundle size, or designing caching and performance budgets.

travisjneuman/.claude · 38 tokens