devnet
Manage the ICN devnet (3-node Docker Compose cluster). Operations - up, down, logs, status, test, restart.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage the ICN devnet (3-node Docker Compose cluster). Operations - up, down, logs, status, test, restart.
用 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 | devnet |
| description | Manage the ICN devnet (3-node Docker Compose cluster). Operations - up, down, logs, status, test, restart. |
| argument-hint | <up|down|logs|status|test|restart> |
| user-invocable | true |
| allowed-tools | Bash, Read |
| truth_contract | {"canonical_sources":["ops/state/config/repo-map.json"],"live_load_required":["git rev-parse --show-toplevel"],"examples_only":[]} |
Manage the ICN devnet environment.
REPO_ROOT="$(git rev-parse --show-toplevel)"
Use ${REPO_ROOT} for all paths below.
Based on $ARGUMENTS:
up (default if no argument)cd "${REPO_ROOT}/deploy/devnet" && make up
Wait for nodes to be healthy, then run make status.
downcd "${REPO_ROOT}/deploy/devnet" && make down
logscd "${REPO_ROOT}/deploy/devnet" && make logs
If following specific node: docker compose logs -f node-a
statuscd "${REPO_ROOT}/deploy/devnet" && make status
Show container status and health.
testcd "${REPO_ROOT}/icn" && cargo test -p icn-core --test devnet_smoke -- --nocapture
Run devnet smoke tests (reachability, unique DIDs, gossip connectivity).
restartcd "${REPO_ROOT}/deploy/devnet" && make down && make up
| Node | REST Port | P2P Port | Metrics Port |
|---|---|---|---|
| node-a | 8080 | 9000 | 9090 |
| node-b | 8081 | 9001 | 9091 |
| node-c | 8082 | 9002 | 9092 |
If nodes fail to start:
docker psss -tlnp | grep -E '808[0-2]|900[0-2]|909[0-2]'cd "${REPO_ROOT}/deploy/devnet" && docker compose build --no-cachedocker compose logs --tail=50