SkillsReviewed · steipete

Skill Cleaner

Skill Cleaner is an audit skill for people managing Codex or OpenClaw skill collections, but its findings do not prove a skill is unused or safe to remove. Its local TypeScript analyzer estimates space occupied by skill listings, identifies duplicate candidates and suggests shorter descriptions.

Researched 17 Nov 2026

In short.

Skill Cleaner is an audit skill for developers maintaining Codex or OpenClaw skill collections, but its recommendations depend on approximate budgets and incomplete usage clues. It combines Codex prompt inspection, filesystem discovery, text similarity and optional log scanning to produce cleanup suggestions without implementing edits or deletions. The supplied source supports these capabilities, but runtime compatibility, useful space savings and cleanup accuracy were not assessed; neither the analyzer nor its tests were run.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied skills/skill-cleaner scope: SKILL.md, agents/openai.yaml, scripts/skill-cleaner.ts and scripts/skill-cleaner.test.ts, plus the repository-level LICENSE supplied as an applicable notice. All five captured files are tied to revision 2f82700ba9f3e7e93d3583e1990992584561eadc. Other repository contents, Codex internals, installed host behavior and actual user logs are outside this evidence. No commands or tests were executed; runtime behavior, exact token accounting, cleanup outcomes and performance remain unassessed.

The overview

Identity

Skill Cleaner belongs to the skills/skill-cleaner folder in steipete/agent-scripts [https://github.com/steipete/agent-scripts/tree/main/skills/skill-cleaner]. It packages assistant instructions, display metadata, a TypeScript analyzer and unit-test source.

The interface metadata names it Skill Cleaner and describes audits of skill budget, usage and duplicates. It is a skill with a companion command-line program, rather than a hosted service.

Assessment

The strongest use case is understanding a crowded collection before making small, deliberate changes. The analyzer distinguishes Codex's exposed skill inventory from broader filesystem discoveries, compares copies and separates full-description pressure from its simulated budgeted listing.

Its output needs interpretation. A similarity score does not establish that two skills are interchangeable, and a zero usage count does not establish that a skill is unnecessary. No measured improvement in assistant performance or task accuracy is provided.

Users

It suits developers and maintainers whose skills are spread across personal installations, plugin caches and repositories. Beginners can use its report to locate overlapping copies and long descriptions, but need enough command-line familiarity to supply paths and inspect the original files.

Although the skill addresses Codex and OpenClaw users, its live inventory command is specific to Codex. OpenClaw/Clawd support in the captured analyzer consists of additional log locations enabled by --deep-logs; a live OpenClaw inventory integration is not implemented.

Capabilities

The text report includes skill-list budget estimates, shorter-description drafts, duplicate names, matching normalized body hashes, deletion candidates, usage clues and root summaries. --json outputs structured inventory, usage and budget data, but does not include every suggestion section from the text report.

Options support extra roots, exclusive root discovery, disabled-skill diagnostics, different context and budget assumptions, and reduced inspection through --no-live or --no-logs. The analyzer prints findings; it contains no implementation for editing descriptions, deleting directories or changing configuration.

Using it

Requirements

The documented command requires Node.js with support for --experimental-strip-types. The analyzer imports only Node built-in modules. Minimum supported Node.js and Codex versions are not stated.

Live discovery requires a codex executable supporting debug prompt-input. Filesystem discovery remains available without it. Depending on options, the analyzer also reads local skill files, ~/.codex/config.toml, ~/.codex/models_cache.json and conversation logs. Its conventional directory layout assumes locations such as ~/.codex and ~/Projects; operating-system compatibility was not assessed.

Mechanism

By default, the analyzer invokes codex debug prompt-input and parses skill names, order and aliased paths. It separately scans conventional roots for duplicate and disabled-copy diagnostics, resolving real paths to avoid counting symlink aliases as separate files. If live inspection fails, it falls back to filesystem discovery.

The budget models the space used by skill names, descriptions and paths, rather than full skill bodies or the whole conversation. It defaults to 2% of a context size looked up under the gpt-5.5 label in the local model cache. If unavailable, its fallback is 272,000 tokens. These are program assumptions, not confirmation of the active model. Costs use rounded-up UTF-8 bytes divided by four, including alias-table overhead; descriptions are shortened or entries omitted when necessary.

Duplicate comparison uses normalized text hashes and word-set overlap. Deletion suggestions require body similarity of at least 95%, or both body and description similarity of at least 85%. Usage clues come from user mentions and skill paths in tool-call arguments or command-like log text; these references do not prove that a file was successfully read.

Setup

Keep the supplied folder layout so SKILL.md, agents/openai.yaml and scripts remain together. From the repository root, the documented audit command is node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --months 3. The supplied files do not establish a universal host installation procedure.

Add --no-logs to omit conversation-log scanning. Add --no-live as well to use filesystem discovery without invoking Codex. Extra directories require --root followed by a path. --root-only requires at least one --root and disables live discovery, but does not by itself disable log scanning or reads of Codex configuration and model metadata.

Example

For a collection stored in ~/.agents/skills, the documented example is node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --root ~/.agents/skills --root-only --no-logs. This limits skill discovery to that root and omits live inspection and usage-log scanning.

If the resulting report lists two same-named skills, compare their full instructions before accepting its preferred copy. With --no-logs, zero usage counters provide no evidence of inactivity. This is an illustrative interpretation of the command and report structure; no output was generated.

Assessment & evidence

Limitations

Usage coverage is incomplete. The default three-month window primarily filters log files and directories by modification time; individual records are not filtered by event timestamp, and history.jsonl is included when present regardless of age. Files above 150 MB are skipped, and the default aggregate allowance is 300 MB. The displayed log-file count includes eligible files even when size limits prevent reading them.

Text similarity ignores important semantic differences, including word order in word-set comparisons. Shorter-description drafts remove stock phrases and truncate text, so they can lose useful triggers. Configuration and frontmatter parsing are limited custom parsers, and live entries with missing paths or unrecognized frontmatter can be omitted.

Budget calculations are approximations. The --chars-per-token option changes the reported ratio, but the calculation function remains fixed at four bytes per token. Compatibility with Codex's actual budgeting implementation, cleanup precision and resulting assistant behavior were not assessed.

Reasoning

Its practical value comes from bringing scattered inventories, potential copies and long descriptions into one report. That makes it a plausible aid for deciding what to inspect next. Its source does not justify treating rankings as automatic removal decisions or translating estimated listing reductions into better assistant performance. Repository-specific operational instructions can remain necessary even when another skill has a similar name or vocabulary.

Alternatives

For the narrower question of what Codex exposes in its debug prompt, inspect codex debug prompt-input directly, which is the same command used by this analyzer. For a small collection, manually comparing SKILL.md files and configuration may be sufficient. Skill Cleaner adds aggregation, similarity scores and draft descriptions. The supplied evidence contains no comparison with other cleanup products or measurements of time saved.

Evidence

The source includes usage instructions, assistant interface metadata, the analyzer, six unit-test definitions and the parent license. The tests cover exclusive root discovery, live-prompt parsing, description compaction, user-versus-developer usage attribution, relative skill paths and command-like plain-log references.

Those test definitions provide no execution results. Budget allocation, duplicate ranking and complete host integration are not covered by the supplied tests. The pinned analyzer source is [https://raw.githubusercontent.com/steipete/agent-scripts/2f82700ba9f3e7e93d3583e1990992584561eadc/skills/skill-cleaner/scripts/skill-cleaner.ts]. Neither this program nor its tests were run.

Access & freshness

Costs

The MIT license permits use without a license fee. The analyzer implements local file processing and a local Codex subprocess, with no direct model-provider API calls in its source. Runtime, memory use and any cost associated with the installed host or its debug command are unknown. No subscription prices, per-run charges or measured savings are established.

Rights

The captured repository-level MIT License names Peter Steinberger as the 2026 copyright holder. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions. It disclaims warranties and liability. No separate license notice appears in the four captured skill files. The license text is available at [https://raw.githubusercontent.com/steipete/agent-scripts/2f82700ba9f3e7e93d3583e1990992584561eadc/LICENSE].

Freshness

The supplied snapshot was captured on 2026-11-17 at 11:07:05.264 UTC and is pinned to revision 2f82700ba9f3e7e93d3583e1990992584561eadc. Findings apply to that revision. The capture timestamp does not establish when individual files last changed. Later repository changes and compatibility with other Codex/OpenClaw versions are unknown.

Actions

Start by checking the report's inventory source and context source so you know whether it used live Codex information, filesystem fallback or default context assumptions. Use --no-logs when usage evidence is unnecessary, and interpret absent usage evidence conservatively.

Before removing a suggested copy, inspect both complete files and confirm the retained copy is available to the intended host. Preserve repository-specific policy and operational instructions. Review shorter descriptions for the product, tool, action and object that should trigger them; useful space savings and behavior after changes require separate verification.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/skill-cleaner/SKILL.mdselected · checked 2026-11-17
skills/skill-cleaner/agents/openai.yamlselected · checked 2026-11-17
skills/skill-cleaner/scripts/skill-cleaner.tsselected · checked 2026-11-17