autosync-ic-skills

Installs a SessionStart hook that mirrors the latest Internet Computer skills into .claude/skills.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/phukrit7171/Relationship-Smart-Contract-ICP --skill autosync-ic-skills-phukrit7171
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autosync-ic-skills
Source: https://github.com/phukrit7171/Relationship-Smart-Contract-ICP/tree/main/.agents/skills/autosync-ic-skills
Command: npx skills add https://github.com/phukrit7171/Relationship-Smart-Contract-ICP --skill autosync-ic-skills-phukrit7171

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, and includes scripts (resource) components.

What problem does it solve? Internet Computer skills published at skills.internetcomputer.org change over time, and manually re-downloading them into every Claude Code project is tedious and easy to forget. This Skill performs a one-time setup so that every new session automatically keeps the project's IC skills current. ## Core Features & Use Cases - Automatic SessionStart sync: Registers a hook in .claude/settings.json that runs a sync script at the start of every session. - Differential hash-based mirroring: Downloads only skills whose published hash changed, prunes removed skills, and stays silent when nothing changed. - Graceful degradation: Exits cleanly when the network is down or jq is missing, keeping cached skills intact. - Use Case: A developer building an ICP canister project installs this once, and from then on their Motoko, asset-canister, and Internet Identity skills refresh automatically each session without any manual steps. ## Quick Start Ask Claude to set up automatic syncing of the latest Internet Computer skills into this project using the autosync-ic-skills installer.

Frequently Asked Questions about autosync-ic-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep Internet Computer skills up to date in Claude Code?

Run the autosync-ic-skills installer once. It downloads a sync script into .claude/, registers a SessionStart hook in .claude/settings.json, and runs an initial sync so the latest IC skills are present immediately and refresh every session.

How does the IC skills sync script avoid re-downloading everything?

The script fetches the discovery index once and compares each skill's published hash against a stored manifest in .claude/skills/.ic-managed.json. Only skills whose hash changed, are new, or lack a hash are re-downloaded; unchanged skills are skipped silently.

Does the sync script work without jq installed?

The script requires jq to parse the skill index but degrades gracefully without it. If jq is missing, it prints a warning and exits cleanly, keeping any cached skills, so the session is never broken.

What happens to the IC skills sync when the network is offline?

The script is offline-safe. If it cannot reach skills.internetcomputer.org, it keeps the previously cached skills in .claude/skills and exits with status 0, so the SessionStart hook never fails the session.

Will the sync script delete my own custom skills?

No. The script only prunes skills recorded in its own manifest, .claude/skills/.ic-managed.json. Skills you created or installed manually are never tracked there and are never removed.

Is it safe to re-run the autosync-ic-skills installer?

Yes, the setup is idempotent. The SessionStart hook is only added if an equivalent command is not already present in .claude/settings.json, and re-running the sync script downloads nothing when hashes are unchanged.