用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ccwq/infocard-pub --skill infocard-update-vs-new-pattern命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Use before infocard .docs authoring to select a registered theme from content-aware candidates. Owns the only content-to-theme association, capability filtering, bounded reproducible variation, and theme-decision.json.
Use when one URL or a complete user brief should become one published infocard through the .docs promotion workflow.
Light-batch publish 2–3 cards in parallel without worktree.
| name | infocard-update-vs-new-pattern |
| description | Use when deciding whether an infocard needs an update or a new card before .docs authoring. |
| category | infocard |
| version | 2.0.0 |
在创建候选稿前完成只读重复审计:同时检查当前本地 origin/main 与公开索引,并记录证据路径。
| 信号 | 决定 |
|---|---|
| 同一叙事,仅 Stars / 版本 / 小量数据刷新 | 更新既有卡 |
| 同一读者、同一对象、数据刷新 | 更新既有卡 |
| 不同叙事角度、新 major feature/version | 新卡 |
| 来源或受众实质不同 | 新卡 |
| 新增内容超过约 30% | 新卡 |
关键词相似不是重复。相同 canonical repository/source URL、项目身份或既有 slug 才是 exact match;相邻概念只可作为上下文。
只读审计不得 reset、stash、clean、写 docs/、commit 或 push。信息卡不创建、不复用、不进入 Git worktree,也不使用 /tmp/infocard* 或临时 clone。
新卡和更新卡都遵循:
.docs/<run-id>/<slug>/ candidate + facts + promotion-manifest
→ Publisher 精确提升到 docs/ 与 assets/
→ 主 checkout visual gate → build → verify → commit → push
.docs/<run-id>/<old-slug>/ 复制/生成候选 HTML 与 sidecar;保留原 slug、path、首发 date。docs/<old-slug>.html 与同名 sidecar;不得创建新 slug/path。禁止 cp old.html new.html 形成孤儿卡,也禁止直接在 docs/ 上由 Author 打补丁。
.docs/<run-id>/<new-slug>/ 创建候选 HTML、sidecar、facts 和 manifest。docs/<new-slug>.html 和 sidecar。若正式 HTML 中的 git@github.com 被 leak scanner 误判为邮箱,改成 github.com 再重新运行 card-scoped leak check;不得忽略 HIGH 告警。
.docs