output-workspace-cleanup

output-workspace-cleanup is a skill for Claude Code, Codex from davidtoby/agent-skills. It costs 75 tokens per session (2,094 once invoked), scanned C, original, MIT.

A guide for reorganizing an agent's output folder into clear project categories, with separate places for final files and temporary work.

In plain words
What is it for?
Use it to survey output folders, classify projects by their contents, set naming conventions, and document a cleaner directory structure.
Why use it?
It helps find deliverables in folders with inconsistent names and removes clutter from accumulated project outputs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to survey output folders, classify projects by their contents, set naming conventions, and document a cleaner directory structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidtoby/agent-skills/output-workspace-cleanup
Install

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.

Any agent
npx skills add davidtoby/agent-skills --skill output-workspace-cleanup
Clone the repo
git clone --depth 1 https://github.com/davidtoby/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for output-workspace-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidtoby/agent-skills/output-workspace-cleanup/github.svg)](https://agentmods.dev/skills/davidtoby/agent-skills/output-workspace-cleanup)
Your own site
<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.

agentmods 80×15 button for output-workspace-cleanup

Your own site · 80×15
<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>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 0b832ecb0b16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 {} +`
skills/devops/output-workspace-cleanup/SKILL.md · 183 lines

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

Read the full file on GitHub · 183 lines

Changes

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.

  1. 6d ago First seen · 183 lines · 75 tokens per session scan C 0b832ecb0b16

Subscribe to this mod's changes

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.