npx skills add https://github.com/boshu2/agentops --skill provenance追溯知识产出来源谱系。
给定 /provenance <artifact>:
Tool: Read
Parameters:
file_path: <artifact-path>
查找溯源元数据:
# 检查文件中的来源元数据
grep -i "source\|session\|from\|extracted" <artifact-path>
# 使用 ao 搜索相关会话记录
ao search "<artifact-name>" 2>/dev/null
使用 CASS 查找讨论此产出物的时间:
# 提取产出物名称用于搜索
artifact_name=$(basename "<artifact-path>" .md)
# 搜索会话记录
cass search "$artifact_name" --json --limit 5
解析 CASS 结果以查找:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
CASS JSON 输出字段:
{
"hits": [{
"title": "...",
"source_path": "/path/to/session.jsonl",
"created_at": 1766076237333,
"score": 18.5,
"agent": "claude_code"
}]
}
Transcript (source of truth)
↓
Forge extraction (candidate)
↓
Human review (promotion)
↓
Pattern recognition (tier-up)
↓
Skill creation (automation)
# Provenance: <artifact-name>
## Current State
- **Tier:** <0-3>
- **Created:** <date>
- **Citations:** <count>
## Source Chain
1. **Origin:** <transcript or session>
- Line/context: <where extracted>
- Extracted: <date>
2. **Promoted:** <tier change>
- Reason: <why promoted>
- Date: <when>
## Session References (from CASS)
| Date | Session | Agent | Score |
|------|---------|-------|-------|
| <date> | <session-id> | <agent> | <score> |
## Related Artifacts
- <related artifact 1>
- <related artifact 2>
告知用户:
/provenance --orphans
查找没有来源追踪的产出物:
# 没有 "Source:" 或 "Session:" 元数据的文件
for f in .agents/learnings/*.md; do
grep -L "Source\|Session" "$f" 2>/dev/null
done
/provenance --stale
查找来源可能已发生变化的产出物:
# 比其来源更旧的产出物
find .agents/ -name "*.md" -mtime +30 2>/dev/null
用户说: /provenance .agents/learnings/2026-01-15-auth-tokens.md
发生的过程:
cass search "auth-tokens" --json --limit 5 搜索会话记录结果: 从会话记录到当前层级的完整溯源链,显示产出物何时创建、讨论和升级。
用户说: /provenance --orphans
发生的过程:
.agents/learnings/、.agents/patterns/ 中缺少来源元数据的文件结果: 识别出未追踪的知识,从而能够追溯性地进行谱系记录或归档。
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 未找到来源元数据 | 产出物在溯源追踪之前创建 | 使用 CASS 追溯性地查找原始会话;手动添加 Source 字段 |
| CASS 无返回结果 | 会话未索引或产出物名称不匹配 | 检查会话记录是否存在;尝试更广泛的搜索词 |
| 陈旧产出物检查失败 | find 命令不可用或权限错误 | 使用 `ls -lt .agents/ |
| 谱系链不完整 | 升级过程未记录在产出物元数据中 | 从 git 历史记录或会话记录中重建;记录缺失部分 |
每周安装量
194
仓库
GitHub 星标数
197
首次出现
2026年2月2日
安全审计
安装于
claude-code192
codex192
opencode191
github-copilot190
kimi-cli190
gemini-cli190
Trace knowledge artifact lineage to sources.
Given /provenance <artifact>:
Tool: Read
Parameters:
file_path: <artifact-path>
Look for provenance metadata:
# Check for source metadata in the file
grep -i "source\|session\|from\|extracted" <artifact-path>
# Search for related transcripts using ao
ao search "<artifact-name>" 2>/dev/null
Use CASS to find when this artifact was discussed:
# Extract artifact name for search
artifact_name=$(basename "<artifact-path>" .md)
# Search session transcripts
cass search "$artifact_name" --json --limit 5
Parse CASS results to find:
CASS JSON output fields:
{
"hits": [{
"title": "...",
"source_path": "/path/to/session.jsonl",
"created_at": 1766076237333,
"score": 18.5,
"agent": "claude_code"
}]
}
Transcript (source of truth)
↓
Forge extraction (candidate)
↓
Human review (promotion)
↓
Pattern recognition (tier-up)
↓
Skill creation (automation)
# Provenance: <artifact-name>
## Current State
- **Tier:** <0-3>
- **Created:** <date>
- **Citations:** <count>
## Source Chain
1. **Origin:** <transcript or session>
- Line/context: <where extracted>
- Extracted: <date>
2. **Promoted:** <tier change>
- Reason: <why promoted>
- Date: <when>
## Session References (from CASS)
| Date | Session | Agent | Score |
|------|---------|-------|-------|
| <date> | <session-id> | <agent> | <score> |
## Related Artifacts
- <related artifact 1>
- <related artifact 2>
Tell the user:
/provenance --orphans
Find artifacts without source tracking:
# Files without "Source:" or "Session:" metadata
for f in .agents/learnings/*.md; do
grep -L "Source\|Session" "$f" 2>/dev/null
done
/provenance --stale
Find artifacts where source may have changed:
# Artifacts older than their sources
find .agents/ -name "*.md" -mtime +30 2>/dev/null
User says: /provenance .agents/learnings/2026-01-15-auth-tokens.md
What happens:
cass search "auth-tokens" --json --limit 5Result: Full provenance chain from transcript to current tier, showing when artifact was created, discussed, and promoted.
User says: /provenance --orphans
What happens:
.agents/learnings/, .agents/patterns/ for files missing source metadataResult: Untracked knowledge identified, enabling retroactive lineage documentation or archival.
| Problem | Cause | Solution |
|---|---|---|
| No source metadata found | Artifact created before provenance tracking | Use CASS to find origin session retroactively; add Source field manually |
| CASS returns no results | Session not indexed or artifact name mismatch | Check session transcript exists; try broader search terms |
| Stale artifact check fails | find command not available or permission error | Use `ls -lt .agents/ |
| Lineage chain incomplete | Promotion not recorded in artifact metadata | Reconstruct from git history or session transcripts; document gaps |
Weekly Installs
194
Repository
GitHub Stars
197
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code192
codex192
opencode191
github-copilot190
kimi-cli190
gemini-cli190
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
56,200 周安装