Loading...
Loading...
One-time installer that makes a Claude Code project keep its Internet Computer skills up to date automatically. Sets up a SessionStart hook plus a sync script so .claude/skills/ always mirrors the latest skills published at skills.internetcomputer.org. Use when a user wants to install, bootstrap, or enable "always-latest" Internet Computer / IC / ICP / Motoko skills in a project, or pastes the link to this skill. This is a one-time setup action, not ongoing IC knowledge — after it runs, the installed hook keeps skills current on every session. Do NOT use for IC coding questions themselves — this only configures auto-updating skills.
npx skill4agent add dfinity/icskills autosync-ic-skills.claude/skills/SessionStart.claude/sync-ic-skills.sh.claude/skills/SessionStart.claude/settings.jsonhashhash"I'm adding ahook that runsSessionStart. Claude Code will ask you to approve/trust it before it runs automatically. After that, your IC skills stay current on every session.".claude/sync-ic-skills.sh
curljqcurljqcommand -v curl >/dev/null 2>&1 && echo "curl: ok" || echo "curl: MISSING"
command -v jq >/dev/null 2>&1 && echo "jq: ok" || echo "jq: MISSING"jqbrew install jqsudo apt-get update && sudo apt-get install -y jqsudo dnf install -y jqapk add jqsudo pacman -S --noconfirm jqwinget install jqlang.jqjqjq.claudemkdir -p .claude
curl -fsSL https://skills.internetcomputer.org/.well-known/skills/autosync-ic-skills/scripts/sync-ic-skills.sh \
-o .claude/sync-ic-skills.shhttps://skills.internetcomputer.org/.well-known/skills/index.jsonhash.claude/skills/.ic-managed.json{ "<skill>": "<hash>" }systemMessageadded / updated / removedjqhashSessionStart.claude/settings.json.claude/settings.jsonSessionStartbash .claude/sync-ic-skills.shhooks.SessionStart{
"hooks": {
"SessionStart": [
{
"hooks": [
{ "type": "command", "command": "bash .claude/sync-ic-skills.sh" }
]
}
]
}
}bash .claude/sync-ic-skills.sh.claude/skills/writing-motokostatic-siteuser-sign-inSKILL.md.claude/skills/.ic-managed.jsonSessionStart.ic-managed.jsonhashindex.jsonbash .claude/sync-ic-skills.sh/loop