本文へスキップ
Skillpedia
自動化48k · #4118

cc-skill-strategic-compact

できること

このツールは、長く複雑なタスクの進捗をまとめるのに役立ちます。何が完了し、何がまだ残っているか、そして重要なルールや決定事項を保存するので、文脈を失わずに途中から再開できます。

使う場面

  • ✓プロジェクトの大きなマイルストーンを達成したとき
  • ✓AIとの会話が長くなり、繰り返しが多くなってきたとき
  • ✓タスクの重要な新しいフェーズを始める前

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cc-skill-strategic-compact/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cc-skill-strategic-compact/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“現在のタスクの進捗を保存してください。後で続きから作業できるようにしたいです。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、会話の中から主な目的、決めたルール、完了した作業、未完了の作業といった重要なポイントを特定します。それらを後で使えるように、わかりやすい要約にまとめます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Strategic Context Checkpoints

Condense context after a verified phase, with enough durable information to resume the same task. A tool-call count is only a reminder; it cannot measure context quality or decide when compaction is safe.

When to Use

Use when exploration has finished, a tested milestone has landed, or a long conversation contains repeated or obsolete reasoning. Do not compact in the middle of an unresolved tool call, an unrecorded approval decision, or a failure whose exact evidence has not been captured.

Inputs and prerequisites

  • The user's current objective, accepted constraints and definition of done.
  • The current branch and source revision, local changes, relevant artifact paths and actual check results.
  • Running processes, pending tool calls, approvals or external blockers.
  • A host-supported context-compaction mechanism. This skill does not assume /compact exists in every client or manipulate internal context files.

Procedure

  1. Choose a phase boundary: discovery to implementation, implementation to verification, or one completed batch to the next. Preserve an unresolved failure's reproduction first.
  2. Reconcile task state with the filesystem and Git. Distinguish completed, uncommitted, planned and failed work.
  3. Produce the checkpoint below. Include exact commands, result summaries and paths needed to resume; omit copied logs and discarded hypotheses that no longer matter.
  4. Check that the next action is executable and that a new context would not repeat a merge, send a message twice, lose a constraint or overwrite unrelated work.
  5. Save only in an already authorized project artifact, or return the checkpoint in the conversation. Do not rewrite global memory or host configuration automatically.
  6. Use the client's supported compaction command if requested and available. On resumption, read the checkpoint and verify mutable state before continuing.

Checkpoint template

Objective and done condition:
User constraints and authorization boundaries:
Source revision, branch and local changes:
Completed outcomes with verification:
Outstanding work and known failures:
Running process/tool identifiers:
Artifacts and exact paths needed next:
Next action, expected result and fallback:

Worked example

For a search feature whose source PR merged while canonical synchronization is pending, preserve the source merge SHA, canonical PR number and expected generated files. Record tests as passed only for the revision actually tested. The next action is to verify the canonical PR and updated main; it is not to merge the source PR again. If a browser check still needs an unlocked desktop, keep that condition visible while continuing independent code review.

Expected outcome: the next context resumes outstanding verification, preserves unrelated local edits and does not claim publication from a source merge.

Optional stateless reminder

bash skills/cc-skill-strategic-compact/suggest-compact.sh 50

The helper accepts an observed tool-call count and optional threshold (default 50), and prints a reminder at the threshold and every 25 calls after it. COMPACT_TOOL_COUNT and COMPACT_THRESHOLD can be supplied by an explicit caller adapter. It stores no counter, estimates no token usage and never performs compaction. With no count it exits quietly.

Earlier versions incremented a shared user-state counter across unrelated sessions. That counter is no longer read or written; existing custom wrappers must pass a session count explicitly. Existing state files are left untouched. This skill does not install or edit a hook.

Limitations

  • A checkpoint preserves recorded evidence, not all conversation detail. Keep primary artifacts when exact bytes matter.
  • Counts are caller-provided, bounded non-negative decimal integers; reminders are not a context-capacity measurement.
  • Branches, processes and remote checks can change after a checkpoint. Revalidate them instead of treating a summary as current truth.
  • Client context management differs. Do not simulate compaction by deleting chat databases, logs, caches or project files.
よくある質問

会話の詳細はどうなりますか?

このツールは、タスクを再開するために必要な重要な決定や結果などの詳細に焦点を当てます。重要度が低い詳細や、すでに解決済みの詳細は、要約を簡潔に保つために省かれることがあります。

すべてが確実に保存されると信頼してよいですか?

このツールは記録された情報や根拠を保存します。ただし、保存後に外部で行われた変更や作業環境の変更については、改めて確認が必要になる場合があります。

このツールでファイルが削除されることはありますか?

いいえ、このツールはプロジェクトのファイル、ログ、設定を削除しません。重要な情報を整理した要約を作成するだけです。

詳細

作者による元の説明

Prepare a verified checkpoint before condensing an agent conversation at a phase boundary. Use during long tasks when context is repetitive; preserves constraints, evidence, decisions and the next action.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4118
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル