用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ccwq/infocard-pub --skill infocard-theme-validation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-theme-validation |
| description | Use when changing infocard theme CSS or pushing docs. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["infocard","theme","validation","verification"],"related_skills":["infocard-crayon-style","web-visual-acceptance","pkwork"]}} |
Use when modifying an infocard-*-style theme HTML/CSS or pushing theme-driven docs updates to infocard-pub. Loads after the active theme skill (infocard-crayon-style etc.) to enforce the user-mandated verification chain. Do not skip a step; do not treat any subset as "complete".
theme/crayon.html) and one or more docs/<slug>.html targetshttps://<user>.github.io/<repo>/docs/<slug>.html)theme/. Docs HTMLs are out of scope unless the user explicitly approves the theme-to-docs regression sweep.card-num / card-stripe / card-body getBoundingClientRect at both viewports. Required tolerances:
card-num.right - card-stripe.left ≈ 4px, card-num is .skill-card direct childscore + critical/major/minor list. Failing to produce this means the change is NOT done.Image.open(screenshot).getpixel((0,0)) etc. must equal the theme background RGB.card-num and card-stripe are direct children of .skill-card. Inline overrides (left:72px, font-size:10.5px, padding-bottom:18px, min-height:0) are forbidden except for the special deprecation card where left:96px replaces left:72px.html,body{margin:0;padding:0} and *,*::before,*::after{box-sizing:border-box} must be present so external pages do not reintroduce white margins.sleep 25 then curl -fsS for each affected slug; must be 200; key CSS substrings (grid-template-columns:100px, left:96px, padding:0 32px, mobile 72px / 68px) must be findable in the served HTML.npm run verify and npm run check-leak pass.The user treats a change as complete only when all nine checks are green. Reporting "PASS" with only 1–8 satisfied and visual review pending is treated as a defect. After any user-visible theme change, the docs regression sweep must be planned with pkwork (3 roles, ≤4 rounds, theme demo unchanged unless explicitly authorized).
| Symptom | Cause | Fix |
|---|---|---|
| White border at top/left/right | html, body default margin or fixed-width .poster-shell | Force html,body{margin:0} and width:100% |
| Numbers cluster on the right side | card-num nested inside card-body | Move card-num out as a direct sibling of .skill-card |
| Numbers and vertical line touch | Grid column too narrow / padding-right too small | Use the exact values in the active theme skill's references file |
| Number not vertically centered | align-self: start left over from earlier revisions | Set align-self: center |
| Mobile shows small chip-sized numbers | Earlier font-size:10.5px override still in CSS or inline style | Delete the override; trust the theme's .card-num rule |
| GitHub Pages still shows old version | Cache | Wait 25–60 s after push; re-check with curl |
| Theme looks like a plain long article, not an infocard | Hero / section / card / grid skeleton lost during content rewrite | Rebuild the theme skeleton first, then reflow content into section blocks and cards |
| Bulk rewrite gets trapped by approval or partial overwrite | Replacing a large HTML subtree in one shot | Split into small, reviewable patches; verify file integrity after each step |
| Template edits break structure | Patching paginated/partial reads or matching mid-block CSS | Re-read the full file before large replacements; patch only stable anchors |
infocard-crayon-style → references/poster-visual-principles.md (R6 visual + geometry rules)web-visual-acceptance (qa) — broader acceptance framework; this skill is the theme-specific enforcementpkwork (software-development) — required for any multi-doc theme regression sweepreferences/20260728-theme-rebuild-pitfalls.md — this session's darkblue skeleton-loss and safe patching notes