← Back to Skills Marketplace
clawgraphai

ClawGraph

by clawgraphai · GitHub ↗ · v0.1.3 · MIT-0
cross-platform ⚠ suspicious
86
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clawgraph
Description
Automatically store explicit durable user facts and recall them later; do not infer or upgrade weak signals
README (SKILL.md)

\r \r

ClawGraph Memory Skill\r

\r You have access to ClawGraph, a graph-based memory CLI that stores facts as entities and relationships in a persistent knowledge graph. Use it to remember information across conversations.\r \r

When to Use\r

\r

  • User tells you something worth remembering (names, preferences, projects, relationships)\r
  • You need to recall previously stored information\r
  • User asks "do you remember..." or "what do you know about..."\r
  • Building up knowledge about a project, team, or domain over time\r \r

Storage Guardrails\r

\r

  • Proactively store durable user facts without waiting for an explicit memory command when the user shares information that is likely to matter later.\r
  • Only store facts that are explicitly stated by the user or already confirmed in the current session.\r
  • Preserve the user's phrasing when possible, and preserve the user's meaning closely when storing facts; prefer the exact claim they made over a stronger paraphrase.\r
  • Do not infer, upgrade, or invent facts. For example, "I'm learning Rust" does not mean "I am a Rust developer," and "I'm planning a demo" is not an occupation.\r
  • If a detail is ambiguous, speculative, or feels too weak to persist, do not store it.\r
  • When several explicit facts appear in one message, store only the durable facts that are likely to matter later.\r \r

Automatic Decision Rule\r

\r When the user naturally shares stable personal, project, team, or preference information, assume you should store it in ClawGraph even if they did not say "remember this." Good candidates include names, employers, roles, long-term goals, durable preferences, important relationships, and active projects.\r \r Do not store fleeting conversational filler, jokes, weak guesses, or details that are only implied.\r \r

Store Facts (CLI)\r

\r

# Single fact\r
clawgraph add "Alice is a senior engineer at Acme Corp" --output json\r
\r
# Multiple facts at once (one LLM call — much faster)\r
clawgraph add-batch "Bob manages the design team" "Alice and Bob work on Project Atlas" --output json\r
```\r
\r
Each fact is automatically decomposed into entities and relationships using MERGE (idempotent — safe to add the same fact twice).\r
\r
## Query Memory (CLI)\r
\r
```bash\r
# Natural language question — returns matching results\r
clawgraph query "Who works at Acme Corp?" --output json\r
\r
# Inspect the full graph\r
clawgraph export --output json\r
```\r
\r
## Common Patterns\r
\r
```bash\r
# Store, then verify\r
clawgraph add "Carol is the CTO of Acme Corp" --output json\r
clawgraph query "Who is the CTO of Acme Corp?" --output json\r
\r
# Batch store related facts\r
clawgraph add-batch \\r
  "Project Atlas launches Q3 2026" \\r
  "Alice leads Project Atlas" \\r
  "Atlas uses a graph database backend" \\r
  --output json\r
\r
# Show what's stored\r
clawgraph export --output json\r
\r
# View the ontology (schema)\r
clawgraph ontology --output json\r
```\r
\r
## Python API (for complex workflows)\r
\r
When you need programmatic control, use the Python API:\r
\r
```python\r
from clawgraph.memory import Memory\r
\r
mem = Memory()\r
mem.add("Alice works at Acme Corp")\r
results = mem.query("Who works at Acme Corp?")\r
print(results)\r
mem.add_batch(["Bob is a designer", "Bob works at Acme Corp"])\r
```\r
\r
## Key Details\r
\r
- **Persistence**: Data stored at `~/.clawgraph/data` — survives restarts\r
- **Idempotent**: Uses MERGE — adding the same fact twice won't create duplicates\r
- **JSON output**: Always use `--output json` for structured, parseable results\r
- **Config**: `~/.clawgraph/config.yaml` for defaults (model, db path)\r
- **Models**: OpenAI-compatible APIs today via the OpenAI SDK. The current default model path is `gpt-5.4-mini` for ClawGraph extraction.\r
- **Env vars**: `OPENAI_API_KEY` is required. `OPENAI_BASE_URL` is optional for other OpenAI-compatible endpoints.\r
Usage Guidance
This skill is coherent with a memory/knowledge-graph tool, but it instructs the agent to automatically persist user-provided facts. Before installing: (1) Review the upstream package source (the GitHub homepage) and verify the package comes from a trusted registry and author; (2) Confirm what 'uv' installer is and whether the package will run arbitrary code on your machine; (3) Understand and audit ~/.clawgraph/data and ~/.clawgraph/config.yaml (where data is persisted and how it is protected); (4) Decide and enforce policies to avoid storing secrets or sensitive PII (explicit user consent, redaction rules, and retention/deletion policies); (5) Consider using a test account / sandbox and a rotated OPENAI_API_KEY when evaluating; (6) If you require stronger privacy, request or implement encryption-at-rest and explicit confirm-before-write behavior in the tool or agent instructions.
Capability Analysis
Type: OpenClaw Skill Name: clawgraph Version: 0.1.3 The clawgraph skill is a knowledge-graph-based memory tool designed to store and recall user facts locally at ~/.clawgraph/data. While it instructs the agent to proactively record information and references a non-existent model (gpt-5.4-mini), its behavior is consistent with its stated purpose of providing long-term memory. There are no signs of data exfiltration to unauthorized endpoints, malicious execution, or attempts to access sensitive system files like SSH keys or AWS credentials.
Capability Assessment
Purpose & Capability
Name and description describe a persistent memory/knowledge-graph. The required binary (clawgraph) and single env var (OPENAI_API_KEY) are consistent with a tool that uses an LLM-backed extractor and a local CLI. The skill does not request unrelated credentials or surprising binaries.
Instruction Scope
SKILL.md instructs the agent to proactively store 'durable' user facts even without an explicit 'remember' command and to 'preserve the user's phrasing'. There are no guardrails about excluding secrets/sensitive PII, requiring explicit user consent, or retention/erasure policies. This means the agent may persist passwords, tokens, medical or financial details, or other sensitive data unless callers add protections.
Install Mechanism
Install spec uses an installer kind labeled 'uv' and package 'clawgraph==0.1.3', producing a clawgraph binary. No direct URL is provided. Writing an unpacked binary to disk is expected for a CLI tool, but 'uv' is an uncommon installer label in public registries—verify the package source/registry and integrity before installing.
Credentials
Only OPENAI_API_KEY is required and is declared as the primary credential, which aligns with the SKILL.md statement that ClawGraph uses OpenAI-compatible models. No unrelated credentials or broad environment access are requested.
Persistence & Privilege
The tool stores data persistently at ~/.clawgraph/data and uses a user config at ~/.clawgraph/config.yaml. always:false (not forced) and autonomous invocation is allowed (platform default). Persistent local storage is expected for a memory skill, but combined with the instruction to auto-store facts, it increases privacy risk; there is no mention of encryption, access controls, or retention.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clawgraph
  3. After installation, invoke the skill by name or use /clawgraph
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.3
ClawGraph version 0.1.3 - Adds explicit guardrails: only store durable, user-stated facts; never infer or upgrade weak signals. - Provides clear usage guidelines for when and what to store in persistent memory. - Documents CLI for single and batch fact storage, querying, and graph export with structured JSON output. - Includes Python API example for advanced programmatic use. - Details persistence, idempotence, configuration, model use, and required environment variables.
Metadata
Slug clawgraph
Version 0.1.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is ClawGraph?

Automatically store explicit durable user facts and recall them later; do not infer or upgrade weak signals. It is an AI Agent Skill for Claude Code / OpenClaw, with 86 downloads so far.

How do I install ClawGraph?

Run "/install clawgraph" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ClawGraph free?

Yes, ClawGraph is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ClawGraph support?

ClawGraph is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ClawGraph?

It is built and maintained by clawgraphai (@clawgraphai); the current version is v0.1.3.

💬 Comments