Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add davidtoby/agent-skills --skill output-workspace-cleanupgit clone --depth 1 https://github.com/davidtoby/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/davidtoby/agent-skills/output-workspace-cleanup)<a href="https://agentmods.dev/skills/davidtoby/agent-skills/output-workspace-cleanup"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/output-workspace-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/output-workspace-cleanup"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/output-workspace-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.02094 |
| Opus 5.5 | $0.00030 | $0.00838 |
| Sonnet 5.5 | $0.00015 | $0.00419 |
| Haiku 4.5 | $0.00007 | $0.00209 |
Grade C, and why
output-workspace-cleanup scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **`__pycache__`** — Python cache dirs can accumulate in project folders after moving. Clean with `find . -type d -name __pycache__ -exec rm -rf {} +` How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Output Workspace Cleanup
When to use
Load this skill when:
- The output directory (
~/.Hermes/workspace/output/or similar) has 10+ project folders at the root level with no categorical grouping - Project folder names are inconsistent (some use video ID, some use topic, some use auto-generated yt-dlp names)
- You need to separate final deliverables from intermediate working files
- The user says "整理一下" (tidy up) or "结构更清晰" regarding saved outputs
- A new project type emerges and needs a home in the existing structure
Core workflow
Phase 1: Survey
import os
output = os.path.expanduser("~/.Hermes/workspace/output/")
folders = sorted([d for d in os.listdir(output) if os.path.isdir(os.path.join(output, d)) and not d.startswith('.')])
# Categorize each folder by:
# 1. Contents — does it have PDF reports, MP4 videos, scripts, transcripts, etc.?
# 2. Nature — is it a report, a video production, a download, infographic, or system file?
Key patterns to identify:
| Has | Likely category |
|---|---|
| PDF consulting-style reports + markdown + transcripts | reports/consulting/ |
| Bilingual subtitle files + multiple MP4 versions | video_projects/bilingual_subtitle/ |
| Single MP4 download + maybe SRT | video_projects/raw/ or x_videos/ (if X/Twitter) |
| Python scripts for KOL/influencer research | reports/influencer_research/ |
| Infographic generator scripts + images | infographics/misc/ |
| Short video (< 3 min) | video_projects/shorts/ |
| Update logs, cron files | system/maintenance/ |
Phase 2: Design structure
Standard top-level schema:
output/
├── reports/
│ ├── consulting/ # Consulting-style PDF reports from video analysis
│ └── influencer_research/ # KOL/influencer investigation reports
├── video_projects/
│ ├── bilingual_subtitle/ # Bilingual subtitle video productions
│ ├── shorts/ # Short video downloads
│ └── raw/ # Raw source videos (IELTS, training, etc.)
├── x_videos/ # Shared X/Twitter video pool (keep flat)
├── infographics/
│ └── misc/
├── system/
│ └── maintenance/ # Agent update logs, cron job records
└── cache/
└── skill_repo/ # Cached skill repositories
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 183 lines · 75 tokens per session scan C 0b832ecb0b16
output-workspace-cleanup is a skill published in the GitHub repository davidtoby/agent-skills (11 stars, last pushed 14d ago), licensed MIT. It adds 75 tokens to every session and 2,094 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
output-workspace-cleanup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| output-workspace-cleanupdavidtoby/agent-skills | Skill | 11 | 14d ago | MIT | C | 75 | Claude Code, Codex |
| morph-pptiOfficeAI/OfficeCLI | Skill | 34k | 3d ago | Apache-2.0 | A | 169 | Claude Code, Codex |
| officecli-academic-paperiOfficeAI/OfficeCLI | Skill | 34k | 3d ago | Apache-2.0 | A | 141 | Claude Code, Codex |
| officecli-pptxiOfficeAI/OfficeCLI | Skill | 34k | 3d ago | Apache-2.0 | A | 106 | Claude Code, Codex |
| mailboxagentscope-ai/QwenPaw | Skill | 38k | today | Apache-2.0 | A | 79 | Claude Code, Codex |
| channel_messageagentscope-ai/QwenPaw | Skill | 38k | today | Apache-2.0 | A | 58 | Claude Code, Codex |
| officecliiOfficeAI/OfficeCLI | Skill | 34k | 3d ago | Apache-2.0 | A | 56 | Claude Code, Codex |