Skip to content
Back to skills

Tidy Project

ASecurity

Use periodically (session start, or after a batch of changes) to keep a project clean. Triggers include "tidy the project", "clean up", janitor pass, or an AGENTS.md directive to run a cleanup occasionally. Handles stray log/tmp files, stale tasks, dead memory pointers, and AGENTS.md index drift.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add tzachbon/srulik-toolkit --skill tidy-project --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tidy Project?

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

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

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-project
description: Use periodically (session start, or after a batch of changes) to keep a project clean. Triggers include "tidy the project", "clean up", janitor pass, or an AGENTS.md directive to run a cleanup occasionally. Handles stray log/tmp files, stale tasks, dead memory pointers, and AGENTS.md index drift.
---

# tidy-project

A janitor pass. Scan the project for rot, fix what is clearly safe, propose what
is risky, then commit. The project keeps everything tracked, so the tree should
be clean and committed when you finish.

**Core principle:** a destructive step never runs unattended. Safe fixes apply
automatically; anything that deletes tracked content or is ambiguous is proposed
and waits for a yes.

## Scan list

1. **Stray junk** — `*.log`, `tmp/`, `.scratch/`, editor/OS cruft, build leftovers.
2. **`TASKS.md` staleness** — completed items lingering in Now/Next; resolved Open
   Questions still listed.
3. **Dead `docs/memory/` pointers** — `MEMORY.md` lines pointing at files that no
   longer exist (or files with no pointer).
4. **AGENTS.md index drift** — index entries for dirs/files that no longer exist,
   or top-level dirs/files missing from the index.
5. **Broken cross-references** — links between docs (GLOSSARY, legacy CONTEXT, ADRs, TASKS) whose
   targets moved or were deleted.

## Two classes

**Safe (auto-fix):**
- Delete junk that already matches `.gitignore` patterns.
- Fix an index entry whose target merely moved.
- Remove a `MEMORY.md` pointer to a deleted file.
- Repair a broken link whose target is unambiguous.

**Risky (propose, then wait):**
- Deleting any tracked file.
- Removing or rewriting a `TASKS.md` item (you might still want it).
- Anything where "is this outdated?" is a judgment call.

## Steps

1. Run the scan. Build two lists: safe-fixes, risky-proposals.
2. Apply the safe fixes.
3. Present the risky list as a short numbered plan. Apply only what the user
   approves.
4. Commit: `git add -A && git commit -m "tidy: <summary>"`. If nothing changed,
   say so and skip the commit.

## Do not
- Delete tracked content without explicit approval.
- "Tidy" by deleting work you do not understand. When unsure, propose, never auto.

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.