publish-branch
Publish the main branch — verify the build, confirm main is synced with origin/main, bump the patch version in both plugin.json files, commit, and push.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- publish-branch
- description
- Publish the main branch — verify the build, confirm main is synced with origin/main, bump the patch version in both plugin.json files, commit, and push.
- disable-model-invocation
- true
03 SKILL.md 正文
Publish Branch
Publish the current work by verifying the build, bumping the version, and pushing to origin/main.
Perform these steps in order. If any check fails, stop immediately and report the failure — do not continue to a later step.
1. Verify the build
Run pnpm verify. If it exits non-zero, abort and show the user the failing output. Do not proceed.
2. Confirm the branch is main and synced with origin/main
- Confirm the current branch is
main(git rev-parse --abbrev-ref HEAD). If not, abort. - Run
git fetch origin main. - Confirm local
mainis caught up withorigin/main: the local HEAD must equal or be ahead oforigin/main, with no incoming commits. Compare withgit rev-list --left-right --count origin/main...HEAD.- If the left count (incoming from origin) is greater than 0, the branch is behind — abort and tell the user to pull/rebase first.
- If there are diverged commits on both sides, abort and tell the user to reconcile first.
3. Bump the patch version and commit
The two files to update are:
plugin/.claude-plugin/plugin.jsonplugin/.codex-plugin/plugin.json
Both should hold the same version. Read both, confirm they match, then increment the smallest (patch) component — e.g. 0.0.3 → 0.0.4. If they disagree, stop and ask the user which version to use.
Update both files, then commit them together:
git add plugin/.claude-plugin/plugin.json plugin/.codex-plugin/plugin.json
git commit -m "Bump version to <new-version>"
4. Push
Run git push origin main and report the result to the user.
04 同仓库更多 Skills
sync-skills-openai-yaml
Sync every skill's agents/openai.yaml with its SKILL.md — display name, short description, and implicit-invocation policy.
streamlined-setup-matt-pocock-skills
Configure this repo for the engineering skills using one fixed set of choices: local-markdown issue tracker, default triage labels, single-context domain docs. Overwrites any earlier setup. Run once per repo.
retire-provisional-documents
Retire provisional documentation after making its consumers self-contained and preserving only durable domain language and decision rationale.
coding-agent-sessions
Find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across various agents.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wait-what
Stop. That last message did not land: re-pitch it.