workspace-cleanup-audit
Workspace Cleanup Audit
Overview
Run a read-only scan over repositories in ~/Workspace and report cleanup chores ranked by severity. Never delete, move, or modify files.
Workflow
- Load active customization config:
- Prefer
<skill_root>/config/customization.yaml. - Fall back to
<skill_root>/config/customization.template.yaml.
- Prefer
- Run
scripts/scan_workspace_cleanup.py. - Review top-ranked findings first.
- Report findings with severity, repo, directory, category, size, and reason.
- Suggest cleanup actions as text only.
Commands
Use the default workspace scan:
uv run --with pyyaml python scripts/scan_workspace_cleanup.py
Scan a custom workspace root:
uv run --with pyyaml python scripts/scan_workspace_cleanup.py --workspace ~/Workspace
Return machine-readable output:
uv run --with pyyaml python scripts/scan_workspace_cleanup.py --json
Tune noise floor and stale threshold:
uv run --with pyyaml python scripts/scan_workspace_cleanup.py --min-mb 100 --stale-days 90
Configuration precedence:
- CLI flags
config/customization.yamlconfig/customization.template.yaml- Script hardcoded defaults
Customization Workflow
When a user asks to customize this skill, use this deterministic flow:
- Read active config from
config/customization.yaml; if missing, useconfig/customization.template.yaml. - Confirm desired behavior for:
- workspace root
- thresholds (
minMb,staleDays,maxFindings) - severity cutoffs
- directory/file override rules
- Propose 2-4 option bundles with one recommended default.
- Create or update
config/customization.yamlfrom template and set:schemaVersion: 1isCustomized: trueprofile: <selected-profile>
- Validate with a scan run and report changed keys plus behavior deltas.
Customization Reference
- Detailed knobs and examples:
references/customization.md - YAML schema and allowed values:
references/config-schema.md
Output Contract
Each finding includes:
severityrepodirectorycategorysize_humanscorewhy_flaggedsuggested_cleanup
The report also includes:
- Top findings sorted by severity then size
- Repo summary ranked by total flagged size
Read-Only Rules
- Never run destructive commands.
- Never remove artifacts automatically.
- Never write into scanned repositories.
- Provide recommendations only.
Automation Templates
Use $workspace-cleanup-audit inside automation prompts so Codex consistently loads this skill behavior.
For ready-to-fill Codex App and Codex CLI (codex exec) templates, including placeholders, safety defaults, and output handling, use:
references/automation-prompts.md
References
- Pattern and threshold notes:
references/patterns.md - Automation prompt templates:
references/automation-prompts.md - Customization guide:
references/customization.md - Customization schema:
references/config-schema.md
More from gaelic-ghost/productivity-skills
project-workspace-cleaner
Scan workspace repositories for cleanup opportunities using a read-only hygiene audit. Use when users ask to detect build/cache artifact buildup, stale large transient files, and prioritized cleanup chores by repository and directory.
161project-docs-maintainer
Maintain `*-skills` README standards and checklist-style roadmap docs through one canonical maintenance entrypoint. Use when a repo needs profile-aware README maintenance, checklist roadmap validation or migration, or a bounded audit-first doc workflow with Markdown and JSON reporting.
66things-digest-generator
Generate a week-ahead Things planning digest with recent activity, upcoming deadlines, and concrete next actions. Use when users request Things check-ins, weekly planning summaries, or prioritized planning recommendations.
28things-reminders-manager
Manage Things reminders and todo create/update requests with a deterministic MCP workflow that prevents duplicate tasks and date mistakes. Use when users ask to add, reschedule, or correct Things reminders, especially with relative dates or potential update-vs-create ambiguity.
13speak-with-profile
Profile-aware speech workflow for narrated notes, spoken drafts, audio summaries, accessibility reads, and other text-to-speech tasks. Use when one front-door workflow should resolve voice profiles, enforce disclosure, and apply manifest tracking before delegating to built-in `$speech` or a deterministic local CLI path.
12project-roadmap-manager
Create and maintain a repository-root ROADMAP.md as the single source of truth for project milestones and accepted plans. Use when bootstrapping any new project, accepting/completing a plan, defining or updating milestone/version roadmaps, marking milestones as reached/changed/de-scoped, or answering where roadmap and milestone status should be referenced.
12