igapyon-skill-compactor

igapyon-skill-compactor is a skill for Codex from igapyon/igapyon-agent-skills. It costs 116 tokens per session (1,475 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,475 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.01475
Opus 5 $0.00058 $0.00737
Sonnet 5 $0.00023 $0.00295
Haiku 4.5 $0.00012 $0.00147

Measured 8d ago against content hash b8674992d216, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 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 · 141 lines

Files

What ships with it

48 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 · 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 24d ago), licensed Apache-2.0. It adds 116 tokens to every session and 1,475 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

release-version

Steps to cut a VNote version release (e.g. v4.3.0) — bump the version with scripts/updateversion.py, refresh and fill zhCN/ja translations via lupdate, write the changes.md changelog, and trigger the CI [Release] build. Use when asked to "release", "cut a release", "bump the version", or "prepare vX.Y.Z".

vnotex/vnote · 86 tokens

clarity

Draft, rewrite, or review reader-facing prose so it is specific, useful, and recognizably the author's without inventing facts or performing humanness. Use for essays, articles, newsletters, documentation, talks, launch copy, and other important prose that feels generic, hollow, or AI-shaped. Supports co-write…

addyosmani/clarity · 76 tokens

novel-creator

A Chinese-language writing workflow for creating, continuing, reviewing, polishing, and saving novel chapters.

LiPu-jpg/Openwrite · 44 tokens

novel-reviewer

A review and editing workflow for existing novel chapters. It checks story logic, timelines, character states, unresolved clues, world rules, and writing style.

LiPu-jpg/Openwrite · 49 tokens

dialoguequality

A dialogue-review system for novels that studies how characters speak and whether their voices remain distinct. It can examine speech habits, sentence length, question frequency, and repeated phrases.

LiPu-jpg/Openwrite · 54 tokens

foreshadowing-system

A system for tracking foreshadowing in novels. Foreshadowing means placing a clue or unresolved question earlier in a story and addressing it later.

LiPu-jpg/Openwrite · 52 tokens