多文件包验证与跨平台锚定工具集
简介
为 LYGO 操作者提供多文件包规范化、确定性哈希生成、防篡改账本与跨平台锚定片段的一站式验证工具链,确保提示包的可追溯性与完整性。
原始描述
Advanced LYGO-MINT Operator Suite (v2): canonicalize *multi-file* packs, generate per-file + bundle hashes, write append-only + canonical ledgers, produce machine-readable multi-platform Anchor Snippets, and verify third-party packs. Built for LYGO operators who want dependable, receipts-first truth anchoring across MoltX/Moltbook/X/Discord/4claw.
通过你的 Agent 添加
安装目录:lygo-mint-operator-suite/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
LYGO-MINT Operator Suite (v2) 是一套面向操作者的本地化验证工具链,用于将多文件提示包(如 Champion 系统)转化为可验证的数字制品。核心工作流包含四步:首先创建或对齐目标包;随后通过 mint_pack_v2.py 执行规范化、SHA-256 哈希计算、追加式账本写入及锚定片段生成;接着将机器可读的 Anchor Snippet 发布至 MoltX、Moltbook、X、Discord 或 4claw 等平台;最后使用 backfill_anchors.py 将平台回传的帖子 ID 回填至账本,形成完整证据链。
显著优点
- 确定性验证:基于 SHA-256 的单文件与整包哈希,确保任何字节级改动均可被检测
- 防篡改账本:双轨制存储——
lygo_mint_ledger.jsonl 追加-only 保留完整历史,lygo_mint_ledger_canonical.json 去重后提供权威视图
- 跨平台锚定:自动生成适配 MoltX、Moltbook、X、Discord、4claw 等平台的 Anchor Snippet,降低人工适配成本
- 本地化执行:所有脚本均在本地运行,不传输敏感内容,密钥与源码永不打印
- 可复现分发:
bundle_pack_v2.py 生成确定性 ZIP 包,支持可验证的第三方分发
潜在局限与风险
- 依赖本地环境:Python 运行时与文件系统权限为前提,非技术用户部署存在门槛
- 无区块链级锚定:账本与哈希依赖操作者本地维护,不具备比特币/Ethereum 等公链的时间戳与抗审查特性
- 社交平台的单点故障:锚定片段发布后,若平台删帖或账户受限,回溯链接可能失效
- 版本管理复杂度:多文件包的版本语义(如 2026-02-09.v1)需人工维护,无自动语义版本推断
- 验证的被动性:
verify_pack_v2.py 仅支持已知哈希比对,不主动发现篡改,需操作者定期执行
适合人群
- LYGO 网络中的 Champion 与 Operator 角色,需为其提示系统建立可审计的发布记录
- 提示工程团队,寻求在多平台分发时保持内容完整性验证能力
- 对本地优先、最小外部依赖有偏好的技术用户
常规风险
- 账本污染:若本地
state/ 目录被恶意修改或意外删除,历史验证链断裂
- 哈希碰撞误报:虽 SHA-256 碰撞概率极低,但验证逻辑应预设多哈希算法降级路径(当前未实现)
- 平台 API 变更:Anchor Snippet 的格式随平台政策调整可能失效,需持续维护
make_anchor_snippet_v2.py 的适配层
lygo_mint_ledger.jsonl 追加-only 保留完整历史,lygo_mint_ledger_canonical.json 去重后提供权威视图bundle_pack_v2.py 生成确定性 ZIP 包,支持可验证的第三方分发- 依赖本地环境:Python 运行时与文件系统权限为前提,非技术用户部署存在门槛
- 无区块链级锚定:账本与哈希依赖操作者本地维护,不具备比特币/Ethereum 等公链的时间戳与抗审查特性
- 社交平台的单点故障:锚定片段发布后,若平台删帖或账户受限,回溯链接可能失效
- 版本管理复杂度:多文件包的版本语义(如 2026-02-09.v1)需人工维护,无自动语义版本推断
- 验证的被动性:
verify_pack_v2.py仅支持已知哈希比对,不主动发现篡改,需操作者定期执行
适合人群
- LYGO 网络中的 Champion 与 Operator 角色,需为其提示系统建立可审计的发布记录
- 提示工程团队,寻求在多平台分发时保持内容完整性验证能力
- 对本地优先、最小外部依赖有偏好的技术用户
常规风险
- 账本污染:若本地
state/ 目录被恶意修改或意外删除,历史验证链断裂
- 哈希碰撞误报:虽 SHA-256 碰撞概率极低,但验证逻辑应预设多哈希算法降级路径(当前未实现)
- 平台 API 变更:Anchor Snippet 的格式随平台政策调整可能失效,需持续维护
make_anchor_snippet_v2.py 的适配层
- 账本污染:若本地
state/目录被恶意修改或意外删除,历史验证链断裂 - 哈希碰撞误报:虽 SHA-256 碰撞概率极低,但验证逻辑应预设多哈希算法降级路径(当前未实现)
- 平台 API 变更:Anchor Snippet 的格式随平台政策调整可能失效,需持续维护
make_anchor_snippet_v2.py的适配层
技能正文
name: lygo-mint-operator-suite
description: "Advanced LYGO-MINT Operator Suite (v2): canonicalize multi-file packs, generate per-file + bundle hashes, write append-only + canonical ledgers, produce machine-readable multi-platform Anchor Snippets, and verify third-party packs. Built for LYGO operators who want dependable, receipts-first truth anchoring across MoltX/Moltbook/X/Discord/4claw."
LYGO-MINT OPERATOR SUITE (v2)
This skill turns an aligned Champion pack (or any prompt/workflow pack) into a verifiable artifact:
- canonical form
- deterministic hash
- ledger receipts
- portable Anchor Snippet (paste anywhere)
Workflow (high-level)
- Create/align the pack (e.g. Champion alignment system).
- Run verifier:
- canonicalize
- hash (SHA-256)
- write ledgers
- emit Anchor Snippet
- Post Anchor Snippet anywhere.
- Backfill anchor IDs into the ledger.
- canonicalize
- hash (SHA-256)
- write ledgers
- emit Anchor Snippet
Read the full process doc: references/process.md.
Commands (scripts)
All scripts are local and never print secrets.
1) Mint a pack (file OR folder) → manifest + hashes + ledgers + snippets
python scripts/mint_pack_v2.py --input reference/CHAMPION_PACK_LYRA_V1.md --title "LYRA Pack" --version 2026-02-09.v1
python scripts/mint_pack_v2.py --input skills/public/lygo-champion-kairos-herald-of-time --title "KAIROS Pack" --version 2026-02-09.v1
2) Verify a pack against an anchor snippet or a known hash
python scripts/verify_pack_v2.py --input ./some_pack_folder --pack-sha256 <hash>
3) Create deterministic bundle (zip) for distribution
python scripts/bundle_pack_v2.py --input ./some_pack_folder --out tmp/pack.bundle.zip
4) Generate multi-platform anchor snippets
python scripts/make_anchor_snippet_v2.py --pack-sha256 <hash> --title "..." --platform moltx
5) Backfill anchors (post IDs/links)
python scripts/backfill_anchors.py --hash <64-hex> --channel moltbook --id <post-id-or-url>
Ledgers (workspace state)
- Append-only:
state/lygo_mint_ledger.jsonl
- Canonical (dedup):
state/lygo_mint_ledger_canonical.json
References
- Core template:
reference/CHAMPION_PROMPT_CORE_TEMPLATE_V1.md
- Publish checklist:
reference/CHAMPION_PACK_PUBLISH_CHECKLIST.md
python scripts/mint_pack_v2.py --input reference/CHAMPION_PACK_LYRA_V1.md --title "LYRA Pack" --version 2026-02-09.v1python scripts/mint_pack_v2.py --input skills/public/lygo-champion-kairos-herald-of-time --title "KAIROS Pack" --version 2026-02-09.v1python scripts/verify_pack_v2.py --input ./some_pack_folder --pack-sha256 <hash>
3) Create deterministic bundle (zip) for distribution
python scripts/bundle_pack_v2.py --input ./some_pack_folder --out tmp/pack.bundle.zip
4) Generate multi-platform anchor snippets
python scripts/make_anchor_snippet_v2.py --pack-sha256 <hash> --title "..." --platform moltx
5) Backfill anchors (post IDs/links)
python scripts/backfill_anchors.py --hash <64-hex> --channel moltbook --id <post-id-or-url>
Ledgers (workspace state)
- Append-only:
state/lygo_mint_ledger.jsonl
- Canonical (dedup):
state/lygo_mint_ledger_canonical.json
References
- Core template:
reference/CHAMPION_PROMPT_CORE_TEMPLATE_V1.md
- Publish checklist:
reference/CHAMPION_PACK_PUBLISH_CHECKLIST.md
python scripts/bundle_pack_v2.py --input ./some_pack_folder --out tmp/pack.bundle.zippython scripts/make_anchor_snippet_v2.py --pack-sha256 <hash> --title "..." --platform moltx
5) Backfill anchors (post IDs/links)
python scripts/backfill_anchors.py --hash <64-hex> --channel moltbook --id <post-id-or-url>
Ledgers (workspace state)
- Append-only:
state/lygo_mint_ledger.jsonl
- Canonical (dedup):
state/lygo_mint_ledger_canonical.json
References
- Core template:
reference/CHAMPION_PROMPT_CORE_TEMPLATE_V1.md
- Publish checklist:
reference/CHAMPION_PACK_PUBLISH_CHECKLIST.md
python scripts/backfill_anchors.py --hash <64-hex> --channel moltbook --id <post-id-or-url>- Append-only:
state/lygo_mint_ledger.jsonl - Canonical (dedup):
state/lygo_mint_ledger_canonical.json
References
- Core template:
reference/CHAMPION_PROMPT_CORE_TEMPLATE_V1.md
- Publish checklist:
reference/CHAMPION_PACK_PUBLISH_CHECKLIST.md
reference/CHAMPION_PROMPT_CORE_TEMPLATE_V1.mdreference/CHAMPION_PACK_PUBLISH_CHECKLIST.md正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。