Skip to content
AI & Agents
Skill

/provenance

收集系统全链路操作日志,生成可追溯的执行证据链与向量索引,是多智能体系统可观测性与安全审计的底座。

BOOST
From plugin
anbeime-skill
7.4k78 skills
Install
$ npx -y skills add anbeime/skill --skill provenance --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/provenance

Context preview

The summary Claude sees to decide when to auto-load this skill.

收集系统全链路操作日志,生成可追溯的执行证据链与向量索引,是多智能体系统可观测性与安全审计的底座。

SKILL.md

provenance.SKILL.md
name: provenance
description: 收集系统全链路操作日志,生成可追溯的执行证据链与向量索引,是多智能体系统可观测性与安全审计的底座。
assign_when: 该 Worker 负责记录每一次分发、扫描、解析与卡片生成事件,为系统提供端到端留痕与可观测能力。

Provenance 留痕 Skill(太史阁)

使用方式

  • 由各官署在关键操作节点调用(或通过事件总线异步推送),写入证据链。
  • 提供按 `trace_id` / 时间窗 / 官署维度的检索接口,支撑审计面板与回滚定位。

输入(Input)

  • `event`:操作事件,含 `actor`(官署名)、`action`、`target`、`timestamp`、`trace_id`
  • `payload`:(可选)与事件关联的结构化产物引用

输出(Output)

  • `evidence_chain`:按 trace_id 串联的可追溯证据链
  • `vector_index`:用于语义检索的向量索引条目
  • `query_api`:按条件检索历史证据的接口描述

依赖(Dependencies)

  • Qdrant(向量存储,经 MCP 接入)
  • SQLite(结构化事件落地,本地兜底)
  • 各官署的事件上报协议(统一 schema)

失败处理(Failure Handling)

  • 向量库写入失败 → 本地 SQLite 缓存事件,恢复后异步补写,不阻塞主流程。
  • 单条事件 schema 非法 → 记录并丢弃该条,不影响整链写入。
  • 检索超时 → 返回最近一次成功快照并标注 `stale`。

复用价值(Reuse Value)

  • 可观测性底座:任何多 Agent 系统都能直接挂载,获得开箱即用的审计与回放能力。
  • 契合评审:Agent Infra 赛道「工程落地与运行验证及安全审计(20%)」维度的天然得分点。

复赛代码包执行(runnable package)

  • 真实入口:`scripts/run_provenance.py`
  • 执行等价于 `core.runtime.AgentSession.run_stage("provenance")`,调用 `memory.taishige.TaiShiGeAgent.writeback`(把全链路事件与四色卡片回流证据链,纯 Python 可离线)。
  • 运行:`python skills/provenance/scripts/run_provenance.py`
  • 产物:`examples/snse_survey/provenance/`(trace.jsonl + trace_summary.json,含每一条军机处派发与官署执行事件)。
Ships withanbeime-skill

收录最全、更新最快的AI Agent技能库,涵盖文档处理、内容创作、编程开发、机器学习、自动化工作流等多个领域的精选技能包。 🧠 知易智能基座 :20+模型自由切换,知识永远留在你手里 —一个对话框调度所有模型,240+技能即插即用,四色卡片让AI真正记住你。 👉 申请体验

Get the whole plugin

Other skills on anbeime-skill.

agent-team
Skill

agent-team

产品经理与项目管理专家在应对复杂项目时,使用此技能可动态组建包含“执行、指挥、评审”的专属AI团队。实时查看多智能体辩论与决策全过程,共享统一上下文记忆,一键完成从会议决策到系统构建的全流…

agentkit-multimedia-shopping
Skill

agentkit-multimedia-sh…

电商运营与内容创作者在需要制作带货短视频时,用此技能一键生成9:16竖屏数字人成片。自动编排AI绘画、语音合成与视频生成,快速产出“小省导购员”专属形象与专业配音,让多模态视频制作省时省力…

antinet-doc-parse
Skill

antinet-doc-parse

软件开发工程师与数据科学家在构建RAG系统时,当需处理PDF/Word/Excel等多格式复杂文档,用此技能可自动触发三级解析降级,一键输出高置信度结构化Markdown与元数据,免去繁琐…