Delegate independent tasks to specialized agents working concurrently with isolated context.
Manage Context
manage-context
コンテキストサイズを監視し、作業中に自動 compact が走らないよう事前にコンテキストを圧縮する。「コンテキストを圧縮して」「compact して」「メモリを整理」「会話を整理」「履歴を圧縮」「コンテキストが大きい」「動作が重い」などで起動。操作がない時やタスクの区切りでコンテキストが一定ラインを超えていたら自動的に /compact を実行。
SKILL.md
Full skill instructions
Manage Context
コンテキストサイズを監視し、作業中に自動 compact が走らないよう事前にコンテキストを圧縮します。
目的
- 作業中に自動 compact が走って作業が中断されるのを防ぐ
- タスクの区切りや操作がない時に事前にコンテキストを圧縮
- パフォーマンスを維持しながらスムーズな作業を実現
ワークフロー
1. コンテキストサイズを監視
会話の長さやコンテキストサイズを常に監視。
2. 適切なタイミングで自動圧縮
以下のタイミングでコンテキストが一定ラインを超えていたら自動的に /compact を実行:
- タスクの完了時: 一つのタスクが完了した区切り
- 操作がない時: ユーザーの入力待ちの状態
- ファイル操作の区切り: 複数ファイルの編集が一段落した時
3. 圧縮の実行
閾値を超えている場合、ユーザーに確認せず自動的に /compact を実行。
(コンテキストを圧縮しています...)
圧縮のタイミング
| タイミング | 説明 |
|---|---|
| タスク完了後 | 「完了しました」の報告前 |
| 質問への回答後 | 回答を返す前 |
| 複数ファイル編集後 | 編集作業が一段落した時 |
| 長時間の会話 | 会話が長くなってきた時 |
閾値の目安
- コンテキストが大きくなってきたと感じたら圧縮を検討
- 多数のファイルを読み込んだ後
- 大量のコード変更を行った後
compact の効果
- 会話履歴を要約
- コンテキストサイズを削減
- レスポンス速度を改善
- トークン使用量を最適化
- 作業中の自動 compact による中断を防止
重要な注意事項
- ✅ タスクの区切りで自動的に圧縮
- ✅ 作業中断を防ぐため事前に圧縮
- ✅ 重要な情報が失われないよう注意
- ❌ 作業の途中(ファイル編集中など)では圧縮しない
- ❌ ユーザーが入力中は圧縮しない
More Other skills
brand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
Fundamental design principles for writing maintainable, testable Python code.
responsive-design
Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.
Generate Playwright tests from scenarios using interactive browser exploration and validation.
Automated website exploration and test case generation using Playwright.
Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.
gdpr-data-handling
GDPR-compliant data handling with consent management, data subject rights, and privacy controls.
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.
refactor-plan
Detailed multi-file refactor planning with safety checks and rollback guidance.
