Skip to content
Agentmart
Submit a tool
This entry duplicates GraphRAG Knowledge Graph, which is the one we list in search.

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

IndexedMIT
Write a review

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.

We use your email only for this newsletter. Privacy

About

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"

Use cases: documents

No 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

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from sharpninja

Cite this page

GraphRAG Knowledge Graph skill. Agent Mart. https://agentmart.dev/skills/sharpninja-graphrag-knowledge-graph-9a103b (last updated 2026-10-24)