Genshijin Compress (memory file token slimmer)
Compresses Japanese memory files (CLAUDE.md, todos, configs) into terse "caveman" style to cut input tokens while keeping code and structure intact.
UtilitiesIntermediate★ 310⑂ 11AI score 9/10Last updated: Aug 15, 2026
What it does
- Aggressively compresses prose only in files like
CLAUDE.md, todo lists and config notes: drops polite forms, filler words, obvious particles and "please do X" phrasing, and rewrites sentences in clipped noun-ending style. - Declares strict read-only zones: fenced/indented code blocks, inline backticks, URLs, file paths, commands, env vars, versions/dates/numbers, raw error messages and proper nouns.
- Preserves Markdown structure: headings, bullet nesting, numbered lists, tables, frontmatter.
- The compressed version overwrites the original file, while the human-readable copy is saved as
FILE.original.md. - Refuses to send secrets:
.env,credentials.*, SSH keys, certificates, anything under.ssh/.aws/.gnupg/.kube/.docker, or filenames containing secret/token/apikey.
Who it's for
- Anyone maintaining long Japanese
CLAUDE.mdor project-rule docs that eat context every session. - Teams trying to reduce token spend from bloated memory files.
- Users who want compression but fear their code samples and commands getting mangled.
Usage examples
/genshijin-compress ~/project/CLAUDE.md→ prose shrinks, code blocks copied verbatim, backup written toCLAUDE.original.md.- Ask "compress my memory file" → the skill detects file type, runs the compression CLI, validates output, and patches only the broken spots on failure (max 2 retries).
- Point it at
.envorid_rsa→ it refuses and explains the security rule.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/InterfaceX-co-jp/genshijin/HEAD/skills/genshijin-compress/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/genshijin-compress folder from the GitHub repo InterfaceX-co-jp/genshijin into my ~/.claude/skills/genshijin-compress/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/InterfaceX-co-jp/genshijin.git /tmp/genshijin && mkdir -p ~/.claude/skills && cp -r /tmp/genshijin/skills/genshijin-compress ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/InterfaceX-co-jp/genshijin.git /tmp/genshijin - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/genshijin/skills/genshijin-compress ~/.claude/skills/ - Verify Python:
python3 --version(the compression CLI needs Python 3). - Restart Claude Code, then run
/genshijin-compress /absolute/path/CLAUDE.mdor just ask it to compress a memory file. - Test on a throwaway copy first and confirm the
FILE.original.mdbackup exists, since the original path is overwritten.
View source on GitHub ↗License: MIT