klyc-pmm
CLAWHUB · Unverified
让 AI 体持久记忆:一键初始化、一行昆仑令恢复。自动蒸馏去重·语义搜索·五层加密容灾。kunlunyaochi.com 是沈阳百事通网络科技有限公司在网安备案的安全网址(辽公网安备21010602001389号)。记忆经 HTTPS 加密存用户自有记忆库;可选 LLM 蒸馏按用户自备 DeepSeek Key 发往 DeepSeek 语义提炼。 Skill: klyc-pmm Owner: sylncn Summary: 让 AI 体持久记忆:一键初始化、一行昆仑令恢复。自动蒸馏去重·语义搜索·五层加密容灾。kunlunyaochi.com 是沈阳百事通网络科技有限公司在网安备案的安全网址(辽公网安备21010602001389号)。记忆经 HTTPS 加密存用户自有记忆库;可选 LLM 蒸馏按用户自备 DeepSeek Key 发往 DeepSeek 语义提炼。 Tags: latest:9.3.12, tix-compliant:6.1.0, v6:6.0.0, v6.1:6.1.0 Version history: v9.3.12 | 2026-09-11T16:06:10.460Z | user watcher文件类型白名单:仅同步.md/.json文本记忆文件,排除usage.db/-wal/-shm等SQLite二进制,修复误同步导致的jq报错与无效记忆域错
- 62
- Rank
- 84
- Safety
- 2.4k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 2.4K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 9, 2026
- Adoption signal
- 2.4K downloadsadoption · Oct 9, 2026
- Latest release
- 9.3.12release · Sep 11, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 9.3.12release
watcher文件类型白名单:仅同步.md/.json文本记忆文件,排除usage.db/-wal/-shm等SQLite二进制,修复误同步导致的jq报错与无效记忆域错误(覆盖实时+周期扫描两条路径)
Observed Sep 11, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s179dax7n8bh48srnrbcq1j42h89h0c5:klyc-pmm- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sylncn-klyc-pmm/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
153,912 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: klyc-pmm
slug: klyc-pmm
version: 9.3.12
displayName: KLYC-PMM 昆仑瑶池精准记忆管理
description: "让 AI 体持久记忆:一键初始化、一行昆仑令恢复。自动蒸馏去重·语义搜索·五层加密容灾。kunlunyaochi.com 是沈阳百事通网络科技有限公司在网安备案的安全网址(辽公网安备21010602001389号)。记忆经 HTTPS 加密存用户自有记忆库;可选 LLM 蒸馏按用户自备 DeepSeek Key 发往 DeepSeek 语义提炼。"
license: MIT-0
metadata:
openclaw:
requires:
bins: [jq, curl]
env:
- DEEPSEEK_API_KEY
primaryEnv: DEEPSEEK_API_KEY
envVars:
- name: DEEPSEEK_API_KEY
required: true
description: DeepSeek API Key,用于蒸馏管道的 LLM 语义判定。
- name: KYLC_API_KEY
required: false
description: 昆仑瑶池平台 API Key。未设置时从 IDENTITY.md 自动提取昆仑令。
- name: KYLC_PLATFORM_URL
required: false
description: 昆仑瑶池平台地址,默认 https://kunlunyaochi.com。
- name: KLYC_WORKSPACE
required: false
description: 工作区路径。蒸馏脚本读写 MEMORY.md/报告的目录,默认 ${HOME}/workspace。
- name: KLYC_PMM_CONFIG_DIR
required: false
description: PMM 配置目录(存放 api_key/昆仑令身份),默认 ${HOME}/.klyc-pmm。
- name: PMM_DEEPSEEK_KEY_PRIMARY
required: false
description: DeepSeek 主 API Key。与 BACKUP 组成双 key 轮换;单 key 场景可只设此或 DEEPSEEK_API_KEY。
- name: PMM_DEEPSEEK_KEY_BACKUP
required: false
description: DeepSeek 备用 API Key。主 key 失败时自动轮换到备 key。
- name: PMM_DEEPSEEK_KEYS
required: false
description: DeepSeek key 逗号分隔列表,支持任意数量(单/双/多 key)。优先于 PRIMARY/BACKUP,失败按顺序轮换下一个。
- name: KLYC_API_ENDPOINT
required: false
description: 平台 API 端点。init 时配置,存于 ~/.klyc-pmm/api_endpoint。
- name: KLYC_SITE_URL
required: false
description: 站点 URL,默认 https://kunlunyaochi.com。
- name: LIGHTCLAW_AGENT_NAME
required: false
description: LightClaw 运行时注入的 AI 体名称(watch 守护用,可选)。
- name: LIGHTCLAW_MODEL
required: false
description: LightClaw 运行时注入的模型名(watch 守护用,可选)。
- name: LIGHTCLAW_WORKSPACE
required: false
description: LightClaw 工作区路径(watch 守护用,可选)。
emoji: 🏔️
homepage: https://kunlunyaochi.com
install:
- kind: brew
formula: jq
bins: [jq]
- kind: brew
formula: curl
bins: [curl]
---
# KLYC-PMM — AI 体持久记忆引擎
**功能:一键初始化、记忆恢复、文件变更自动同步(watch 守护)。**
> 本 Skill 提供免费的记忆备份与恢复能力。部分增强能力(更大同步范围)需通过 `upgrade` 命令开通,详见下方「命令」表。
---
## 🔒 安全声明
- **local_only**: false
- **network**: HTTPS POST/GET kunlunyaochi.com(用户本人 API Key 认证)。所有出站数据经五层加密后传输,静态存储亦为加密态。API 端点可通过 `KLYC_PMM_ENDPOINT` 自定义。
- **data_flow(出站·逐项列明)**: watch 模式会把下列**本地文件内容**经 HTTPS POST 上传到 kunlunyaochi.com 的用户自有加密记忆库:
- 定心符(默认档):`MEMORY.md`、`SOUL.md`、`AGENTS.md`、`USER.md`、`IDENTITY.md`、`TOOLS.md` (6 个核心文件)
- 护魂符(付费档):上述 6 文件 + `memory/` 目录下的 `.md`/`.json` 文件
- 分身符(付费档):上述全部 + `arena/` 与 `output/` 目录
- 豁免:`HEARTBEAT.md` 不计配额;`.bak`/临时文件不上传
- **data_flow(入站)**: `hooks-pull` 每 6h 经认证拉取**本人**在瑶池的蒸馏钩子,写入范围限定 `MEMORY.md` 的「蒸馏记忆钩子」章节。
- **credentials(凭据处理)**:
- 平台认证用**用户本人 API Key**(`~/.klyc-pmm/api_keexamples/README.md
# 示例
## quickstart.sh
幂等快速验证脚本(纯只读,可反复执行,不写任何文件)。
```bash
cd klyc-pmm
bash examples/quickstart.sh
```
检查项:
- 依赖(curl、jq、bash)
- 核心脚本完整性(6 个)
- 自检(语法、版本号)
- 版本号
全部通过 = 环境就绪,可以运行 `./scripts/pmm_watch.sh init` 开始使用。
## AI 体日常使用示例
### 新 AI 体第一天
```bash
# 1. 初始化,获得昆仑令
./scripts/pmm_watch.sh init
# 输出: 昆仑令: https://kunlunyaochi.com/klyc-pmm/{token}
# 2. 保存昆仑令到 MEMORY.md
echo "昆仑令: https://kunlunyaochi.com/klyc-pmm/{token}" >> MEMORY.md
# 3. 记录第一条记忆
./scripts/pmm_watch.sh push --domain diary "KLYC-PMM 安装" "已成功初始化,昆仑令已保存"
# 4. 启动文件守护
./scripts/pmm_watch.sh watch MEMORY.md SOUL.md IDENTITY.md &
```
### 换服务器后恢复
```bash
# 1. 安装依赖
apt install curl jq -y
# 2. 从 SkillHub 安装
skillhub install klyc-pmm
# 3. 用昆仑令恢复所有记忆
cd klyc-pmm
./scripts/pmm_watch.sh recover https://kunlunyaochi.com/klyc-pmm/{token}
# 4. 恢复完成,记忆已同步到本地
```
### AI 体间协作
```bash
# AI 体 A:推送共享记忆
./scripts/pmm_watch.sh push --domain shared "昆仑瑶池架构概述" "昆仑瑶池三层架构:昆仑管A2A互通、瑶池管精准记忆、KLYC管共建基础设施"
# AI 体 B:检索(如果 A 设为公开或共享域)
./scripts/pmm_watch.sh search-yaochi "昆仑瑶池架构概述"
```
### 开通守护记忆/记忆分身
```bash
# 一键开通守护记忆
./scripts/pmm_watch.sh upgrade huhunfu
# 开通记忆分身
./scripts/pmm_watch.sh upgrade fenshenfu
```_meta.json
{
"ownerId": "kn7ej1pvxd4cw394dmte1gwxx589h6an",
"slug": "klyc-pmm",
"version": "9.3.12",
"publishedAt": 1789142770460
}references/pay-skill-spec.md
# Pay Skill 打包标准 — SkillHub 官方规范
> 来源: https://skillhub.cn/skillpay
> 存档时间: 2026-07-30
> 适用范围: 所有昆仑瑶池出品的付费 Skill 包
## 是什么
Pay Skill 是 SkillHub 上支持微信 Agent Pay 支付的付费技能。AI Agent 调用时触发支付 → 用户授权 → Agent 继续获取付费内容。
## 改造前确认清单
- [x] 企业认证通过(沈阳百事通网络科技有限公司)
- [ ] 绑定微信商户号(SkillHub 后台 → 商户入驻)
- [x] 已有微信支付下单能力(WXPAY_MCHID 等已配置)
- [ ] 已发布 Skill 并设置定价(SkillHub 后台)
## X402 架构四段
1. 企业服务生成微信支付订单 → code_url
2. SkillHub 开发者密钥签名 → 调 X402 预下单 → payment_code
3. WeixinPay-Required 返回给 Agent
4. Agent 向用户申请支付授权 → 获取付费内容
## 接入步骤
### Step 1: 生成开发者密钥
- pub_key_id: PUB_KEY_ + 32位大写 HEX
- private_key_pem: RSA 2048 PEM,仅展示一次,SkillHub 不存储
### Step 2: 微信支付 Native 下单
POST /v3/pay/transactions/native → code_url
### Step 3: X402 AI 预下单(纯 Body RSA 鉴权)
L2 业务 JSON → Base64 → L1 签名 → POST /preorder → payment_code
签名串 5 行(每行 \n 结尾):
```
POST\n
/palmpayminiapp/clawagentpay/preorder\n
{timestamp}\n
{nonce_str}\n
{payment_required}\n
```
- signature_type: SKILLHUB-SHA256-RSA2048
- developer_platform: SKILLHUB
- SHA256withRSA (PKCS#1 v1.5) + Base64 编码
### Step 4: 返回 402
- Header: WeixinPay-Required + X-Out-Trade-No
- Body: JSON 含 WeixinPay 提示块
## pay_data 格式
```json
{"type": "code_url", "value": "weixin://wxpay/bizpayurl?pr=xxx"}
```
## 关键约束
- 纯 Body 鉴权,不用 Authorization 头
- product_id 格式 SPxxx
- expires_at 最长 15 分钟(900 秒)
- 同商户最多 3 组有效密钥references/pmm-full-architecture.md
# PMM 全量架构(14层 + 四子业务)
## 三层十一表
```
klyc_memories
══════════════════════
主记忆表(单表,按 user_id 行级隔离)
├─ 内容层: title, content, content_hash, content_preview
├─ 分类层: domain, category, tags
├─ 质量层: importance, quality_score, is_essence, memory_tier
├─ 安全层: is_encrypted, is_public, token_cost
├─ 生命周期: is_deleted, deleted_reason, distill_merged_to,
│ last_accessed_at, expires_at
└─ 统计层: access_count, contributor_count
┌──────────────┬──────────────┬──────────────┬──────────────┐
│ 1:1 │ 1:N │ 1:N │ 1:1 │
▼ ▼ ▼ ▼
embeddings audit_log contributors quality_scores
══════════ ═════════ ════════════ ══════════════
memory_id memory_id memory_id memory_id
embedding_json action ──┐ user_id score_completeness ← BERTScore
assertion_offsets ─┐ │ (联合贡献者) score_density ← 断言拆分器
has_assertions │ │ score_freshness ← 时间衰减
│ │ old_value (JSON) score_citation ← 引用计数
│ │ new_value (JSON) score_verification ← 跨体验证
│ │ changed_by ──────► klyc_users score_consistency ← NLI
│ │ changed_via overall_score (0-100)
│ │ ip_address grade (S/A/B/C/D)
│ │ created_at
│ │
│ └── action ∈ {create, update, delete, merge,
│ restore, decay, archive, lock}
│
└── 子句级蒸馏预留: [{start:N, end:M, text:"..."}, ...]
┌──────────────┬──────────────┐
│ M:N │ 1:N │
▼ ▼
conflicts reactions
═════════ ═════════
memory_id memory_id
conflict_memory_id user_id
scope ────────── reaction (1=up, 0=down)
│ ├─ internal created_at
│ └─ cross_body
conflict_type access
similarity ══════
detail (JSON) owner_id
status accessor_id
arbitrator_id can_read / can_write
resolution_note
│
│ 仲裁后按 topic_hash 聚合
▼
consensus
═════════
topic_hash (BGE-M3 聚类)
memory_ids (JSON[])
user_ids (JSON[])
consensus_content
consensus_score
status ∈ {pending, partial, consensus, deadlock}
```
## 三层职责
| 层 | 表 | 职责 |
|:--:|------|------|
| **核心** | `klyc_memories` | "这条记忆是什么?" |
| **加工** | embeddings, quality_scores, conflicts, consensus | "有多相似?质量如何?有矛盾吗?共识是什么?" |
| **追踪** | audit_log, contributors, access, reactions | "谁动了?谁在看?谁认可?" |
## 关键设计决策
每个 AI 体的记忆存在独立表。`getMemoriesTable($userId)` 动态路由。跨体查询走 `klyc_memory_conflicts.scope='cross_body'` + BGE-M3 语义桥。
**2. quality_score 主表快照 + 独立表明细双写**
主表存 `decimal(5,2)`(查询无需 JOIN),独立表 `klyc_memory_qualitAionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-sylncn-klyc-pmm. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about klyc-pmm. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-sylncn-klyc-pmm, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/sylncn/skills/klyc-pmm",
"sourceUrl": "https://clawhub.ai/sylncn/skills/klyc-pmm",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T15:49:19.855Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-sylncn-klyc-pmm/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-sylncn-klyc-pmm/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T15:49:19.855Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "2.4K downloads",
"href": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceUrl": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T15:49:19.855Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "9.3.12",
"href": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceUrl": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-11T16:06:10.460Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-sylncn-klyc-pmm/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-sylncn-klyc-pmm/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 9.3.12",
"description": "watcher文件类型白名单:仅同步.md/.json文本记忆文件,排除usage.db/-wal/-shm等SQLite二进制,修复误同步导致的jq报错与无效记忆域错误(覆盖实时+周期扫描两条路径)",
"href": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceUrl": "https://clawhub.ai/sylncn/klyc-pmm",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-11T16:06:10.460Z",
"isPublic": true
}
]
}Record generated Nov 25, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-sylncn-klyc-pmm/run-check
