modernize
Skill0 starsChanged 2 months agoMITView on GitHub
Rebase an aging PR and judge whether it should still land. Use when asked to rebase a PR or "modernize".
- Deletes or force-pushes
- Commits and pushes
22 other projects use a version of this, 16 of them edited.
Adopted by
Most recently taken up by
- lihbr/skillsedited, first seen Nov 29, 2026
- Dhruv2mars/skillsedited, first seen Nov 29, 2026
- dancorreia-swe/skillsedited, first seen Nov 29, 2026
- karanmrn/karanagentskillsedited, first seen Nov 29, 2026
- karanmrn/kstackedited, first seen Nov 29, 2026
- lora-sys/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use review-loop, bro and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillreview-loop
Iterative review loop using any lens agent against any target (plan, code, design). Use when you want to run a focused review cycle: spawn a fresh reviewer subagent with a specific lens, present findings and remediation to the user, apply fixes with user guidance, and repeat until clean.
Also in 4 projects that use this
MicrosoftSkillbro
Re-explain the previous assistant message in a much simpler way, for when the reply made you go 'bro what'. Use /bro to get a simpler version of the last answer in Plain Language + Chicago Manual of Style, with diagrams where they help.
Also in 3 projects that use this
jaydubya818Skillwhy
Use when design rationale must be recovered from source history and available records.
Also in 3 projects that use this
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 4 projects that use this
GoogleSkillcodebase-design
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
Also in 3 projects that use this
GoogleSkillgrilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Also in 3 projects that use this
- +2 more from microsoft
- +2 more from google
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 16
- t3dotgg/tstack★ 3.8k91% same
- karanmrn/karanagentskills★ 1191% same
- karanmrn/kstack★ 1191% same
- cogine-ai/cogine-dev-skillset★ 391% same
- dancorreia-swe/skills★ 391% same
- Dhruv2mars/skills★ 384% same
- mneves75/skills★ 364% same
- connorch/skills★ 291% same
- lrstanley/skills★ 268% same
- rodeyseijkens/skills★ 286% same
6 more not listed
Wrote their own version · 6
- garrytan/gstack★ 143ksame name
- Yomudogly/oh-my-agy★ 4same name
- damacus/agent-skills★ 2same name
- adelrodriguez/skills★ 1same name
- Belweave/hstack★ 1same name
- lora-sys/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/humanizer/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewSkill
- cherrypickerSkill
- copyable-markdownSkill
- deltamaxxSkill
- docs-mirrorSkill
- ffmpegSkill
- file-prSkill
- howSkill
- humanizerSkill
- prompt-packSkill
- socials-mirrorSkill
- spamcheckSkill
- unslopSkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- yt-ccSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 10 are common, 1 is distinctive, and 2 are very specific to this project.
10
Common
Most of the 21 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 15
Read the PR's remote with git remote get-url <remote>.
- Distinctive: line 27
Before starting, fetch the latest remote state for your branch, the base branch, and any other branch related to your work.
- Common: line 30
Treat existing worktree changes as user-owned.
- Very specific: line 37
Never use an unqualified force push.
- Common: line 39
Do not post a PR comment unless the user asked for one.
- Common: line 60
Look beyond overlapping lines:
- Common: line 64
Do both sides now claim ownership of the same behavior or invariant?
- Common: line 70
Do not describe a PR as current merely because Git reports no conflicts.
- Common: line 74
Use one of these recommendations:
- Common: line 93
Create a safe local branch or disposable worktree at the recorded PR head.
- Common: line 101
Run the repository's focused checks for the touched area.
- Common: line 106
If the lease fails, fetch and reassess rather than overwriting new work.
- Common: line 108
Do not merge the PR.
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Modernize
Modernize the idea, not just the branch. A clean rebase does not prove that the PR still belongs in the product.
Host
Read the PR's remote with git remote get-url <remote>. A GitHub remote uses
gh. A Forgejo or Gitea remote uses tea (tea pr <n> for details,
tea pr list --state all to search), adding --remote <remote> when the repo
has several. In step 6, <branch> is the PR's head branch and <head-remote>
is a remote for its head repository (the fork, for a cross-repository PR), both
read from gh pr view <n> or tea pr <n>. Without gh or tea, or a login
for that host (gh auth status, tea logins list), read the PR with plain git:
git fetch <remote> pull/<n>/head works on both hosts but names neither, so the
plain-git path is read-only: report the disposition and stop before step 6.
Guardrails
- Before starting, fetch the latest remote state for your branch, the base
branch, and any other branch related to your work. Fetch only; never
git pullin the user's checkout. - Treat existing worktree changes as user-owned. Use a disposable worktree when the active worktree is dirty or is being used for other work.
- Modernizing authorizes rebasing the PR branch locally; the push is gated below. It does not authorize merging, closing, changing the base branch, or expanding scope.
- Pushing stays the user's call. Before any push, state the exact push command and wait for a yes, unless the user already said to push in this request.
- Never use an unqualified force push. Update a rebased branch with
--force-with-leaseagainst the head SHA observed before the rebase. - Do not post a PR comment unless the user asked for one. If a PR comment skill is available, use it for every comment posted on the user's behalf.
Establish the PR's intent
Resolve the PR and record its URL, state, base, head repository and branch, current head SHA, author, checks, and review state. Read the title, body, linked issues, commits, review threads, and complete diff. State the smallest coherent goal the PR was trying to accomplish before judging its implementation.
Fetch the latest remote base and PR head. Use the PR's actual base branch,
usually main, rather than assuming the local branch is current. Record the
merge base so the original PR and subsequent base-branch changes can be
compared separately.
Check what changed around it
Inspect commits and diffs added to the base branch since the PR diverged. Search merged and open PRs when titles, code paths, or behavior suggest a replacement or competing implementation.
Look beyond overlapping lines:
- Has the same user-facing problem already been solved?
- Did APIs, types, schemas, dependencies, or architectural boundaries change?
- Do both sides now claim ownership of the same behavior or invariant?
- Was the code being changed deleted, moved, or intentionally simplified?
- Would landing the PR restore an old behavior or create two ways to do the same thing?
- Is the original benefit still large enough to justify the maintenance cost?
Do not describe a PR as current merely because Git reports no conflicts.
Choose a disposition before pushing
Use one of these recommendations:
- MODERNIZE: the goal is still useful and the implementation remains the right shape. Rebase, resolve conflicts, test, and update the branch once the push is cleared under Guardrails.
- REWORK: the goal is still useful, but a mechanical rebase would preserve the wrong implementation. Explain the smallest credible rewrite and stop before pushing unless the user also asked for that rework.
- CLOSE: the PR is superseded, obsolete, directionally wrong, or no longer worth its cost. Cite concrete evidence and stop. Do not spend time rebasing an obsolete branch, and do not close it without explicit permission.
Be willing to recommend CLOSE. Age alone is not evidence, and sunk effort is
not a reason to keep a PR alive.
Rebase without losing intent
For a MODERNIZE disposition:
- Create a safe local branch or disposable worktree at the recorded PR head.
- Rebase its commits onto the freshly fetched base branch.
- Resolve each conflict according to the PR's current intent and the base branch's newer invariants. If a conflict reveals a product or architecture disagreement, stop and reconsider the disposition instead of guessing.
- Compare the pre-rebase and post-rebase commit series with
git range-diffand inspect the final diff. Confirm that no intentional behavior disappeared and no already-landed behavior was reintroduced. - Run the repository's focused checks for the touched area. Distinguish real failures from pre-existing or infrastructure failures.
- Push with
--force-with-leasetied to the previously observed remote head, once the push is cleared under Guardrails:git push --force-with-lease=<branch>:<observed-sha> <head-remote> HEAD:<branch>. If the lease fails, fetch and reassess rather than overwriting new work.
Do not merge the PR.
Report
Lead with MODERNIZE, REWORK, or CLOSE and the reason. Then summarize:
- meaningful changes on the base branch;
- conceptual conflicts or confirmation that none were found;
- the rebase and push result, if performed;
- checks run and their results;
- the remaining decision or work, with a link to the PR.
Separate observed facts from judgment. Say what could not be verified instead of manufacturing confidence.
Credit: Theo Browne, from t3dotgg/tstack (MIT).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

