变更
karanmrn2026-10-26查看 764复制 796
跟踪和检查 Semantica 知识图谱上的图变更、差异、时间更新以及新数据的影响。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md961 chars
--- name: change description: Track and inspect graph changes, diffs, temporal updates, and the impact of new data on Semantica knowledge graphs. --- # /semantica:change Inspect changes over time and evaluate updates. Usage: `/semantica:change <task> [args]` `$ARGUMENTS` = task + optional node, time window, or filter. --- ## `diff [--from <ts>] [--to <ts>] [--node <id>]` Compute graph diffs between two snapshots. ```python from semantica.provenance.change_tracker import ChangeTracker from semantica.context import ContextGraph tracker = ChangeTracker() diff = tracker.compute_diff(from_ts=from_ts, to_ts=to_ts, node_id=node_id) ``` Output: added/removed nodes and edges, attribute changes, and impact summary. --- ## `history <node_id> [--limit N]` Show the change history for a node or relationship. ```python history = tracker.get_node_history(node_id=node_id, limit=limit) ``` Return: revisions, timestamps, authors, and summary comments.