genshijin-compress

Compress Markdown memory files into genshijin format with backups and validation.

304|10|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/InterfaceX-co-jp/genshijin --skill genshijin-compress
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: genshijin-compress
Source: https://github.com/InterfaceX-co-jp/genshijin/tree/main/skills/genshijin-compress
Command: npx skills add https://github.com/InterfaceX-co-jp/genshijin --skill genshijin-compress

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill reduces input token usage by converting natural-language memory files into a compressed “genshijin/original person” style while preserving technical accuracy and structure.

Core Features & Use Cases

  • Token-saving compression for Markdown: Targets natural-language files such as CLAUDE.md, todos, and settings to shrink conversational overhead.
  • Deterministic safety boundaries: Refuses likely secret/credential files and avoids changing code blocks, inline code, URLs, headings, and file paths.
  • Backup + validation + recovery: Writes compressed output over the original after creating FILE.original.md, then validates preservation of headings, code blocks, URLs, and paths; on failures, it performs pin-point fixes without re-compressing fully.

Quick Start

Send the request to your AI: /genshijin-compress <filepath> to compress the specified memory Markdown file in place and save a human-readable backup.

Frequently Asked Questions about genshijin-compress

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce input tokens for large Markdown memory files like CLAUDE.md?

To reduce input tokens for Markdown memory files, you can compress natural-language text into a condensed format. This process rewrites prose-heavy documentation into a smaller representation while preserving technical accuracy and structural elements.

What Markdown elements are preserved during token compression?

During token compression, structural Markdown elements are preserved exactly to maintain technical correctness. The process safeguards code blocks, inline code, URLs, headings, file paths, document structure, and YAML frontmatter from any modification.

How do I compress memory files in place without losing the original content?

You can compress memory files in place by first creating a human-readable backup. The system writes the original content to a FILE.original.md backup file before overwriting the target file with the compressed output.

Does this Markdown compression tool validate that code blocks and URLs remain unchanged?

Yes, validation is performed after Markdown compression to ensure code blocks, URLs, and file paths remain unchanged. If validation failures occur, the system performs pin-point repairs on the specific errors without fully re-compressing the file.

Can I use this to compress settings files that might contain credentials?

You cannot use this to compress files containing credentials due to safety boundaries. The system identifies and refuses likely secret or credential files to prevent accidental exposure during memory file compression.

When should I compress my Markdown files before a Claude conversation?

You should compress Markdown files before memory-heavy conversations or PR review contexts to shrink conversational overhead. Compressing files like CLAUDE.md and todos beforehand reduces the input token usage while maintaining technical correctness.