compress-prompt
Compresses prompts/skills into minimal goal-focused instructions. Trusts the model, drops what it already knows, maximizes action space. Use when asked to compress, condense, or minimize a prompt.
npx skills add majiayu000/claude-skill-registry --skill compress-prompt --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Compress Prompt ## Goal Transform a prompt into the **minimal instruction** needed for the model to succeed. Not "preserve everything densely"—instead, "what's the least I need to say?" Output: Display compressed result + stats. Optionally write to file with `--output <path>`. ## Input `$ARGUMENTS` = prompt (file path or inline text) [--output path] If file path: read content. If inline: use directly. If ambiguous: try as file first. ## Principles 1. **Trust capability, enforce discipline** - Models know HOW to do tasks. But they cut corners, forget context, skip verification, declare victory early. Drop capability instructions, keep discipline guardrails. 2. **Goal over process** - State WHAT to achieve, not HOW. Let the model choose its approach. 3. **Training filter** - "Would a competent person need to be told this?" If no → drop it. Models are trained on millions of examples. 4. **Maximize action space** - Fewer constraints = more freedom = better results. Each constraint should earn its place. 5. **Inline-typable brevity** - Short enough you could type it verbally to a capable colleague. 6. **Avoid arbitrary values** - "Max 4 rounds" or "2-3 examples" become rigid rules. St
- Goal
- Input
- Principles
- What to Keep vs Drop
- Constraints
- Output Format
- Example
What does the compress-prompt skill do?
Compresses prompts/skills into minimal goal-focused instructions. Trusts the model, drops what it already knows, maximizes action space. Use when asked to compress, condense, or minimize a prompt.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill compress-prompt --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
