К основному содержанию
скилл CX Codex

modernize — скилл для Claude Code: обновление старых PR

Скилл modernize для Claude Code помогает решить, что делать с устаревшим PR: обновить ветку, переработать изменения или закрыть запрос. Запускается по просьбе перебазировать или «осовременить» PR.

MIT 1 300 установок ★ 4 278 обновлён 2026-11-11

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add t3dotgg/tstack --skill modernize -a claude-code
Открыть на GitHub

Что делает modernize

Скилл разбирает цель старого PR и сравнивает его с изменениями в целевой ветке. Он проверяет diff, коммиты, обсуждения, связанные задачи и конкурирующие решения, чтобы выбрать один из вариантов: MODERNIZE, REWORK или CLOSE. Возраст PR сам по себе не служит основанием для закрытия.

Для MODERNIZE скилл создаёт безопасную рабочую ветку или отдельный worktree, перебазирует коммиты, проверяет итоговый diff через git range-diff и запускает целевые проверки проекта. После перебазирования ветка обновляется через --force-with-lease, привязанный к ранее зафиксированному SHA; при неудаче lease нужно заново получить изменения и пересмотреть состояние. Скилл не сливает и не закрывает PR, а комментарии публикует только по просьбе.

Какие задачи решает

  • понять, сохраняет ли старый PR актуальную цель
  • найти изменения в целевой ветке, которые затрагивают PR
  • перебазировать актуальные коммиты и проверить diff
  • выбрать между обновлением, переработкой и закрытием PR

Примеры запросов агенту

  • Обнови старый PR: проверь его актуальность и перебазируй ветку, если цель всё ещё нужна.
  • Оцени этот PR и скажи, нужно ли его переработать или закрыть.
  • Перебазируй PR на актуальную целевую ветку и запусти проверки затронутой части.

Как установить modernize

1Через Skills CLI (Vercel)

npx skills add t3dotgg/tstack --skill modernize -a claude-code

2Вручную: положить файлы

~/.claude/skills/modernize/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/modernize/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о modernize

Как установить modernize в Claude Code?

Выполни npx skills add t3dotgg/tstack --skill modernize -a claude-code. Файл скилла находится по пути ~/.claude/skills/modernize/SKILL.md.

Что делает modernize?

Скилл проверяет, нужна ли ещё цель старого PR, и рекомендует обновить его ветку, переработать изменения или закрыть запрос. Для обновления он перебазирует коммиты, сверяет diff и запускает целевые проверки.

Закрывает ли modernize устаревший PR?

Скилл может рекомендовать CLOSE, если PR устарел или его заменили другие изменения, но сам не закрывает его. Закрытие требует явного разрешения.

Исходный текст

SKILL.md · MIT
---
name: modernize
description: >-
  For getting old prs up to date. Use when asked to rebase a pr or
  "modernize".
---

# Modernize

Modernize the idea, not just the branch. A clean rebase does not prove that the
PR still belongs in the product.

## Guardrails

- Always check to make sure you have pulled latest origin for your branch, main
  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 PR branch. It does not
  authorize merging, closing, changing the base 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 a PR comment unless the user asked for one. Use the
  `leaving-pr-comments` skill 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.
- **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:

1. Create a safe local branch or disposable worktree at the recorded PR head.
2. Rebase its commits onto the freshly fetched base branch.
3. 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.
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 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.

© t3dotgg · MIT · t3dotgg/tstack

Похожие скиллы

Все скиллы по теме «Git и GitHub» →
gh-stack официальный github Управляет цепочками связанных пулл-реквестов через расширение gh stack. Помогает агенту делить крупные задачи на слои и не зависать в интерактивном TUI. CX Codex +1 21 500установок pr-writer getsentry Скилл pr-writer для Claude Code пишет и обновляет заголовки и описания pull request для ревью. Он включается при создании PR, правке его текста или подготовке изменений ветки. CX Codex +1 4 700установок om-auto-fix-pr open-mercato Скилл om-auto-fix-pr доводит открытый пулл-реквест до готовности к мержу: подтягивает базовую ветку, чинит CI, прогоняет ревью и UI-тесты. Сам PR не мержит, передавая результат следующему шагу. CX Codex +1 4 500установок om-approve-merge-pr open-mercato Скилл om-approve-merge-pr для Claude Code, Codex, Cursor и других AI-редакторов одобряет PR и выполняет squash-merge по одному номеру. CX Codex +1 4 300установок review-pr dbpolito Скилл review-pr разбирает пул-реквесты в CI: ищет дефекты, сверяется с прошлыми обсуждениями и публикует замечания построчно. CX Codex +1 4 300установок github-issue-workflow giuseppe-trisciuoglio Скилл github-issue-workflow для Claude Code проводит задачу на GitHub через 8 фаз — от чтения issue до pull request. Запрашивает подтверждение требований и проверяет код. CX Codex +1 3 700установок

Из того же набора8

council Скилл council для Claude Code и Codex запускает проверку кода тремя разными ИИ-моделями для сбора независимых отзывов. Агент анализирует их рекомендации и помогает внедрить исправления в проект. CX Codex +1 1 500установок babysit-pr Скилл babysit-pr следит за pull request через CI и ревью в Claude Code, Codex и Cursor. Запускается при запросе на мониторинг и проверку статусов репозитория. CX Codex +1 1 400установок file-pr Скилл file-pr для Claude Code создаёт pull request по просьбе пользователя. Перед отправкой он проверяет ветку, diff и текст PR. CX Codex +1 1 300установок full-send Скилл full-send для Claude Code, который переводит агента в автономный режим выполнения задач. Агент самостоятельно доводит код до слияния PR, игнорируя стандартные запросы на подтверждение действий. CX Codex +1 1 300установок full-stop Запускается, когда в запросе звучит «full stop», даже как заключительное усиление. Он готовит pull request к слиянию, но оставляет его открытым. CX Codex +1 1 300установок leaving-pr-comments Скилл leaving-pr-comments для Claude Code автоматизирует публикацию комментариев и отзывов на GitHub от имени модели и пользователя. CX Codex +1 1 300установок takeover Скилл takeover для Claude Code, который помогает продолжить работу над чужим PR, веткой или диалогом агента. Запускается по просьбе взять задачу на себя. CX Codex +1 1 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой