スキル一覧に戻る
FrancisVarga

knowledge-graph-context

by FrancisVarga

0🍴 0📅 2025年12月10日
GitHubで見るManusで実行

SKILL.md


name: Knowledge Graph Context description: | Project context from ChromaDB knowledge graph. Triggers on "how does this project work", "architecture", "where is X", "why was Y chosen", "project structure", "component relationships", "design decisions". version: 2.0.0

Knowledge Graph Context Skill

Access ChromaDB knowledge graph via coconut-knowledge-mcp.

When to Use

  • Understand project architecture before changes
  • Find where functionality is implemented
  • Understand design decisions and rationale
  • Learn component relationships
  • Discover integration patterns
  • Get project context

Get Collection Name

CRITICAL: Collection = {author}_{repo} from git remote.

git remote get-url origin 2>/dev/null | sed -E 's|.*[:/]([^/]+)/([^/.]+)(\.git)?$|\1_\2|' | tr '[:upper:]' '[:lower:]' | tr '-' '_'

Quick Reference

Search Knowledge

chroma_query_documents(
  collection_name="<collection>",
  query_texts=["your question"],
  n_results=5
)

Filter by Type

chroma_query_documents(
  collection_name="<collection>",
  query_texts=["your question"],
  n_results=5,
  where={"type": "architecture"}
)

Get Document Count

chroma_get_collection_count(collection_name="<collection>")

Get Specific Documents

chroma_get_documents(
  collection_name="<collection>",
  ids=["component-auth-service"]
)

Node Types

TypeDescription
architectureSystem structure, design
componentModules, services
workflowProcesses, data flows
integrationAPIs, databases
conventionPatterns, naming
decisionChoices with rationale

Search Strategies

Architecture: where={"type": "architecture"} Components: where={"type": "component"} Decisions: where={"type": "decision"}

Workflow

  1. Get collection name from git remote
  2. Check collection exists: chroma_list_collections
  3. Search for context: chroma_query_documents
  4. If stale: suggest /coconut-knowledge:update

Add New Knowledge

Use /coconut-knowledge:add or:

chroma_add_documents(
  collection_name="<collection>",
  documents=["content"],
  ids=["type-name"],
  metadatas=[{"name": "...", "type": "...", "tags": "..."}]
)

Troubleshooting

  • No results: Check collection exists, try broader terms
  • Stale info: Run /coconut-knowledge:update
  • Not initialized: Run /coconut-knowledge:init

スコア

総合スコア

45/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です