delete-frontend-comment

delete-frontend-comment is a skill for Claude Code, Codex from willdady/platypus. It costs 63 tokens per session (1,055 once invoked), scanned A, original, MIT.

A maintenance task for removing ordinary comments from the code in apps/frontend according to an existing comment baseline. It keeps required tool directives and selected explanations marked with `// why:`.

In plain words
What is it for?
Use it to inspect, classify, and delete comments in chosen frontend files, turn decision records into tests or design records, and update the allowed baseline downward.
Why use it?
It reduces comments that merely repeat the code while preserving comments that explain a non-obvious reason or control a tool.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to inspect, classify, and delete comments in chosen frontend files, turn decision records into tests or design records, and update the allowed baseline downward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/willdady/platypus/delete-frontend-comment
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 willdady/platypus --skill delete-frontend-comment
Clone the repo
git clone --depth 1 https://github.com/willdady/platypus

Made for: Claude Code, Codex.

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 delete-frontend-comment

README.md
[![agentmods](https://agentmods.dev/badge/skills/willdady/platypus/delete-frontend-comment/github.svg)](https://agentmods.dev/skills/willdady/platypus/delete-frontend-comment)
Your own site
<a href="https://agentmods.dev/skills/willdady/platypus/delete-frontend-comment"><img src="https://agentmods.dev/badge/skills/willdady/platypus/delete-frontend-comment/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 delete-frontend-comment

Your own site · 80×15
<a href="https://agentmods.dev/skills/willdady/platypus/delete-frontend-comment"><img src="https://agentmods.dev/badge/skills/willdady/platypus/delete-frontend-comment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,055 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.
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.00063 $0.01055
Opus 5.5 $0.00025 $0.00422
Sonnet 5.5 $0.00013 $0.00211
Haiku 4.5 $0.00006 $0.00105

Measured 4d ago against content hash 98da3340805d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

delete-frontend-comment 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (strip-comments.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/delete-frontend-comment/SKILL.md · 33 lines

How it starts

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

Delete comments

Comments are banned in apps/frontend (local/no-comments in apps/frontend/eslint.config.mjs). apps/frontend/comment-baseline.json lists how many comments each file still has. The rule fails when a file has more comments than its baseline allows, and also when it has fewer, so a baseline only ever moves down. Two kinds of comment are not counted and stay: directives (eslint-disable, @ts-expect-error, prettier-ignore, ///), and a single-line // why: … that keeps a local, non-obvious warning beside the code it protects.

The argument is the scope, relative to apps/frontend: one or more directories, files or globs (components/a*, hooks/use-a*.ts components/chat.tsx). Expand it to the files listed in the baseline; a file not listed there has no comments to delete. With no argument, take the smallest directory still listed in the baseline.

Steps

  1. List the comments. Read every file in scope in full: a comment can only be classified next to its code. Done when every comment counted for the scope in the baseline has been read.
  2. Classify each comment as exactly one of:
    • Tautology. Restates what the code, a name or a test already says.
    • Stale. Names a file, function, issue or behaviour that no longer exists or no longer matches the code, or tells history ("used to", "since #N"). Check that the referenced thing really is gone before you call it Stale.
    • Excuse. Justifies a shortcut: production code shaped for a fixture, a global mock, a test seam, a "for now", a disabled constraint. Verify the shortcut against the code (a FK, a caller, the schema) before you call it an Excuse.
    • Decision Record. A non-obvious why that someone would otherwise "fix": an ordering dependency, a cross-instance safety argument, an option that was rejected.
  3. Record Decision Records, picking the first option that holds:
    1. A test. If a test already pins the behaviour, or one cheaply could, the test is the record and the comment is deleted. Add the test if it's missing.
    2. An ADR, when the decision spans more than one module and passes the "when to offer an ADR" test in .agents/skills/domain-modeling/ADR-FORMAT.md.
    3. A // why: one-liner, when the warning is local to one function. Rewrite the comment as a single line, at most about 100 characters, that states the constraint and not its history (// why: same value on every instance, or a peer's live run is failed).

Read the full file on GitHub · 33 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 33 lines · 63 tokens per session scan A 98da3340805d

Subscribe to this mod's changes

delete-frontend-comment is a skill published in the GitHub repository willdady/platypus (133 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,055 once invoked, about $0.0003 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-11-26.

Related

delete-frontend-comment compared with skills from other repositories

delete-frontend-comment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delete-frontend-commentwilldady/platypusSkill133todayMITA63Claude Code, Codex
nightly-audit-engineer-opsmakecindy/cindySkill11ktodayApache-2.0A43Claude Code, Codex
engineer-bot-evidencemakecindy/cindySkill11ktodayApache-2.0A31Claude Code, Codex
security-auditCoWork-OS/CoWork-OSSkill557todayMITA38Claude Code, Codex
developer_reviewsiddsachar/row-botSkill1.7kyesterdayApache-2.0A15Claude Code, Codex
agent-dependenciesNVIDIA/elementsSkill122yesterdayApache-2.0A73Claude Code, Codex
agent-debug-ciNVIDIA/elementsSkill122yesterdayApache-2.0A80Claude Code, Codex