sync-and-build
Build and verify the ICN website. The website reads docs directly from icn/docs/ — no sync step needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and verify the ICN website. The website reads docs directly from icn/docs/ — no sync step needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ICN development companion for the InterCooperative Network Rust monorepo. Use when working on ICN code, docs, deployment, or protocol design. Provides crate-aware routing to specialist agents (icn-architect, icn-economist, icn-ops), enforces project conventions, and understands the current sprint state, cluster topology, and demo flow status. Triggers on: any ICN crate names, "cooperative contract", "mutual credit", "governance", "gossip", "K3s", "icn-dev", "ops/mcp", "Sprint", "demo flow", "CCL", "federation", "DID", "ledger", "trust graph", "icnd", "icnctl".
Full sprint-batch or stacked-PR integration pipeline. Owns merge order, rebases, local gates, and main sync.
Full sprint-batch or stacked-PR integration pipeline. Owns merge order, rebases, local gates, and main sync.
Show full ICN development status dashboard — active sessions, sprint tasks, worktree freshness, CI state, and cluster health
ICN session preflight. This skill should be used when the user explicitly invokes "/icn-agent-pack:preflight", or asks to "run preflight", "orient me on ICN", or "check the ICN session environment". Loads canonical docs and the latest handoff, then verifies branch, gh auth, ports, toolchain, and a light cargo check. Read-only; reports, never fixes.
ICN repo navigator / knowledge graph. This skill should be used when the user explicitly invokes "/icn-agent-pack:navigator", or asks to "map the repo", "build/refresh the knowledge graph", "trace this concept to its source", or "show the conceptual map / impact map". Begins the living repository knowledge-graph and conceptual-map workflow, grounded in the icn-ops MCP tools and (future) generated graph artifacts.
| name | sync-and-build |
| description | Build and verify the ICN website. The website reads docs directly from icn/docs/ — no sync step needed. |
| disable-model-invocation | true |
| truth_contract | {"canonical_sources":["ops/state/config/repo-map.json"],"live_load_required":["git diff --name-only HEAD~1 -- docs/","cd ${REPO_ROOT}/website && npm run build 2>&1 | tail -5"],"examples_only":[],"never_hardcode":["workspace paths (use git rev-parse --show-toplevel)","sync scripts (there are none — website reads docs/ via path.resolve directly)"]} |
Run the ICN website build pipeline. Execute each step and report results.
Architecture note:
icn/website/reads../docs/directly viapath.resolveat Astro build time. There is no sync script and no content to copy. Edits todocs/are live on the next build.
REPO_ROOT="$(git rev-parse --show-toplevel)"
git -C "${REPO_ROOT}" log --oneline -5 -- docs/
Report: last 5 commits that touched docs/ (or "no recent doc changes" if empty).
cd "${REPO_ROOT}/website" && npm ci 2>&1 | tail -5
Skip if node_modules/ already exists and no package.json changes.
cd "${REPO_ROOT}/website" && npm run build 2>&1
Report:
If build fails, stop here and report the error. Do not proceed to step 4.
grep -r 'href="/' "${REPO_ROOT}/website/src" --include="*.astro" -l 2>/dev/null | head -10
Report: list of pages with absolute hrefs (informational only, not blocking).
Report as:
Website build complete
Recent doc changes: N commits
Build: ✅ / ❌
Pages with absolute hrefs: N (informational)