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 chen3feng/agent-skills --skill rebase-on-fresh-base-after-mergegit clone --depth 1 https://github.com/chen3feng/agent-skillsWrote 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/chen3feng/agent-skills/rebase-on-fresh-base-after-merge)<a href="https://agentmods.dev/skills/chen3feng/agent-skills/rebase-on-fresh-base-after-merge"><img src="https://agentmods.dev/badge/skills/chen3feng/agent-skills/rebase-on-fresh-base-after-merge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/chen3feng/agent-skills/rebase-on-fresh-base-after-merge"><img src="https://agentmods.dev/badge/skills/chen3feng/agent-skills/rebase-on-fresh-base-after-merge.svg" alt="Reviewed on agentmods" width="80" 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.00034 | $0.01237 |
| Opus 5 | $0.00017 | $0.00619 |
| Sonnet 5 | $0.00007 | $0.00247 |
| Haiku 4.5 | $0.00003 | $0.00124 |
Grade A, and why
rebase-on-fresh-base-after-merge 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 12d 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 — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Start the next change from a fresh base
When to use
You just landed a PR (or the user says "I merged it"), and you're
about to make the next change in the same repo. The working tree
is still on the feature branch that was merged, or on a stale local
master / main.
Problem
Three related failure modes:
- Branching off a stale base. Local
masterhasn't been fetched since the merge, so a new branch cut from it is missing the commits that were just merged upstream. The next PR will show a confusing diff (including files you didn't touch) or fail to merge cleanly. - Reusing the old feature branch. Appending new commits to the already-merged branch and pushing again creates a "PR #2 on the same branch" situation — GitHub may refuse to open it, or will show the old merged commits in the diff.
- Uncommitted edits trapped on the wrong branch. You already
made edits for the next task while still on the old branch; a
naive
git checkout mastereither fails or silently drags the edits along to a base that doesn't match them.
Symptom example:
$ git log --oneline origin/master..HEAD
fac933f Seed agent-skills with format spec and initial 7 skills # already merged!
Solution
Standard recipe, safe with or without uncommitted edits:
# 0. (If you have unstaged edits for the next task) stash them
git -C <repo> stash push -u -m "wip-<next-task>"
# 1. Sync local refs with the remote
git -C <repo> fetch origin --prune
# 2. Find the real default branch — don't assume main or master
default=$(git -C <repo> symbolic-ref refs/remotes/origin/HEAD | sed 's@^.*/@@')
# 3. Fast-forward local default to origin
git -C <repo> checkout "$default"
git -C <repo> pull --ff-only origin "$default"
# 4. Cut the new branch from the fresh base
git -C <repo> checkout -b <new-slug>
# 5. Reapply the stashed edits (if step 0 happened)
git -C <repo> stash pop
# 6. Verify you're actually ahead of origin/$default by 0 commits
git -C <repo> log --oneline "origin/$default..HEAD" # should be empty
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.
- 12d ago First seen · 131 lines · 34 tokens per session scan A b9593743891d
rebase-on-fresh-base-after-merge is a skill published in the GitHub repository chen3feng/agent-skills (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,237 once invoked, about $0.0002 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
codeflow-maintainer
OpenClaw-only maintainer PR workflow modes and skills. For OpenCoven/coven PR creation, redirect to skills/pr-agent, the Coven PR Readiness Agent.
openclaw-dev
OpenClaw Dev Agent — OpenClaw-only docs-aware development assistant. For OpenCoven/coven PR creation, redirect to skills/pr-agent, the Coven PR Readiness Agent.
git-flow-pr
Executes the full PR-driven development workflow: create an isolated feature branch from the current work, commit all staged changes, rebase cleanly onto the selected base branch (skipping any ancestor commits already merged), push the branch, and open a GitHub pull request linked to a related issue. Includes guidance…
new-gh-issue-orchestration
Orchestrates a GitHub-issue-driven delivery workflow from issue intake to PR creation using reviewer-first then worker execution. Invoked when the user provides a GitHub issue link/number and asks to start end-to-end delivery.
openclaw-github-repo-commander
7-stage super workflow for GitHub repo audit, cleanup, PR review, and competitor analysis.
pr-description
Write a reviewer-first pull-request description from the actual branch diff. Use when opening a PR or asked to write/improve a PR description.