Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cboone/agent-harness-plugins --skill rebase-onto-maingit clone --depth 1 https://github.com/cboone/agent-harness-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cboone/agent-harness-plugins/rebase-onto-main)<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/rebase-onto-main"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/rebase-onto-main.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.02234 |
| Opus 5 | $0.00054 | $0.01117 |
| Sonnet 5 | $0.00022 | $0.00447 |
| Haiku 4.5 | $0.00011 | $0.00223 |
Grade A, and why
rebase-onto-main scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rebase Onto Main
Fetch and rebase the current feature branch onto the repository's base branch.
Options
The user may provide these options inline:
- --base
<branch>: Override the auto-detected base branch (e.g.,--base develop)
Workflow
1. Pre-Flight Checks
Run these commands in parallel to understand the current state:
# Check for uncommitted changes
git status
# Detect the repository's default branch
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name'
# Confirm which branch we are on
git branch --show-current
# Check whether the branch has been pushed to a remote
git rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>/dev/null || echo "no upstream"
If --base <branch> was specified, use that value instead of the detected default branch.
If gh is not available, fall back to detecting the default branch with:
git remote show origin | grep 'HEAD branch' | sed 's/.*: //'
If the current branch is the default branch itself, warn the user that rebasing the base branch onto itself is a no-op and stop.
2. Handle Uncommitted Changes
If git status shows uncommitted changes (staged or unstaged):
- Warn the user that there are uncommitted changes.
- Ask whether to:
- Stash: Run
git stashbefore proceeding, thengit stash popafter the rebase completes. - Commit first: Invoke the
/commitskill, then continue with the rebase. - Abort: Stop without doing anything.
- Stash: Run
Rebase will refuse to start with a dirty working tree, so this step is mandatory before fetching.
3. Fetch and Rebase
Capture the current HEAD so the post-rebase step can detect whether history was actually rewritten:
git rev-parse HEAD
Record this as <pre-rebase-head>. Then:
git fetch origin <base-branch>
git rebase origin/<base-branch>
Where <base-branch> is the detected or overridden base branch name.
4. Handle Rebase Result
Clean Rebase
If the rebase completes without conflicts:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 230 lines · 108 tokens per session scan A a0f7ef428bce
rebase-onto-main is a skill published in the GitHub repository cboone/agent-harness-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 108 tokens to every session and 2,234 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
release-check
Pre-release verification checklist. Validates features, tests, docs, security, and quality gates before shipping. Delegates to the Centinela (QA) agent.
05-review
Review a diff read-only on three axes, code, behavior versus the plan, and relevancy, into one verdict report. Use before shipping a change. Not for fixing findings or auditing a codebase.
00-repo-init
Initialize a project repository with git init, a default branch, a bootstrap commit, CONTRIBUTING.md, and optionally the remote. Use when the user wants to init or set up a new repo, or publish to a remote. Not for committing, opening a PR, or tagging.
01-commit
Create an atomic git commit with a conventional message, optionally pushing. Use when the user wants to commit changes, optionally pushing the branch. Not for amending, rebasing, opening a pull request, or tagging a release.
02-pull-request
Create a draft pull or merge request from the current branch, in whatever VCS tool the project uses. Use when the user wants to open a pull or merge request. Not for committing, pushing, or merging a branch.
03-release-tag
Cut a semver release with an annotated tag and release notes. Use when the user wants to release, tag a release, bump the version, or cut a version. Not for a plain commit, a pull request, or amending an existing tag.