From rn-lib-claude
Pre-publish validation and npm publish workflow for a React Native library.
How this command is triggered — by the user, by Claude, or both
Slash command
/rn-lib-claude:publishrn-lib-claude/commands/The summary Claude sees in its command listing — used to decide when to auto-load this command
Run pre-publish checks, then guide through publish:
If pre-publish passes:
1. Run `bunx changeset version` to bump version and update CHANGELOG
2. Run `bun run build` — verify `lib/` output
3. Show user the diff and ask for confirmation before publishing
4. Run `npm publish --access public`
5. Run `git tag v{version} && git push --tags`
6. Remind user to create GitHub release with CHANGELOG section
7. Ask: **"Do you want to submit this library to the React Native Directory (reactnative.directory)?"**
- Yes → run `/rn-lib-claude:directory`
- No → done
If pre-publish fails, list ea...Run pre-publish checks, then guide through publish:
bash "${CLAUDE_PLUGIN_ROOT}/plugins/rn-lib-claude/scripts/pre-publish.sh"
If pre-publish passes:
bunx changeset version to bump version and update CHANGELOGbun run build — verify lib/ outputnpm publish --access publicgit tag v{version} && git push --tags/rn-lib-claude:directoryIf pre-publish fails, list each failure with fix instructions. Do not proceed to publish.
npx claudepluginhub shankulkarni/claude-plugin-marketplace --plugin rn-lib-claude/publishPublish a Decision Brief — generate a PDF and route to wherever you can share it
/publishPublishes a local workflow directory to the cloud hub. Takes a <workflow-dir> path, uploads its bundle, and returns a template URL and team pull command. Also accepts --name, --description, and --dry-run.
/publishYou are helping publish a Claude Code plugin to the Claude Market marketplace.