소스 정보
- 저장소
- ccwq/infocard-pub
- 최근 소스 활동
- 2026년 8월 20일 13:40
- 감지된 SKILL.md 언어
- 다국어 혼합
- 스타
- 1
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ccwq/infocard-pub --skill infocard-build-and-deploy명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? 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-build-and-deploy |
| description | build 超时时直接 push 源码,Actions 自动构建;index.html 锚点恢复用 febcfee。 |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["infocard","build","deploy","github-actions"],"related_skills":["infocard-publish-sop"]}} |
触发条件:npm run build 超时(>2 分钟)、报错 missing #app anchor for home-index-data injection,或本地构建阻碍发布进度。
Local build can timeout in two execution contexts:
terminal: npm run build or node scripts/build-site.js times out (>120s) — common when copyStaticTreeToDist() copies 799+ filesexecute_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_codeCorrect path (always):
# Stage → commit → push (no local build needed)
REPO_ROOT="$(git rev-parse --show-toplevel)" || exit 1
cd "$REPO_ROOT"
git add docs/<slug>.html docs/<slug>.html.meta.yaml _index.yaml index.html
git commit -m "feat: add <slug> infocard (YYYY-MM-DD)"
git push origin main
# Wait for GitHub Actions + Pages deploy (~45s)
sleep 45
# Verify HTTP 200
curl -sI --max-time 15 "https://ccwq.github.io/infocard-pub/docs/<slug>.html" | head -1
GitHub Actions has its own build pipeline — the copyStaticTreeToDist() work is done by Pages automatically. The local build step is entirely skippable when pushing source.
现象:npm run build 超时返回 exit 124,但实际构建产物已生成。
判断方法:检查 git status --short docs/<slug>.html — 如果文件显示 M(modified staged),则构建实际成功,直接 git add + commit + push 即可,无需重新 build。
现象:git commit 报错 Unable to create '/path/to/.git/index.lock': File exists,来自另一个正在运行 git push 的后台进程。
解法:
# 1. 等待后台 push 完成
ps aux | grep -E "git (push|send-pack|pack-objects)" | grep -v grep
# 重复直到返回空(通常 60-120s)
# 2. 清除锁
rm -f "$REPO_ROOT/.git/index.lock"
# 3. 重试 commit + push
git add docs/<slug>.html docs/<slug>.html.meta.yaml _index.yaml
git commit -m "feat: ..."
git push
报错:index.html missing #app anchor for home-index-data injection
原因:源码 index.html 锚点被覆盖,从 <div id="app" class="app-shell"></div> 变成 <main id="app">
恢复:
cd /path/to/infocard-pub
git checkout febcfee -- index.html
grep 'app-shell' index.html # 验证:应返回 <div id="app" class="app-shell"></div>
诊断:
# 检查当前 HEAD
git show HEAD:index.html | wc -l
# ~313 行 → 被覆盖;~25000 行 → 正常
git show HEAD:index.html | grep -c 'home-index-data'
# 0 → 被覆盖;1 → 正常
锚点来源:febcfee(带 home-index-data 的最新完整版)。
curl -s https://ccwq.github.io/infocard-pub/docs/<slug>.html | grep -c 'href='
# 预期:从 1 增长到预期数量