Skip to content
Agentmart
Submit a tool

caveman-compress

Trigger: /caveman:compress <filepath>, compress memory file.

Skill by manuel-retamozo-garcia

IndexedApache-2.0★ 4
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/snakeblack-caveman-compress

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

Trigger: /caveman:compress <filepath>, compress memory file. Compress prose files while preserving technical content and backups.

Use cases: writing

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 and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/caveman-compress

What's inside

Skill name
caveman-compress
Description
Trigger: /caveman:compress <filepath>, compress memory file. Compress prose files while preserving technical content and backups.
License
Apache-2.0
Metadata
author: manuel-retamozo-garcia · version: 1.0
Instructions
41 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (11)

  • README.md
  • SECURITY.md
  • SKILL.md
  • __init__.py · scripts/
  • __main__.py · scripts/
  • benchmark.py · scripts/
  • cli.py · scripts/
  • compress.py · scripts/
  • detect.py · scripts/
  • test_caveman.py · scripts/
  • validate.py · scripts/

SKILL.md (first lines)

## Activation Contract

Load only when the user explicitly asks to compress a natural-language file or invokes `/caveman:compress <filepath>`.

## Hard Rules

- Compress only prose files: `.md`, `.txt`, or extensionless memory files.
- Never compress source, config, lock, env, SQL, shell, HTML, XML, JSON, YAML, TOML, CSS, or generated files.
- Preserve exactly: fenced code blocks, inline code, URLs, markdown links, file paths, commands, technical names, proper nouns, dates, versions, numbers, and frontmatter.
- Preserve markdown heading text, list nesting, table structure, and numbering.
- Back up the original beside the file as `<filename>.original.md` before overwriting.
- Never compress an `.original.md` backup.
- If unsure whether text is code or prose, leave it unchanged.

## Decision Gates

| Condition | Action |
| --- | --- |
| Supported prose file | Compress prose outside protected regions. |
| Unsupported file type | Stop and report unsupported file. |
| Existing `.original.md` target | Stop unless user explicitly confirms overwrite. |
| Validation fails | Report failure; leave original untouched. |

## Execution Steps

1. Resolve the target path from the user command.
2. Validate file type and backup path.
3. Prefer the local script in `skills/caveman-compress/scripts/` when available: run `python -m scripts <absolute_filepath>` from `skills/caveman-compress`.
4. Compress by removing filler, hedging, pleasantries, redundant phrasing, and duplicate examples.
5. Validate protected regions stayed byte-identical before writing.

## Output Contract

Return the target path, backup path, compression status, and any validation failures.

## References

- `README.md` - usage details and examples.
- `SECURITY.md` - safety model for subprocess and file I/O.

From Snakeblack/ospec-workflow, Apache-2.0.

More from Snakeblack/ospec-workflow

Signals

Stars
4
Forks
0
Open issues
8
Last commit (this folder)
Jun 19, 2026 (4 months ago)
Last release
Oct 24, 2026 (4 days ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from manuel-retamozo-garcia

Cite this page

caveman-compress skill. Agent Mart. https://agentmart.dev/skills/snakeblack-caveman-compress (last updated 2026-10-24)