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

parallel-work-check — скилл для Claude Code: проверка ветки

Скилл parallel-work-check для Claude Code сравнивает локальное состояние существующей ветки с удалённым и проверяет новые коммиты. Помогает заметить параллельные изменения до начала правок.

MIT ★ 539 обновлён 2026-10-29

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

Что делает parallel-work-check

Скилл запускают перед работой на существующей ветке: например, при продолжении задачи после паузы или перед первой задачей для кодирующего агента. Он получает свежие данные с удалённой ветки, сравнивает коммиты и изучает новые сообщения в журнале. Если ветки разошлись, нужно интегрировать изменения по правилам команды.

Новые коммиты проверяются на пересечение с файлами, которые планируется менять. Скилл предлагает оценить, заменяет ли параллельная работа запланированный подход или дополняет его, а затем записать решение по шаблону PARALLEL WORK CHECK. Для коммитов другого агента рекомендация — предпочесть его работу, если нельзя ясно обосновать лучший вариант. Без доступа к удалённому состоянию сравнение не сработает.

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

  • проверить, ушла ли удалённая ветка вперёд
  • найти новые коммиты, затрагивающие запланированные файлы
  • заметить параллельную работу другого агента
  • решить, интегрировать изменения или отказаться от своего подхода
  • зафиксировать решение перед началом правок

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

  • Перед правками сравни локальную ветку с удалённой и проверь новые коммиты.
  • Проверь, менял ли кто-то параллельно файлы, которые я собираюсь исправить.
  • Составь PARALLEL WORK CHECK и оцени, нужно ли интегрировать удалённые изменения.

Как установить parallel-work-check

1Через Skills CLI (Vercel)

npx skills add ZaxbyHub/opencode-swarm --skill parallel-work-check -a claude-code

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

~/.claude/skills/parallel-work-check/SKILL.md

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

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

Вопросы о parallel-work-check

Как установить parallel-work-check в Claude Code?

Выполните npx skills add ZaxbyHub/opencode-swarm --skill parallel-work-check -a claude-code. Файл скилла появится по пути ~/.claude/skills/parallel-work-check/SKILL.md.

Что делает parallel-work-check?

Перед работой на существующей ветке он получает состояние удалённой ветки, сравнивает его с локальным и оценивает новые коммиты на пересечение с запланированными изменениями.

Что делать, если локальная и удалённая ветки разошлись?

Нужно интегрировать изменения с учётом командного процесса слияния или перебазирования. Если параллельные коммиты затрагивают те же файлы, скилл предлагает оценить, не заменяют ли они запланированный подход.

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

SKILL.md · MIT
---
name: parallel-work-check
description: >
  Apply before starting work on an existing branch. Checks for parallel work by
  other agents or developers that may supersede or conflict with your planned
  changes. Prevents wasted effort on stale branches.
metadata:
  audience: swarm-plugin
  effort: small
  generated_from_knowledge: '[]'
  source_knowledge_ids: '["f07c1f4d-9bb0-4219-9804-26aa8efe8146"]'
  generated_at: "2026-06-14T16:50:00Z"
  confidence: "0.8"
  status: active
  version: "4"
  skill_origin: generated
  provenance_note: >
    Re-linked to current knowledge entries (version 4). The original source ID
    b8fee776... is no longer present in the active knowledge store. The skill
    body and behavior are unchanged; only source_knowledge_ids metadata was
    updated to point to the current lesson about verifying pre-existing state
    on parent commit, which is directly relevant to the parallel-work-check
    protocol.
---

# Parallel Work Check Protocol

Run this check before starting ANY work on an existing branch (not a fresh branch
you just created). This applies to PR branches, feature branches, and any branch
that may have concurrent contributors.

## Step 1 — Check current branch state

1. Determine the current branch name.
2. Determine the remote tracking branch (usually `origin/<branch-name>`).

## Step 2 — Fetch remote state

Fetch the latest state from the remote for the current branch. Do NOT skip this
step because "the branch looks recent" or "I just checked."

## Step 3 — Compare local vs remote

Compare the local HEAD commit hash with the remote HEAD commit hash:

- **Identical**: Remote has not diverged. Proceed with your work.
- **Remote ahead**: The remote branch has commits you don't have locally.
  - Read the new commit messages with `git log local..remote`.
  - Check if any of those commits touch files you plan to modify.
  - If yes: evaluate whether the parallel work supersedes your planned changes.
  - If the parallel work is superior: reset your local branch to match remote
    and abandon your planned approach. Document the decision.
  - If the parallel work is complementary: integrate it first, then proceed.
- **Local ahead**: You have local commits not on remote. This is normal if you
  already started work. Proceed, but be aware that pushing may conflict with
  subsequent remote changes.
- **Diverged**: Both local and remote have unique commits. This requires
  integration. Merge or rebase as appropriate for the team's workflow.

## Step 4 — Check for parallel swarm/agent work

If the remote has new commits:

1. Check the commit authors. If commits are from a different swarm/agent
   (different author name/email pattern), treat this as parallel swarm work.
2. Parallel swarm work is often superior because:
   - It may have access to different context or tools
   - It may have started earlier or had more iterations
   - It may have taken a fundamentally better approach
3. Default stance: **prefer the parallel swarm's work** unless you can clearly
   articulate why your approach is better.

## Step 5 — Decision and documentation

Before proceeding, document your decision:

```
PARALLEL WORK CHECK:
- Branch: <name>
- Local HEAD: <hash> <message>
- Remote HEAD: <hash> <message>
- Diverged: yes/no
- New commits on remote: <count>
- Parallel swarm work detected: yes/no
- Decision: [proceed / integrate-then-proceed / abandon-use-remote / needs-review]
- Rationale: <one sentence>
```

## Anti-patterns — do NOT do these

- Skip the fetch because "I'm sure nothing changed."
- Ignore remote commits because "my approach is probably better."
- Start fixing code without checking if the remote already fixed it.
- Blindly overwrite remote work with local changes without evaluating first.

## Example: parallel swarm superseded local work

```
PARALLEL WORK CHECK:
- Branch: codex/issue-956-plan-completion-gate
- Local HEAD: 5aa34f88 fix(delegation-gate): block next task until completion is persisted
- Remote HEAD: 2b4e9266 fix: correct contradictory test title/comments
- Diverged: yes (remote is 8 commits ahead)
- New commits on remote: 8
- Parallel swarm work detected: yes (different commit author)
- Decision: abandon-use-remote
- Rationale: Parallel swarm restored file from main and re-integrated cleanly,
  producing 486 passing tests vs our incremental patching which left 38 failures.
```

## Integration with swarm workflow

This check should run:
- At session start (MODE: RESUME or MODE: EXECUTE)
- Before creating a new plan for an existing branch
- Before dispatching the first coder task
- After any significant pause where parallel work could have occurred

## Integration with other skills

The parallel-work-check skill is referenced by other skills that start work on an existing branch:

| Skill | Usage |
|-------|-------|
| `file:.swarm/bundled-skills/swarm-pr-feedback/SKILL.md` | Checks before starting PR feedback fixes — ensures no parallel work has already addressed the same findings |
| Legacy pr-review-fix alias | Compatibility entry that delegates to the bundled `swarm-pr-feedback` protocol |
| `file:.swarm/bundled-skills/swarm-implement/SKILL.md` | Checks before implementation Phase 1 — ensures the branch is up-to-date before planning |
| Any skill that starts work on an existing branch | Run the parallel-work-check protocol before beginning fixes or implementation |

When a skill references parallel-work-check, the checking agent must:
1. Fetch and compare remote vs local state
2. Read any new commits from parallel work
3. Evaluate whether the parallel work supersedes, complements, or does not affect the planned work
4. Document the decision using the PARALLEL WORK CHECK template

© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm

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

Все скиллы по теме «Git и GitHub» →
parallel-feature-development Seth Hobson Скилл parallel-feature-development помогает разделить большую фичу между агентами, закрепить файлы и свести результаты без лишних конфликтов. Подходит для параллельной работы над слоями и вертикальными срезами. CX Codex +1 9 900установок sred-work-summary getsentry Скилл sred-work-summary для Claude Code собирает PR, документы Notion и задачи Linear за рабочий период, группирует ссылки по проектам и создаёт приватный документ Notion со сводкой SRED. CX Codex +1 2 200установок parallel-agents sentimony Скилл parallel-agents решает, можно ли запускать несколько единиц работы одновременно, и раздаёт их одной ограниченной волной агентов. CX Codex +1 2 600установок re0-work LilMGenius Скилл re0-work для Claude Code перезапускает проект с версии v0, перенося только проверенные контракты, тесты, схемы и негативный корпус. Запускается, когда архитектура завела проект в тупик. CX Codex +1 1 500установок parallel-task am-will Скилл parallel-task для Claude Code разбирает план разработки и поручает независимые задачи субагентам параллельно. Обрабатывает задачи по зависимостям и фиксирует ход работы. CX Codex +1 1 200установок work-with-pr code-yeongyu Скилл work-with-pr ведёт задачу от отдельного worktree до слитого PR: делит работу, запускает проверки и возвращается к исправлениям при сбое. CX Codex +1 786установок

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

Весь набор →
swarm-pr-feedback Скилл swarm-pr-feedback для автоматической обработки замечаний к pull request, падений CI и конфликтов слияния перед публикацией правок. CX Codex +1 ★ 539звёзд репо commit-pr Скилл commit-pr проверяет код перед пушем, создаёт конвенциональные коммиты и оформляет PR-описание. Включается при подготовке изменений к отправке. CX Codex +1 ★ 539звёзд репо test-file-split Скилл test-file-split разбивает разросшийся тест-файл на части по блокам describe(), когда тот подходит к лимиту в 500 строк или уже перевалил его. CX Codex +1 ★ 539звёзд репо fork-pr-operations Скилл fork-pr-operations инструктирует агента по работе с пулл-реквестами из форков: одобрение воркфлоу в GitHub Actions, безопасный rebase и сверка актуальности проверок CI. CX Codex +1 ★ 539звёзд репо design-docs Ведёт design-доки проекта: домен, техспеку, behavior-спеку, реестр section-ID и changelog. Запускается по заголовку [MODE: DESIGN_DOCS ...]. CX Codex +1 ★ 539звёзд репо orchestrating-subagents Скилл orchestrating-subagents для Claude Code задаёт правила декомпозиции задач: выбор моделей для ролей, параллельный запуск исследователей и независимую приёмку кода ревьюерами. CX Codex +1 ★ 539звёзд репо commit-pr Скилл commit-pr ведёт работу с коммитами и pull request: от подготовки публикации до проверки CI и завершения PR. Он пригодится при выпуске изменений по GitHub issue. CX Codex +1 ★ 539звёзд репо contributing Скилл contributing проводит агента по всему циклу пул-реквеста в репозитории opencode-swarm: ветка, формат коммитов, фрагмент release notes, локальные проверки и шаблон описания. CX Codex +1 ★ 539звёзд репо

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

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