Agent definitions and skills (folders with a SKILL.md) load into your coding agent's context each time, and a Claude agent with no tools list loads every tool: both cost tokens. Tests an agent writes can pass without testing anything: they mock away what they should exercise, or copy expected values from the code.
You need this if you use Claude Code or Codex and want cheaper agents and skills, or tests that catch real bugs.
- subagent-optimizer: cuts the tokens a Claude Code subagent or Codex custom agent loads at launch.
- skill-optimizer: shrinks a skill without dropping an instruction.
- writing-tests-that-can-fail: keeps the tests your agent writes real: each can fail on the bug it covers.
npx skills add IonDen/skillsThe CLI asks which skills and agents to install; Claude Code users: tick it, as it is not pre-selected. Your agent can load a skill when a task matches it.
| Skill | What it does |
|---|---|
| subagent-optimizer | Audits .claude/agents/*.md and .codex/agents/*.toml: sets a tight tools allowlist on Claude agents, removes keys that make Codex skip an agent, trims prompt bloat, and suggests a fitting model and reasoning effort. One real agent went from 20,122 to 13,962 launch tokens with the same result. |
| skill-optimizer | Fewer tokens per load: records every rule, anchor and literal of the original, then checks the rewrite against that record; rejects or asks rather than guessing. On five real skills it cut 1.2% to 3.5% of the body, 2.3% overall, kept every requirement it extracted, and listed the cuts it was unsure of instead of making them (evidence). |
| writing-tests-that-can-fail | In any language, tests exercise real behaviour rather than mocks, fail on the bug they exist to catch, and stay untouched when the code is what's wrong. Given the same prompts, Claude Haiku without the skill mocked both collaborators in 3 of 3 Python suites and copied expected values from the code's constants in 2 of 3; with the skill, 0 of 3 did either (evidence). In our Claude Code tests, two sentences in CLAUDE.md made it load far more often when tests were written (how). |
Any agent, with the skills CLI:
npx skills add IonDen/skills # pick skills interactively
npx skills add IonDen/skills --skill subagent-optimizer -g -a claude-code -y
npx skills add IonDen/skills --skill subagent-optimizer -g -a codex -y
npx skills add IonDen/skills --skill skill-optimizer -g -a claude-code -y
npx skills add IonDen/skills --skill skill-optimizer -g -a codex -y
npx skills add IonDen/skills --skill writing-tests-that-can-fail -g -a claude-code -y
npx skills add IonDen/skills --skill writing-tests-that-can-fail -g -a codex -y
npx skills updateMost agents share .agents/skills, so the CLI installs there by default. Claude Code reads .claude/skills, so these lines pass -a claude-code: without it the CLI asks which agents you want, and Claude Code is not pre-selected. Add --copy for real files instead of symlinks.
Claude plugin directory: the plugin is listed there. Add it on claude.ai to use it in Claude Code sessions.
Claude Code, as a plugin:
/plugin marketplace add IonDen/skills
/plugin install ionden-skills@ionden
Codex, as a plugin:
codex plugin marketplace add IonDen/skills
codex plugin add ionden-skills@iondenReleasing a plugin: the publishing instructions cover the upload ZIP and the OpenAI directory steps.
python3 -m pytest tests -qThe skills' scripts are plain Python 3.10+ with no dependencies. The repository validator and the tests need pyyaml and pytest.
MIT.