causal

causal is a skill for Claude Code from bibinprathap/VeritasGraph. It costs 31 tokens per session (479 once invoked), scanned A, original, MIT.

A cause-and-effect analysis skill for VeritasReason knowledge graphs, which map facts and relationships between them.

In plain words
What is it for?
Use it to trace causes, study interventions, test counterfactual scenarios, and calculate causal influence scores.
Why use it?
It helps examine why something happened, what could change the outcome, and how strongly one factor influences another.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the veritasreason plugin — 17 skills, 3 agents, 2 hooks shipped together

Good fit Use it to trace causes, study interventions, test counterfactual scenarios, and calculate causal influence scores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bibinprathap/veritasgraph/causal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bibinprathap/VeritasGraph --skill causal
Clone the repo
git clone --depth 1 https://github.com/bibinprathap/VeritasGraph

Made for: Claude Code.

Or install veritasreason, the plugin that ships this one along with the rest of its 17 skills, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for causal

README.md
[![agentmods](https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/causal/github.svg)](https://agentmods.dev/skills/bibinprathap/veritasgraph/causal)
Your own site
<a href="https://agentmods.dev/skills/bibinprathap/veritasgraph/causal"><img src="https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/causal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for causal

Your own site · 80×15
<a href="https://agentmods.dev/skills/bibinprathap/veritasgraph/causal"><img src="https://agentmods.dev/badge/skills/bibinprathap/veritasgraph/causal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00479
Opus 5.5 $0.00012 $0.00192
Sonnet 5.5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 3mo ago against content hash 3c260d091168, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

causal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

veritas-reason/plugins/skills/causal/SKILL.md · 75 lines

What it actually says

/veritasreason:causal

Analyze causal relationships and infer impacts. Usage: /veritasreason: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 veritasreason.context.causal_analyzer import CausalChainAnalyzer
from veritasreason.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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 75 lines · 31 tokens per session scan A 3c260d091168

Subscribe to this mod's changes

causal is a skill published in the GitHub repository bibinprathap/VeritasGraph (328 stars, last pushed 5d ago), licensed MIT. It adds 31 tokens to every session and 479 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

causal compared with skills from other repositories

causal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
causalbibinprathap/VeritasGraphSkill3285d agoMITA31Claude Code
document-chunkerellmos-ai/skillsSkill102d agoMITA230Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k7d agoApache-2.0A146Claude Code, Codex
mem0-tourmem0ai/mem0Skill70k7d agoApache-2.0A47Claude Code, Codex
ai-engineering-toolkitsickn33/agentic-awesome-skillsSkill51ktodayMITA47Claude Code
mem0-remembermem0ai/mem0Skill70k7d agoApache-2.0A52Claude Code, Codex
statusmem0ai/mem0Skill70k7d agoApache-2.0A54Claude Code