Communitygithub.com

majiayu000/claude-skill-registry

コンテキスト使用制限の確認、残り時間の監視、トークン消費の最適化、コンテキスト障害のデバッグを行います。コンテキスト使用率、レート制限、使用量警告、コンテキスト最適化、エージェントアーキテクチャ、メモリシステムについて質問する際に使用します。

claude-skill-registry とは?

このスキルは、LLMタスクのコンテキストエンジニアリングに特化したClaude Codeスキルです。トークン使用量の最適化、コンテキスト窓の監視、マルチエージェントシステムの設計、メモリシステムの実装など、LLMベースのパイプライン開発に関わる幅広いトピックをカバーします。具体的には、コンテキストの品質と量のバランス、注意機構の特性を考慮した情報配置(U字カーブ)、プログレッシブディスクロージャー(段階的な情報開示)、サブエージェントによるコンテキストの分離といった中核原則を提供します。また、7割以上のトークン使用率で警告を発し、9割で即時対応を促すランタイムアウェアネス機能や、コンテキスト圧縮・評価のためのスクリプトが含まれています。このスキルは、コスト削減、レイテンシ改善、エージェント性能の向上を目指す開発者にとって非常に有用で、`context analyzer.py`や`compression evaluator.py`といったスクリプトを介して、具体的な分析と最適化を実行できます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry/tree/HEAD/skills/context-management/context-engineering-hoanghd218-landing-page-ai-kien-2

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

コンテキストエンジニアリング

コンテキストエンジニアリングは、LLMタスクのために最小の高シグナルトークンセットを厳選します。目標は、トークン使用量を最小限に抑えながら、推論品質を最大化することです。

アクティベーションのタイミング

  • エージェントシステムの設計/デバッグ
  • コンテキスト制限がパフォーマンスを制約している場合
  • コスト/レイテンシの最適化
  • マルチエージェント連携の構築
  • メモリシステムの実装
  • エージェントパフォーマンスの評価
  • LLMベースのパイプライン開発

中核原則

  1. コンテキストの品質 > 量 - 高シグナルトークンは網羅的なコンテンツに勝る
  2. 注意は有限 - U字曲線は先頭/末尾の位置を優先する
  3. プログレッシブディスクロージャー - 情報をジャストインタイムで読み込む
  4. 分離による劣化防止 - 作業をサブエージェントに分割する
  5. 最適化前に計測 - ベースラインを把握する

重要:

  • 簡潔さのために文法を犠牲にすること。
  • 高品質を維持しながらトークン効率を確保すること。
  • これらのルールをサブエージェントに引き継ぐこと。

クイックリファレンス

トピック使用タイミングリファレンス
基礎コンテキスト構造、注意機構の理解context-fundamentals.md
劣化障害のデバッグ、中間の喪失、ポイズニングcontext-degradation.md
最適化圧縮、マスキング、キャッシュ、パーティショニングcontext-optimization.md
圧縮長時間セッション、要約戦略context-compression.md
メモリセッション間の永続化、ナレッジグラフmemory-systems.md
マルチエージェント連携パターン、コンテキスト分離multi-agent-patterns.md
評価エージェントのテスト、LLM-as-Judge、メトリクスevaluation.md
ツール設計ツール統合、説明エンジニアリングtool-design.md
パイプラインプロジェクト開発、バッチ処理project-development.md
ランタイム認識使用制限、コンテキスト窓の監視runtime-awareness.md

主要メトリクス

  • トークン使用率: 70%で警告、80%で最適化トリガー
  • トークンのばらつき: エージェントパフォーマンスのばらつきの80%を説明
  • マルチエージェントコスト: 単一エージェントのベースラインの約15倍
  • 圧縮目標: 50〜70%削減、品質損失5%未満
  • キャッシュヒット目標: 安定したワークロードで70%以上

4バケット戦略

  1. 書き出し: コンテキストを外部に保存(スクラッチパッド、ファイル)
  2. 選択: 関連するコンテキストのみを取得(検索、フィルタリング)
  3. 圧縮: 情報を保持しながらトークンを削減(要約)
  4. 分離: サブエージェントに分割(パーティショニング)

アンチパターン

  • 厳選されたコンテキストではなく、網羅的なコンテキスト
  • 中間位置への重要な情報の配置
  • 制限前に圧縮トリガーがない
  • 並列化可能なタスクへの単一エージェント
  • 明確な説明がないツール

ガイドライン

  1. 重要な情報はコンテキストの先頭/末尾に配置する
  2. 使用率70〜80%で圧縮を実装する
  3. ロールプレイではなく、コンテキスト分離のためにサブエージェントを使用する
  4. 4つの質問フレームワーク(何を、いつ、入力、戻り値)でツールを設計する
  5. リクエストあたりのトークン数ではなく、タスクあたりのトークン数で最適化する
  6. プローブベースの評価で検証する
  7. 本番環境でKVキャッシュヒット率を監視する
  8. 最小限から始め、必要性が証明された場合のみ複雑性を追加する

ランタイム認識

システムはPostToolUseフックを介して使用状況認識を自動的に注入します:

<usage-awareness>
Claude Usage Limits: 5h=45%, 7d=32%
Context Window Usage: 67%
</usage-awareness>

しきい値:

  • 70%: 警告 - 最適化/圧縮を検討
  • 90%: 重大 - 即時対応が必要

データソース:

  • 使用制限: Anthropic OAuth API (https://api.anthropic.com/api/oauth/usage)
  • コンテキスト窓: ステータスライン一時ファイル (/tmp/ck-context-{session_id}.json)

スクリプト

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

majiayu000/claude-skill-registry

Builds, edit or validate Agent Skill through conversational discovery. Use when the user requests to "Create an Agent", "Optimize an Agent" or "Edit an Agent".

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Analyzes current state and user query to answer BMad questions or recommend the next workflow or agent. Use when user says what should I do next, what do I do now, or asks a question about BMad

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

majiayu000/claude-skill-registry

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

majiayu000/claude-skill-registry

Speech-to-text transcription and translation via OpenAI Audio API -- models, response formats, timestamps, prompting, streaming, chunking, and diarization

majiayu000/claude-skill-registry

BlockRun works with Claude Code and Google Antigravity.

majiayu000/claude-skill-registry

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

majiayu000/claude-skill-registry

小省导购员数字人带货版即梦视频提示词生成系统,基于四大智能体协同(提示词生成师、质量管控师、知识库运维师、跨环节适配师),按照"主体+运动+场景+(镜头语言+光影+氛围)"公式输出中英文双版提示词,适配5s短视频。确保人物一致性、视觉连贯性、情绪连贯性,支持知识库智能复用和跨工具适配(Suno音乐、AI绘画),为数字人带货视频提供高质量提示词生成服务。

majiayu000/claude-skill-registry

Upload and manage files using Google Gemini File API via scripts/. Use for uploading images, audio, video, PDFs, and other files for use with Gemini models. Supports file upload, status checking, and file management. Triggers on "upload file", "file API", "upload image", "upload PDF", "upload video", "file management".

majiayu000/claude-skill-registry

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

majiayu000/claude-skill-registry

AI and machine learning workflow covering LLM application development, RAG implementation, agent architecture, ML pipelines, and AI-powered features.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

関連スキル