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 | $0.00037 | $0.01047 |
| Sonnet 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 6d 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.
- 6d 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 (10 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 2,094 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
find-skills
Use when automatically discover, evaluate, and activate community skills when local skills don't cover user needs. Includes credibility scoring and safety checks for complete OpenClaw self-sufficiency.
anti-sleep
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
Agent Browser
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
apple-mail
Apple Mail.app integration for macOS. Read inbox, search emails, send emails, reply, and manage messages with fast direct access (no enumeration).
filesystem
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot.
accli
This skill should be used when interacting with Apple Calendar on macOS. Use it for listing calendars, viewing events, creating/updating/deleting calendar events, and checking availability/free-busy times. Triggers on requests like "check my calendar", "schedule a meeting", "what's on my schedule", "am I free…