/steward:project-files-cleanupfrom steward
Scans project files (cloud folder, connected folders, or repo working tree), groups them into keep/delete/move buckets, and applies only user-approved buckets. Two modes: scan (report only) and apply (user-confirmed deletions/moves).
Ships in steward. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Working files pile up wherever Claude works: drafts, backups, staging copies, screenshots. Nothing removes them. This skill finds them, sorts them into buckets with evidence, and deletes or moves only what the user approves. It is self-contained: it relies on no other skill, runbook or cleanup routine.
It has two modes. Scan changes nothing and ends with a report. Apply runs only after the user approves named buckets in their own words.
Run it when the user says "clean up this project's files", "what can I delete here", "scan for cleanup", or on a schedule (scan only).
The skill is available everywhere, but it can only clean what this session can reach. Check which of these apply (more than one can):
| Surface | How to tell | What is in scope |
|---|---|---|
| Project shared folder | A shared project folder exists (for example /mnt/project-files/) | That folder, including chat uploads |
| Connected device folders | Folder tools for the user's computer are available | Only as the place permanent copies live, and as a move target. Never clean them unless the user asks |
| Code repository | The working directory is a git repository | Untracked and ignored scratch files, build output, merged branches, stale worktrees |
| Plain chat project | None of the above | Check whether you have a tool that lists or removes the project's files. The public documentation only describes the user managing them in the app, so if you have no such tool, go to "Manual checklist" |
Tell the user in one line which surface you found and what is out of reach. You cannot see other projects from here. To cover several projects, the user runs this skill once in each.
The profile is the only part that differs between projects. Look for it in project memory, or in a file named cleanup-profile.md at the top of the scanned folder. If none exists, propose one from what you observe, use it for this scan, and offer to save it.
# Cleanup profile
- Permanent homes: <folders or repos where finished work lives>
- Never touch: <paths that must be left alone>
- Known live paths: <folders scheduled tasks or pages read or write>
- Upload retention: <days to keep chat uploads, default 14>
- Roll-up file: <optional path on the user's computer for a one-line summary>
List every top-level folder and loose file with file count, total size and newest modified date. Use directory listings and sizes. Do not open or search file contents across the whole folder: a network folder may download each file on first read, and a broad recursive search of a large home or development folder can time out. Go one directory at a time, and skip node_modules, .git and similar.
Record the totals. They are the "before" figure.
Do this before classifying anything. A folder is live if something still reads or writes it:
List each live path with the evidence: which task or file names it.
For every folder that looks like a copy of something kept elsewhere, check the permanent home:
Every top-level folder and loose file gets exactly one bucket. Split a folder across buckets when its contents differ.
| Bucket | Meaning | Evidence required |
|---|---|---|
| A. Delete, verified copy | A permanent copy exists | Step 5 passed. Name where the copy is |
| B. Delete, scratch or superseded | Screenshots, mockups, old backups, staging, earlier versions of something that has a newer home | Say what replaced it. Flag anything you could not confirm |
| C. Move, then delete | Worth keeping, exists only here, and has an obvious permanent home | Name the proposed destination for each item |
| D. Keep, live | Read or written by a task, page or script | The evidence from step 4 |
| E. Your call | Small, unclear, or a safety backup of something recently removed | Say why it is unclear |
| F. Chat uploads | Files the user attached in conversations | Count older and newer than the retention period |
Guidance:
In a code repository, use the same buckets for: untracked scratch files and build output (B), ignored tool caches (D or B by profile), local branches fully merged into the default branch (A, the commits are in the default branch), stale worktrees with no uncommitted changes (B), anything uncommitted or unpushed (E, never delete). Never delete a branch with unmerged or unpushed commits, never force anything, and never touch the default branch.
Save a dated report named cleanup-list-<YYYY-MM-DD>.md in a cleanup-review/ folder inside the scanned folder, and show the user a short summary:
The full report lists every top-level folder with its bucket, count, size and the evidence. Then stop. On a scheduled run, stop here always.
Only the letters the user named. Order matters:
Some surfaces ask the user to allow deletion before any file is permanently removed (Cowork shows a permission prompt). Request it once, for the smallest set of folders, and say why. If deletion is blocked by permissions, do not work around it. Tell the user what is blocked and offer to gather the items into a _to-delete/ folder for them to remove.
When nothing can be listed or deleted from here, give the user this to walk through in the app:
If the user wants this on repeat, schedule the scan only (monthly is usually enough). The scheduled run writes the report, posts the short summary, and waits. It never applies anything. A scheduled run may execute where the user's computer is not reachable. If the permanent homes cannot be checked, mark the affected folders "copy not verified" and put them in E, not A.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (pacphi/workstation-steward) — no native marketplace selected
npx claudepluginhub p/pacphi-steward8 skills in this plugin
/ai-toolingKeeps this machine's AI tooling consistent with policy: Ruflo and AgentDB, the shared patched AQE runtime and CLI, RuvNet Brain, RuVector, the shared Ruflo launcher, the auto-update and daemon guards, and each project's AI launchers and hook shims. Reports drift read-only (steward ai drift), tracks upstream AQE releases and watched issues, and walks the qualification recipe for a new AQE or Ruflo version with backups and receipts. Respects each project's own tool choice: not every project uses ruflo, AQE or Brain. Use when asked "is the AI tooling OK", "check drift", "a new agentic-qe release is out", "upgrade ruflo", "why does this project use npx ruflo@latest", or "qualify AQE 3.15.x".
/chat-history-cleanupCatalogs claude.ai chat history up to a cutoff date into a CSV the user owns, matches each chat's artifacts against their Git repos, proposes delete (empty, or code already in a repo), archive (no artifacts) or review (unsaved work) for each, and archives or deletes only the buckets the user approves, verifying each one. Run once, then yearly; it can set up a scan-only scheduled task for early January. Use when asked to "clean up my chat history", "trim old chats", "prune old artifacts", "catalog my Claude chats", "run the yearly chat review", or to approve or review chats a scan proposed./fixTurns what the steward found into done work. Works the steward's work list (`steward brief --plan`, or the items of a `steward review --json`) top down through `steward fix`: runs the steps the user's [autonomy] level lets run unattended, asks the user for each step that needs a yes, hands over the steps only the user can take (merges, sudo, trust stores, anything by hand) as exact commands, stops at the first failure with its rollback, and ends with one summary. Independent items (a fleet repo's bot PRs, a sandbox qualification) can go to sub-agents. Use when the user says "fix it", "do what's next", "work the list", "handle what the review found", or when a `<steward-brief>` names this skill.
/pr-consolidationConsolidates open Dependabot and/or Renovate dependency PRs in one GitHub repo, in any ecosystem (Rust, Node/pnpm/npm, Go, Java/Maven/Gradle, Python, .NET, PHP, Ruby, GitHub Actions, Docker), into one verified PR on a fresh branch. Applies the bumps at manifest level within the current major, regenerates locks once, fixes upgrade-caused and pre-existing CI failures, makes every CI audit job pass, enforces the release-age gate (3 days by default), and writes a PR body that justifies every override, ignore and exception. Use when asked to "consolidate the Dependabot PRs", "combine the Renovate PRs", "roll the dependency PRs into one", "clear the security audit and the bot PRs", or to run a dependency-hygiene pass on a repo or across a fleet of repos.
/projectsDiscovers projects under the project roots set in steward.toml (Git repos, worktrees, submodules, and marked non-Git folders), surfaces new and vanished ones, and records the user's decision for each (onboarded with its chosen AI tools, ignored, or deferred) in the config folder's projects/registry.toml. Presents each new project with its evidence and options, says exactly what would happen if applied, and asks before acting. Not every project uses ruflo, AQE or Brain; the default is none. Use when `steward` reports new projects, or when asked "what new projects are there", "scan for projects", "onboard this repo", "ignore that folder", "which tools does this project use", or "confirm the project registry".
/skill-auditAudits every skill the AI tools on this machine can load (Claude Code, the Claude desktop app, Codex, Gemini CLI, GitHub Copilot, Grok Build (formerly Cursor), Hermes Agent) and publishes it as a claude.ai page you can filter by tool, plugin, source and verdict, then sets up a weekly scheduled task to keep it fresh. Use when asked to "audit my skills", "what skills do I have", "refresh the skill library audit", "which skills overlap", or to set up the audit's scheduled refresh.