fleet-audit
Skill73 starsChanged 5 days agoApache-2.0View on GitHub
Report which local git worktrees under tmp/ are safe to close, need a human look, or are explicitly protected. Use when the user says /fleet-audit, asks what worktrees can be cleaned up, or wants a status check across all Ralph-loop/spike worktrees before running closeout on any of them.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-learningSkill
- bump-rfcSkill
- closeoutSkill
- create-github-issueSkill
- create-planSkill
- create-pr-descriptionSkill
- fixSkill
- flag-compiler-bugSkill
- hello-worldSkill
- loopSkill
- orchestrate-parallel-workSkill
- ralph-loopSkill
- review-and-fixSkill
- review-architectureSkill
- review-code-smellsSkill
- review-docs-claimsSkill
- review-incan-source-qualitySkill
- review-orchestrateSkill
- review-rfcSkill
- review-rust-proseSkill
- review-scopeSkill
- reviewSkill
- review-test-styleSkill
- start-workSkill
- testSkill
- write-commit-messageSkill
- write-rfcSkill
- yeet-prSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use fleet-audit first, to see the whole picture.
- Very specific: line 15
Use closeout second, worktree by worktree, only on things fleet-audit reported as safe-to-close — and still verify PR-merged status …
- Very specific: line 16
Never use fleet-audit's output as authorization to force-remove anything.
- Very specific: line 35
If that script or the private workspace state root (~/Development/encero/.agents-state/) doesn't exist on this machine, say so plainly and …
- Very specific: line 40
If asked to mark something as protected on the spot, write a one-line reason to <worktree>/.agents/state/KEEP (create .agents/state/ first …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fleet Audit — Incan Worktrees
Purpose
/fleet-audit gives a read-only, fleet-wide status report across every worktree under the shared tmp/ root — something closeout deliberately does not do, since closeout only acts on one PR/branch at a time. This skill never removes, moves, or modifies anything. It exists to tell you (or an orchestrator deciding what to hand to closeout) what's actually going on before anyone touches a worktree.
When to use this vs closeout
- Use
fleet-auditfirst, to see the whole picture. - Use
closeoutsecond, worktree by worktree, only on thingsfleet-auditreported assafe-to-close— and still verify PR-merged status yourself percloseout's own rules before removing anything. - Never use
fleet-audit's output as authorization to force-remove anything. It classifies; it does not approve deletion.
How it works
Runs ~/Development/encero/.agents-state/scripts/fleet_audit.py, which:
- Lists every worktree via
git worktree list --porcelain. - Skips (reports as
protected) any worktree with a.agents/state/KEEPmarker file — that marker means a human already decided this one is not up for evaluation, full stop. - For everything else, checks: branch ancestry against
origin/main, matching GitHub PR state viagh pr list(catches squash/rebase merges the ancestor check alone would miss), uncommitted tracked file edits specifically (not just untracked build junk), and Ralph-loop slice status via the same parsing Codex's session hook already uses (~/.codex/hooks/ralph_state_impl.py'ssummarize_state). - Classifies each as
protected,safe-to-close, orneeds-review, with a one-line reason.
Workflow
Run:
python3 ~/Development/encero/.agents-state/scripts/fleet_audit.py --repo-root . --repo-slug encero-systems/incanIf that script or the private workspace state root (
~/Development/encero/.agents-state/) doesn't exist on this machine, say so plainly and stop — do not attempt to reimplement the logic inline.- Present the report grouped by status, exactly as the script outputs it. Do not editorialize the
protectedgroup — those are closed questions. - For
safe-to-closeentries, note that the next step is a human-approvedcloseoutrun per worktree, not automatic removal. - For
needs-reviewentries, summarize the reason field per worktree so the user can decide quickly (tracked edits vs. non-terminal loop state vs. no signal at all) rather than re-reading the whole report. - If asked to mark something as protected on the spot, write a one-line reason to
<worktree>/.agents/state/KEEP(create.agents/state/first if it doesn't exist) — do not mark something protected without a reason.
Output format
## Fleet Audit — <date>
### Protected (N)
- <worktree>: <reason>
### Safe to close (N)
- <worktree> (branch): <reason> — run /closeout to remove
### Needs review (N)
- <worktree> (branch): <reason>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.

