SKILL

strategic-compact

任意の自動コンパクションではなく、タスクフェーズを通じてコンテキストを保持するための論理的な間隔での手動コンパクションを提案します。

Original · translation did not pass checks

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Japanese text

Topics in the source

  • Strategic Compactスキル
  • なぜ戦略的コンパクションか?
  • 仕組み
  • フック設定
  • 設定
  • ベストプラクティス
  • 関連

任意の自動コンパクションに依存するのではなく、ワークフローの戦略的なポイントで手動の/compactを提案します。 自動コンパクションは任意のポイントでトリガーされます: 多くの場合タスクの途中で、重要なコンテキストを失う タスクの論理的な境界を認識しない 複雑な複数ステップの操作を中断する可能性がある 論理的な境界での戦略的コンパクション: 探索後、実行前 - 研究コンテキストをコンパクト、実装計画を保持 マイルストーン完了後 - 次のフェーズのために新しいスタート 主要なコンテキストシフト前 - 異なるタスクの前に探索コンテキストをクリア suggest-compact.jsスクリプトはPreToolUse(Edit/Write)で実行され: 1. ツール呼び出しを追跡 - セッション内のツール呼び出しをカウント 2. 閾値検出 - 設定可能な閾値で提案(デフォルト:50回) 3. 定期的なリマインダー - 閾値後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 に追加: 環境変数: COMPACTTHRESHOLD - 最初の提案前のツール呼び出し(デフォルト:50) 1. 計画後にコンパクト - 計画が確定したら、コンパクトして新しくスタート 2. デバッグ後にコンパクト - 続行前にエラー解決コンテキストをクリア 3. 実装中はコンパクトしない - 関連する変更のためにコンテキストを保持 4. 提案を読む - フックはいつを教えてくれますが、するかどうかは自分で決める The Longform Guide - トークン最適化セクション メモリ永続化フック - コンパクションを超えて存続する状態用

Source repository
affaan-m/ECC
Source file
docs/ja-JP/skills/strategic-compact/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.730Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.