01 / Architecture as narrative
Keep fallback credentials inside GitHub CLI
The update algorithm starts anonymously, then checks explicit tokens, and finally delegates to GitHub CLI. The file states that the CLI credential stays inside that tool rather than being exported into the environment.
Source excerpt starting at line 84.843. For each skill, call `fetchSkillFolderHash(source, skillPath, token)`. Tree requests start anonymously, then use an explicit `GITHUB_TOKEN`/`GH_TOKEN`, then `gh api` without exporting the GitHub CLI credential.
02 / Architecture as narrative
Explain the exact unit used to detect an update
Updates compare the latest skill folder tree SHA against the stored hash. That gives agents a precise model of what changed, rather than treating a repository commit as equivalent to a skill update.
Source excerpt starting at line 86.865. Compare latest folder tree SHA with lock file `skillFolderHash`; mismatch means update available
03
Give the reason for bypassing a package launcher
Reinstallation invokes the current CLI entry point directly. The guide calls out nested npm exec and npx behavior as the problem that this choice avoids.
Source excerpt starting at line 87.876. `skills update` reinstalls changed skills by invoking the current CLI entrypoint directly (`node <repo>/bin/cli.mjs add <source-tree-url> -g -y`) to avoid nested npm exec/npx behavior
04 / Generated file guards
Generate downstream metadata after adding an agent
The new-agent checklist starts with one source definition, then runs validation and synchronization. README content and package keywords are updated by that workflow rather than as independent edits.
Source excerpt starting at line 169.1693. Run `pnpm run -C scripts sync-agents.ts` to update README.md and package keywords