About project-workspace-cleaner
A read-only skill that scans repositories under a workspace root and ranks cleanup findings by severity. It reports repository-level totals and skipped paths while providing recommendations without modifying files.
Key features
- 01Read-only workspace repository scan
- 02Configurable scan thresholds and limits
- 03Severity-ranked cleanup findings
- 04Repository totals and skipped-path reporting
- 05Recommendations without file changes
Use cases
- 01Review generated or stale repository artifacts
- 02Prioritize cleanup across workspace repositories
- 03Identify large directories for manual review
- 04Audit scans with partial results
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ gaelic-ghost/ productivity-skills --skill project-workspace-cleanerAfter installing, type/project-workspace-cleanerin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
agents/openai.yamlconfig/customization.template.yamlreferences/automation-prompts.mdconfig-schema.mdcustomization.mdpatterns.mdscripts/scan_workspace_cleanup.pytests/test_scan_workspace_cleanup.pyDetails
From the project READMEProject Workspace Cleaner
Run a read-only scan over repositories in a workspace root and rank cleanup chores by severity.
Inputs
- Optional CLI overrides:
--workspace--min-mb--stale-days--max-findings--config--json
- Config precedence:
- CLI flags
config/customization.yamlconfig/customization.template.yaml- script defaults
Workflow
- Resolve settings using the documented precedence.
- Run
scripts/scan_workspace_cleanup.py. - Record skipped paths when traversal or stat operations fail, then continue scanning remaining accessible paths.
- Rank findings by severity, score, size, repo, and directory.
- Return the ranked findings plus repo-level totals.
- If there are no findings and no skipped paths, report the user-facing clean result.
Output Contract
Each finding includes:
-
severity -
repo -
directory -
category -
size_human -
score -
why_flagged -
suggested_cleanup -
Repo summary includes total flagged size and finding counts per severity.
-
JSON output includes
partial_resultsandskipped_paths. -
For user-facing clean runs, output exactly
No findings. -
If any path is skipped, return a partial-results warning and list skipped paths instead of using the clean-run message.
Guardrails
- Never run destructive commands.
- Never remove artifacts automatically.
- Never write into scanned repositories.
- Provide recommendations only.
References
references/config-schema.mdreferences/customization.mdreferences/automation-prompts.mdreferences/patterns.md