← Back to Skills Marketplace
tree-graph-rag
by
h4444433333
· GitHub ↗
· v1.0.0
· MIT-0
141
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install tree-graph-rag
Description
Guide for designing and implementing a PostgreSQL database that fuses PageIndex-style document trees with LightRAG-style entity-relationship anchors. Use thi...
Usage Guidance
This skill appears coherent and implements the promised tree↔graph persistence and retrieval patterns. Before installing or running in production: 1) Review and control the db_pool credentials you supply (use a least-privilege DB role that can INSERT/SELECT on the pageindex_* tables but not superuser). 2) Review or provide a trusted llm_extract_func — the skill calls that function for each content row (do not pass an extract function that exfiltrates data). 3) For large datasets, implement batching/pagination and rate-limiting when calling the extractor and when writing to the DB. 4) Test on non-production data first and verify workspace filtering is enforced in your deployment. If you want, provide details of the DB driver and deployment topology and I can point out additional hardening steps.
Capability Analysis
Type: OpenClaw Skill
Name: tree-graph-rag
Version: 1.0.0
The skill provides a legitimate framework for implementing a hybrid Tree-Graph RAG system using PostgreSQL. It includes well-structured schema definitions (schema.sql), ingestion scripts (ingestion_core.py), and retrieval logic (retrieval_core.py) that correctly use parameterized queries and enforce multi-tenancy. No indicators of malicious intent, data exfiltration, or unauthorized execution were found.
Capability Assessment
Purpose & Capability
Name/description match the included artifacts: schema.sql, ingestion/retrieval Python scripts, query docs, and a smoke test. All requested resources and operations (DB inserts, selects, LLM-extraction hook) are coherent with building a hybrid tree/graph RAG persistence layer.
Instruction Scope
SKILL.md and scripts focus on schema, ingestion, anchoring and retrieval as promised. One operational note: extract_and_insert_graph fetches all node_contents for a workspace in a single query and then calls the provided llm_extract_func for each row — this is expected functionality but can consume large amounts of data in production and should be batched/rate-limited at runtime. The skill does not read env vars or files outside its scope.
Install Mechanism
Instruction-only install (no install spec) and included code files only operate on a DB pool object and do not download or execute external artifacts. No remote code/URL downloads are present.
Credentials
No environment variables, credentials, or config paths are requested by the skill. The only external dependency is a db_pool and an llm_extract_func provided by the integrator, which is proportionate to the skill's purpose.
Persistence & Privilege
Skill is not always-enabled and does not attempt to modify agent-wide configuration. It performs database writes/reads as expected for an ingestion/retrieval layer; privilege implications depend on the DB credentials you supply at integration time (not embedded in the skill).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tree-graph-rag - After installation, invoke the skill by name or use
/tree-graph-rag - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of tree-graph-rag skill.
- Provides a guide for designing and implementing a PostgreSQL database fusing tree (hierarchical) and graph (entity/relationship) structures for RAG systems.
- Includes schema definitions, ingestion and retrieval logic, and integration patterns for a hybrid tree-graph knowledge base.
- Emphasizes anchoring graph details to tree nodes for flexible contextual retrieval.
- Supplies example code for ingestion, retrieval, and minimal smoke testing of the end-to-end data flow.
- Outlines standard workflows and developer guidelines for schema design and SQL usage.
Metadata
Frequently Asked Questions
What is tree-graph-rag?
Guide for designing and implementing a PostgreSQL database that fuses PageIndex-style document trees with LightRAG-style entity-relationship anchors. Use thi... It is an AI Agent Skill for Claude Code / OpenClaw, with 141 downloads so far.
How do I install tree-graph-rag?
Run "/install tree-graph-rag" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is tree-graph-rag free?
Yes, tree-graph-rag is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does tree-graph-rag support?
tree-graph-rag is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created tree-graph-rag?
It is built and maintained by h4444433333 (@h4444433333); the current version is v1.0.0.
More Skills