Borrowing it
Nothing to install: this file belongs to d4551/piratebao. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/d4551/piratebao/main/.opencode/skills/piratebao-compress/SKILL.mdgit clone --depth 1 https://github.com/d4551/piratebaoWrote 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.
[](https://agentmods.dev/skills/d4551/piratebao/piratebao-compress)<a href="https://agentmods.dev/skills/d4551/piratebao/piratebao-compress"><img src="https://agentmods.dev/badge/skills/d4551/piratebao/piratebao-compress/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.
<a href="https://agentmods.dev/skills/d4551/piratebao/piratebao-compress"><img src="https://agentmods.dev/badge/skills/d4551/piratebao/piratebao-compress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01119 |
| Opus 5 | $0.00039 | $0.00560 |
| Sonnet 5 | $0.00016 | $0.00224 |
| Haiku 4.5 | $0.00008 | $0.00112 |
Grade A, and why
piratebao-compress 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 11d ago.
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.
This is a copy
92% identical to caveman-compress — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PirateBao Compress
Purpose
Compress natural language files (CLAUDE.md, todos, preferences) into PirateBao terse pirate-dumpling prose to reduce input tokens. Compressed version overwrites original. Human-readable backup saved as <filename>.original.md.
Trigger
/piratebao:compress <filepath> or when user asks to compress a memory file.
Process
-
The TypeScript compressor lives in
src/dumpling/and runs from compileddist/dumpling/piratebaoCompress.js. -
Run:
node dist/dumpling/piratebaoCompress.js <absolute_filepath>
- The CLI will:
- detect file type (no tokens)
- call Anthropic SDK to compress
- validate output (no tokens)
- if errors: cherry-pick fix with Claude (targeted fixes only, no recompression)
- retry up to 2 times
- if still failing after 2 retries: report error to user, leave original file untouched
- Return result to user
Compression Rules
Remove
- Articles: a, an, the
- Filler: just, really, basically, actually, simply, essentially, generally
- Pleasantries: "sure", "certainly", "of course", "happy to", "I'd recommend"
- Hedging: "it might be worth", "you could consider", "it would be good to"
- Redundant phrasing: "in order to" → "to", "make sure to" → "ensure", "the reason is because" → "because"
- Connective fluff: "however", "furthermore", "additionally", "in addition"
Preserve EXACTLY (never modify)
- Code blocks (fenced ``` and indented)
- Inline code (
backtick content) - URLs and links (full URLs, markdown links)
- File paths (
/src/components/...,./config.yaml) - Commands (
bun install,git commit,docker build) - Technical terms (library names, API names, protocols, algorithms)
- Proper nouns (project names, people, companies)
- Dates, version numbers, numeric values
- Environment variables (
$HOME,NODE_ENV)
Preserve Structure
- All markdown headings (keep exact heading text, compress body below)
- Bullet point hierarchy (keep nesting level)
- Numbered lists (keep numbering)
- Tables (compress cell text, keep structure)
- Frontmatter/YAML headers in markdown files
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.
- 11d ago First seen · 116 lines · 78 tokens per session scan A 3e47b982b495
piratebao-compress is a skill published in the GitHub repository d4551/piratebao (4 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 1,119 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to caveman-compress, differing in 28 lines, and is treated as a copy.
Other skills, from other repositories
omd-recall
A search tool for recalling facts, decisions, and past solutions stored in a project's engineering memory. It searches by meaning and keywords and returns matching sources with confidence information.
token-waste-elimination
Audit and eliminate token waste from cognitive architecture memory files -- instructions, prompts, skills, and agents.
meditation
Consolidate session learning into permanent architecture — extract patterns into skills, instructions, prompts, or memory.
memory-types-team-stores
Use when configuring shared team memory stores and knowledge graphs.
memory-types
Use when managing persistent project memory, facts, and developer context.
fable-handoff
Compact session decisions, durable evidence, open blockers, and exact next actions into structured continuation state for cross-session resumption. Use when pausing a coding session, transferring context to another agent, summarizing long-running work, or creating durable continuation checkpoints — even if the user…