Install
$ agentstack add skill-arasz-ai-badger-semantica-knowledge-graph ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
semantica-knowledge-graph
Semantica is a session-scoped knowledge graph MCP server (MIT, v0.6.5+). Every MCP invocation shares one in-memory graph — entities, relationships, and decisions accumulate within a session but do not survive a process restart.
When NOT to Use
- A one-off fact lookup — use
memory_search(AiRaccoon) first. - No decision or extraction needed — skip graph ceremony.
- Durable facts outliving the session — write to AiRaccoon (
memory_write).
Workflows
1. Decision recording
record_decision(category="...", scenario="...", reasoning="...", outcome="...", confidence=0.85)add_entityfor key conceptsadd_relationship(source="...", target="...", relationship_type="...")- Cite decision id in commits or PRs for traceability
2. Entity extraction
- Option 2 (Agent-Guided — Primary): Use LLM reasoning to extract domain concepts and call
add_entity+add_relationship. Zero extra dependencies, instantaneous, zero cold-start. - For Code Structures: Use
code-review-graphMCP tools (semantic_search_nodes_tool,find_callers,find_dependents) for code symbol graphs. - Option 1 (Native Local ML): Optional
extract_entities/extract_relationsvia PyTorch/HuggingFace (pip install torch transformers). Degrades if ML deps missing. - Verify with
get_graph_summary().
3. Decision archaeology
query_decisions(query="keyword")→ find decisionsget_causal_chain(decision_id="...")→ trace ancestryfind_precedents(scenario="...")→ check prior patterns
4. Graph export & AiRaccoon persistence pattern
To prevent data loss from Semantica's ephemeral in-memory process:
- Export as a hook / procedure: Call
export_graph(format="json")and save to.ai-raccoon/semantica-graph.json. - Watch via AiRaccoon: Register
memory_watch_add(project_id="...", path="/semantica-graph.json"). - Structural JSON Integration: AiRaccoon automatically ingests the JSON file, parses node/edge hierarchies and decision outcomes, and embeds them into AiRaccoon's persistent SQLite memory bank (
memory.db). - Cross-Session Retrieval: In future sessions,
memory_searchin AiRaccoon returns both textual decision rationale AND exact structural JSON graph relations.
Escalation by result
- Graph empty →
get_graph_summaryreturns zero nodes; record decision or entities first - No precedent → record decision now so it becomes a precedent for next time
- Causal chain incomplete → add missing intermediate entities/relationships, re-query
AiRaccoon complementarity
- AiRaccoon (
memory_search): "what do we know?" — semantic recall over indexed docs - Semantica (
query_decisions): "how are things connected?" — structured reasoning over graph - Durable facts →
memory_write(AiRaccoon); ephemeral causal reasoning → Semantica
Gotchas
- Session-scoped only: in-memory graph dies on process exit. No
import_graphmechanism exists. - Extraction ML deps:
extract_entitiesneedstorch+transformers, not LLM API keys. - Parameter names:
add_relationshipusessource/target, notsource_id/target_id. - Known issue:
get_graph_analyticsunavailable in 0.6.5 — useget_graph_summary.
Verification Checklist
- [ ]
get_graph_summaryreturns node/edge counts reflecting session activity - [ ] At least one decision recorded and findable via
query_decisions - [ ] AiRaccoon
memory_searchand Semanticaquery_decisionsreturn complementary results - [ ]
export_graphproduces valid JSON snapshot for AiRaccoon watch ingestion
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Arasz
- Source: Arasz/ai-badger
- License: MIT
- Homepage: https://github.com/Arasz/ai-badger
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.