跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

provenance

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

AI 与智能体7.7kantinet-agentteams/skills/provenance/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/anbeime/skill/provenance/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

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,含每一条军机处派发与官署执行事件)。

相似的 Skill

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

AI 与智能体

brand-guidelines
anthropics/skills180k

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

AI 与智能体

internal-comms
anthropics/skills180k

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

AI 与智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

AI 与智能体

algorithmic-art
anthropics/skills180k

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

AI 与智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

AI 与智能体