Skip to content
Back to skills

Tidy

ASecurity

Behavior-preserving cleanup. Improves structure, naming and duplication in small steps with tests green after each step, and stops at the first red.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
ai-agents

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add voyager67/Claude-Garage --skill tidy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tidy?

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

Security grade badge for Tidy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/voyager67-tidy/badge)](https://www.skillsdirectory.com/skills/voyager67-tidy)

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: tidy
description: Behavior-preserving cleanup. Improves structure, naming and duplication in small steps with tests green after each step, and stops at the first red.
argument-hint: "<file, folder or smell to fix>"
---

# /tidy: refactor without changing behavior

## Steps
1. Scope: `$ARGUMENTS`. Delegate to `scout` for usages and `critic` for the top smells (duplication, long functions, unclear names, dead code).
2. **Baseline:** run the tests. If they are not green, stop and suggest `/garage:test` first. If there are no tests around the target, have `tester` write **characterization tests** that pin current behavior.
3. Propose a numbered list of small refactor steps. Ask the user to approve.
4. For each step, delegate to `builder`: make one change, run tests, and only continue if green. If a step turns tests red, **revert that step** and report why.
5. Final run of the full suite and a short before/after summary.

## Rules
- Behavior must not change. No new features, no bug fixes (report bugs you find as parked items).
- One kind of change per step: rename, extract, inline, move, delete dead code.
- Public interfaces stay the same unless the user explicitly approves a change.

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.