tidy
Skill0 starsChanged 27 days agoMITView on GitHub
Simplify and tidy existing code for readability. Use when asked to clean up, simplify, refactor for clarity, remove indirection, judge whether a helper or abstraction earns its place, or sanity-check whether recent code over-engineered things.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- nagi-studio/skillstheir own version, first seen Nov 8, 2026
- agentmemoir/skillstheir own version, first seen Nov 1, 2026
- NobiResearch/Ovenbirdtheir own version, first seen Nov 1, 2026
- croffasia/itsaplantheir own version, first seen Oct 31, 2026
- crimx/skillstheir own version, first seen Oct 28, 2026
- smkg75/wikidoctheir own version, first seen Oct 25, 2026
Used with
Projects with it also use map, architect and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillmap
Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.
Also in 3 projects that use this
Harut8Skillarchitect
Also in 3 projects that use this
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 4 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- croffasia/itsaplan★ 2.2ksame name
- nagi-studio/skills★ 470same name
- mblode/agent-skills★ 189same name
- collectifweb/claude-skills★ 4same name
- crimx/skills★ 4same name
- wyattjoh/skills★ 3same name
- agentmemoir/skills★ 2same name
- jxxsteven7/zotero-librarian★ 2same name
- smkg75/wikidoc★ 2same name
- angusfretwell/skills★ 1same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- antigravity-cliSkill
- codex-cliSkill
- context7Skill
- hold-the-threadSkill
- hrSkill
- opencliSkill
- topicSkill
- verifySkill
- writeSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read the target plus its callers and the producers of the values it handles.
- Distinctive: line 19
If anything touches behavior or an interface contract, say so and align first.
- Distinctive: line 28
When scope or a tradeoff is unclear, discuss before doing.
- Distinctive: line 34
Before any edit that could alter behavior or an interface contract, read the relevant code (who produces this value?
- Distinctive: line 50
Default to inline. A helper called three times or fewer is not worth extracting by call count alone.
- Distinctive: line 52
Keep or introduce a helper only when it earns itself on readability, not DRY:
- Distinctive: line 60
Keep genuinely different paths separate.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tidy
Make code direct and quick to read: less needless abstraction, less indirection, less redundancy, fewer structures that don't earn their place. Behavior preserved.
Clarity is the target, not line count. A clearer version is sometimes longer. Prefer the obvious over the ingenious. Bias toward removing structure that doesn't pay for itself, but don't over-simplify: deleting a helpful seam or crushing logic into a dense expression to shrink it is just as bad.
Workflow
Scope is the recently modified files, or whatever range the user names.
Small or localized (one function or file):
- Read the target plus its callers and the producers of the values it handles.
- If anything touches behavior or an interface contract, say so and align first.
- Make the focused change, then run the checks and tests.
Large (a package-wide pass):
- Survey: read broadly (fan out with subagents if available); collect concrete findings, each with its cost.
- Plan and confirm: group into phases, flag the behavior-touching ones, and agree scope and risk before editing.
- Phase by phase: one commit per phase, each passing the verification gate before the next. If a finding turns out to need added abstraction or a behavior change, skip it and record why.
When scope or a tradeoff is unclear, discuss before doing.
Confirm, don't guess
Two failure modes ruin a cleanup: silently changing behavior, and reworking something the user didn't want touched.
- Before any edit that could alter behavior or an interface contract, read the relevant code (who produces this value? what type is guaranteed? is this guard reachable?) and check the tests. Verifying is cheap; a silent regression is expensive.
- For anything non-trivial or behavior-affecting, surface the approach and the tradeoff, and align before editing.
- Anything touching behavior, a wire/format contract, or a public API is confirm-first. Don't fold it into a routine batch.
What earns removal
Behavior-preserving unless flagged:
- Dead defensiveness: guards, fallbacks, coercions, or validation for states that can't occur. Read the producer to confirm the state is truly impossible, then delete.
- Low-altitude round-trips: data serialized then re-parsed, or typed to dict to typed. Carry the typed value through.
- Derivable state: a field that always equals an expression of other state. Compute it at the point of use.
- Deep nesting: flatten with early returns; collapse near-identical branches.
- Dead code: unused parameters, unreachable branches, comments describing code that no longer exists, unused backwards-compat shims, and "just in case" configurability. If nobody uses it, delete it.
When a helper earns its place
Default to inline. A helper called three times or fewer is not worth extracting by call count alone. "Used twice, so DRY it" is the wrong test; a few short inline copies often read better than one indirection.
Keep or introduce a helper only when it earns itself on readability, not DRY:
- Non-trivial correctness: the logic encodes a rule that inline copies could get quietly wrong, or that multiple call sites must stay in sync on (an error shape, a wire format, a business rule). One home prevents drift.
- Large construction: it assembles something with many fields, so each call site shows only what differs.
- Clearer interface: extracting a cohesive sub-step lets a long method read as a short sequence of named operations.
Litmus: does the call site get faster to understand, and would inlining risk the copies drifting? If not both, inline.
Keep genuinely different paths separate. Unifying them behind a strict/lenient flag or mode parameter hides a real difference behind new abstraction.
Verify and report
Behavior-preserving means verified, not hoped. Run the project's lint, type-check, and tests after each change or phase, and keep them green. For a refactor you call equivalent, prove the invariant by reading who produces the value and what shape is guaranteed.
Report: lead with what changed and why it's clearer; then what you confirmed (behavior preserved, checks green); then what you deliberately skipped and why. The skip list shows the bar was applied, and it's where the user catches a disagreement early.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

