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

resolve-scrap-issues — скилл для Claude Code: разбор scrap-issue

Скилл проходит по свежим GitHub-issue с меткой maintainer-scrap, проверяет каждую и либо закрывает её, либо открывает один общий PR с исправлениями.

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

Что делает resolve-scrap-issues

Скилл берёт три самых новых открытых issue с меткой maintainer-scrap через gh issue list, читает тело и комментарии каждой, а потом раскладывает их по двум корзинам: «действий не нужно» и «действий нужно». Первые он закрывает с комментарием, где указана причина и ссылки на доказательства. Вторые собирает в одну ветку и один pull request.

Проверка идёт с трёх сторон: веб-поиск по внешним фактам вроде формата файла или схемы конфига, осмотр кодовой базы и обсуждение в самой issue. Решение мейнтейнера из комментариев имеет приоритет. По умолчанию скилл склоняется к действию и оставляет issue открытой только в узких случаях: факт нельзя подтвердить по первоисточнику либо правка навредит — например, затронет .github/**, релизный конвейер или удалит пользовательские файлы вне зоны ответственности rulesync.

Перед коммитом прогоняется pnpm cicheck, а сгенерированные конфиги нужно пересобрать вручную. Скилл расширяет understand-scrap-issues: шаги 1–3 совпадают с приёмом issue, дальше добавляются валидация и правки. Работает он с репозиторием, где есть метка maintainer-scrap и настроенный gh — без авторизации в GitHub CLI ничего не выйдет.

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

  • разобрать свежие issue с меткой maintainer-scrap
  • отсеять устаревшие и дублирующие issue без ручного чтения
  • подтвердить внешний факт из issue по первоисточнику
  • собрать правки по нескольким issue в один pull request
  • закрыть issue с комментарием, где видны ссылки на доказательства

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

  • прогони скилл resolve-scrap-issues и разбери последние scrap-issue
  • проверь открытые issue с меткой maintainer-scrap и закрой те, что не требуют действий
  • сделай один PR по всем actionable scrap-issue

Как установить resolve-scrap-issues

1Через Skills CLI (Vercel)

npx skills add dyoshikawa/rulesync --skill resolve-scrap-issues -a claude-code

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

~/.claude/skills/resolve-scrap-issues/SKILL.md

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

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

Вопросы о resolve-scrap-issues

Как установить resolve-scrap-issues в Claude?

Выполните npx skills add dyoshikawa/rulesync --skill resolve-scrap-issues -a claude-code. Файл скилла окажется по пути ~/.claude/skills/resolve-scrap-issues/SKILL.md.

Что делает resolve-scrap-issues?

Забирает три самых новых открытых issue с меткой maintainer-scrap, проверяет каждую через веб-поиск и код, закрывает ненужные и открывает один общий pull request по остальным.

Что нужно, чтобы скилл сработал?

Репозиторий с issue под меткой maintainer-scrap и настроенный gh — все выборки и закрытия идут через GitHub CLI. Перед коммитом скилл запускает pnpm cicheck.

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

SKILL.md · MIT
---
name: resolve-scrap-issues
description: >-
  Fetch recent maintainer-scrap issues, validate each with web research, then
  either close the ones that need no action or open a single consolidated pull
  request that resolves the ones that do
targets:
  - "*"
---

Fetch the newest scrap issues (GitHub issues labeled `maintainer-scrap`), understand each one, validate whether it is still a real and actionable problem using web research and codebase inspection, and then drive each issue to closure: close the issues that need no action, and resolve the actionable ones — bundling them into a single pull request when there is more than one.

This skill extends `understand-scrap-issues`: Steps 1–3 are the same intake flow, and Steps 4 onward add validation and resolution.

## Step 1: Fetch the Latest Scrap Issues

List the most recent open issues that carry the `maintainer-scrap` label. `gh issue list` returns issues in creation order (newest first), so limiting to 3 yields the 3 newest:

```bash
gh issue list --label maintainer-scrap --state open --limit 3 --json number,title,url,createdAt
```

If the result is empty, report that there are no open scrap issues and stop.

## Step 2: Gather Each Issue's Content

For each scrap issue returned, read both the body and the discussion. Run these in parallel across the issues where practical:

```bash
gh issue view <issue_number>
gh issue view <issue_number> --comments
```

If an issue references related pull requests, commits, or files that are needed to understand it, gather that context as well.

## Step 3: Understand and Summarize

For each scrap issue, explain the following based on its content:

1. **Topic:** A one-line summary of what the scrap note is about.
2. **Background:** The context, motivation, or problem the note captures and why it matters.
3. **Details / Findings:** The specific observations, problems, or content recorded in the note.
4. **Proposed Solution / Next Steps:** Any solution or actionable next step mentioned. If none is recorded, state explicitly that it is still undecided.

Keep each summary concise and focused. Present the issues in the order returned (newest first), with the issue number, title, and URL as a heading for each.

## Step 4: Validate Each Issue

Decide, per issue, whether it still describes a real, actionable problem. Combine three angles:

- **Web research (`WebSearch` / `WebFetch`):** Verify any claim that depends on external facts — a tool's current file format, config schema, default location, scope support, deprecation, or recent behavior change. Prefer primary sources (official docs, release notes, source code) over blog posts, and cross-check non-trivial claims against at least one primary source. Capture exact URLs and version numbers; they will be cited. Run independent searches in parallel.
- **Codebase inspection:** Check whether the issue is already resolved, partially handled, or contradicted by the current code. Prefer targeted symbol and search tools over reading whole files. Apply the project rules in `CLAUDE.md`, `.claude/rules/**`, and `docs/**` (for example, the feature-change and frontmatter conventions).
- **Issue discussion:** Honor any maintainer decision already recorded in the comments (e.g., "won't do", "superseded by #N").

Classify each issue into exactly one bucket:

- **No action needed** — invalid, obsolete, already fixed, out of scope, a duplicate, or explicitly declined. Record the concrete reason and the evidence (URLs / file references / linked issue) behind it.
- **Action needed** — a real problem, gap, or worthwhile proposal that still applies, with a concrete fix in mind. An open design point is not a blocker: pick the option that best fits the project's existing conventions and the tool's documented behavior, and state the choice in the PR body.

Default to action. Leave an issue open only in two narrow cases: the facts the fix depends on cannot be established from any primary source or the code, or the fix would do real harm (edit `.github/**` or the release pipeline, add a new runtime dependency, contradict an explicit maintainer decision in the thread, or delete or overwrite user files outside the outputs rulesync already manages). In those cases, leave the issue open, report the missing fact or harm, and exclude it from both Step 5 and Step 6.

## Step 5: Close the Issues That Need No Action

For every issue classified as **No action needed**, post an explanatory comment and close it. The comment must state the reason and cite the evidence (inline links to primary sources, file paths, or related issue/PR numbers) so the decision is auditable. Write the comment in English.

```bash
gh issue close <issue_number> --comment "<reason with evidence>"
```

Do not close an issue without leaving this reasoning comment.

## Step 6: Resolve the Issues That Need Action

If no issue is **Action needed**, skip to Step 7.

### 6a. Plan the change

For all actionable issues, decide the concrete edits, grounded in the Step 4 findings. Follow `.claude/rules/feature-change-guidelines.md` where applicable (e.g., `rules-processor.ts` conventions, frontmatter precedence, `gitignore.ts`, scope support, README/docs sync, and preserving the Tool × Feature happy-path tests).

### 6b. Branch

Create one branch for the whole batch. If the current branch is `main` or `master`, create a descriptive branch (e.g., `resolve-scrap-issues-<short-topic>`); otherwise reuse the current working branch.

### 6c. Implement

Make the edits for every actionable issue. When several issues touch the same area, resolve them together coherently rather than with conflicting patches.

### 6d. Verify

Run the project checks and fix anything they surface before committing:

```bash
pnpm cicheck
```

If the change affects generated config files (commands, rules, gitignore, etc.), regenerate them as the relevant docs/rules instruct (for example, `pnpm dev gitignore`) and keep `README.md` and `docs/**` in sync with the implemented behavior.

### 6e. Commit, push, and open ONE consolidated PR

Stage and commit with a clear message, then push:

```bash
git add .
git commit -m "<message>"
git push -u origin <branch-name>
```

Open a single pull request that resolves all actionable issues in the batch. The body must include a `Closes #<n>` line for every issue it fixes so they auto-close on merge:

```bash
gh pr create --title "<title>" --body "<description>"
```

The PR description should include:

- A summary of the changes, grouped by the issue each part resolves.
- `Closes #<issue_number>` lines for every actionable issue (one consolidated PR even when there are multiple issues).
- The validation evidence (key research links) that justified the change.
- A test plan / the result of `pnpm cicheck`.

If a PR already exists for the branch, update it instead of creating a duplicate (use `gh api repos/<owner>/<repo>/pulls/<pr-number> -X PATCH` to avoid GraphQL deprecation warnings).

## Step 7: Report Result

Summarize, per issue:

- **Closed (no action):** issue number, title, and the reason it was closed.
- **Resolved (PR):** issue number, title, and the single PR URL that closes it.
- **Left open (inconclusive):** issue number, title, and the missing fact or harm that blocked it.

All issue comments, PR title, and PR body must be written in English regardless of the conversation language. Write the final report to the user in the language of the current conversation.

© dyoshikawa · MIT · dyoshikawa/rulesync

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

Все скиллы по теме «Git и GitHub» →
load-issues NeoLabHQ Скилл забирает все открытые issues текущего репозитория через gh и раскладывает их по отдельным markdown-файлам. Пригодится, когда нужно работать с задачами вне GitHub. CX Codex +1 1 200установок pr-threads-resolve Barret Schloerke (@schloerke) Скилл закрывает все незакрытые треды ревью в PR текущей ветки одной командой. Пригодится, когда правки уже внесены и осталось только снять статус «unresolved». CX Codex +1 668установок github-triage code-yeongyu Читает все открытые issues и PR в репозитории и пишет отчёты с доказательствами. Ничего не комментирует и не закрывает. CX Codex +1 2 700установок gh-issues openclaw Скилл находит GitHub issues, запускает фоновых агентов для исправлений и открывает PR. Подходит для потока от issue до готового pull request. CX Codex +1 5 000установок maintainer-decline posit-dev Скилл помогает мейнтейнерам открытых проектов вежливо закрывать issues, отклонять пулреквесты и объяснять архитектурные решения без лишних споров. CX Codex +1 409установок to-issues smallnest Разбивает PRD и технические спецификации на сквозные вертикальные задачи с явными зависимостями для GitHub или локального трекера. CX Codex +1 451установок

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

rulesync-feature-research Сопоставляет фичи rulesync с документацией кодинг-агентов: что поддерживается, где пробелы, чем отличается поведение клиентов. CX Codex +1 ★ 1 552звёзд репо rebase-latest-main Скилл проводит агента по шагам: проверить ветку, сделать fetch, ребейзнуть на origin/main и разрулить конфликты. Полезен, когда ветка отстала от main. CX Codex +1 ★ 1 552звёзд репо prs-awaiting-author Показывает открытые пул-реквесты, по которым следующий шаг за автором: упал CI, не отвечены замечания ревью, ждёт ответа вопрос мейнтейнера. CX Codex +1 ★ 1 552звёзд репо porting-another-repository Разбирает фичу в текущем репозитории и правила целевого, а потом пишет план переноса в tmp/ — файлами, которые вы применяете руками. CX Codex +1 ★ 1 552звёзд репо goal-release Ведёт релиз целиком: открывает PR, ждёт зелёный CI, мержит и обновляет формулу Homebrew. Пригодится, когда версию надо выпустить одной командой. CX Codex +1 ★ 1 552звёзд репо git-worktree-runner Скилл учит агента управлять git worktree через CLI-обёртку gtr: создавать, открывать в редакторе, запускать команды и удалять. CX Codex +1 ★ 1 552звёзд репо draft-issue-to-external-repository Готовит GitHub issue для репозитория, которым вы не владеете: изучает шаблоны и стиль проекта, уточняет замысел с вами и сохраняет текст в файл. CX Codex +1 ★ 1 552звёзд репо create-issue Скилл, который оформляет GitHub issue по шагам: собирает данные, изучает код, пишет описание на английском и ставит метки. Пригодится, когда лень вручную разбираться с шаблоном и gh label list. CX Codex +1 ★ 1 552звёзд репо

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

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