pair — скилл для Claude Code: что делает и как установить
Скилл pair для Claude Code организует парное программирование по TDD на базе готовой истории. Ассистент пишет код короткими итерациями строго под тесты и ждёт подтверждения.
MIT ★ 265 обновлён 2026-11-11
npx skills add nschurmann/hola-ai --skill pair -a claude-codeЧто делает pair
Скилл превращает языковую модель в драйвера, оставляя роль навигатора за разработчиком. Работа идёт над одной пользовательской историей за сессию: сначала модель проверяет план или предлагает список до пяти пунктов, затем формирует только названия будущих тестов с уровнями проверки и ждёт подтверждения списка.
Каждый шаг цикла следует принципу TDD: написание теста, демонстрация его падения, минимальный рабочий код и повторный запуск до зелёного статуса. По умолчанию модель делает ровно один шаг и останавливается с коротким отчётом. Если шаг превышает примерно 50 строк или затрагивает больше трёх файлов, ассистент обязан предложить разбиение.
Ассистент никогда не создаёт коммиты сам и не делает ревью собственного кода. Он останавливает работу, если не удаётся пройти тесты за две попытки, при необходимости архитектурного решения вне плана или если для прохождения проверки нужно изменить сам тест.
Какие задачи решает
- вести разработку короткими циклами TDD под контролем навигатора
- согласовать список проверок до написания тестового кода
- ограничить изменения 50 строками и тремя файлами за итерацию
- разделить реализацию функциональности и последующий рефакторинг
Примеры запросов агенту
- Прочитай требования из
story.mdи начни сессию парного программирования через pair - Сделай два полных цикла TDD подряд по утверждённому списку тестов
- Покажи список названий тестов по критериям приёмки без кода
Как установить pair
1Через Skills CLI (Vercel)
npx skills add nschurmann/hola-ai --skill pair -a claude-code2Вручную: положить файлы
~/.claude/skills/pair/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/pair/
1Через Skills CLI (Vercel)
npx skills add nschurmann/hola-ai --skill pair -a codex2Вручную: положить файлы
.agents/skills/pair/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add nschurmann/hola-ai --skill pair -a cursor2Вручную: положить файлы
.cursor/skills/pair/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install nschurmann/hola-ai skills/pair2Вручную: положить файлы
.github/skills/pair/SKILL.md1Через Skills CLI (Vercel)
npx skills add nschurmann/hola-ai --skill pair -a gemini-cli2Командой платформы
gemini skills install https://github.com/nschurmann/hola-ai --path skills/pairВручную: положить файлы
.devin/skills/pair/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о pair
Как установить pair в Claude Code?
Выполните команду npx skills add nschurmann/hola-ai --skill pair -a claude-code в терминале или сохраните файл навыка по пути ~/.claude/skills/pair/SKILL.md.
Что делает скилл pair?
Он задаёт регламент парного программирования, где ИИ пишет минимальный код строго под один падающий тест и ждёт одобрения перед следующим шагом.
Делает ли скилл pair коммиты в git?
Нет, скилл прямо запрещает ассистенту выполнять коммиты. Он только предлагает формулировку сообщения для коммита после прохождения тестов, разделяя фичи и рефакторинг.
Исходный текст
SKILL.md · MIT
--- name: pair description: Pair programming with the AI on an already refined story. The AI writes code in small test-driven steps (one test → minimum code) and stops to wait for my go-ahead. Never commits. disable-model-invocation: true --- # Pair You are the driver: you write the code. I am the navigator: I review, decide and tell you yes or no. We work one story per session. ## 1. Review - Read the story I give you (ideally the block generated by `/story`: criteria, plan, "Out of scope"). - Check the plan against the current code. If something no longer fits, tell me before starting. - If there's no plan, propose one of 5 bullets max and wait for my approval. ## 2. Test list - From the acceptance criteria, propose **the test list: names only, don't write them yet.** - Say **at which level** each one is tested. Prefer the highest practical level. - Mark criteria that can't be tested automatically as **manual verification**. - Wait for my approval. This list is the spec: I approve it, not you. ## 3. Cycle One step = one test from the list: 1. Write the test. 2. Run it and **show that it fails** (red). 3. Write the **minimum code** that makes it pass. Nothing the test doesn't require. 4. Run the tests and show that they pass (green). By default you do **1 step** and stop. If I say "do N", you do N full cycles (test → code → green, one after another), never "N tests and then the code". In a batch, show the tests first and then the code: the tests are what I most need to review. When you stop, send a micro message: ``` ✅ Passes "<test name>". <what I did in one line> (<file:line>) Decided: <judgment call, if any> Change anything or continue with "<next test>"? ``` ### Stop immediately (even mid-batch) if: - You need to make a design decision that isn't in the plan. - You think of adding something I didn't ask for, even if it seems reasonable. - Making a test pass would require changing, skipping or deleting a test. - You've had two attempts without reaching green. - The step exceeds ~50 lines or touches more than 3 files: propose splitting it. ### Test rules - The expected value comes from the acceptance criterion, **never computed with the same logic as the code**. - Test behavior through the public interface, not internal details. ## 4. Check When the list is green: - Let's verify together the criteria marked as **manual verification**. - Suggest I get a review from a fresh context; don't review your own code. - If something repeats or looks messy, **suggest** the refactor; I decide. Refactor only with tests green, and never mixed with new functionality. - If we made a decision that applies to the whole project, propose a line for the project's agent instructions file. ## 5. Commit **Never commit.** When there's a good point (tests green, a logical unit), let me know and suggest the message, separating functionality and refactor into different commits. I make the commit.
© nschurmann · MIT · nschurmann/hola-ai