[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74J2SCEAMN7MZ5DFVTF1MNG":3,"skill-same:01M74J2SCEAMN7MZ5DFVTF1MNG":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M74J2SCEAMN7MZ5DFVTF1MNG","infocard-build-and-deploy",null,"build 超时时直接 push 源码，Actions 自动构建；index.html 锚点恢复用 febcfee。","ccwq\u002Finfocard-pub","ccwq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3853416?v=4","01M74HXVGA6GKM3KHHE63QGM4N","Dave C","01M74HXVGWDSB69XNYE41TBQ63",2,"MIT","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Finfocard\u002Finfocard-build-and-deploy\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: infocard-build-and-deploy\ndescription: \"build 超时时直接 push 源码，Actions 自动构建；index.html 锚点恢复用 febcfee。\"\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [infocard, build, deploy, github-actions]\n    related_skills: [infocard-publish-sop]\n---\n\n## When to Use\n\n触发条件：`npm run build` 超时（>2 分钟）、报错 `missing #app anchor for home-index-data injection`，或本地构建阻碍发布进度。\n\n### npm run build 超时 → 直接 push 源码\n\n**Local build can timeout in two execution contexts:**\n1. `terminal`: `npm run build` or `node scripts\u002Fbuild-site.js` times out (>120s) — common when `copyStaticTreeToDist()` copies 799+ files\n2. `execute_code`: Python subprocess sandbox has a 120s hard cap and returns `subprocess.TimeoutExpired` — `build-site.js` is a Node.js script, not a shell wrapper, so it runs fine in `terminal` but times out in `execute_code`\n\n**Correct path (always):**\n```bash\n# Stage → commit → push (no local build needed)\nREPO_ROOT=\"$(git rev-parse --show-toplevel)\" || exit 1\ncd \"$REPO_ROOT\"\ngit add docs\u002F\u003Cslug>.html docs\u002F\u003Cslug>.html.meta.yaml _index.yaml index.html\ngit commit -m \"feat: add \u003Cslug> infocard (YYYY-MM-DD)\"\ngit push origin main\n\n# Wait for GitHub Actions + Pages deploy (~45s)\nsleep 45\n\n# Verify HTTP 200\ncurl -sI --max-time 15 \"https:\u002F\u002Fccwq.github.io\u002Finfocard-pub\u002Fdocs\u002F\u003Cslug>.html\" | head -1\n```\n\nGitHub Actions has its own build pipeline — the `copyStaticTreeToDist()` work is done by Pages automatically. The local build step is entirely skippable when pushing source.\n\n### npm run build 超时 exit 124 ≠ 构建失败\n\n**现象**：`npm run build` 超时返回 exit 124，但实际构建产物已生成。\n\n**判断方法**：检查 `git status --short docs\u002F\u003Cslug>.html` — 如果文件显示 `M`（modified staged），则构建实际成功，直接 `git add + commit + push` 即可，无需重新 build。\n\n### Git commit 遭遇并发锁\n\n**现象**：`git commit` 报错 `Unable to create '\u002Fpath\u002Fto\u002F.git\u002Findex.lock': File exists`，来自另一个正在运行 `git push` 的后台进程。\n\n**解法**：\n```bash\n# 1. 等待后台 push 完成\nps aux | grep -E \"git (push|send-pack|pack-objects)\" | grep -v grep\n# 重复直到返回空（通常 60-120s）\n\n# 2. 清除锁\nrm -f \"$REPO_ROOT\u002F.git\u002Findex.lock\"\n\n# 3. 重试 commit + push\ngit add docs\u002F\u003Cslug>.html docs\u002F\u003Cslug>.html.meta.yaml _index.yaml\ngit commit -m \"feat: ...\"\ngit push\n```\n\n### index.html 锚点恢复\n\n**报错**：`index.html missing #app anchor for home-index-data injection`\n\n**原因**：源码 `index.html` 锚点被覆盖，从 `\u003Cdiv id=\"app\" class=\"app-shell\">\u003C\u002Fdiv>` 变成 `\u003Cmain id=\"app\">`\n\n**恢复**：\n```bash\ncd \u002Fpath\u002Fto\u002Finfocard-pub\ngit checkout febcfee -- index.html\ngrep 'app-shell' index.html  # 验证：应返回 \u003Cdiv id=\"app\" class=\"app-shell\">\u003C\u002Fdiv>\n```\n\n**诊断**：\n```bash\n# 检查当前 HEAD\ngit show HEAD:index.html | wc -l\n# ~313 行 → 被覆盖；~25000 行 → 正常\n\ngit show HEAD:index.html | grep -c 'home-index-data'\n# 0 → 被覆盖；1 → 正常\n```\n\n**锚点来源**：`febcfee`（带 home-index-data 的最新完整版）。\n\n### 公网验收\n```bash\ncurl -s https:\u002F\u002Fccwq.github.io\u002Finfocard-pub\u002Fdocs\u002F\u003Cslug>.html | grep -c 'href='\n# 预期：从 1 增长到预期数量\n```\n\n## Deprecated compatibility entry\n\n此旧入口仅作兼容转发，替代入口为 `infocard-publish-pipeline#build`。没有有效质量通过结果和发布授权时不得执行构建或部署副作用。\n","## When to Use\n\n触发条件：`npm run build` 超时（>2 分钟）、报错 `missing #app anchor for home-index-data injection`，或本地构建阻碍发布进度。\n\n### npm run build 超时 → 直接 push 源码\n\n**Local build can timeout in two execution contexts:**\n1. `terminal`: `npm run build` or `node scripts\u002Fbuild-site.js` times out (>120s) — common when `copyStaticTreeToDist()` copies 799+ files\n2. `execute_code`: Python subprocess sandbox has a 120s hard cap and returns `subprocess.TimeoutExpired` — `build-site.js` is a Node.js script, not a shell wrapper, so it runs fine in `terminal` but times out in `execute_code`\n\n**Correct path (always):**\n```bash\n# Stage → commit → push (no local build needed)\nREPO_ROOT=\"$(git rev-parse --show-toplevel)\" || exit 1\ncd \"$REPO_ROOT\"\ngit add docs\u002F\u003Cslug>.html docs\u002F\u003Cslug>.html.meta.yaml _index.yaml index.html\ngit commit -m \"feat: add \u003Cslug> infocard (YYYY-MM-DD)\"\ngit push origin main\n\n# Wait for GitHub Actions + Pages deploy (~45s)\nsleep 45\n\n# Verify HTTP 200\ncurl -sI --max-time 15 \"https:\u002F\u002Fccwq.github.io\u002Finfocard-pub\u002Fdocs\u002F\u003Cslug>.html\" | head -1\n```\n\nGitHub Actions has its own build pipeline — the `copyStaticTreeToDist()` work is done by Pages automatically. The local build step is entirely skippable when pushing source.\n\n### npm run build 超时 exit 124 ≠ 构建失败\n\n**现象**：`npm run build` 超时返回 exit 124，但实际构建产物已生成。\n\n**判断方法**：检查 `git status --short docs\u002F\u003Cslug>.html` — 如果文件显示 `M`（modified staged），则构建实际成功，直接 `git add + commit + push` 即可，无需重新 build。\n\n### Git commit 遭遇并发锁\n\n**现象**：`git commit` 报错 `Unable to create '\u002Fpath\u002Fto\u002F.git\u002Findex.lock': File exists`，来自另一个正在运行 `git push` 的后台进程。\n\n**解法**：\n```bash\n# 1. 等待后台 push 完成\nps aux | grep -E \"git (push|send-pack|pack-objects)\" | grep -v grep\n# 重复直到返回空（通常 60-120s）\n\n# 2. 清除锁\nrm -f \"$REPO_ROOT\u002F.git\u002Findex.lock\"\n\n# 3. 重试 commit + push\ngit add docs\u002F\u003Cslug>.html docs\u002F\u003Cslug>.html.meta.yaml _index.yaml\ngit commit -m \"feat: ...\"\ngit push\n```\n\n### index.html 锚点恢复\n\n**报错**：`index.html missing #app anchor for home-index-data injection`\n\n**原因**：源码 `index.html` 锚点被覆盖，从 `\u003Cdiv id=\"app\" class=\"app-shell\">\u003C\u002Fdiv>` 变成 `\u003Cmain id=\"app\">`\n\n**恢复**：\n```bash\ncd \u002Fpath\u002Fto\u002Finfocard-pub\ngit checkout febcfee -- index.html\ngrep 'app-shell' index.html  # 验证：应返回 \u003Cdiv id=\"app\" class=\"app-shell\">\u003C\u002Fdiv>\n```\n\n**诊断**：\n```bash\n# 检查当前 HEAD\ngit show HEAD:index.html | wc -l\n# ~313 行 → 被覆盖；~25000 行 → 正常\n\ngit show HEAD:index.html | grep -c 'home-index-data'\n# 0 → 被覆盖；1 → 正常\n```\n\n**锚点来源**：`febcfee`（带 home-index-data 的最新完整版）。\n\n### 公网验收\n```bash\ncurl -s https:\u002F\u002Fccwq.github.io\u002Finfocard-pub\u002Fdocs\u002F\u003Cslug>.html | grep -c 'href='\n# 预期：从 1 增长到预期数量\n```\n\n## Deprecated compatibility entry\n\n此旧入口仅作兼容转发，替代入口为 `infocard-publish-pipeline#build`。没有有效质量通过结果和发布授权时不得执行构建或部署副作用。\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"Hermes Agent","1.0.0",{"hermes":27},{"tags":28,"related_skills":33},[29,30,31,32],"infocard","build","deploy","github-actions",[34],"infocard-publish-sop","main","4ea40456a3623e494105429a3ae13c3ff61f17f5",".agents\u002Fskills\u002Finfocard\u002Finfocard-build-and-deploy",1,"https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub","https:\u002F\u002Fccwq.github.io\u002Finfocard-pub\u002F","https:\u002F\u002Fgithub.com\u002Fccwq","丐帮37代iphone","2026-11-12 20:21:30",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add ccwq\u002Finfocard-pub --skill infocard-build-and-deploy",{"tool":50,"command":51},"bunx","bunx skills add ccwq\u002Finfocard-pub --skill infocard-build-and-deploy",{"tool":53,"command":54},"pnpm","pnpm dlx skills add ccwq\u002Finfocard-pub --skill infocard-build-and-deploy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Finfocard\u002Finfocard-build-and-deploy\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fworktree-parent-gone-recovery.md","REFERENCE","参考文档",2689,"https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Finfocard\u002Finfocard-build-and-deploy\u002Freferences\u002Fworktree-parent-gone-recovery.md",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74J5D6V3BJYVJXMMXVJ8H30","authorized-infocard-execution","Use for authorized infocard runs after tool failures.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpublishing\u002Fauthorized-infocard-execution\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74J5A599BH65TWJZDMTF07S","web-capture","Use when a web page needs screenshots or device simulation. Capture desktop, mobile, and tablet screenshots via agent-browser and return auditable image paths.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproductivity\u002Fweb-capture\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74J50DVMHVKYQHC112CYR4K","infocard-x-content-tracing","X content to upstream project\u002Fauthor tracing.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproductivity\u002Finfocard-x-content-tracing\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74J4WVB5QEJ23QKXKHWT6DK","infocard-visual-pass-loop","Screenshot-and-fix loop when 200 passes but theme is broken.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproductivity\u002Finfocard-visual-pass-loop\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M74J4SF3YN9G53QCRXNNE4CV","infocard-topic-selection","Use when selecting or evaluating information-card topics from the user's profile or explicitly supplied themes; judge value and visual expression potential without choosing a concrete infocard theme or publishing.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproductivity\u002Finfocard-topic-selection\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M74J4KRQYFGM4ZJRRGRV90VE","infocard-theme-validation","Use when changing infocard theme CSS or pushing docs.","https:\u002F\u002Fgithub.com\u002Fccwq\u002Finfocard-pub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproductivity\u002Finfocard-theme-validation\u002FSKILL.md",[],[]]