/toycrane-skills:update-project-skillsfrom toycrane-skills
Updates all skills installed in a Git project to latest versions via skills.sh, reconciles Toycrane skills, and materializes companion custom agents for Claude Code and Codex.
Ships in toycrane-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Bring every skill installed in the target project to its latest published
version through the current skills.sh CLI, then reconcile the Toycrane set
from https://github.com/toy-crane/skills and materialize the custom agents
carried by its installed skills for both Claude Code and Codex.
Treat .agents/skills as the canonical project skill copy. The CLI exposes the
same skill files to Claude Code through relative links under .claude/skills.
skills-lock.json records every skill the CLI installed and its source. Treat
entries whose source is toy-crane/skills as Toycrane-managed and every
other entry as third-party. Skills and agents without a lock entry are
project-local; preserve them unless the user explicitly approves adopting a
name.
Every command below runs the current published CLI as <runner> skills@latest.
Take <runner> from the target project's package manager: bunx for bun,
pnpm dlx for pnpm, npx -y otherwise. npm aborts npx with
EBADDEVENGINES before the CLI starts when package.json pins another
package manager through devEngines.
Resolve the target Git repository from the requested path or current directory. Read its instructions and inspect its status before changing it.
Inspect the installed and upstream inventories:
<runner> skills@latest list --json
<runner> skills@latest add toy-crane/skills --list
Read the project's skills-lock.json. The upstream list is the current
published Toycrane set; ignore the source repository's own development-only
dependencies under .agents/skills.
Find the skills the update will move. The CLI (1.8 and later) reinstalls any
locked skill whose canonical copy .agents/skills/<name> is missing, as a
copy there plus a relative link at .claude/skills/<name>, replacing a real
folder that was installed only for Claude Code. Content stays identical.
List every lock entry whose .agents/skills/<name> does not exist and whose
.claude/skills/<name> is a real folder. Before updating, tell the user
which names will move, and if any, carry them into the final report. Such a
skill may have been kept Claude-only on purpose, and after the move Codex
and other universal clients see it too. Never decide that alone. Offer
these choices and recommend the first:
update <name> [<name> ...] -p -y) and leave this one out. Say that it
stays stale until the user chooses. Offer this only for third-party
skills. A Toycrane-managed skill needs its .agents/skills copy for the
companion synchronizer and the final verification, so for those the
choice is the first or the third.--agent claude-code, which is a separate request.Wait for the answer before running the update when any skill will move.
Update every locked skill in place, from every source, in one project-scoped call:
<runner> skills@latest update -p -y
The CLI refreshes each lock entry that records a skillPath, one clone per
source, and reinstalls it for the current client plus the universal
.agents copy; existing .claude/skills links keep resolving because they
are relative. The first run from a CLI that writes lock version 2 also
upgrades skills-lock.json from version 1 and rewrites every
computedHash, since the hash now covers the files installed into
.agents/skills/<name>. Expect that whole-lock diff and report it as a
format change, not as skill changes. Carry three parts of its output into
the final report: the
per-skill results, the entries it cannot update in place because they were
installed before skillPath tracking (with the reinstall hint it prints),
and the skills it reports as deleted upstream. Leave those last two groups
as reported; whether to reinstall or remove them is the user's call.
Classify the published Toycrane list against the lock:
expo group only when a
package.json depends on expo or react-native. Stack detection gates
new installation only; an already managed stack-specific skill keeps being
updated even if the stack is no longer detected.Install the new skills in one explicit call so stack exclusions and unapproved collisions stay excluded, then remove retired names from the whole project:
<runner> skills@latest add toy-crane/skills \
--skill <new-skill-name> [<new-skill-name> ...] \
--agent codex claude-code \
-y
<runner> skills@latest remove <retired-skill-name> [<retired-skill-name> ...] -y
Keep retirement unscoped. An agent-scoped removal can leave the canonical
.agents copy and lock entry behind.
Run the synchronizer from the freshly updated project copy of this skill:
python3 .agents/skills/update-project-skills/scripts/sync_companion_agents.py \
--project <project-root> \
[--retired-skill <retired-skill-name> ...]
Append one --retired-skill for every Toycrane-managed skill removed in the
preceding reconciliation. This lets a project-level agent manifest retire
those skill declarations after skills-lock.json no longer contains them.
The script scans only installed skills proven Toycrane-managed by
skills-lock.json. A skill declares companions in
companion-agents/manifest.json; the script copies its native definitions to
.claude/agents/<name>.md and .codex/agents/<name>.toml, records ownership in
.agents/toycrane-agents-lock.json, and reconciles both shared_skills and
shared_agents when the project already has .agent-sync/manifest.json.
The ownership lock authorizes later refresh and retirement of those exact agent names. Other agent files and manifest entries remain project-owned. If the script reports an unowned collision, show every colliding path and ask for approval for that name. After approval, adopt only the approved names:
python3 .agents/skills/update-project-skills/scripts/sync_companion_agents.py \
--project <project-root> \
--adopt <approved-agent-name>
Repeat --adopt for multiple separately approved names. Never infer approval
from identical contents or an existing manifest declaration. Collision checks
use the name declared inside every native agent definition, not only its
filename. Adoption removes alternate-path native definitions of the approved
identity before writing its canonical Claude Code and Codex pair.
A mod is a Claude Code plugin from the toycrane marketplace other than
toycrane-skills. It hooks tool calls or the interface, so installing one
stays the user's choice. Skip this section when the claude CLI is not on
PATH.
Refresh the marketplace, adding it first when it is missing, then read the published mods and the installed ones:
claude plugin marketplace update toycrane \
|| claude plugin marketplace add toy-crane/skills
claude plugin list --available --json
A mod counts as installed for this project when its <name>@toycrane
entry has user scope, or project or local scope with a
projectPath equal to the project root.
Update each installed mod at the scope its entry records, since older
Claude Code versions default an update to user scope:
claude plugin update <mod-name>@toycrane --scope <entry-scope> -y
List each published mod that is not installed with its marketplace
description, and ask which to install. Install only the names the user
picks, at local scope so the choice stays with this checkout and is not
committed for teammates:
claude plugin install <mod-name>@toycrane --scope local -y
Never uninstall a mod, even one no longer published; report it instead.
Mod changes take effect in a new Claude Code session.
Rerun <runner> skills@latest list --json.
Confirm each current Toycrane skill exists in .agents/skills and in
skills-lock.json with source toy-crane/skills, and that
.claude/skills/<name> is a relative link to ../../.agents/skills/<name>.
Confirm retired Toycrane skills are absent from the lock and both skill paths, third-party lock entries still name their original sources, and project-local skills remain unchanged.
Run the companion check:
python3 .agents/skills/update-project-skills/scripts/sync_companion_agents.py \
--project <project-root> \
--check
When .agent-sync/manifest.json exists, run the repository's agent sync
check after the companion check. Confirm it lists every current managed
Toycrane skill in shared_skills and every companion in shared_agents.
Inspect the complete Git diff. Report, per skill, whether it changed and how
much (git diff --stat is enough), followed by the skills moved into
.agents/skills with the user's choice about each, the lock version and hash
rewrite when it happened, the entries the update skipped and the upstream
deletions it warned about. Then follow the
repository's commit policy.
If the current Claude Code or Codex session does not expose a newly installed custom agent, finish the update and report that a new session is needed before testing agent routing.
--global or -g.skills-lock.json, .agents/toycrane-agents-lock.json when present,
updated skills, and managed agent files together so ownership stays durable.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub toy-crane/skills --plugin toycrane-skills28 skills in this plugin
/add-env-keyGet a key the user must issue or supply, such as an API key, token, or password, into the project's .env file without the value passing through chat or the model's context. Opens the vendor's issuance page, collects the value through the secret-env mod's input pane when the session has it, and otherwise opens the file in the user's editor with the key line ready. Use when work needs such a key that the project does not have yet, or when the user asks to add, set, or put an API key or token into .env./add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./audit-evalsAudit a project's LLM eval regression suite from its committed cell history, report cells whose most recent 10 trials all passed, checks with identical recent histories, cells that flip after graduating, and cells that always fail, then propose demoting the recently always-passing cells to the lower tier and apply only the demotions the user approves. Use when the user asks which eval cells still earn their run, why a regression run costs so much, or to slim, prune, or demote a regression suite./babysit-prWatch one open GitHub pull request through CI and review bots until it is ready to merge or needs a person, fixing confirmed findings and failing checks, answering and resolving review threads, and rerunning infrastructure flakes. Use when a pull request has just been opened or updated and its checks, bot review comments, or merge conflicts need answering, or when asked to babysit, watch, shepherd, or get a PR green or ready. Does not merge; `merge` and `implement` invoke it before merging or handing off./babysit-specsRevise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`./build-prototypeBuild a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces.