eagle-compact-add

Add regex-based compacting rules to compact-rules.json for verbose Bash commands.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/letxbrace-droid/inrunparis --skill eagle-compact-add
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eagle-compact-add
Source: https://github.com/letxbrace-droid/inrunparis/tree/main/.agents/skills/eagle-compact-add
Command: npx skills add https://github.com/letxbrace-droid/inrunparis --skill eagle-compact-add

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces wasted tokens and noise by helping you add new compacting rules for commands that are too verbose for efficient use.

Core Features & Use Cases

  • Rule design for token-saving: Analyze command patterns and determine whether a flag-based or pipe-based rewrite is safe and effective.
  • Validation to prevent false matches: Test proposed regex patterns against matching samples and unrelated commands to avoid unintended rewrites.
  • Safe updates to compact-rules.json: Append only user-confirmed rules to the local compact rules database and keep a project copy in sync when needed.

Quick Start

Ask the skill to add a compact rule for your specific verbose command pattern, then confirm the proposed rule before it is written to compact-rules.json.

Frequently Asked Questions about eagle-compact-add

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compact verbose Bash commands to reduce token usage?

Command compaction rewrites verbose Bash commands into shorter equivalents using regex rules stored in compact-rules.json. It reduces wasted tokens and noise by applying flag-based or pipe-based rewrites during execution.

How do I add a new regex rule to compact-rules.json for command compaction?

To add a regex rule, provide a verbose command pattern and select a flag or pipe rule type. The Skill anchors the pattern, validates matches with jq tests, and writes the rule to ~/.claude/hooks/compact-rules.json after you confirm the proposed rewrite.

What is the difference between flag and pipe compacting rules for Bash commands?

Flag-based compacting rules rewrite verbose command options into shorter flag equivalents, while pipe-based rules replace verbose pipe chains with shorter alternatives. The Skill selects the appropriate type based on your specific command pattern analysis.

How do I prevent false matches when adding regex rules for Bash command compaction?

To prevent false matches, the Skill validates proposed regex patterns against matching samples and unrelated commands using jq tests. It also anchors patterns to avoid compound-command pitfalls before writing rules to compact-rules.json.

Does command compaction with regex rules work with CI command output?

Yes, command compaction with regex rules works with CI command output by reducing noise and wasted tokens. It rewrites verbose Bash commands into shorter equivalents while preserving safe behavior for CI execution contexts.

When should I not use command compaction rules for Bash commands?

You should not use command compaction rules when the verbose Bash command involves compound commands or complex pipe chains where anchoring patterns cannot safely preserve behavior. Always validate regex matches with jq tests before applying rules.