🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Knowledge Graph

by @xnohat

Embedded knowledge graph for persistent structured knowledge. ALWAYS use proactively — do NOT wait for user to ask. Auto-triggers on: (1) any mention of peop...

Versionv1.1.1
Installs7
⚙️ Configuration

All settings have sensible defaults. Override only what you need — config stores only your changes.

node scripts/config.mjs                       # list all settings with current values
node scripts/config.mjs get               # get a value (e.g. summary.tokenBudget)
node scripts/config.mjs set        # set a value
node scripts/config.mjs reset             # reset single key to default
node scripts/config.mjs reset --all            # reset everything
node scripts/config.mjs --json                 # full config as JSON

Available Settings

| Section | Key | Default | Description | |---------|-----|---------|-------------| | summary | tokenBudget | 5000 | Max tokens for kg-summary.md | | | maxChildDepth | auto | Tree depth (null=auto: 3/<100, 2/100-400, 1/>400) | | | maxAttrLen | 40 | Max characters for attribute values | | | maxPerRoot | 4 | Max relations shown per root subtree | | | compactThreshold | 400 | Entity count for compact mode | | | mediumThreshold | 200 | Entity count for medium depth | | validation | minEntities | 30 | Min entities for extraction PASS | | | minRelationRatio | 0.5 | Relations per entity ratio | | | minDepth | 3 | Min hierarchy depth for PASS | | | minEvents | 3 | Min event nodes for PASS | | depthCheck | entityCapForEstimate | 50 | Cap NER count for target estimation | | | minEntitiesMultiplier | 1.0 | Named entities → min target multiplier | | | extraEntities | 30 | Added to min for max entity range | | consolidation | autoNest | true | Auto-nest single-relation orphans | | | mergeSuggestions | true | Suggest merges for similar labels | | | pruneEmptyAttrs | true | Remove empty/null attrs | | | levenshteinThreshold | 2 | Max edit distance for merge suggestions | | visualization | repulsion | 5000 | Physics repulsion force | | | edgeRestLength | 160 | Default edge rest length | | | overlapPenalty | 3 | Overlap repulsion multiplier | | | simulationSteps | 500 | Physics simulation iterations | | | initialSpread | 1.5 | Initial node spread multiplier | | | zoomAnimationMs | 400 | Zoom-to-node animation duration |

Config file: data/kg-config.json (per-agent, gitignored).

View on ClawHub
TERMINAL
clawhub install knowledge-graph-skill

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →