context-graph
について
コンテキストグラフスキルは、Voyage AIの埋め込みとChromaDBベクトルストレージを用いたセマンティック検索により、Claudeが過去の意思決定トレースを保存、検索、学習することを可能にします。履歴的な前例を照会する必要がある場合、学習ループを実装する場合、または会話を超えて永続的なメモリを維持する場合にご利用ください。このスキルは、トレースの保存、セマンティック検索の実行、将来の意思決定を改善するための結果更新のためのツールを提供します。
クイックインストール
Claude Code
推奨/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/context-graphこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Context Graph
Living records of decision traces with semantic search. Find similar past decisions by meaning, not keywords.
Setup
MCP Server (recommended):
The context-graph MCP server provides the same functionality via tools:
context_store_trace- Store decisions with embeddingscontext_query_traces- Semantic searchcontext_get_trace- Get by IDcontext_update_outcome- Mark success/failurecontext_list_traces- List with paginationcontext_list_categories- Category breakdown
Configure in .claude/mcp.json:
{
"mcpServers": {
"context-graph": {
"command": "uv",
"args": ["--directory", "context-graph-mcp", "run", "python", "server.py"],
"env": {"VOYAGE_API_KEY": "your_key_here"}
}
}
}
CLI Scripts (alternative):
# 1. Install dependencies
pip install voyageai chromadb
# 2. Set Voyage AI key
export VOYAGE_API_KEY="your_key_here"
# 3. Store/query traces
python scripts/store-trace.py "DECISION"
python scripts/query-traces.py "similar situation"
Instructions
- Store trace after decisions with category + outcome
- Query precedents when facing similar situations
- Update outcome to success/failure after validation
Quick Commands (MCP)
context_store_trace(decision="Chose FastAPI for async", category="framework")
context_query_traces(query="web framework choice", limit=5)
context_update_outcome(trace_id="trace_abc...", outcome="success")
Quick Commands (CLI)
# Store a decision trace
python scripts/store-trace.py "Chose FastAPI over Flask for async support" --category framework
# Find similar past decisions
python scripts/query-traces.py "web framework selection"
# Query by category
python scripts/query-traces.py "database choice" --category architecture --limit 3
# Output JSON for parsing
python scripts/query-traces.py "error handling" --json
Trace Schema
| Field | Description |
|---|---|
id | Unique trace identifier |
timestamp | When stored |
category | Grouping (framework, api, error, etc.) |
decision | What was decided (text) |
outcome | pending / success / failure |
state | State machine state when decided |
feature_id | Related feature (if any) |
embedding | 1024-dim vector (Voyage AI) |
Categories
framework- Tech stack choicesarchitecture- Design patterns, structureapi- Endpoint design, contractserror- Failure modes, fixestesting- Test strategiesdeployment- Infra decisions
When to Use
| Situation | Action |
|---|---|
| Made a technical decision | Store trace with category |
| Facing similar problem | Query traces before deciding |
| Session complete | Query category → extract patterns |
| Repeating error | Query traces for that error |
GitHub リポジトリ
関連スキル
evaluating-llms-harness
テストThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
sglang
メタSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
langchain
メタLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
