fix-ci
Fix CI failures. Scope-locked to branch changes only. No toolchain upgrades. No unrelated clippy.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fix CI failures. Scope-locked to branch changes only. No toolchain upgrades. No unrelated clippy.
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 | fix-ci |
| description | Fix CI failures. Scope-locked to branch changes only. No toolchain upgrades. No unrelated clippy. |
| argument-hint | [PR number or branch] |
| user-invocable | true |
| allowed-tools | Bash, Read, Edit, Grep, Glob |
| truth_contract | {"canonical_sources":["ops/state/truth/policy.json","ops/state/config/repo-map.json"],"live_load_required":["git diff --name-only $(git merge-base HEAD origin/main)..HEAD","gh pr checks <N> --json name,state,conclusion"],"examples_only":[],"never_hardcode":["toolchain version (read from rust-toolchain.toml)","branch name (read from git branch --show-current)"]} |
Fix CI failures for the current branch. Scope-locked. Output: cause, fix, proof.
REPO_ROOT="$(git rev-parse --show-toplevel)"
bash "${REPO_ROOT}/ops/scripts/drift-check.sh" 2>/dev/null | tail -3 || true
If drift-check reports FAIL → note it. Agent tooling drift may itself be causing CI failures (e.g., stale required-check set in a skill). Fix drift before fixing CI if related.
git diff --name-only $(git merge-base HEAD origin/main)..HEADrust-toolchain.toml.cargo clean + retry once. If it fails again, report and stop.Get context:
git branch --show-current$ARGUMENTS has a PR number: gh pr checks <N> --json name,state,conclusion and gh run view <RUN_ID> --log-failedIdentify cause: Read the failed log. Categorize:
fmt → run cargo fmt on changed filesclippy → fix only lints in changed filestest → read failing test, fix in changed codeSIGSEGV → cargo clean && cargo checkcompile error → fix in changed filesFix: Apply minimal fix. Stay in scope.
Prove: Run the gate that failed:
cargo fmt --checkcargo clippy --workspace --all-targets -- -D warningscargo test (or the specific failing test)Three sections, each 1-3 lines:
Cause: <what failed and why>
Fix: <what was changed>
Proof: <gate command output — pass/fail>