/composto:composto-irfrom composto
Generates health-aware intermediate representation (IR) of files at 4 token-efficiency levels. Use to share file context with LLMs or understand code without reading full source.
Ships in composto. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate compressed, health-annotated code representation. Send meaning, not code.
# L0: Structure Map (~10 tokens) — just file outline
npx composto ir <file> L0
# L1: Health-Aware Generic IR (~85 tokens) — compressed code + health
npx composto ir <file> L1
# L2: Delta Context (~65 tokens) — only what changed + health
npx composto ir <file> L2
# L3: Raw Source — original code (fallback)
npx composto ir <file> L3
| Need | Layer | Tokens |
|---|---|---|
| "What's in this file?" | L0 | ~10 |
| "What does this file do?" | L1 | ~85 |
| "What changed recently?" | L2 | ~65 |
| "Show me the exact code" | L3 | variable |
src/auth/session.ts
FN:createSession L5
FN:validateToken L23
CLASS:SessionManager L45
USE:jsonwebtoken{sign,verify}
FN:createSession({credentials}) [HOT:12/30 FIX:67% COV:↓ INCON]
VAR:token = sign(credentials, secret)
RET {token, expiresAt}
Health annotations (only on unhealthy code):
[HOT:12/30] — 12 changes in last 30 commits (hotspot)[FIX:67%] — 67% of changes were bug fixes[COV:↓] — test coverage declining[INCON] — inconsistent patterns from multiple authorsRaw source code wastes tokens on syntax, indentation, and boilerplate that LLMs already know. Health-Aware IR strips the noise and adds health signals that raw source never had. Less tokens, more insight.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job