tidy

tidy is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 79 tokens per session (7,475 once invoked), scanned A, original, MIT.

A maintenance workflow that looks for small, structure-only improvements in a codebase and sends them as a focused pull request.

In plain words
What is it for?
Use it to find safe naming, organization, or readability improvements in one area of a project, then verify and submit them.
Why use it?
It helps reduce code clutter gradually while keeping cleanup changes separate from changes that alter behavior.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-tidying plugin — 7 skills, 1 agent shipped together

Good fit Use it to find safe naming, organization, or readability improvements in one area of a project, then verify and submit them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install code-tidying

Made for: Claude Code.

Or install code-tidying, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

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 tidy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/tidy"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,475 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.00079 $0.07475
Opus 5.5 $0.00032 $0.02990
Sonnet 5.5 $0.00016 $0.01495
Haiku 4.5 $0.00008 $0.00747

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

Security

Grade A, and why

tidy 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 yesterday.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/comment-settings.sh, scripts/open-pr-count.sh, scripts/open-pr-count.test.sh, …), 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.

plugins/code-tidying/skills/tidy/SKILL.md · 288 lines

How it starts

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

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current
  • Recent commits, git log --oneline -5
  • Working tree status (empty = clean), git status --porcelain | head -20

Pre-computed context

Open chore/tidy-* PRs: !${CLAUDE_SKILL_DIR}/scripts/open-pr-count.sh 2>/dev/null | grep -E '^(Open tidy|Throttle)' || echo unknown Comment settings (team then personal layer, one line per key): !${CLAUDE_SKILL_DIR}/scripts/comment-settings.sh 2>/dev/null | grep -E '^comment_(posture|keep_list)' || echo "(settings unavailable)"

Variables

Arguments: $ARGUMENTS

HARD path exclusions: ${user_config.hard_exclusions} (unexpanded, empty, or any value outside enforce and advisory means enforce).

Comment posture: comment_posture resolves through four layers, lowest first, a later one winning: the default auto, userConfig (${user_config.comment_posture}), the team file <home>/comment-policy.yaml over the org baseline <home>/comment-policy.org.yaml (tighten-only) and the personal override <home>/comment-policy.local.yaml (<home> the repository's bound convention home, else docs/conventions), the files from the settings line above (${CLAUDE_SKILL_DIR}/scripts/comment-settings.sh). auto means necessary; strict, balanced and conservative read as explanatory, aggressive as necessary. An unexpanded or empty userConfig value is unset, and any other value outside auto, none, necessary, explanatory is named with its layer and dropped. The posture decides what tidyings Beck 14 and P-5 may add (reference/tidyings.md).

Read the full file on GitHub · 288 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. yesterday Changed · +1 lines · -33 tokens per session b1b644cc3efa
  2. 3d ago Changed · +3 tokens per session 4cb2285bc89d
  3. 5d ago Changed 8b1995d5ce60
  4. 6d ago Changed · +2 lines d32bb34f34fd
  5. 8d ago Changed · -1 lines b2a9e02b7f1e
  6. 9d ago Changed · +33 lines eeca8456b70b
  7. 12d ago Changed d018d91cd050
  8. 13d ago Changed dfced4ca974b
  9. 14d ago Changed · +10 lines 2125dbd3a52b
  10. 17d ago First seen · 243 lines · 109 tokens per session scan A ae932d9505cd

Subscribe to this mod's changes

tidy is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 7,475 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-08-30.

Related

tidy compared with skills from other repositories

tidy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tidymelodic-software/claude-code-pluginsSkill33todayMITA79Claude Code
refactor-decompose-functionjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA28Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex