Agent Skills
› semantica-agi/semantica
› change
change
GitHub用于追踪和检查 Semantica 知识图谱的变更、差异及时间更新。支持计算快照间的图差异(diff)以查看节点边的增删与属性变化,以及查询特定节点或关系的详细变更历史(history),包括版本、时间戳和作者信息。
触发场景
比较两个时间点的数据差异
查看特定实体的修改记录
分析数据更新对图谱的影响
安装
npx skills add semantica-agi/semantica --skill change -g -y
SKILL.md
Frontmatter
{
"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.
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.
history = tracker.get_node_history(node_id=node_id, limit=limit)
Return: revisions, timestamps, authors, and summary comments.
版本历史
- 9094f1e 当前 2026-07-05 09:26


