kleenpulse

Run The Campaign — Git skill for Claude Code

Git community

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 -d and 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