用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ccwq/infocard-pub --skill infocard-green-style命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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.
正在显示 SKILL.md
| name | infocard-green-style |
| description | 绿色信息卡片的外挂风格技能。用于把 infocard 切换为青绿 / 翡翠 / Swiss editorial 风格,统一配色、组件、按钮、强调条、统计卡、标签和移动端表现。 |
| version | 1.0.0 |
| author | Hermes Agent |
| tags | ["infocard","style","green","teal","emerald","swiss","editorial","ui","theming"] |
当用户明确表达以下意图时启用本技能:
区分"重新着色"和"重建":
--red → --green,适用于用户说"换成绿/换颜色"且页面结构本身没有破坏的情况。把现有 infocard 的视觉系统从红黑系切换为 绿色系高密度编辑风,保持内容结构不变,只改变:
这不是“全页面染绿”,而是 Swiss editorial + green accent:
可按项目微调,但尽量遵循以下层级:
bg: #f5f5f0 或 #ffffffcard: #fffffftext: #000000muted: #6b7280 / #888888line: #d9d9d2accent: #0d9488(teal)或 #15803d(emerald)accent-dark: #115e59 或 #166534accent-soft: #dcfce7 / #ccfbf1warning: #f59e0b(仅用于必要警示,避免主导画面).fab-spacer 占位 div,也不要用 <div class="fab-dock"> 包裹按钮;按钮必须直接放在 .card 闭合标签后,用 position:fixed 定位,fixed 元素不会影响文档流,不需要 spacer。position:fixed 的按钮相对于视口定位,不会造成页面空白;任何 .fab-spacer 或 .fab-dock 都是冗余结构,会在页面底部产生大量空白;绝对禁止在按钮前插入占位 div。grep -n "save-btn\|</button>" <file> 确认 id="save-btn"、onclick="saveCard()" 和按钮文本(💾 保存 PNG)均存在。sed 多行块删除会误删按钮,严禁使用 sed -i '/<div class="fab-dock">/,/<\/div>/d' 这类模式。.card 闭合标签后,不要包在任何 wrapper div 里。position:fixed 的保存按钮不需要 .fab-spacer / .fab-dock;这类占位结构会制造底部空白,应避免。当用户要求“绿色信息卡片”时:
当用户说"重新生成"、"重建"、"regenerate"或同时存在多个系统性破坏项(颜色+布局+字号+底部多余区域)时,直接 write_file 从头重写,不要持续 patch:
python3 scripts/rebuild_index.py 重构索引,不要手动编辑 _index.yaml重建检查清单(交付前必须确认):
var(--card) 而非 var(--bg),避免页面底部透出深色背景.page 不应保留底部填充:padding-bottom 必须为 0,除非有明确的 fixed 控件避让需求;如果出现底部黑/暗色空区,优先检查 .page 的 padding/padding-bottom,不要误判成 body 背景或 .card 阴影.card 的 box-shadow 应移除或改为极轻微的 inset/fill,不要用大投射 0 18px 50px rgba(0,0,0,.22) 造成底部边框感meta.yaml 的 date / updated / _modified_date 应以 Asia/Shanghai 墙钟时间生成,重建或重发时要重跑 python3 scripts/rebuild_index.py,确保列表页排序和时间展示正确.page 上保留无意义的 padding-bottom;底部暗色空区经常来自 .page 底部 padding,而不是内容区或 body。在交付绿色信息卡前,至少确认:
本技能是“外挂风格层”,适合与现有 infocard 内容生成技能配合使用:
infocard-green-style 负责切换配色与 UI 元素