From Core Commands
One-shot workflow: commit all changes, create a PR, merge it, close the issue, and rebase on main.
How this skill is triggered — by the user, by Claude, or both
Slash command
/commands-core:cpmThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
One-shot workflow: commit all changes, create a PR, merge it, close the issue, and rebase on main.
One-shot workflow: commit all changes, create a PR, merge it, close the issue, and rebase on main.
/cpm
No arguments needed. Derives the issue number from the current branch name (expects {issue-number}-{description} format).
Execute the following steps sequentially. Do NOT skip steps or proceed if a step fails.
git status to confirm there are changes to commit.git diff --stat to see what changed.-).git log --oneline -5 to check recent commit style.If there are no changes and no unpushed commits, stop and report "Nothing to commit or push."
git add (prefer specific files over git add -A; never stage .env or credential files).{issue-number}: {concise description of changes}git push -u origin HEAD.github/PULL_REQUEST_TEMPLATE.md or pull_request_template.md in the repo root.gh pr create:
{issue-number}: {concise description}Closes #{issue-number} in the bodygh pr merge --squash --delete-branch --adminLocal pre-push verification is the source of truth. Remote Actions stall, run out of budget, and queue — those are not reasons to block a merge. --admin bypasses the BLOCKED state caused by "checks pending" or "no required reviewer present" when you are the repo admin. It does NOT force-merge through an actually-FAILED check; a FAILURE check (not PENDING) means local verification missed something — stop and investigate, do not retry with --admin.
gh issue view {issue-number} --json state.gh issue close {issue-number}git checkout maingit pull origin main --ff-only--ff-only fails (local main diverged), fall back to git fetch origin && git reset --hard origin/maingit status.Output a summary in this format:
## Completed
- **Issue**: #{issue-number} — {issue title}
- **PR**: {PR URL} (merged)
- **Commit**: {short SHA} — {commit message}
- **Branch**: Deleted `{branch-name}`, now on `main`
- **Status**: Clean, up to date with origin/main
gh pr merge --admin fails for a real reason — merge conflict, missing PR, you are not the admin in this repo, a check in FAILURE state — report and stop. Do not retry the same command; investigate the cause.git pull --ff-only fails, fall back to git fetch origin && git reset --hard origin/main.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub lucasmccomb/ccgm --plugin commands-core