Skip to content
Agentmart
Submit a tool

igapyon-skill-compactor

Use when the user explicitly asks to use or apply `igapyon-skill-compactor`, or clearly asks to compact, slim, prune, or restructure a specific Agent Skill…

Skill by igapyon

IndexedApache-2.0★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/igapyon-igapyon-skill-compactor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when the user explicitly asks to use or apply `igapyon-skill-compactor`, or clearly asks to compact, slim, prune, or restructure a specific Agent Skill while preserving behavior. Do not activate for a mere name mention, existence question, explanation or design discussion, meta review/audit/debug/update of this skill, ordinary Skill creation, generic refactoring, documentation editing, repository cleanup, or broad token-efficiency discussion. Meta work about this skill uses the normal maintenance workflow unless the user explicitly asks to compact this skill itself.

Use cases: design, security, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/igapyon-skill-compactor

What's inside

Skill name
igapyon-skill-compactor
Description
Use when the user explicitly asks to use or apply `igapyon-skill-compactor`, or clearly asks to compact, slim, prune, or restructure a specific Agent Skill while preserving behavior. Do not activate for a mere name mention, existence question, explanation or design discussion, meta review/audit/debug/update of this skill, ordinary Skill creation, generic refactoring, documentation editing, repository cleanup, or broad token-efficiency discussion. Meta work about this skill uses the normal maintenance workflow unless the user explicitly asks to compact this skill itself.
License
Apache-2.0
Instructions
139 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (48)

  • README.md
  • SKILL.md
  • openai.yaml · agents/
  • .gitkeep · distilled/
  • token-efficiency-design-essence.md · distilled/
  • compaction-modes-example.md · examples/
  • frontmatter-distilled-example.md · examples/
  • frontmatter-reference-example.md · examples/
  • compaction-modes.md · references/agent-skill/
  • compaction-workflow.md · references/agent-skill/
  • distilled-materials.md · references/agent-skill/
  • frontmatter-templates.md · references/agent-skill/
  • INDEX.md · references/checklists/
  • agent-skill.md · references/checklists/
  • checklist-timing.md · references/checklists/
  • prompt.md · references/checklists/
  • workflow.md · references/checklists/
  • checklist-selection.md · references/system/
  • design-philosophy.md · references/system/
  • token-efficiency-techniques.md · references/system/
  • frontmatter-distilled.md · templates/
  • frontmatter-minimal.md · templates/
  • INDEX.md · tests/
  • activation-prompts.jsonl · tests/
  • baseline-known.json · tests/
  • behavior-prompts.jsonl · tests/
  • evaluator-prompt.md · tests/
  • expected-result-schema.json · tests/
  • SKILL.md · tests/fixtures/branching-flow/
  • expectations.json · tests/fixtures/branching-flow/
  • SKILL.md · tests/fixtures/code-example/
  • expectations.json · tests/fixtures/code-example/
  • SKILL.md · tests/fixtures/concrete-data/
  • expectations.json · tests/fixtures/concrete-data/
  • SKILL.md · tests/fixtures/deploy-helper/
  • expectations.json · tests/fixtures/deploy-helper/
  • SKILL.md · tests/fixtures/duplicate-context/
  • expectations.json · tests/fixtures/duplicate-context/
  • SKILL.md · tests/fixtures/no-change/
  • expectations.json · tests/fixtures/no-change/
  • SKILL.md · tests/fixtures/prose-embedded/
  • expectations.json · tests/fixtures/prose-embedded/
  • SKILL.md · tests/fixtures/writing-contract/
  • expectations.json · tests/fixtures/writing-contract/
  • harness-lib.mjs · tests/
  • harness-lib.test.mjs · tests/
  • reference-routing-prompts.jsonl · tests/
  • run-codex-prompt-tests.mjs · tests/

SKILL.md (first lines)

# 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 [references/agent-skill/compaction-modes.md](references/agent-skill/compaction-modes.md)
only when detailed inventory treatment, code/example preservation, round-trip
criteria, representation selection, or mode ambiguity matters. Do not read it
for a small local conservative edit when the core contract above is sufficient.

## Measurement And Acceptance

Choose the optimization surface before editing:

- always-loaded `SKILL.md`
- Skill-local context normally read per invocation
- total Skill directory
- end-to-end input, cached input, output, reasoning, and rerun cost

Record before/after UTF-8 bytes, line count, always-loaded files, and added or
removed references. Record token counts only with the model/runtime/tokenizer
used. Also report preserved critical inventory, accepted loss, added lookup
steps, and new normal-path reference reads.

Do not use a fixed reduction percentage as the only success criterion. Prefer
`no change` when the likely repeated benefit does not justify the change.

## Placement And Human Decisions

Keep activation, the core loop, and critical safeguards in `SKILL.md`. Move
conditional detail, long examples, checklists, tests, and background to a
directly routed resource.

Ask the human before:

- changing architecture, workflow intent, or an activation/output contract
- splitting the Skill or introducing scripts, tools, or MCP
- commonizing text whose meaning differs by context
- deleting critical or source-specific material

Proceed without another question for safe, local, conservative compaction when
the target, scope, and behavior-preservation goal are already clear.

## Conditional References

When a condition below matches, read the named reference before deciding or
answering. Resolve every relative reference against the directory containing
this loaded `SKILL.md`, never against the target workspace or current working
directory. Do not substitute memory or the core loop for that required read.
Follow the named direct routes for known tasks. When a needed resource is
unknown, inspect or search the relevant directory. Consult an index only when
the target declares one and its metadata helps with the current task; do not
assume that every skill has an index or create one solely because there are
multiple references. Reach runner and case files through `tests/INDEX.md`, and
reach agent metadata directly through `agents/openai.yaml` when maintaining
integration metadata.

- [references/agent-skill/compaction-workflow.md](references/agent-skill/compaction-workflow.md):
  read for substantial edits, architecture, splitting, toolization, MCP, or
  behavior-risking placement decisions; do not read for small local edits.
- [references/system/design-philosophy.md](references/system/design-philosophy.md):
  read only for ambiguous system boundaries or architectural tradeoffs.
- [references/system/checklist-selection.md](references/system/checklist-selection.md):
  read only when a checklist is actually needed; it selects the smallest one.
- [references/system/token-efficiency-techniques.md](references/system/token-efficiency-techniques.md):
  read only when choosing advanced system-level techniques, not as a checklist
  entry point and not for routine compaction.
- [references/checklists/checklist-timing.md](references/checklists/checklist-timing.md):
  read only when applying or maintaining checklists.
- [references/agent-skill/distilled-materials.md](references/agent-skill/distilled-materials.md):
  read before creating or updating `distilled/` material.
- [distilled/token-efficiency-design-essence.md](distilled/token-efficiency-design-essence.md):
  read only when the distilled design philosophy is needed.
- [references/agent-skill/frontmatter-templates.md](references/agent-skill/frontmatter-templates.md):
  read only when adding index-friendly Markdown front matter.
- [tests/INDEX.md](tests/INDEX.md): read only when validating this Skill.

## Editing Rules

- Preserve behavior before reducing tokens; move meaning instead of erasing it.
- Prefer deleting generic explanation over task-specific rules.

From igapyon/igapyon-agent-skills, Apache-2.0.

More from igapyon/igapyon-agent-skills

Signals

Stars
2
Forks
0
Open issues
24
Last commit (this folder)
Oct 13, 2026 (15 days ago)
Last release
Oct 24, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from igapyon

Cite this page

igapyon-skill-compactor. Agent Mart. https://agentmart.dev/skills/igapyon-igapyon-skill-compactor (last updated 2026-10-24)