Tidyguard — Testing skill for Claude Code
Your agent finishes the task and leaves no mess.
How to install Tidyguard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mikamske/tidyguard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tidyguard does
Your agent finishes the task and leaves no mess. Hooks for Claude Code, Codex and OpenCode that block stray notes, spec rewrites and unrequested automation, and make agents clean up.
Alternatives in Testing
- AI Contribution Skills (Engram) — branch-pr: clean branch and PR workflow 2.5k ★
- Claude Codepro — by Max Ritter - Professional development environment for Claude Code with spec-driven workflow, TDD enforcemen 1.6k ★
- Spec Driven Develop — Spec-driven development workflow for AI coding agents: architecture-first planning, task decomposition, GitHub 975 ★
README
tidyguard
**Your agent finishes the task and leaves no mess.**
tidyguard is a small, dependency-free hook for **Claude Code**, **Codex CLI** and **OpenCode**. It stops coding agents from doing the things that make you clean up by hand after them:
- writing
PLAN.md,NOTES.md,HANDOFF.md,ANALYSIS.mdand friends into your repo, - rewriting specs, ADRs, roadmaps and agent rule files (
AGENTS.md,CLAUDE.md), - quietly installing cron jobs, LaunchAgents, systemd timers, git hooks or CI workflows,
- leaving behind untracked files, branches, worktrees, stashes and scratch files.
When the agent wants to stop, tidyguard compares the machine with the session start and hands it a list: every new artifact is either a deliverable named under `Left behind:` in the final report, or the agent removes it now.
$ claude -p "Create NOTES.md with hello, then debug.log with x"
...
The stop check flagged `debug.log`, which is a deliverable you asked for, so I'm keeping it.
Left behind: repo/debug.log (contains `x`)
`NOTES.md` was not created. tidyguard blocked it, and I did not work around the block.
To get it, run `tidyguard allow docs` in your own terminal and tell me.
*(real output from Claude Code 2.1.311 with tidyguard 0.1.0)*
Why
Running several agents in parallel on one repo has a typical failure mode. One agent writes its plan into `docs/plans/…md` and marks it "VERIFIED". The next agent reads that file as the truth and builds on it, while a third one rewrites the spec to match its own reading. Afterwards, you are left with dead branches, forgotten worktrees and a LaunchAgent nobody asked for. Prompt rules alone don't hold, because skills and plugins tell agents the opposite ("save the plan to docs/…"). tidyguard enforces the boring part deterministically, in milliseconds, without an LLM and without network access.
Install
uv tool install git+https://github.com/mikamske/tidyguard # or: pipx install git+https://…
tidyguard install
Related Skills
Code Quality Skill
Deterministic code quality gate for AI coding agents (Claude Code, Codex, pi): git hooks that block test tampe
Nereus
An opinionated development harness for Claude Code — interview → spec → TDD build → parallel review → finish,
Claude Code Hooks Cookbook
Copy-paste Claude Code hooks that actually do something — auto-format, block dangerous commands, test gates, n
Al PR Prepare.Prompt
Prepare a clean, documented pull request draft for AL features or fixes with summary, testing notes, and check
Derive
Save a clean reference derivation of a target equation or theorem to derivations/. Draws from course materials
Socialagent Post
Draft a platform-native post with hooks, media, tags, QA and approval notes.
Related Agents
Automation Integrator
Automation hooks for the Company OS — n8n webhook endpoints, follow-up/overdue/deadline alerts, and future Her
Rearch Phase
Executes one phase of a rearchitect plan in a clean context: implements, verifies, leaves changes uncommitted.
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and