derived-cleanup

derived-cleanup is a skill for Codex from adiaz0511/Derived. It costs 75 tokens per session (529 once invoked), scanned A, original, MIT.

A cleanup tool for reclaiming storage used by Xcode, Apple's Simulator, and XCTest, Apple's testing framework. It scans for verified cleanup candidates through Derived's tools or command-line interface.

In plain words
What is it for?
Use it to scan storage, inspect selected cleanup categories, review candidates, and prepare deletion of approved items.
Why use it?
It helps identify removable developer files while distinguishing verified disk savings from XCTest's logical clone sizes.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to scan storage, inspect selected cleanup categories, review candidates, and prepare deletion of approved items.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adiaz0511/derived/derived-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 adiaz0511/Derived --skill derived-cleanup
Clone the repo
git clone --depth 1 https://github.com/adiaz0511/Derived

Made for: 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 derived-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/adiaz0511/derived/derived-cleanup/github.svg)](https://agentmods.dev/skills/adiaz0511/derived/derived-cleanup)
Your own site
<a href="https://agentmods.dev/skills/adiaz0511/derived/derived-cleanup"><img src="https://agentmods.dev/badge/skills/adiaz0511/derived/derived-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 derived-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/adiaz0511/derived/derived-cleanup"><img src="https://agentmods.dev/badge/skills/adiaz0511/derived/derived-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 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00529
Opus 5 $0.00037 $0.00264
Sonnet 5 $0.00015 $0.00106
Haiku 4.5 $0.00007 $0.00053

Measured 8d ago against content hash 04bff5b8b008, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

derived-cleanup scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Integrations/codex-plugin/derived/skills/derived-cleanup/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Derived Cleanup

Select the interface

Use these interfaces in order:

  1. Use Derived MCP tools when they are available.
  2. Otherwise, use the derived CLI with --json for structured results.
  3. Use the Derived macOS UI only when the user explicitly requests UI interaction or neither programmatic interface is available.

Treat a Derived app link, including a plugin://computer-use link for mx.devlabs.Derived, as identification of the app. Do not treat the link as a requirement to use Computer Use. Before loading Computer Use, search for Derived MCP tools and the derived executable.

Do not construct cleanup paths or run manual filesystem deletion commands. Both programmatic interfaces use the same scanner and cleanup validation as the app.

Inspect storage

  1. Run scan before making recommendations.
  2. Summarize category counts and verified reclaimable bytes.
  3. Report XCTest logical bytes separately. Do not describe logical clone sizes as verified space savings.
  4. Run list_candidates only for categories the user wants to inspect.
  5. Follow nextOffset until enough information is available. Do not request more than 50 rows at once.

Prepare cleanup

  1. Resolve the user's selection to candidate IDs or complete categories from the current scan.
  2. Run prepare_cleanup.
  3. Present its item count, categories, verified reclaimable bytes, logical bytes, and high-risk status.
  4. Ask the user for explicit confirmation using the returned confirmation phrase.

Do not interpret a request to inspect, scan, recommend, or preview as permission to delete.

Execute cleanup

  1. Run execute_cleanup only after the user explicitly approves the prepared plan.
  2. Pass the exact plan_id and confirmation_phrase returned by prepare_cleanup.
  3. Report removed, blocked, and failed items separately.
  4. Run a new scan when a scan or plan is missing, expired, or stale.

Never bypass warnings for active development tools, pinned runtimes, newest runtimes, archives, or other high-risk candidates.

Read the full file on GitHub · 47 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 47 lines · 75 tokens per session scan A 04bff5b8b008

Subscribe to this mod's changes

derived-cleanup is a skill published in the GitHub repository adiaz0511/Derived (0 stars, last pushed 17d ago), licensed MIT. It adds 75 tokens to every session and 529 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.