Agent skill

Genshijin Compress

by InterfaceX-co-jp in InterfaceX-co-jp/genshijin

自然言語メモリファイル(CLAUDE.md, todos, 設定)を原始人形式に圧縮し入力トークン削減. An agent skill from InterfaceX-co-jp/genshijin.

MITAuto-check: warningsAgent Workflows

Install Genshijin Compress

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add InterfaceX-co-jp/genshijin --skill genshijin-compress -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install InterfaceX-co-jp/genshijin genshijin-compress --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/InterfaceX-co-jp/genshijin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/genshijin-compress .claude/skills/genshijin-compress && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
genshijin-compress
GitHub stars
332
Token cost
~733 tokens
SKILL.md length
90 words
Files
7 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

自然言語メモリファイル(CLAUDE.md, todos, 設定)を原始人形式に圧縮し入力トークン削減. An agent skill from InterfaceX-co-jp/genshijin.

  • Works in 4 steps: この SKILL.md と同ディレクトリの scripts/ を検出 → 実行 → CLI 処理内容 → …
  • Tasks that involve Agent instruction files
  • SKILL.md covers 目的, トリガー, 処理フロー and 圧縮ルール
  • Runs Python scripts from its folder; calls python3, npm and git

What it does

Genshijin Compress is an agent skill from InterfaceX-co-jp/genshijin. 自然言語メモリファイル(CLAUDE.md, todos, 設定)を原始人形式に圧縮し入力トークン削減。 技術内容・コード・URL・構造は完全保持。圧縮版が原ファイルを上書き、人間可読版は FILE.original.md として保存。「/genshijin-compress <filepath」「メモリファイル圧縮」で起動。

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `scripts/__init__.py`, `scripts/__main__.py` and `scripts/cli.py`).

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: genshijin 原始人 🗿| Claude Code / Codex等AIエージェント 向け超圧縮コミュニケーションスキル。caveman の日本語版をベースに、日本語特有の冗長表現に最適化。 The licence is MIT.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/genshijin-compress”

Requirements

  • Python 3
  • Node.js
  • Docker

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. この SKILL.md と同ディレクトリの scripts/ を検出
  2. 実行
  3. CLI 処理内容
  4. 結果をユーザーに返却

What it can do on your machine

Read from SKILL.md and the folder at commit 968d3c4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • npm
    • git
    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, git and docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Genshijin Compress loads about 733 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 90 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~733

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • NoteMentions a .env fileSKILL.md:121
    py, .js, .ts, .json, .yaml, .yml, .toml, .env, .lock, .css, .html, .xml, .sql, .sh
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:126
    - 機密ファイル(.env, credentials, id_rsa 等)は絶対に送信しない → 拒否
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:132
    - `.env`, `.netrc`
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:134
    - SSH鍵(`id_rsa`, `id_ed25519` 等)
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:136
    - ディレクトリ `.ssh`, `.aws`, `.gnupg`, `.kube`, `.docker` 配下

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from InterfaceX-co-jp/genshijin at commit 968d3c4, republished under its MIT licence (© InterfaceX-co-jp). 90 words, ~733 tokens.

Download SKILL.mdSave it as .claude/skills/genshijin-compress/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
genshijin-compress
description
自然言語メモリファイル(CLAUDE.md, todos, 設定)を原始人形式に圧縮し入力トークン削減。 技術内容・コード・URL・構造は完全保持。圧縮版が原ファイルを上書き、人間可読版は FILE.original.md として保存。「/genshijin-compress <filepath>」「メモリファイル圧縮」で起動。

genshijin-compress

目的

自然言語ファイル(CLAUDE.md, todos, 設定)を原始人モード化して入力トークン削減。圧縮版が原ファイル上書き、人間可読版は <filename>.original.md で保存。

トリガー

/genshijin-compress <filepath> または「メモリファイル圧縮」等の依頼。

処理フロー

  1. この SKILL.md と同ディレクトリの scripts/ を検出

  2. 実行:

    cd <SKILL.md を含むディレクトリ> && python3 -m scripts <絶対ファイルパス>
  3. CLI 処理内容:

    • ファイル種別検出(トークン消費なし)
    • Claude API/CLI で圧縮
    • 出力検証(トークン消費なし)
    • エラー時: Claude で該当箇所のみピンポイント修正(再圧縮せず)
    • 最大2回リトライ
    • 失敗時: ユーザーにエラー報告、原ファイルは無変更
  4. 結果をユーザーに返却

圧縮ルール

削除
  • 敬語・丁寧語(です/ます/ございます)
  • クッション言葉(えーと/まあ/ちなみに/一応/とりあえず/基本的に/ざっくり言うと)
  • 前置き(ご質問ありがとうございます/お力になれれば幸いです)
  • ぼかし(〜かもしれません/〜と思われます/おそらく)
  • 冗長表現(〜することができる→〜できる、〜というものは→〜は)
  • 冗長接続(〜ということになりますので→だから、〜させていただく→する)
  • 自明な助詞(が/の/を/に/で/は/と/も)
  • 形容動詞活用語尾(な/に/で/だ)→ 語幹止め
  • 形式名詞(こと/もの/ため)→ 名詞化 or 省略
  • 補助動詞(ている/ておく/てしまう)→ 状態表現
完全保持(絶対変更しない)
  • コードブロック(fenced ``` and indented)
  • インラインコード(backtick)
  • URL・リンク(完全URL、Markdownリンク)
  • ファイルパス(/src/components/..., ./config.yaml)
  • コマンド(npm install, git commit, docker build)
  • 技術用語(ライブラリ名、API名、プロトコル、アルゴリズム)
  • 固有名詞(プロジェクト名、人名、企業名)
  • 日付、バージョン番号、数値
  • 環境変数($HOME, NODE_ENV)
  • エラーメッセージ原文
構造保持
  • Markdown見出し全て(見出しテキストは完全保持、下の本文のみ圧縮)
  • 箇条書き階層(ネストレベル維持)
  • 番号付きリスト(番号維持)
  • テーブル(構造維持、セル内テキストのみ圧縮)
  • Frontmatter/YAMLヘッダ
圧縮
  • 体言止め・用言止め
  • 漢字連結で助詞吸収(「高負荷時に高速」→「高負荷時高速」)
  • 和語→漢語化(「速く動作」→「高速動作」)
  • 断片OK: 「コミット前テスト実行」不可「コミット前に必ずテストを実行してください」
  • 「〜してください」「〜することを忘れずに」削除 → 動作のみ記述
  • 重複箇条書きを統合
  • 同パターン複数例は1例のみ残す

重要ルール: ... 内は 完全コピー。 禁止:

  • コメント削除
  • スペース削除
  • 行順変更
  • コマンド短縮
  • 簡略化一切

インラインコード(...)は完全保持。バッククォート内は一切変更しない。

コードブロック含むファイル:

  • コードブロックは読取専用領域として扱う
  • 外側のテキストのみ圧縮
  • コード周辺セクションの結合禁止

パターン例

例1

原文:

main ブランチにプッシュする前には必ずテストスイートを実行するようにしてください。これはバグを早期に発見し、壊れたビルドが本番環境にデプロイされるのを防ぐために重要です。

圧縮:

main push前テスト実行。バグ早期発見、壊れビルド本番デプロイ防止。

例2

原文:

このアプリケーションは以下のコンポーネントを持つマイクロサービスアーキテクチャを採用しています。APIゲートウェイが全ての受信リクエストを処理し、適切なサービスにルーティングします。認証サービスはユーザーセッションとJWTトークンの管理を担当します。

圧縮:

マイクロサービスアーキテクチャ。APIゲートウェイ 全受信リクエストをサービスにルーティング。認証サービス ユーザーセッション + JWTトークン管理。

境界

  • 自然言語ファイルのみ圧縮(.md, .txt, 拡張子なし)
  • 絶対変更しない: .py, .js, .ts, .json, .yaml, .yml, .toml, .env, .lock, .css, .html, .xml, .sql, .sh
  • 混在ファイル(散文 + コード)は散文部分のみ圧縮
  • コードか散文か判断つかない場合は変更しない
  • 原ファイルは FILE.original.md にバックアップしてから上書き
  • FILE.original.md は絶対圧縮しない(スキップ)
  • 機密ファイル(.env, credentials, id_rsa 等)は絶対に送信しない → 拒否

セキュリティ

圧縮は Anthropic API に生データ送信。以下は拒否:

  • .env, .netrc
  • credentials.*, secrets.*, passwords.*
  • SSH鍵(id_rsa, id_ed25519 等)
  • 証明書(.pem, .key, .p12, .crt 等)
  • ディレクトリ .ssh, .aws, .gnupg, .kube, .docker 配下
  • ファイル名に secret/credential/password/apikey/token/privatekey 含むもの

ヒューリスティック誤検知時は、ファイル名変更で回避可能。

© InterfaceX-co-jp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts) in skills/genshijin-compress of InterfaceX-co-jp/genshijin.

  • SKILL.md
  • scripts/__init__.py
  • scripts/__main__.py
  • scripts/cli.py
  • scripts/compress.py
  • scripts/detect.py
  • scripts/validate.py

Open the folder on GitHubat commit 968d3c4

Compare with similar skills

Genshijin Compress next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Genshijin Compress compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Genshijin Compress this skillInterfaceX-co-jp/genshijin332—~733Automated safety check: WarnMIT
Using Agent Skillsaddyosmani/agent-skills105k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.8k2 repos~627Automated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k20 repos~2.7kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~11kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    105k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.8k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 20 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~11k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed

More from InterfaceX-co-jp/genshijin

  • Genshijin Crew

    InterfaceX-co-jp/genshijin

    原始人スタイル subagent への委譲判断ガイド。genshijin-investigator (コード位置特定)、 genshijin-builder (1-2ファイル編集)、genshijin-reviewer (diff レビュー) を inline作業 or vanilla Explore の代わりにスポーンするタイミングを示す。subagent 出力は原始人圧縮 →…

    332 GitHub starsUsed in 1 repo~648 tokens
    Auto-check passed
  • Genshijin Commit

    InterfaceX-co-jp/genshijin

    超圧縮コミットメッセージ生成。Conventional Commits形式で件名≤50文字、 「何を」より「なぜ」を重視。日本語・英語両対応。

    332 GitHub stars~385 tokensUpdated 1 mo ago
    Auto-check passed
  • Genshijin Help

    InterfaceX-co-jp/genshijin

    全 genshijin モード・スキル・コマンドのクイックリファレンスカード. An agent skill from InterfaceX-co-jp/genshijin.

    332 GitHub stars~299 tokensUpdated 1 mo ago
    Auto-check passed
  • Genshijin Review

    InterfaceX-co-jp/genshijin

    超圧縮PRレビューコメント。1行1指摘: 位置・問題・修正。前置き削除、シグナル優先. An agent skill from InterfaceX-co-jp/genshijin.

    332 GitHub stars~337 tokensUpdated 1 mo ago
    Auto-check passed
  • Genshijin Stats

    InterfaceX-co-jp/genshijin

    現セッションのリアルトークン使用量と推定削減量を表示。Claude Code セッションログから直接読込 — AI 推定なし。

    332 GitHub stars~124 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Genshijin Compress

What does Genshijin Compress do?

自然言語メモリファイル(CLAUDE.md, todos, 設定)を原始人形式に圧縮し入力トークン削減. An agent skill from InterfaceX-co-jp/genshijin. Genshijin Compress is an agent skill from InterfaceX-co-jp/genshijin.

When should I use Genshijin Compress?

Genshijin Compress fits situations like: tasks that involve Agent instruction files.

How do I install Genshijin Compress in Claude Code?

Run `npx skills add InterfaceX-co-jp/genshijin --skill genshijin-compress -a claude-code`. Or copy the skill folder (skills/genshijin-compress in InterfaceX-co-jp/genshijin) into .claude/skills/genshijin-compress in your project. Claude Code loads it when a task matches its description.

How do I install Genshijin Compress in Codex?

Run `npx skills add InterfaceX-co-jp/genshijin --skill genshijin-compress -a codex`. Or copy the skill folder (skills/genshijin-compress in InterfaceX-co-jp/genshijin) into .agents/skills/genshijin-compress in your project. Codex loads it when a task matches its description.

Can I use Genshijin Compress in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add InterfaceX-co-jp/genshijin --skill genshijin-compress -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/genshijin-compress, .gemini/skills/genshijin-compress, .github/skills/genshijin-compress and .opencode/skills/genshijin-compress in your project.

What does Genshijin Compress need to run?

Going by SKILL.md and its folder, Genshijin Compress needs Python for the scripts in its folder and the command-line tools its instructions call (python3, npm, git and docker). Our summary lists: Python 3; Node.js; Docker.

Does Genshijin Compress access the network?

SKILL.md contains no URLs. Its commands use npm, git and docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Genshijin Compress safe to install?

Our automated static check of SKILL.md flagged 4 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Genshijin Compress use?

Genshijin Compress is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Genshijin Compress use?

About 733 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Genshijin Compress?

Skills that share tags, products or a category with Genshijin Compress: Using Agent Skills (addyosmani/agent-skills, 105k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.8k stars), Writing For Agents (bestofjs/bestofjs, 3.1k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Genshijin Compress?

InterfaceX-co-jp (a GitHub organization) maintains it in InterfaceX-co-jp/genshijin, which has 332 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 15, 2026.

Source: InterfaceX-co-jp/genshijin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.