modernize
Skill by garrytan
Brings an aging pull request onto its current base and recommends MODERNIZE, REWORK or CLOSE, with evidence. Built for maintainers who need to revive or retire old PRs, including ones written by someone else.
Install modernize
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.claude/skills && cp -r /tmp/gstack/modernize ~/.claude/skills/modernizeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gstack/modernize ~/.gemini/antigravity-cli/skills/modernizeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The modernize skill checks whether an old pull request still makes sense against today's base branch. It states the problem the PR claims to solve, the change it makes, and what must be true of the codebase for that change to be right. It then looks for base commits that touched the files the PR uses, or changed the behavior it relies on, and picks one verdict: MODERNIZE, REWORK or CLOSE, with the evidence behind it.
For MODERNIZE, the skill rebases the PR branch and uses git range-diff to show that no intent was lost. It runs the repository's tests and pushes with a lease pinned to the commit it observed. It never closes a PR itself, and it waits for approval before any push, close or comment. It is aimed at maintainers who need to revive or retire stale pull requests.
Written from the project's SKILL.md and checked against it.
What it can do
- Read the PR as a claimWrites down the problem the PR solves, the change it makes, and the codebase conditions it depends on.
- Check base driftFinds base commits that touch the PR's files or change behavior the PR relies on, using the CHANGELOG and commit messages.
- Choose a verdictPicks one of MODERNIZE, REWORK or CLOSE and shows the evidence before any push, close or comment.
- Rebase with range-diff proofRebases the PR branch and compares old and new patches so each changed hunk is explained.
- Pinned pushPushes with --force-with-lease pinned to the observed head SHA, and stops if the PR has moved.
- Report handoffWrites the verdict, findings, tests run and next action, and credits the original author.
What you need
- gstack installed under ~/.claude/skills/gstack
- git
- GitHub CLI (gh)
Try asking
- Modernize this PR 1234 onto the current main branch
- Rebase this old PR and tell me if it is still worth landing
- Revive this branch and decide: MODERNIZE, REWORK or CLOSE
Good to know
- Never closes a PR; CLOSE is a recommendation only
- Nothing is pushed, closed or commented before the verdict is shown and approved
- Stops when the PR range contains merge commits
- Pushing to a branch that is not the user's needs the owner's or repository's permission
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: modernize/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadGrepGlobAskUserQuestionBash(~/.claude/skills/gstack/bin/gstack-skill-load:*)
-
SKILL.md11 KB -
SKILL.md.tmpl9 KB -
sections/preamble.md1 KB
Alternatives to modernize
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
modernize: common questions
Does modernize close old pull requests?
No. CLOSE is a recommendation with reasons. The PR stays open until the person with authority closes it.
How does it avoid overwriting someone else's push?
It pushes with --force-with-lease pinned to the head SHA it observed and stops if the PR has moved. It never uses --force.
What happens if the PR contains merge commits?
The skill stops, because a plain rebase drops changes made in merge commits and git range-diff cannot show them.
How do I install modernize?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is modernize free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is modernize safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to modernize?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
