affaan-m/ECC/docs/ja-JP/skills/strategic-compact/SKILL.md
strategic-compact
Review strategic-compact's use cases, installation, workflow, and original source instructions.
- Source repository stars
- 234,327
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
任意の自動コンパクションに依存するのではなく、ワークフローの戦略的なポイントで手動の/compactを提案します。
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/strategic-compact"Inspect the Agent Skill "strategic-compact" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/ja-JP/skills/strategic-compact/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
なぜ戦略的コンパクションか?
自動コンパクションは任意のポイントでトリガーされます: - 多くの場合タスクの途中で、重要なコンテキストを失う - タスクの論理的な境界を認識しない - 複雑な複数ステップの操作を中断する可能性がある
多くの場合タスクの途中で、重要なコンテキストを失うタスクの論理的な境界を認識しない複雑な複数ステップの操作を中断する可能性がある - 02
仕組み
suggest-compact.jsスクリプトはPreToolUse(Edit/Write)で実行され:
ツール呼び出しを追跡 - セッション内のツール呼び出しをカウント閾値検出 - 設定可能な閾値で提案(デフォルト:50回)定期的なリマインダー - 閾値後25回ごとにリマインド - 03
フック設定
プラグインとしてインストール済みの場合:設定は不要です。プラグインの hooks/hooks.json が既に suggest-compact.js を登録しています(フック ID pre:edit-write:suggest-compact、standard と strict フックプロファイルで有効)。下のブロックを /.claude/settings.json にコピーしないでください — プラグインインストールでは /.claude/scripts/ は存在せず、プラグインフックを重複させると二重実行になります。
プラグインとしてインストール済みの場合:設定は不要です。プラグインの hooks/hooks.json が既に suggest-compact.js を登録しています(フック ID pre:edit-write:suggest-compact、standard と strict フックプロファイルで有効)。下のブロックを /.claude/settings.json にコピーしないでください — プラグインインストールでは /.cla…手動インストール(./install.sh)の場合、/.claude/settings.json に追加:
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 65/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | catalog record | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/ja-JP/skills/strategic-compact/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
Strategic Compactスキル
任意の自動コンパクションに依存するのではなく、ワークフローの戦略的なポイントで手動の/compactを提案します。
なぜ戦略的コンパクションか?
自動コンパクションは任意のポイントでトリガーされます:
- 多くの場合タスクの途中で、重要なコンテキストを失う
- タスクの論理的な境界を認識しない
- 複雑な複数ステップの操作を中断する可能性がある
論理的な境界での戦略的コンパクション:
- 探索後、実行前 - 研究コンテキストをコンパクト、実装計画を保持
- マイルストーン完了後 - 次のフェーズのために新しいスタート
- 主要なコンテキストシフト前 - 異なるタスクの前に探索コンテキストをクリア
仕組み
suggest-compact.jsスクリプトはPreToolUse(Edit/Write)で実行され:
- ツール呼び出しを追跡 - セッション内のツール呼び出しをカウント
- 閾値検出 - 設定可能な閾値で提案(デフォルト:50回)
- 定期的なリマインダー - 閾値後25回ごとにリマインド
フック設定
プラグインとしてインストール済みの場合:設定は不要です。プラグインの hooks/hooks.json が既に suggest-compact.js を登録しています(フック ID pre:edit-write:suggest-compact、standard と strict フックプロファイルで有効)。下のブロックを ~/.claude/settings.json にコピーしないでください — プラグインインストールでは ~/.claude/scripts/ は存在せず、プラグインフックを重複させると二重実行になります。
手動インストール(./install.sh)の場合、~/.claude/settings.json に追加:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit",
"hooks": [{ "type": "command", "command": "node ~/.claude/scripts/hooks/suggest-compact.js" }]
},
{
"matcher": "Write",
"hooks": [{ "type": "command", "command": "node ~/.claude/scripts/hooks/suggest-compact.js" }]
}
]
}
}
設定
環境変数:
COMPACT_THRESHOLD- 最初の提案前のツール呼び出し(デフォルト:50)
ベストプラクティス
- 計画後にコンパクト - 計画が確定したら、コンパクトして新しくスタート
- デバッグ後にコンパクト - 続行前にエラー解決コンテキストをクリア
- 実装中はコンパクトしない - 関連する変更のためにコンテキストを保持
- 提案を読む - フックはいつを教えてくれますが、するかどうかは自分で決める
関連
- The Longform Guide - トークン最適化セクション
- メモリ永続化フック - コンパクションを超えて存続する状態用
Alternatives
Compare before choosing
affaan-m/ECC
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
affaan-m/ECC
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
affaan-m/ECC
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
affaan-m/ECC
strategic-compact
Review strategic-compact's use cases, installation, workflow, and original source instructions.