Self-configuring ICP skills onboarding in generated projects - #36
Open
marc0olo wants to merge 3 commits into
Open
Self-configuring ICP skills onboarding in generated projects#36marc0olo wants to merge 3 commits into
marc0olo wants to merge 3 commits into
Conversation
The generated AGENTS.md now walks the user through choosing how the project uses ICP skills (autosync / pinned / registry) and then rewrites itself into a terse, mode-specific block. Adds AGENT_SKILLS.md documenting the modes, update policies, fallbacks, commit-vs-ignore, and how to switch. Gitignores the skill caches (.claude/skills/, .agents/skills/) across all subtemplates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Renames the third skills mode from 'registry' to 'on-demand' (all three modes use the registry, so the behavioural name is clearer). The on-demand configured block now references the fetch mechanics (index + SKILL.md) directly instead of 'follow llms.txt', so an already-configured project never re-enters onboarding once llms.txt itself becomes a choice-flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 23, 2026
Open
- pinned update policy is now 'manual' or 'ask-first' (drop silent 'auto', which a prompt cannot enforce and which failed silently in testing). 'ask-first' offers 'npx skills update' before the first task and never blocks — it skips in non-interactive/CI sessions and keeps the locked versions. - on-demand now fetches the index once per session (remembering names/URLs) rather than re-fetching per task. - Stop pre-shipping skill-cache .gitignore entries; committing vs ignoring .claude/skills is a maintainer decision, now documented in AGENT_SKILLS.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Member
Author
marc0olo
marked this pull request as ready for review
July 24, 2026 14:41
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What
Generated projects ship a self-configuring
AGENTS.md. On first use an agent walks the user through choosing how the project consumes ICP skills — autosync (Claude Code session hook), pinned (npx skills, version-locked), or on-demand (fetch each session) — then rewrites its own skills block into a terse, mode-specific form. Later sessions just follow it._shared/write-agent-files.rhai— emits the onboardingAGENTS.md(+CLAUDE.md).AGENT_SKILLS.md— documents the modes, fallbacks, the marker mechanism, how to switch, and the version-control trade-off.Design principles
on-demandis the default and the non-interactive fallback; no "avoid skills" option (delete the block manually if desired).ask-firstoffersnpx skills updatebefore the first task and never blocks (skips in CI / keeps locked versions).SKILL.mdper task..gitignoreis left to the maintainer — the templates do not pre-ignore.claude/skills; committing vs ignoring is documented as your choice.Validation
Simulated agent sessions (Claude Code / Cursor / Aider personas): onboarding for every mode, follow-up sessions, non-interactive & "just start" fallback, missing-
jqcold start, no-clobber of unrelated files, and pinned/ask-first non-blocking in CI. GeneratedAGENTS.mdverified byte-identical throughcargo generate.Companion PRs (coordinated; still in draft)