TopRank Skills

Home / Claw Skills / Git / GitHub / graphiti
Official OpenClaw rules 36%

graphiti

Knowledge graph operations via Graphiti API. Search facts, add episodes, and extract entities/relationships.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 graphiti 技能。 若已安装,则直接安装 graphiti 技能。

Overview

Skill Key
emasoudy/graphiti
Author
emasoudy
Source Repo
openclaw/skills
Version
-
Source Path
skills/emasoudy/graphiti
Latest Commit SHA
a066ecf39133b06094eec4bc4adac157f54ca771

Extracted Content

SKILL.md excerpt

# Graphiti Knowledge Graph

Query and manage your knowledge graph using Graphiti's REST API with dynamic service discovery.

## Prerequisites

- Neo4j database (graph storage)
- Qdrant (vector search)
- Graphiti service running (default: http://localhost:8001)

## Tools

### graphiti_search
Search the knowledge graph for relevant facts.

**Usage:**
```bash
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/facts/search\" \
  -H 'Content-Type: application/json' \
  -d '{\"query\": \"YOUR_QUERY\", \"max_facts\": 10}' | jq .
"
```

### graphiti_add
Add a new episode/memory to the knowledge graph.

**Usage:**
```bash
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/messages\" \
  -H 'Content-Type: application/json' \
  -d '{\"name\": \"EPISODE_NAME\", \"content\": \"EPISODE_CONTENT\"}' | jq .
"
```

## Dynamic Configuration

The skill uses environment discovery to find Graphiti automatically:

1. **Clawdbot config**: `clawdbot config get skills.graphiti.baseUrl`
2. **Environment variable**: `$GRAPHITI_URL`
3. **Default fallback**: `http://localhost:8001`

To change the Graphiti URL:
```bash
export GRAPHITI_URL="http://10.0.0.10:8001"
# OR
clawdbot config set skills.graphiti.baseUrl "http://10.0.0.10:8001"
```

## Examples

Search for information:
```bash
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/facts/search\" \
  -H 'Content-Type: application/json' \
  -d '{\"query\": \"Tell me about Essam Masoudy\", \"max_facts\": 5}'
"
```

Add a memory:
```bash
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/messages\" \
  -H 'Content-Type: application/json' \
  -d '{\"name\": \"Project Update\", \"content\": \"Completed Phase 1 of Clawdbot integration\"}'
"
```

README excerpt

# Graphiti Knowledge Graph Skill

Query and manage your knowledge graph using Graphiti's REST API with automatic service discovery.

## Installation

```bash
clawdhub install graphiti
```

Or manual:
```bash
git clone https://github.com/emasoudy/clawdbot-skills.git
cp -r clawdbot-skills/graphiti ~/.clawdbot/skills/
```

## Usage

Search knowledge graph:
```
User: "Search for information about our project"
Agent: [Queries Graphiti and returns relevant facts]
```

## Configuration

```bash
# Set custom Graphiti URL
clawdbot config set skills.graphiti.baseUrl "http://your-server:8001"

# Or use environment variable
export GRAPHITI_URL="http://your-server:8001"
```

Default: `http://localhost:8001`

## License

MIT - See LICENSE file

Related Claw Skills