本文へスキップ
Skillpedia
分析とスプレッドシート14k · #11142

causal

できること

このスキルは、Semanticaのナレッジグラフの中の因果関係を分析します。例えば、どの判断がどの結果につながったかなどです。結果の原因と、変更がもたらしうる影響を理解したい人向けです。

使う場面

  • ✓ある判断や結果の原因を知りたいとき。
  • ✓1つの選択が、その後のどの判断に影響したかを見たいとき。
  • ✓別の行動についての「もしも」の質問をしたいとき。

スキルのリンク

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/causal/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/semantica-agi/semantica/blob/main/plugins/skills/causal/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“前回のベンダー承認の判断の原因と、その後のどの判断に影響したかを見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、グラフのリンクを上流にたどって原因を、下流にたどって結果を見つけます。そのうえで、ある判断が他の判断にどれほど影響したかをスコア化し、手順の連鎖を要約とともに報告します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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.

よくある質問

因果の連鎖とは何ですか?

ある出来事が次の出来事につながったことを示す、連続したつながりの手順のことです。

将来を予測しますか?

いいえ。グラフにすでに記録されたリンクに基づいて、影響の大きさを測るだけです。

「もしも」のシナリオを試せますか?

はい。反事実の質問を探れますが、答えは保存されたリンクに依存します。

詳細

作者による元の説明

Analyze cause-and-effect relationships in the Semantica knowledge graph — causal chains, interventions, counterfactuals, and causal influence scores.

repo: semantica-agi/semantica

人気

GitHubのスター
14k
ランキング
#11142
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル