igapyon-skill-compactor

igapyon-skill-compactor is a skill for Codex from igapyon/igapyon-agent-skills. It costs 116 tokens per session (1,494 once invoked), scanned A, original, Apache-2.0.

A workflow for shortening or reorganizing an Agent Skill while preserving its activation rules, behavior, safety limits, inputs, outputs, and validation steps. An Agent Skill is a reusable set of instructions for an AI coding agent.

In plain words
What is it for?
Use it to inventory a skill's contract, decide what to keep or move, make an authorized compaction, compare the result with the source, and repair important regressions.
Why use it?
It removes repeated or unnecessary instructions without silently changing what the skill does or when it runs.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inventory a skill's contract, decide what to keep or move, make an authorized compaction, compare the result with the source, and repair important regressions.

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

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 igapyon-skill-compactor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/igapyon/igapyon-agent-skills/igapyon-skill-compactor"><img src="https://agentmods.dev/badge/skills/igapyon/igapyon-agent-skills/igapyon-skill-compactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,494 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.00116 $0.01494
Opus 5.5 $0.00046 $0.00598
Sonnet 5.5 $0.00023 $0.00299
Haiku 4.5 $0.00012 $0.00149

Measured 1mo ago against content hash 105166ecbf93, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

igapyon-skill-compactor 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (tests/harness-lib.mjs, tests/harness-lib.test.mjs, tests/run-codex-prompt-tests.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/igapyon-skill-compactor/SKILL.md · 143 lines

How it starts

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

igapyon-skill-compactor

Compact Agent Skills for repeated runtime efficiency without silently changing activation, behavior, safety, output, or validation contracts.

Core Execution Contract

Follow this loop for every compaction. Do not require a reference file to carry these steps.

  1. Establish the target, optimization surface, mode, allowed loss, and writable scope. If the user supplied them clearly, proceed without another question.
  2. Extract the source contract and a typed structured inventory.
  3. Make a placement map: keep, move, rewrite, delete, split, or no change.
  4. Change only the authorized target and preserve the selected mode's contract.
  5. Re-extract the inventory from the result and compare it with the source.
  6. Repair critical regressions, then report measured change and validation.

The source contract includes:

  • activation and non-activation boundaries
  • inputs, outputs, required order, conditions, and postconditions
  • commands, paths, IDs, URLs, code/config/API examples, and concrete evidence
  • prohibitions, exceptions, fallbacks, safety rules, and human confirmations
  • validation steps, expected results, references, and output contracts

Treat any missing critical item as a regression unless the user explicitly accepted that loss.

Mode And Loss Boundary

  • conservative is the default. Preserve all critical inventory and ambiguous source-specific meaning. Prefer local deduplication or moving long material with a direct route over deletion.
  • structural applies only when the user wants stronger compaction while retaining explicit lists, steps, criteria, and operational structure.
  • summary applies only when the user requests summary-like compression or accepts lower reconstruction fidelity. Never weaken activation, safety, required validation, or output contracts silently.
  • no change is valid when the target is already compact or when added references and maintenance cost would outweigh the reduction.

Read the full file on GitHub · 143 lines

Files

What ships with it

47 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. 1mo ago Changed · +2 lines 105166ecbf93
  2. 3mo ago First seen · 141 lines · 116 tokens per session scan A b8674992d216

Subscribe to this mod's changes

igapyon-skill-compactor is a skill published in the GitHub repository igapyon/igapyon-agent-skills (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 116 tokens to every session and 1,494 once invoked, about $0.0005 per session on Opus 5.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.

Related

igapyon-skill-compactor compared with skills from other repositories

igapyon-skill-compactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
igapyon-skill-compactorigapyon/igapyon-agent-skillsSkill2yesterdayApache-2.0A116Codex
dog-delivery-verificationLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A85Claude Code
dialoguequalityLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A54Claude Code, Codex
novel-creatorLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A44Claude Code, Codex
novel-reviewerLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A49Claude Code, Codex
style-systemLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A33Claude Code, Codex
foreshadowing-systemLiPu-jpg/OpenwriteSkill1.0k4d agoApache-2.0A52Claude Code, Codex