Prepare a brand-new npm and JSR package for its first release from GitHub Actions. The bundled script publishes an npm 0.0.0 placeholder, adds the npm trusted publisher, and creates and links the JSR package. Use before a new package's first release, or when its release fails because the npm package doesn't exist, has no trusted publisher, or the JSR package isn't linked.
Ships in timmo. 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.
npm trusted publishing (OIDC) only works for a package that already exists, and JSR's OIDC publishing needs the package created and linked to its GitHub repository first. Neither can happen from a release workflow, so the first publish needs a one-off human run of first-publish.sh.
The script publishes a 0.0.0 placeholder instead of the real version. The shared npm publish workflow doesn't skip versions that already exist, so publishing the real version by hand makes the release's npm job fail as a duplicate.
Check the package is releasable. Before any human step:
release: published, and grants id-token: write to the publish jobs. Note its filename and any environment: on the publish jobs, since the trusted publisher must match both.0.1.0, no v prefix), and package.json and jsr.json versions match.dependencies and devDependencies, not peerDependencies. List every peer in devDependencies as well, or JSR's server rejects the publish even though jsr publish --dry-run passes locally.workspace:.npm pack --dry-run and jsr publish --dry-run pass, and the changes are pushed.Prepare the script in tmp. Copy first-publish.sh to the task's scratch directory (such as /tmp/opencode/<owner>-<repo>-<branch>/), keep it executable, and run it yourself with --dry-run and the real arguments. Package directories go in dependency order. Fix anything the dry run reports.
Hand it to the user. Give the exact command without --dry-run, to run in their own terminal. Don't run it for them: npm login, npm's browser 2FA, and creating and linking on jsr.io are human-only. The script:
0.0.0 without pack scripts or provenance (provenance only works in CI), points sibling dependencies at 0.0.0, and publishes it;npm trust github <package> --repo <owner/name> --file <workflow> --allow-publish attached to the terminal, so npm can ask for 2FA, and offers a retry if it fails while the new package reaches the registry;Verify without waiting on the registries. Both registries are likely to look missing for a while, and that's safe to continue past:
npm view and signed-out requests for 10 minutes or more after a first publish, even though the website already shows the package and npm trust works straight away.Take the script's output as evidence: + <package>@0.0.0, "Trust configuration created successfully" (npm trust list needs an npm login), and the JSR check confirming the link. Confirm the link with curl https://api.jsr.io/scopes/<scope>/packages/<name>, where githubRepository should be set. Move on to the next step and check npm view <package> versions in a background shell instead of blocking on it.
First release, only when asked. Publish the GitHub release for the real version and watch its run. Create it with the gh Code Mode tools' release create or gh release create <version> --title <version> --notes-file <file>. The new versions can take minutes to appear on npm and JSR; a green run with "+ @" in the npm job is enough to continue.
npm publish or npm trust in the script.npm trust revoke --id <id> <package>, then reruns the script.jsr publish locally from a clean checkout of that version.0.0.0. The first real release becomes latest because it's higher.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/timmo:npm-jsr-first-publishfrom timmo
npx claudepluginhub timmo001/skills --plugin timmo58 skills in this plugin
/agentic-workflowsDesign, create, update, debug, audit, or upgrade GitHub Agentic Workflows with the `gh aw` extension. Use when work involves workflow Markdown, compiled `.lock.yml` files, agent engines, MCP tools, safe outputs, work queues, scheduled memory consolidation, local SDLC issue bootstrap, or `gh aw` commands./asking-questionsDecide when to ask the user a question and how to present it. Use before any clarifying question, choice, or confirmation, whether through the Plannotator Inbox or in chat, and to decide whether to hold questions until findings are presented or divert to an interview; do not use to run an interview./broRe-pitch the immediately preceding response with enough context to follow, using plain, concise, unambiguous language. Use ONLY when the user explicitly invokes /bro or says the previous response did not land./browser-accessDecide whether browser access is needed and keep authorised checks narrow. Use for frontend or UI diagnosis, before proposing or using browse, OpenCode's built-in browser or other browser automation, and when the user explicitly requests browser interaction./change-review-handoffHand a finished, verified code change to the user as a Plannotator review with a next-steps question. Use before reporting an implementation, fix, refactor or cleanup done./changeset-scopeKeep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.