code-tidying

code-tidying is a plugin for Claude Code from melodic-software/claude-code-plugins. Its manifest loads nothing; the 5 skills it bundles cost 487 tokens per session together, scanned A, original, MIT.

A plugin for simplifying code and cleaning up comments across a repository or selected parts of it.

In plain words
What is it for?
Use it to tidy a scoped area, simplify code in dependency order, remove or rewrite comments, and audit comment residue or dead code.
Why use it?
It helps reduce unnecessary comments, dead code, and avoidable complexity while using tests and ordered changes as safeguards.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Good fit Use it to tidy a scoped area, simplify code in dependency order, remove or rewrite comments, and audit comment residue or dead code.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install code-tidying
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.

Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

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 code-tidying

README.md
[![agentmods](https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/code-tidying/github.svg)](https://agentmods.dev/plugins/melodic-software/claude-code-plugins/code-tidying)
Your own site
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/code-tidying"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/code-tidying/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 code-tidying

Your own site · 80×15
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/code-tidying"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/code-tidying.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 5 skills cost 487 tokens a session between them.
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.
Security

Grade A, and why

code-tidying 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 2d 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/code-tidying/.claude-plugin/plugin.json · 61 lines

How it starts

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

{
  "name": "code-tidying",
  "version": "0.30.0",
  "description": "Code tidying and comment hygiene. tidy hunts a rotated lane for Beck-style tidyings and ships one PR. batch-simplify sweeps a branch, time window, or repo in dependency-ordered waves. dissolve-comments deletes zero-information comments and moves the rest into names (safe, aggressive, strip modes). audit-comment-residue flags history, plan, conversational, and ticket residue. audit-dead-code finds dead code with knip, vulture, gopls, and grep. setup scaffolds tidy lanes.",
  "author": {
    "name": "Melodic Software",
    "email": "[email protected]"
  },
  "license": "MIT",
  "keywords": [
    "tidy",
    "refactoring",
    "simplify",
    "boy-scout",
    "tidy-first",
    "maintenance",
    "comments",
    "self-documenting",
    "dead-code",
    "skill"
  ],
  "userConfig": {
    "hard_exclusions": {
      "type": "string",
      "title": "Hard path exclusions",
      "description": "How tidy, dissolve-comments, and batch-simplify treat the GLOBAL HARD path list. enforce (default) drops a listed path before triage; advisory reports it per path and never blocks, so a run may edit lint config, agent config, CI workflows, and hook chains.",
      "default": "enforce",
      "options": [
        "enforce",
        "advisory"
      ]
    },
    "comment_posture": {
      "type": "string",
      "title": "Comment posture",
      "description": "How dissolve-comments treats a kept comment. strict (default) rewrites one over class_c_max_lines terser; balanced reports it instead; conservative applies class-A deletions only and proposes the rest; aggressive keeps only exempt surfaces, paired records, terse warnings, and outside constraints.",
      "default": "strict",
      "options": [
        "strict",
        "balanced",
        "conservative",
        "aggressive"
      ]
    },
    "class_c_max_lines": {
      "type": "number",
      "title": "Kept-comment length (lines)",
      "description"

Read the full file on GitHub · 61 lines

Contents

What it installs

The manifest is a name and a version. 5 skills travel with it, and installing the plugin installs all of them — 487 tokens a session between them. Each is measured on its own page, and each can be installed alone.

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. 2d ago Changed 0dfc5f111d18
  2. 4d ago Changed c2056451aaf7
  3. 5d ago Changed 11aee34fe764
  4. 8d ago Changed 3001618663a4
  5. 10d ago Changed f15df1eb0a42
  6. 11d ago Changed · +8 lines 4219cf5d23b1
  7. 12d ago Changed · -1 lines scan B → A a56ed2c5e906
  8. 13d ago Changed · +2 lines 246018cfad75
  9. 15d ago Changed ee5eb45aee75
  10. 16d ago First seen · 52 lines scan B 0c8178126173

Subscribe to this mod's changes

code-tidying is a plugin published in the GitHub repository melodic-software/claude-code-plugins (25 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-08-30.