Programming · Automation
modernize
/modernize
For getting old merge requests up to date. Use when asked to rebase an MR (or a PR on GitLab) or "modernize".
For whom
- Author
- Wozacosta ↗
- Repository
- forgestack ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
For getting old merge requests up to date. Use when asked to rebase an MR (or a PR on GitLab) or "modernize".
Triggers from the description
modernize
Original author description
For getting old merge requests up to date. Use when asked to rebase an MR (or a PR on GitLab) or "modernize".
How it works
- Guardrails
- Establish the MR's intent
- Check what changed around it
- Choose a disposition before pushing
- Rebase without losing intent
- Report
Original SKILL.md headings · 102 lines, 730 words
SKILL.md preview
--- name: modernize description: >- For getting old merge requests up to date. Use when asked to rebase an MR (or a PR on GitLab) or "modernize". --- # Modernize Modernize the idea, not just the branch. A clean rebase does not prove that the MR still belongs in the product. ## Guardrails - Always check to make sure you have pulled latest origin for your branch, the target branch, and any other branch related to your work before starting. - 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 and updating the MR's source branch. It does not authorize merging, closing, changing the target branch, or expanding scope. - Never use an unqualified force push. Update a rebased branch with `--force-with-lease` against the head SHA observed before the rebase. - Do not post an MR comment unless the user asked for one. Use the `leaving-mr-comments` skill for every comment posted on the user's behalf. ## Establish the MR's intent Resolve the MR (`glab mr view <iid> -F json`) and record its URL, state, target branch, source project and branch, current head SHA, author, pipeline status, approvals, and threads. Read the title, description, linked issues, commits, review threads, and complete diff. State the smallest coherent goal the MR was trying to accomplish before judging its implementation. Fetch the latest remote target and MR head. Use the MR's actual target branch, usually `main`, rather than assuming the local branch is current. Record the merge base so the original MR and subsequent target-branch changes can be compared separately. ## Check what changed around it Inspect commits and diffs added to the target branch since the MR diverged. Search merged and open MRs (`glab mr list --merged --search <terms>`) 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 MR 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 an MR 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. - **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 MR 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 an MR alive. ## Rebase without losing intent For a `MODERNIZE` disposition: 1. Create a safe local branch or disposable worktree at the recorded MR head. 2. Rebase its commits onto the freshly fetched target branch. (`glab mr rebase` only works without conflicts and skips the checks below, so prefer a local rebase.) 3. Resolve each conflict according to the MR's current intent and the target branch's newer invariants. If a conflict reveals a product or architecture disagreement, stop and reconsider the disposition instead of guessing. 4. Compare the pre-rebase and post-rebase commit series with `git range-diff` and inspect the final diff. Confirm that no intentional behavior disappeared and no already-landed behavior was reintroduced. 5. Run the repository's focused checks for the touched area. Distinguish real failures from pre-existing or infrastructure failures. 6. Push with `--force-with-lease` tied to the previously observed remote head. If the lease fails, fetch and reassess rather than overwriting new work. Do not merge the MR. ## Report Lead with `MODERNIZE`, `REWORK`, or `CLOSE` and the reason. Then summarize: - meaningful changes on the target 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 MR. Separate observed facts from judgment. Say what could not be verified instead of manufacturing confidence.
Files in this package (2)
- SKILL.md 5 KB
- agents/openai.yaml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Wozacosta/forgestack | 90 | MIT |
| colinmollenhour/dotfiles | 100 | Apache-2.0 |
| gvaldesmty1/modernia | 100 | MIT |
| cravingmaker/skills | 100 | MIT |
| bendrucker/claude | 100 | MIT |
| gosuda/dalcom-skills | 95 | Apache-2.0 |
| adelrodriguez/skills | 90 | MIT |
| NathanColosimo/skills | 86 | MIT |
| t3dotgg/tstack | 86 | MIT |
Database snapshot: 13.11.2026 · package version 8f0604eb92db (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 81t3-modernize
For getting old prs up to date. Use when asked to rebase a pr or "modernize". - 100pr-modernize
Reassess and update an outdated GitHub PR against its actual current base. Use when explicitly asked to rebase or modernize an old PR, or invoke pr-modernize. Determine whether its goal still matters before rebasing; do not merge or close it. - 92gitlab
Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when working with code hosted on GitLab or managing GitLab resources. - 100pr-modernize
Decides if an old or inherited PR should still land, rebases it and keeps authors' credit. Use when asked to modernize, revive, rebase or take over a PR. Not for new PRs (pr-workflow). - 100gitlab
GitLab issues, merge requests, repositories, CI pipelines, and code search via the glab CLI. Use when the user mentions GitLab, an MR/issue number, a project on gitlab.com, or a self-hosted GitLab instance. - 100glab
Use when creating, reading, updating, or closing GitLab issues and merge requests with the glab CLI.