Skip to content
Back to skills

Prune Comments

ASecurity

Use to cut comments in a diff to what the code cannot say: /prune-comments, \"주석 정리해줘\", and deliver-ticket's pre-review step. Docs and PR prose are write-plainly.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 5, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add JeongJaeSoon/agent-skills --skill prune-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prune Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prune Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jeongjaesoon-prune-comments/badge)](https://www.skillsdirectory.com/skills/jeongjaesoon-prune-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prune-comments
description: "Use to cut comments in a diff to what the code cannot say: /prune-comments, \"주석 정리해줘\", and deliver-ticket's pre-review step. Docs and PR prose are write-plainly."
---

# Prune comments

A fresh reader prunes the comments in scope; you check its work and act on its flags. The author of a comment is the worst judge of whether it earns its place, so the pruner is a subagent.

## Scope

The caller's files or diff. Otherwise the current branch against its base (default `origin/main`) plus the working tree: `git diff $(git merge-base origin/main HEAD)`, and every new file from `git ls-files --others --exclude-standard`, which that diff leaves out. Within a diff, the scope is the comments on added or changed lines, plus any nearby comment the diff made false. Untouched code elsewhere is out of scope, however noisy.

If the diff adds or changes no comment, and no existing comment sits beside the code it changed, say "no comments in scope" and stop.

## Steps

1. Spawn one `Agent` (`subagent_type: "general-purpose"`) with the scope and the absolute path of `references/pruner.md`. Its brief is that file; do not restate it.
2. Check its edits with `git diff`. Revert any change to code rather than comments, and any edit outside the scope. Restore a deleted comment only when it matches a keep in the brief and you can point to the proof. If a report gets its facts wrong, rerun once with the error named; a second bad report means you finish the pass by hand and say so.
3. Act on each **RESHAPE** flag (a comment was explaining a surprise in our own code). A rename, an extracted function, or a type that fits inside the diff's files: do it now and run the tests. Anything larger follows deliver-ticket's rule for findings outside the ticket.
4. Act on each **CONSTRAINT** flag (a comment claims a rule about our own code, like "do not remove" or "keep this order"). When the cheapest encoding the pruner named (a test, a type, a runtime assertion, a lint rule) fits inside the diff's files, add it, watch it fail when the rule is broken, then delete the comment. Otherwise keep the comment and report the constraint as unenforced.

## Report

The deletion count, the comments you restored and why, the reshapes done and left open, the constraints encoded, and the constraints still enforced only by a comment.

Files in this skill

  • SKILL.md2.4 KB
  • references/pruner.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.