genshijin-compress

Solid

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

Data & Documents 182 stars 6 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
75
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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例のみ残す 重要ルール: ``` ... ``` 内は **完全...

Details

Author
InterfaceX-co-jp
Repository
InterfaceX-co-jp/genshijin
Created
1 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress <filepath> or "compress memory file"

67,182 Updated 1 weeks ago
JuliusBrussee
AI & Automation Listed

compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress <filepath> or "compress memory file"

0 Updated today
noman3271
AI & Automation Listed

caveman-compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress <filepath> or "compress memory file"

0 Updated today
noman3271
Data & Documents Solid

genshijin

超圧縮コミュニケーションモード。原始人のように話してトークン使用量を約75%削減。 技術的正確性は完全に維持。強度レベル: 丁寧・通常(デフォルト)・極限の3段階。 「原始人モード」「短く」「簡潔に」「トークン節約」と言うか、/genshijin で起動。

182 Updated 1 weeks ago
InterfaceX-co-jp
AI & Automation Listed

compact

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals during development sessions.

42 Updated 1 months ago
xiaobei930