Run The Campaign — Git skill for Claude Code
Agent skill: take finished work to main in one run.
How to install Run The Campaign
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kleenpulse/run-the-campaign and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Run The Campaign does
Agent skill: take finished work to main in one run. Commit, push, PR, watch CI, merge the exact commit that passed, then clean up the branch.
Alternatives in Git
- Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
README
run-the-campaign
Takes finished work from the working tree to the default branch in one run: commit, push, pull request, CI, merge, cleanup. It stops the moment a green light would be a lie.
Install
npx skills add kleenpulse/run-the-campaign
Works with Claude Code, Codex, Cursor, Copilot, and anything else that reads `SKILL.md`.
Why this one
"Commit, push and merge" is easy to say and easy to do badly: `git add -A` sweeps in a stray file, `--no-verify` skips the hook, a red check gets re-run until it is green, and the branch is force-deleted on the strength of an exit code. This skill makes every step prove the one before it. It merges the exact commit CI passed on, deletes a branch only after seeing that commit on the default branch, and has a short list of situations where it stops and reports instead of pushing through.
What it does
- Scouts first: finds the default branch, the house rules, the merge method the repo uses, and which files belong to the change.
- Commits cleanly: moves work off the default branch, stages files by name, runs the hooks, writes the message in the repo's style.
- Pushes and opens the pull request, or reuses the one that exists.
- Watches CI when there is any. It waits for every check, reads the failing log when one goes red, and fixes failures the change caused, for at most three rounds. When the repo has no CI it says so and names the local checks that ran.
- Merges with the head commit pinned (
--match-head-commit), using the repo's own merge method, and handles "branch is behind" and merge queues. - Watches the default branch after the merge and reports a red run before anything else.
- Cleans up: fast-forwards the default branch, deletes the branch locally with
-dand on the remote, removes its worktree, and leaves unrelated work untouched. - Speeds up CI as a follow-up. It times the run, then hands over to the [one-minute-ci](https://github.com/kleenpulse/one-minute
Related Skills
Plan Close
Close out a finished staged-rollout .plan/ — verify completion, distill the story into a final PR body, clean
Ship And Babysit
Commit, push to origin, open a PR against bendourthe/Gemma-Code:main, then poll Gemma-Code's own CI every ~270
Idexal Git Cleanup
Safe recipes to squash messy branches, split a stalled commit, and prepare a clean pull request without losing
Prompt Merge
Signal that worktree work is finished and offer to merge
Worktree Tasks
Implement each task in a separate git worktree with an opus subagent then sequentially merge and commit them b
1.2 Merge To Main
Commit alle endringer, merge feature til main lokalt, push, og gå tilbake til feature.
Related Agents
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Git Manager
Use this agent when you need to stage, commit, and push code changes to the current git branch while ensuring
GitOps
Git operations specialist. MUST BE USED for branch management, conflict resolution, git history analysis, work