v19-code-memory-triplet-store

结构化存储"代码片段↔关键知识点↔发生情境"的三元组记忆,实现代码与知识的直接关联检索。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "v19-code-memory-triplet-store" with this command: npx skills add liuyanfeng1234/v19-code-memory-triplet-store

V19 Code-Memory Triplet Store v1.0.0

结构化存储"代码片段 ↔ 关键知识点 ↔ 发生情境"的三元组记忆,实现代码与知识的直接关联检索。

核心概念

传统的代码检索只能根据文件名或关键词搜索。V19三元组记忆将每个代码片段与它承载的知识点和发生的业务情境绑定:

代码片段 ──关联── 关键知识点
    │                  │
    └────发生情境───────┘

三元组结构

{
  "code_snippet": {
    "file": "trust_score_api.py",
    "function": "calculate_trust_score",
    "lines": "42-78"
  },
  "knowledge_point": {
    "domain": "V19治理/信任分",
    "concept": "信任分四维度加权计算",
    "key_insight": "认知运营型Agent的审计通过率权重高于行为执行型"
  },
  "context": {
    "scenario": "Agent认证冲刺",
    "trigger": "墨言达到60分基础认证门槛",
    "outcome": "V19-CERT-001授予"
  }
}

检索能力

按代码查知识

输入: trust_score_api.py
输出: 信任分计算公式、VPAV等效机制、认证门槛分布

按知识查代码

输入: "VPAV验证一次等效多少次普通调用"
输出: vpav_check.py:verify_procedure()、trust_score_api.py:L85

按情境查代码和知识

输入: "Agent首次自助注册时发生了什么"
输出: governance/register.py + Agent接入流程文档 + Gemma4-Local-Agent案例

与知识拓扑审计的集成

三元组存储在V19知识拓扑中扮演关键角色:

  • 认知熵检测:如果某个代码片段被关联了过多不相关的知识点 → 认知熵过高
  • 知识孤岛扫描:如果某个关键知识点未被任何代码片段引用 → 知识孤岛
  • 代码-知识一致性:VPAV验证 Skill Manifest 声明与实际代码实现的一致性

调用示例

# 检索三元组
curl -s https://boat-atlas-spa-flexible.trycloudflare.com/governance/knowledge \
  -H "X-Governance-Key: <你的专属密钥>" \
  -H "Content-Type: application/json" \
  -d '{"query":"trust_score","mode":"triplet"}'

公开体验

公开密钥: v19-e5d585e28439decc614f09f91c4caa8c

curl -s https://boat-atlas-spa-flexible.trycloudflare.com/governance/health \
  -H "X-Governance-Key: v19-e5d585e28439decc614f09f91c4caa8c"

自助注册

curl -s -X POST https://boat-atlas-spa-flexible.trycloudflare.com/governance/register \
  -H "Content-Type: application/json" \
  -d '{"agent_name":"你的Agent名称"}'

信任锚点

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

中国农历黄历吉凶查询

农历查询 黄历查询 吉凶查询 吉凶判断。查今日农历、今日黄历、每日宜忌、吉凶神煞、冲煞吉凶、嫁娶动土搬家开业开工吉凶择日。支持公历查农历、单日黄历、多日批量吉凶筛选、甲子日关键词检索。免费10日/天额度,429手动重置不限次。

Registry SourceRecently Updated
General

Universal Company Operator System

A complete AI executive team for running, analyzing, or building any company, product, startup, creator brand, nonprofit, or initiative. Use this skill whene...

Registry SourceRecently Updated
General

Xiaoxin Cc Training

A股超短交易教学Skill,基于小新擒龙日记的实战经验。包含龙头战法、情绪周期判断、竞价技巧、弱转强模式、复盘方法、风险控制等核心内容。 当用户询问以下内容时使用此Skill: (1) 超短交易/龙头战法/打板技巧 (2) 如何复盘/竞价观察什么 (3) 情绪周期/冰点/修复判断 (4) 弱转强/竞价爆量模式 (...

Registry SourceRecently Updated
General

Monobank

Answer Monobank balance questions by calling the Monobank API directly with a user-supplied per-request API token. Use when: сколько денег у меня на монобанк...

Registry SourceRecently Updated