eagle-compact-add

Propose and validate regex rules that shorten verbose Bash command output.

3|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/eagleisbatman/eagle-skills --skill eagle-compact-add-eagleisbatman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eagle-compact-add
Source: https://github.com/eagleisbatman/eagle-skills/tree/main/eagle-compact-add
Command: npx skills add https://github.com/eagleisbatman/eagle-skills --skill eagle-compact-add-eagleisbatman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Long, noisy Bash command output wastes tokens and slows down AI-driven debugging and iteration.

Core Features & Use Cases

  • Rule design for the compact hook: Helps you choose the right match pattern and rule type so verbose commands get rewritten safely.
  • Flag vs. pipe rule selection: Recommends lossless “flag” rules for commands that support truncation options and “pipe” filtering rules for noisy output.
  • Validation and safety guardrails: Guides you to test patterns for correctness and avoid false positives, especially for compound shell commands.
  • Rule deployment: Uses jq to append confirmed rules to the local compact-rules.json and (when applicable) syncs the repo copy.

Quick Start

Ask the skill to “add a compact rule for the command I just ran because it’s too verbose,” then confirm the proposed JSON rule before it updates your 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 shorten verbose Bash command output so it stops wasting AI context window tokens?

To shorten verbose Bash command output to save tokens, this skill proposes and validates regex hook rules that rewrite noisy commands like git log or docker ps using flag or pipe filters before appending them to your configuration.

How do I add a regex rule to filter noisy shell command output safely?

To add a regex filtering rule safely, this skill guides you to select flag or pipe rule types, anchor word-boundary-safe patterns, test for false positives on compound commands, and append confirmed rules to your JSON configuration.

What is the difference between flag and pipe rules for command output filtering?

Flag rules apply lossless truncation options for commands that support them, while pipe rules filter noisy output by passing it through external programs, ensuring verbose Bash output gets shortened safely without losing critical data.

Can I use jq to append new hook rules to my compact-rules.json configuration?

Yes, you can use jq to append new hook rules to compact-rules.json. This skill deploys confirmed regex rules by running jq to update the local configuration file and sync the repository copy when applicable.

Why do my regex command rewriting rules match the wrong shell commands?

Regex command rewriting rules match incorrectly when patterns lack proper anchoring and word boundaries. This skill validates patterns against compound shell commands to prevent false positives before deploying rules to your configuration.

Do I need to test compact hook rules before deploying them to my repository?

Yes, you need to test compact hook rules before deployment. This skill enforces validation guardrails by checking regex patterns for correctness and false positives on compound commands, then syncing confirmed rules to your repo copy.