بنقرة واحدة
kg-research
Research using ONLY knowledge graph semantic search (no file tools, forces KG-first approach)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Research using ONLY knowledge graph semantic search (no file tools, forces KG-first approach)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Automated visual testing with Playwright MCP - test web apps, presentations, websites, and documents with scalable reviewer perspectives
Expert guidance on RAG (Retrieval-Augmented Generation) system design including chunking strategies, embedding selection, retrieval methods, and vector database choices
Design complex system architectures, evaluate tradeoffs, and make critical technical decisions requiring deep reasoning
Deep code analysis identifying subtle bugs, security issues, performance problems, and architectural concerns requiring expert-level reasoning
Efficient context state inspection, task lifecycle management, and session tracking
Systematic codebase onboarding. Builds a mental model of a new or unfamiliar project by exploring structure, architecture, key data models, entry points, and auth patterns.
| name | kg-research |
| description | Research using ONLY knowledge graph semantic search (no file tools, forces KG-first approach) |
| short_desc | KG-only semantic search (no file tools, enforced) |
| keywords | ["KG semantic search","KG-first research","knowledge graph","hybrid_search","semantic_graph_search","search KG","query knowledge graph","KG-only search","semantic search KG"] |
| argument-hint | [search-query] |
| model | sonnet |
Purpose: Deep research using ONLY knowledge graph and semantic search tools. Forces KG-first approach by restricting access to file tools.
Model: Sonnet 4.5 (semantic search requires intelligent query formulation)
When to Use: Research tasks, pattern discovery, concept exploration, finding related work
ALLOWED:
hybrid_search(query, limit) - Keyword + semantic across KG + docs (most comprehensive; default search tool)semantic_graph_search(query, depth) - Graph traversal via WikiLinkssearch_code_graph(query, collection, project, limit) - Semantic code searchquery_code_structure(query_type, target, project) - Dependencies, callers, inheritanceget_node_connections(title) - Explore specific node relationshipsget_collection_schema(collection_name) - Inspect collection structureget_collection_tags(collection_name) - List available tagssearch_recent_work(days, node_type, limit) - Time-based queriessearch_documentation(query, limit, collections) - Project docs searchlist_collections() - Available collectionsFORBIDDEN (enforced by skill constraints):
Task: "Find all multi-agent coordination patterns"
Step 1: hybrid_search("multi-agent coordination patterns", limit=10)
→ Returns: Keyword + semantic + graph results (most comprehensive)
→ Review: Titles and summaries of top matches
Step 2: semantic_graph_search("blackboard architecture", depth=2)
→ Returns: Starting node + connected concepts via WikiLinks
→ Explore: [[uses::Tool]], [[implements::Pattern]], [[relatedTo::Concept]]
Step 3: search_code_graph("agent coordination", collection="CodeFunction")
→ Returns: Real implementations with signatures and docs
→ Filter: By project, language, or complexity
Step 4: get_node_connections("Blackboard Architecture")
→ Returns: All WikiLink relationships (incoming + outgoing)
→ Discover: What uses it, what it implements, related concepts
Step 5: search_recent_work(days=30, node_type="research")
→ Returns: Recent research nodes
→ Context: What's been studied lately
Query: "How does self-consistency voting work?"
Best approach:
1. hybrid_search("self-consistency voting LLM") - Cast wide net
2. semantic_graph_search("voting mechanisms", depth=2) - Explore related
3. get_node_connections("CISC Voting") - If specific node known
Query: "Find examples of agent communication protocols"
Best approach:
1. search_code_graph("agent communication protocol", collection="CodeClass")
2. hybrid_search("agent communication patterns") - Find conceptual docs
3. query_code_structure("dependencies", "agent_coordinator.py") - See what it uses
Query: "Compare hierarchical vs blackboard coordination"
Best approach:
1. hybrid_search("hierarchical coordination") - Find first concept
2. hybrid_search("blackboard coordination") - Find second concept
3. semantic_graph_search("coordination patterns", depth=3) - Explore entire graph
4. Compare WikiLink relationships and tags
Query: "What research have we done on context limits?"
Best approach:
1. search_recent_work(days=90, node_type="research") - Recent research
2. hybrid_search("context limits RLM adaptive") - Conceptual search
3. search_documentation("context management", collections=["ClaudeOrchestrator_development"])
Always structure research findings as:
# Research: [Topic]
## Query Used
- Semantic: `hybrid_search("...")`
- Graph: `semantic_graph_search("...", depth=N)`
- Code: `search_code_graph("...", collection="...")`
## Key Findings
### [Concept 1]
- **Source**: knowledge/concepts/rlm-context-loading.md
- **Key insight**: RLM achieves 91.3% accuracy on 10M+ tokens
- **Relevance**: Validates adaptive context loading approach
- **WikiLinks**: [[uses::Weaviate]], [[implements::Self-Retrieval]]
### [Concept 2]
- **Source**: knowledge/concepts/blackboard-architecture-coordination.md
- **Key insight**: 13-57% improvement over hierarchical
- **Relevance**: Should implement for multi-agent workflows
- **WikiLinks**: [[uses::CONTEXT_STATE.md]], [[relatedTo::Agent Teams]]
## Related Nodes Found
1. [Node Title] - knowledge/path/to/file.md
2. [Node Title] - knowledge/path/to/file.md
## Code Examples (if applicable)
1. `module.function` - [Brief description]
- Location: src/path/to/file.py:142
- Signature: `def function(arg1, arg2) -> return_type`
## Gaps Identified
- [Missing concept or pattern]
- [Recommendation for new node]
## Recommendations
1. [Actionable next step]
2. [Further research needed]
❌ Don't say: "I need to read the file to see details"
✅ Do say: "Let me search for that concept: hybrid_search('concept')"
❌ Don't say: "I'll grep for that pattern"
✅ Do say: "Let me search code graph: search_code_graph('pattern', collection='CodeFunction')"
❌ Don't say: "I can't find information without reading files" ✅ Do say: "The KG doesn't have this concept yet - that's a gap to fill"
❌ Don't say: "Let me check if the file exists with Glob"
✅ Do say: "Let me search for nodes related to this: semantic_graph_search('topic', depth=2)"
Skill response:
# Research: Multi-Agent Planning Techniques
## Query Strategy
1. hybrid_search("multi-agent planning LLM") - Comprehensive search
2. semantic_graph_search("planning algorithms", depth=3) - Graph traversal
3. search_code_graph("planning", collection="CodeClass") - Implementation examples
## Key Findings
### MCTS Planning
- **Source**: knowledge/concepts/mcts-llm-planning.md
- **Key insight**: 3-5× overhead but 18.5× performance gain
- **Relevance**: Justified for complex planning tasks
- **WikiLinks**: [[uses::Tree Search]], [[implements::Monte Carlo]]
### Tree-of-Thought
- **Source**: [Found via hybrid_search]
- **Key insight**: Beam search with pruning, token intensive
- **WikiLinks**: [[relatedTo::MCTS]], [[uses::Beam Search]]
## Code Examples
1. `agent_planner.mcts_search` - Implementation of MCTS
- Location: .claude/scripts/mcts_planner.py:45
- Uses: UCB1 selection, confidence-based pruning
## Gaps
- No nodes on DAG-based planning (found in research paper but not documented)
- Missing comparison of ToT vs MCTS token efficiency
## Recommendations
1. Create node for DAG-based planning
2. Add token efficiency comparison to existing MCTS node
3. Explore neuro-symbolic planning integration
Knowledge Graph:
ClaudeKnowledgeGraph - Shared cross-project patterns (161 nodes)[ProjectName]_KnowledgeGraph - Per-project KG collections (one per project)Development Docs:
ClaudeOrchestrator_development - Orchestrator docs[Project]_development - Project-specific docsCode Graph:
CodeModule - Files with imports and metricsCodeClass - Classes with inheritanceCodeFunction - Functions with call graphsCodeAPI - API endpoints with handlershybrid_search → semantic_graph_search → get_node_connectionssearch_recent_work shows what's been studiedsearch_code_graph + hybrid_search = complete pictureget_collection_tags to discover available filtersSolution: Use this skill for DISCOVERY, then switch to file tools for IMPLEMENTATION.
Before invoking other skills:
/kg-research to find patterns and prior artAfter implementation:
Workflow:
/kg-research → Discover patterns/architect → Design solution using patterns@coder agent → Implement with pattern guidance@doc-maintainer agent → Document new patterns in KG