Mindgraph
by @hulkworks
Create and query an Obsidian-style [[wikilink]] knowledge graph with learnable repeatable MindSkills for managing and analyzing workspace files.
clawhub install mindgraphπ About This Skill
name: mindgraph description: Obsidian-style [[wikilink]] knowledge graph and learnable MindSkills for OpenClaw workspaces. Use for ALL of these: (1) Any workspace file read/write β always use [[wikilinks]] for people, projects, tools, concepts. (2) Running learned processes like knockout-test, seo-validator, competitor-analysis. (3) Querying knowledge β "what do I know about X", "show connections to Y". (4) Learning new repeatable processes β "learn a new mindskill called Z". (5) Memory maintenance β finding orphans, dead links, unconnected files. This skill is always active β treat [[wikilinks]] as standard practice in every markdown file you write.
MindGraph πΈοΈπ§
A knowledge graph + learnable process engine for OpenClaw. Two core features:
1. Knowledge Graph β Obsidian-style [[wikilinks]] across all workspace files
2. MindSkills β Learned, repeatable processes that save graph-connected results
Always-On Rules
Every time you write or edit a markdown file, use [[wikilinks]] for:
[[Alice]], [[Bob]][[my-saas]], [[landing-page]][[Stripe]], [[Vercel]], [[GitHub]][[Knockout Test]], [[B2B SaaS]][[Claude Code]], [[Sonnet]]This is not optional. Links are how knowledge connects. No links = isolated notes = useless.
NEVER use [[wikilinks]] in messages to the user (Telegram, Discord, etc.). Wikilinks are for workspace files only. In conversations, write names plain: "Alice", not "[[Alice]]".
After significant file changes, rebuild the index:
python3 skills/mindgraph/scripts/mindgraph.py index
Graph Commands
# Build/rebuild index
python3 skills/mindgraph/scripts/mindgraph.py indexQuery a topic (backlinks + context + connections)
python3 skills/mindgraph/scripts/mindgraph.py query ""Backlinks only (what references this?)
python3 skills/mindgraph/scripts/mindgraph.py backlinks ""Forward links (what does this link to?)
python3 skills/mindgraph/scripts/mindgraph.py links ""Bidirectional connections
python3 skills/mindgraph/scripts/mindgraph.py connections ""ASCII tree visualization
python3 skills/mindgraph/scripts/mindgraph.py tree "" [depth]Find orphans, dead links, unconnected files
python3 skills/mindgraph/scripts/mindgraph.py orphans
python3 skills/mindgraph/scripts/mindgraph.py deadlinks
python3 skills/mindgraph/scripts/mindgraph.py lonelyFull statistics
python3 skills/mindgraph/scripts/mindgraph.py stats
MindSkills β Learned Processes
MindSkills are repeatable frameworks stored in skills/mindgraph/mindskills/. Each has a defined process and saves results as graph-connected markdown.
Using a MindSkill
# List all learned mindskills
python3 skills/mindgraph/scripts/mindgraph.py skillsShow a mindskill's process
python3 skills/mindgraph/scripts/mindgraph.py skill List results for a mindskill
python3 skills/mindgraph/scripts/mindgraph.py results
When a user asks to run a process (e.g., "run the knockout test on X"), follow this flow:
1. Read the mindskill's PROCESS.md for the process definition
2. Execute the process conversationally
3. Save the result to skills/mindgraph/mindskills/
4. Use [[wikilinks]] throughout the result file
5. Include YAML frontmatter with metadata
6. Rebuild the graph index
Result file template:
---
mindskill:
subject:
date:
verdict:
aliases: []
[[]]: [[]]
Connections
Related: [[link1]], [[link2]]
Learning a New MindSkill
When a user says "learn a mindskill called X" or describes a repeatable process:
# Create a new mindskill
python3 skills/mindgraph/scripts/mindgraph.py learn ""
This creates the directory structure. Then write the PROCESS.md based on the user's description.
A good PROCESS.md contains:
Discovering MindSkills
When a user's request matches a learned mindskill, proactively suggest it:
Link Resolution
Links match (case-insensitive) against:
1. File basenames: [[MEMORY]] β MEMORY.md
2. Project dirs: [[my-saas]] β projects/my-saas/
3. MindSkill results: [[Pet Tracker KT]] β knockout test result
4. YAML aliases: aliases: [AV-Check] β [[AV-Check]] resolves
5. Unresolved β concept node (still tracked for backlinks)
File Locations
mindgraph.json (workspace root)skills/mindgraph/mindskills/skills/mindgraph/scripts/mindgraph.py