causal
What it does
This skill analyzes cause-and-effect relationships in a Semantica knowledge graph, such as which decision led to which outcome. It is for people who want to understand what drove a result and what a change might do.
When to use it
- ✓When you want to know what caused a particular decision or outcome.
- ✓When you want to see which later decisions a single choice influenced.
- ✓When you want to ask a what-if question about a different action.
Skill link
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/causal/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you show me what led to our last vendor approval decision and which later decisions it affected?”
5 new skills a week. 1 minute to read.
How it works
The agent follows the links in the graph upstream to find causes and downstream to find effects. It then scores how strongly a decision influenced others and reports the chain of steps with a summary.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/semantica:causal
Analyze causal relationships and infer impacts. Usage: /semantica:causal <task> [args]
$ARGUMENTS = task + optional target entity, filter, or intervention.
chain [--subject <node>] [--depth N]
Build and inspect causal chains for a subject or category.
from semantica.context.causal_analyzer import CausalChainAnalyzer
from semantica.context import AgentContext
# Option 1: Use an existing AgentContext decision backend
chain = ctx.get_causal_chain(
decision_id=decision_id,
direction="upstream",
max_depth=depth,
)
# Option 2: Use CausalChainAnalyzer directly
analyzer = CausalChainAnalyzer(graph_store=ctx.knowledge_graph)
downstream = analyzer.get_causal_chain(
decision_id=decision_id,
direction="downstream",
max_depth=depth,
)
Output: chain steps, cause strength, effect reach, and summary graph.
intervene <node> <action> [--scenario <json>]
Analyze decision impact and influenced decisions (current causal API).
analyzer = CausalChainAnalyzer(graph_store=ctx.knowledge_graph)
impact_score = analyzer.get_causal_impact_score(decision_id=decision_id)
influenced = analyzer.get_influenced_decisions(
decision_id=decision_id,
max_depth=depth,
)
Return: impact score, influenced decisions, and downstream scope.
counterfactual <fact> [--weight N]
Trace root causes and temporal causal paths.
analyzer = CausalChainAnalyzer(graph_store=ctx.knowledge_graph)
roots = analyzer.find_root_causes(decision_id=decision_id, max_depth=depth)
historical_chain = analyzer.trace_at_time(
event_id=decision_id,
at_time="2026-01-01T00:00:00Z",
direction="upstream",
max_depth=depth,
)
Output: root decision lineage and time-bounded causal context.
FAQ
What is a causal chain?
It is a series of linked steps showing how one event led to the next.
Does it predict the future?
No. It measures influence based on the links already recorded in the graph.
Can it test what-if scenarios?
Yes. It can explore counterfactual questions, though the answers depend on the stored links.
Details
Original description by the author
Analyze cause-and-effect relationships in the Semantica knowledge graph — causal chains, interventions, counterfactuals, and causal influence scores.
repo: semantica-agi/semantica
Popularity
- GitHub stars
- 14k
- Ranking position
- #11142
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
semantica
14kGives your agent a full toolkit for knowledge graphs, covering extraction, reasoning, provenance, ontologies, policies and exports.
change
14kShows your agent how a knowledge graph looked at an earlier date, and what changed between two dates or two ontology versions.
decision
14kHelps your agent record, search, explain and review decisions in a knowledge graph, from the first note through to its outcome.
deduplicate
14kHelps your agent find duplicate entities, groups and relationships in a knowledge graph, and suggest which copies to merge.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.