sync-docs
Check for documentation drift — crate inventory vs workspace, GOLDEN_PROMPT freshness, broken doc links.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Check for documentation drift — crate inventory vs workspace, GOLDEN_PROMPT freshness, broken doc links.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
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.
SOC 職業分類に基づく
| name | sync-docs |
| description | Check for documentation drift — crate inventory vs workspace, GOLDEN_PROMPT freshness, broken doc links. |
| argument-hint | [--fix-index] |
| user-invocable | true |
| allowed-tools | Bash, Read, Grep, Glob |
| truth_contract | {"canonical_sources":["ops/state/config/repo-map.json"],"live_load_required":["cargo metadata --no-deps --format-version 1","git log --oneline -1 docs/GOLDEN_PROMPT.md 2>/dev/null || echo 'no golden prompt'"],"examples_only":[],"never_hardcode":["crate list (always derive from cargo metadata)","doc freshness dates"]} |
Audit documentation drift. Reports problems; does not auto-fix (unless --fix-index).
Read workspace members (parse only the members = [...] array to avoid picking up dependency versions and paths):
grep -A999 '^\[workspace\]' icn/Cargo.toml | awk '/members *= *\[/,/\]/' | grep '"' | grep -v '#' | sed 's/.*"\(.*\)".*/\1/'
Compare against crate names mentioned in:
docs/planning/icn-crate-reference.mddocs/ARCHITECTURE.md (search for icn- patterns)Report:
# Last modification date
git log -1 --format="%ci" -- docs/GOLDEN_PROMPT.md
# Last git tag date
git log -1 --format="%ci" $(git describe --tags --abbrev=0 2>/dev/null) 2>/dev/null || echo "no tags"
# Days since last update
python3 -c "
from datetime import datetime, timezone
import subprocess
result = subprocess.run(['git','log','-1','--format=%ct','--','docs/GOLDEN_PROMPT.md'], capture_output=True, text=True)
if result.stdout.strip():
ts = int(result.stdout.strip())
days = (datetime.now(timezone.utc).timestamp() - ts) / 86400
print(f'GOLDEN_PROMPT.md last updated {days:.0f} days ago')
else:
print('GOLDEN_PROMPT.md: unknown modification date')
"
Warn if > 14 days since last update.
Check if docs/dev-journal/KNOWLEDGE_INDEX.yaml exists:
last_updated field vs today, warn if > 7 days staleSearch for markdown links in docs/ that reference files starting with ../ or ./:
grep -rn '\]\(\.\.' docs/ --include='*.md' | head -30
For a sample of 10 such links, verify the target file exists. Report missing targets.
Count .md files in docs/:
find docs/ -name '*.md' | wc -l
Count entries in docs/INDEX.md:
grep -c '\.md' docs/INDEX.md 2>/dev/null || echo "INDEX.md missing"
Report gap (files not indexed).
=== Docs Sync Report ===
Crate drift:
In workspace, not documented: <list or "none">
Documented, not in workspace: <list or "none">
GOLDEN_PROMPT.md: <N> days old <WARN if > 14>
KNOWLEDGE_INDEX.yaml: <exists/missing> <staleness>
Broken links: <N> checked, <N> broken
- <file>:<line> -> <target> (missing)
INDEX.md: <N> .md files in docs/, <N> in INDEX.md, <gap> unindexed
If $ARGUMENTS includes --fix-index:
docs/INDEX.md under an ## Unindexed section--fix-index.