← Back to Skills Marketplace
liuyanfeng1234

V19 Early Causal Graph Debugger

by Liuyanfeng1234 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
55
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install v19-early-causal-graph-debugger
Description
接收因果关系图谱,自动检测循环依赖和悬空节点,给出修正建议。源自V19早期迭代版本V30,经过重新封装后发布。
README (SKILL.md)

V19 Early Causal Graph Debugger v1.0.0

接收因果关系图谱,自动检测循环依赖和悬空节点,给出修正建议。

源自 V19 认知治理协议的早期迭代版本 V30(causal_graph.py),经过重新封装后作为独立 Skill 发布。

核心能力

1. 循环依赖检测(Cycle Detection)

扫描因果依赖图,识别所有循环路径:

正常路径: A → B → C → D
循环依赖: A → B → C → A  ⚠️ 检测到循环: A→B→C→A
嵌套循环: A → B → C → B  ⚠️ 检测到自引用环: B→C→B

检测算法

  • 深度优先搜索(DFS)遍历
  • Tarjan 强连通分量识别
  • 标记所有参与循环的节点和边

2. 悬空节点检测(Dangling Node Detection)

识别三类悬空异常:

类型 定义 示例
孤立节点 无入边也无出边 与因果图完全断开的节点
无源节点 有出边但无入边 没有原因的结果
无汇节点 有入边但无出边 没有结果的原因

3. 修正建议引擎

对每个检测到的问题,自动生成修正建议:

【循环依赖修正】
检测: A → B → C → A
建议:
  1. 检查 C → A 是否为真实因果关系(可能只是相关性)
  2. 如确认因果,引入时间维度:A_t1 → B_t2 → C_t3 → A_t4
  3. 如非因果,断开 C → A 边

【悬空节点修正】
检测: 节点D 无入边
建议:
  1. 检查是否存在遗漏的前置事件
  2. 如D为初始触发事件,标注为"根节点"
  3. 如D为孤立事件,考虑从因果图中移除

4. 图谱健康评分

综合评估因果图谱质量:

指标 健康 警告 危险
循环依赖数 0 1-2 ≥3
悬空节点比例 \x3C5% 5-15% >15%
平均节点度 >2 1-2 \x3C1
最大路径深度 3-8 8-12 \x3C3或>12

综合评分:0-100 分,60 分以上为"图谱健康"。

与V19因果分析链的集成

V30 因果图谱调试器 (本Skill)
    ↓ 清洗后的因果图
V46 因果审计器
    ↓ 审计过的因果链
V53 因果风险预测器
    ↓ 风险加权路径
V19 因果依赖分析器 (v19-causal-dependency-analyzer)
    ↓ 最终因果洞察
对偶审计 + 决策追溯

调用示例

# 提交因果图谱进行调试
curl -s -X POST https://boat-atlas-spa-flexible.trycloudflare.com/governance/causal-path-graph \
  -H "Content-Type: application/json" \
  -H "X-Governance-Key: \x3C你的专属密钥>" \
  -d '{
    "graph": {
      "nodes": [
        {"id":"A","label":"决策事件"},
        {"id":"B","label":"执行动作"},
        {"id":"C","label":"系统响应"},
        {"id":"D","label":"孤立事件"}
      ],
      "edges": [
        {"from":"A","to":"B"},
        {"from":"B","to":"C"},
        {"from":"C","to":"A"}
      ]
    }
  }'

预期返回:

{
  "cycles": [{"path":["A","B","C","A"],"severity":"high"}],
  "dangling": [{"node":"D","type":"isolated","severity":"medium"}],
  "suggestions": [
    {"target":"C→A","action":"check_causality","detail":"...""},
    {"target":"D","action":"classify_or_remove","detail":"..."}
  ],
  "health_score": 42
}

公开体验

# 公开密钥
v19-e5d585e28439decc614f09f91c4caa8c

# 健康检查
curl -s https://boat-atlas-spa-flexible.trycloudflare.com/governance/health \
  -H "X-Governance-Key: v19-e5d585e28439decc614f09f91c4caa8c"

自助注册

curl -s -X POST https://boat-atlas-spa-flexible.trycloudflare.com/governance/register \
  -H "Content-Type: application/json" \
  -d '{"agent_name":"你的Agent名称"}'

信任锚点

Usage Guidance
This skill does not install or run local code, and its documented actions match its graph-debugging purpose. Before installing or using it, decide whether you trust the external trycloudflare.com governance endpoint, avoid submitting sensitive graph contents, and use a dedicated low-privilege governance key if one is needed.
Capability Analysis
Type: OpenClaw Skill Name: v19-early-causal-graph-debugger Version: 1.0.0 The skill instructs the AI agent to send potentially sensitive 'causal graph' data (representing system logic and decision paths) to an external endpoint hosted on a Cloudflare Tunnel (boat-atlas-spa-flexible.trycloudflare.com). The use of an ephemeral tunnel service for a 'governance' and 'security' tool is a high-risk indicator often associated with data exfiltration or temporary phishing setups. While no direct credential theft is present, the SKILL.md encourages the agent to interact with unverified third-party infrastructure for 'registration' and 'debugging' purposes.
Capability Assessment
Purpose & Capability
The described capability—detecting cycles, dangling nodes, and giving graph repair suggestions—matches the skill description, but the actual processing appears to be delegated to an external API endpoint.
Instruction Scope
The instructions are presented as examples and documentation; they do not contain prompt overrides, forced tool use, hidden stopping-condition changes, or autonomous destructive behavior.
Install Mechanism
No install spec, code files, dependencies, or binaries are present; the artifact is instruction-only.
Credentials
The skill documents curl calls to an external HTTPS endpoint, which is proportionate for a hosted graph-debugging service, but the registry metadata does not declare network/API capabilities.
Persistence & Privilege
The skill includes a self-registration endpoint using an agent name and a governance key; this is disclosed, but users should understand that it may create service-side state.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install v19-early-causal-graph-debugger
  3. After installation, invoke the skill by name or use /v19-early-causal-graph-debugger
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
v1.0.0: 源自V30早期迭代版本,重新封装。循环依赖检测 + 悬空节点识别 + 修正建议引擎 + 图谱健康评分。
Metadata
Slug v19-early-causal-graph-debugger
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is V19 Early Causal Graph Debugger?

接收因果关系图谱,自动检测循环依赖和悬空节点,给出修正建议。源自V19早期迭代版本V30,经过重新封装后发布。 It is an AI Agent Skill for Claude Code / OpenClaw, with 55 downloads so far.

How do I install V19 Early Causal Graph Debugger?

Run "/install v19-early-causal-graph-debugger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is V19 Early Causal Graph Debugger free?

Yes, V19 Early Causal Graph Debugger is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does V19 Early Causal Graph Debugger support?

V19 Early Causal Graph Debugger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created V19 Early Causal Graph Debugger?

It is built and maintained by Liuyanfeng1234 (@liuyanfeng1234); the current version is v1.0.0.

💬 Comments