mach6-publish
БесплатноБез исполняемых скриптовНе проверенPre-merge checks, version bump, merge PR, git tag, GitHub release. Version bump happens BEFORE merge (on the feature branch) because master requires PRs…
от aebrer★ 34 звезды на GitHubОб этом скилле
mach6-publish — Version Bump, Merge, Tag, and Release
User input: $ARGUMENTS
Global Rules
- GitHub as shared memory — All context lives on the PR.
- No
#Nin comment bodies — Use "finding 3", "item 3" etc. instead. - Safe git — Never use
git add -Aorgit add .. Stage files by name. Never stage secrets. - Task tracking — Use the
tasks_updatetool to show progress. - Non-interactive
gh— SetGH_PAGER=catandGH_EDITOR=catbefore allghcommands to prevent interactive prompts from hanging the agent. Use--body-fileinstead of inline--bodyfor allgh pr comment,gh pr create, andgh issue createcalls to avoid shell interpretation of backticks. Write each body to a unique per-invocation temp file viamktemp(e.g.GH_BODY="$(mktemp /tmp/gh-comment.$$.XXXXXXXX)") — never a fixed path like/tmp/gh-comment.md, which concurrent mach6 sessions on the same machine would clobber, cross-posting one session's body to another's PR/issue. - Authorized pushes — The agent performs the version-bump push, documentation push, and tag push directly without asking for per-step confirmation. The remaining user checkpoints are bump level when unclear, whether to create a GitHub release, and release-notes approval.
Step 1: Set up task tracking
tasks_update([
{ id: "checks", title: "Pre-merge checks", status: "in_progress" },
{ id: "version", title: "Version bump (on feature branch)", status: "pending" },
{ id: "docs", title: "Update documentation", status: "pending" },
{ id: "merge", title: "Merge PR", status: "pending" },
{ id: "release", title: "Tag and release", status: "pending" }
])
Step 2: Pre-merge checks
gh pr checkout <pr-number>
git pull
gh pr view <pr-number> --json mergeable,mergeStateStatus,statusCheckRollup,reviewDecision,comments,body
Read ALL PR comments to understand the full history — plans, reviews, assessments, progress updates, and discussion.
Verify:
- No merge conflicts
- All merge blockers in the latest assessment are addressed
If there are blocking issues, report them and suggest fixes:
- Failed CI:
/skill:mach6-implement <pr-number> ci - Merge conflicts: Suggest resolving manually or rebasing
- Unaddressed findings:
/skill:mach6-implement <pr-number>
Pre-merge checklist
Check for contributing guidelines first:
# Read first found: CONTRIBUTING.md, DEVELOPMENT.md, .github/CONTRIBUTING.md, AGENTS.md
Then check if these need attention:
- Documentation updated (if behavior changed) — check README, docs/, docstrings, help text
- Changelog updated (if project maintains one — check CHANGELOG.md, CHANGES.md)
- Tests passing locally
Present the checklist to the user. If items need attention, address them before proceeding.
Update task: checks → completed, version → in_progress.
Step 3: Version bump (on the feature branch — BEFORE merge)
This step is mandatory for projects with versioning. The version bump MUST happen on the feature branch and be pushed as part of the PR, because the default branch requires PRs for all changes — you cannot push commits directly to it.
Detect versioning:
# Check for version files: package.json, Cargo.toml, pyproject.toml, version.txt, etc.Determine the current version and what the new version should be. If the bump level isn't obvious from the PR context, ask the user:
- Patch: Bug fixes, minor improvements
- Minor: New features, non-breaking changes
- Major: Breaking changes
Apply the version bump. Check AGENTS.md / CONTRIBUTING.md for project-specific version bump procedures (e.g., sync scripts, build steps that embed the version).
Commit and push on the feature branch:
git add <version-files> git commit -m "chore: bump version to <new-version>" git push
The agent performs this version-bump push directly without asking for confirmation.
If the project doesn't use versioning, skip this step.
Update task: version → completed, docs → in_progress.
Step 4: Update documentation
Proactively review and update ALL documentation affected by the PR's changes. This is not limited to mach6 docs — check everything in the repo.
Identify changed features by reading the PR diff:
gh pr diff <pr-number>Scan all documentation for references to changed features:
- README.md files across all packages
- docs/ directory (all .md files)
- AGENTS.md, CLAUDE.md, CONTRIBUTING.md, .dreb/CONTEXT.md
- Example files and their READMEs
- Help text and CLI flag documentation
- CHANGELOG.md or CHANGES.md
For each doc, verify:
- CLI flags, settings, and commands match current code
- Code snippets and examples are accurate
- Cross-references point to real files and valid anchors
- No stale descriptions of removed or changed features
- Environment variables listed match curr
Установить mach6-publish в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mach6-publish?
Pre-merge checks, version bump, merge PR, git tag, GitHub release. Version bump happens BEFORE merge (on the feature branch) because master requires PRs. Usage: mach6-publish 42
Как установить скилл mach6-publish?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mach6-publish запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic