GraphRAG Knowledge Graph
Use when the user asks to "ingest text into graphrag", "add document to knowledge graph", "create entity", "create relationship", "query knowledge graph"…
Skill by sharpninja
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sharpninja-graphrag-knowledge-graph-9a103b
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
GraphRAG Knowledge Graph- Description
- Use when the user asks to "ingest text into graphrag", "add document to knowledge graph", "create entity", "create relationship", "query knowledge graph", "list graph entities", "delete document"
- License
- MIT
- Instructions
- 449 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "GraphRAG Knowledge Graph" does not match folder "graphrag"
Files (2)
- .gitkeep
- SKILL.md
SKILL.md (first lines)
# GraphRAG Knowledge Graph
## Overview
To interact with the workspace GraphRAG knowledge graph, use the `workflow.graphrag.*` REPL command namespace via your agent's MCP Server REPL wrapper. When sending requests to the REPL over stdio directly, each message must be one single-line JSON request envelope per message, not formatted YAML. GraphRAG combines graph-based retrieval with semantic search, enabling richer context retrieval than vector-only approaches.
GraphRAG is disabled by default. Confirm it is active for the workspace before calling any operations: `workflow.graphrag.status` will report `enabled: false` if it has not been configured.
## Checking GraphRAG Status
To inspect whether GraphRAG is enabled, initialized, and indexed for the active workspace:
```yaml
type: request
payload:
requestId: req-20260409T120000Z-status-001
method: workflow.graphrag.status
params: {}
```
```yaml
type: result
payload:
requestId: req-20260409T120000Z-status-001
result:
enabled: true
workspacePath: /workspace/my-project
graphRoot: /workspace/my-project/.graphrag
state: indexed
isInitialized: true
isIndexed: true
lastIndexedAtUtc: 2026-04-09T10:00:00Z
lastSuccessAtUtc: 2026-04-09T10:00:00Z
lastIndexDurationMs: 4200
lastIndexedDocumentCount: 38
inputDocumentCount: 38
backend: internal-fallback
```
Key `state` values: `disabled`, `uninitialized`, `idle`, `indexing`, `indexed`, `error`.
## Triggering Indexing
To rebuild the GraphRAG index from the current corpus:
```yaml
type: request
payload:
requestId: req-20260409T120001Z-index-001
method: workflow.graphrag.index
params:
force: false
```
Set `force: true` to rebuild even when no corpus changes are detected. The response reports the post-index status including whether the job was started immediately or queued.
## Querying the Knowledge Graph
To run a natural-language query against the indexed graph:
```yaml
type: request
payload:
requestId: req-20260409T120002Z-query-001
method: workflow.graphrag.query
params:
query: What authentication mechanisms does the system support?
mode: local
maxChunks: 10
includeContextChunks: true
maxEntities: 20
maxRelationships: 20
communityDepth: 2
responseTokenBudget: 2000
```
Valid `mode` values:
- `local`: focuses on directly relevant entities and their immediate relationships; lower latency
- `global`: traverses community structure for broad thematic answers; higher coverage
- `drift`: follows conceptual drift to surface related but non-obvious connections
All params except `query` are optional. The result includes an `answer`, source `citations`, and optionally the raw `chunks`, `entities`, and `relationships` used:
```yaml
type: result
payload:
requestId: req-20260409T120002Z-query-001
result:
query: What authentication mechanisms does the system support?
mode: local
answer: |
The system supports API key authentication via the X-Api-Key header,
workspace-scoped token rotation on server restart, and HMAC-SHA256
marker signature verification for agent bootstrap.
citations:
- sourceKey: docs/MCP-SERVER.md
chunkId: chunk-0042
snippet: "API key authentication is required for all /mcpserver/* endpoints..."
entities:
- ApiKeyAuthentication
- HmacSignatureVerification
relationships:
- ApiKeyAuthentication -> WorkspaceIsolation
fallbackUsed: false
backend: internal-fallback
```
## Ingesting Raw Text
To add a new document to the GraphRAG corpus without triggering a full reindex:
```yaml
type: request
payload:
requestId: req-20260409T120003Z-ingest-001
method: workflow.graphrag.ingest
params:
content: |From sharpninja/mcpserver-grok-plugin, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.450score
GraphRAG Knowledge Graph
sharpninja
Use when the user asks to "ingest text into graphrag", "add document to knowledge graph", "create entity", "create relationship", "query knowledge graph"…
SkillCFreshness: C★ 2Claude Code +9 - 0.251score
GraphRAG Knowledge Graph
sharpninja
Use when the user asks to "ingest text into graphrag", "add document to knowledge graph", "create entity", "create relationship", "query knowledge graph"…
SkillCFreshness: CClaude Code +9
More from sharpninja
- 0.543score
handoff
sharpninja
Use when the user asks to ingest a handoff document, inspect a handoff run, or approve a generated MCP TODO draft.
SkillAFreshness: A★ 2Claude Code +9 - 0.533score
memory
sharpninja
Use when the operator wants durable MCP memories remembered, recalled, explored, consolidated, promoted, or reverted.
SkillBFreshness: B★ 2Claude Code +9 - 0.521score
Use Case Management
sharpninja
Use when the user asks to "list use cases", "create use case", "link use case to FR", "use case diagram", "use case coverage", "approve use case", or manage…
SkillBFreshness: B★ 2Claude Code +9 - 0.495score
MCP-First Workflow
sharpninja
This skill should be used when working in a repository that uses McpServer for session continuity, TODOs, requirements, and device validation.
SkillBFreshness: B★ 2Claude Code +9 - 0.474score
Triage Reporting
sharpninja
Use when your agent discovers an incidental bug while working on another task and should submit it to MCP Server triage without changing focus.
SkillCFreshness: C★ 2Claude Code +9 - 0.474score
Reddit Draft
sharpninja
Use when asked to draft a Reddit post or article to a subreddit and save it as a draft (not publish).
SkillCFreshness: C★ 2Claude Code +9
Cite this page
GraphRAG Knowledge Graph skill. Agent Mart. https://agentmart.dev/skills/sharpninja-graphrag-knowledge-graph-9a103b (last updated 2026-10-24)