コンテキストサイズを監視し、作業中に自動 compact が走らないよう事前にコンテキストを圧縮する。「コンテキストを圧縮して」「compact して」「メモリを整理」「会話を整理」「履歴を圧縮」「コンテキストが大きい」「動作が重い」などで起動。操作がない時やタスクの区切りでコンテキストが一定ラインを超えていたら自動的に /compact を実行。
Scanned 9/2/2026
Install to Claude Code
npx -y skills add majiayu000/claude-skill-registry --skill manage-context --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Manage Context?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-manage-context-claude-skill-registry)More formats (shields.io, HTML) on the badges page.
---
name: manage-context
description: コンテキストサイズを監視し、作業中に自動 compact が走らないよう事前にコンテキストを圧縮する。「コンテキストを圧縮して」「compact して」「メモリを整理」「会話を整理」「履歴を圧縮」「コンテキストが大きい」「動作が重い」などで起動。操作がない時やタスクの区切りでコンテキストが一定ラインを超えていたら自動的に /compact を実行。
allowed-tools: [Bash]
---
# Manage Context
コンテキストサイズを監視し、作業中に自動 compact が走らないよう事前にコンテキストを圧縮します。
## 目的
- 作業中に自動 compact が走って作業が中断されるのを防ぐ
- タスクの区切りや操作がない時に事前にコンテキストを圧縮
- パフォーマンスを維持しながらスムーズな作業を実現
## ワークフロー
### 1. コンテキストサイズを監視
会話の長さやコンテキストサイズを常に監視。
### 2. 適切なタイミングで自動圧縮
以下のタイミングでコンテキストが一定ラインを超えていたら自動的に `/compact` を実行:
- **タスクの完了時**: 一つのタスクが完了した区切り
- **操作がない時**: ユーザーの入力待ちの状態
- **ファイル操作の区切り**: 複数ファイルの編集が一段落した時
### 3. 圧縮の実行
閾値を超えている場合、ユーザーに確認せず自動的に `/compact` を実行。
```
(コンテキストを圧縮しています...)
```
## 圧縮のタイミング
| タイミング | 説明 |
|------------|------|
| タスク完了後 | 「完了しました」の報告前 |
| 質問への回答後 | 回答を返す前 |
| 複数ファイル編集後 | 編集作業が一段落した時 |
| 長時間の会話 | 会話が長くなってきた時 |
## 閾値の目安
- コンテキストが大きくなってきたと感じたら圧縮を検討
- 多数のファイルを読み込んだ後
- 大量のコード変更を行った後
## compact の効果
- 会話履歴を要約
- コンテキストサイズを削減
- レスポンス速度を改善
- トークン使用量を最適化
- **作業中の自動 compact による中断を防止**
## 重要な注意事項
- ✅ タスクの区切りで自動的に圧縮
- ✅ 作業中断を防ぐため事前に圧縮
- ✅ 重要な情報が失われないよう注意
- ❌ 作業の途中(ファイル編集中など)では圧縮しない
- ❌ ユーザーが入力中は圧縮しない
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.