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

coding · vicotrbb — скилл для Claude Code: что делает и как установить

Скилл coding для Claude Code задаёт строгие правила изменения исходного кода. Включается перед написанием, рефакторингом, правкой багов или код-ревью в любом проекте.

Apache-2.0 ★ 121 обновлён 2026-11-17

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

Что делает coding

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

В инструкциях заложен жёсткий лимит: после трёх неудачных попыток починить баг агент обязан остановиться, признать ошибочность гипотезы и запросить контекст. Любой результат требует свежих доказательств — вывода команды сборки, статуса прогона тестов или наглядного отчёта о поведении программы.

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

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

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

  • Используй правила coding и исправь ошибку авторизации в auth.ts
  • Поправь генерацию отчётов согласно скиллу coding, не раздувая дифф
  • Проведи рефакторинг обработчика заказов по правилам coding

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

1Через Skills CLI (Vercel)

npx skills add vicotrbb/cubebot --skill coding -a claude-code

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

~/.claude/skills/coding/SKILL.md

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

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

Вопросы о coding

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

Выполните команду npx skills add vicotrbb/cubebot --skill coding -a claude-code. Файл инструкции запишется в ~/.claude/skills/coding/SKILL.md.

Что делает скилл coding?

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

Когда не нужно подключать этот скилл?

Скилл не нужен, если вы просите модель просто объяснить фрагмент кода, который не планируете менять или редактировать.

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

SKILL.md · Apache-2.0
---
name: coding
description: How to change software so the change works and stays small. Load this before writing, fixing, refactoring, reviewing or debugging code in any language, including scripts, tests, configuration and build files, even for a change that looks like one line. Not needed to explain code you will not touch.
---

# Coding

You own the outcome, not the diff. A change is finished when you have watched it work, and the next reader can see why every line is there.

## Before you change anything

1. **Restate the goal as something you can check.** "Fix the login bug" becomes "signing in with an expired session redirects to /sign-in, and this test proves it". If you cannot write that sentence, you do not understand the task yet.
2. **Read the code you will touch and its callers.** Look for how this codebase already does the thing: a helper, a pattern, a naming habit. Find the project's own instructions and quality gate (README, CONTRIBUTING, justfile, Makefile, package scripts, CI config) and follow them.
3. **When something is unclear,** state your assumption and carry on if the work is easy to undo. Stop and ask only when the choice is irreversible, reaches outside the project, or two readings would produce very different work.

## While you change it

- **Do what was asked and only that.** Every changed line should trace back to the request. If you notice something else that is wrong, mention it rather than fixing it in passing.
- **Write the least code that fully solves the problem.** No option, abstraction, wrapper or configuration that this task does not use. A helper with one caller is usually just indirection. If it came out at 200 lines and could be 50, rewrite it.
- **Reach for what exists first:** this codebase, then the standard library, then a dependency already installed. Add a new dependency only when writing it yourself would be the larger risk, and pin it the way the project does.
- **Match the surrounding code:** its naming, layout, error style and comment density, even where you would have chosen differently.
- **Clean up only your own mess.** Remove the imports and helpers your change orphaned. Leave existing dead code, and never revert or reformat work you did not do.
- **Let failures show.** No catch-all handler, silent fallback, retry that hides an error, or type escape to quiet a compiler. Handle the errors you can act on and let the rest surface with their cause.
- **Comment why, not what,** and only where the code cannot say it. A known limit you are accepting gets a comment saying what the limit is and when to lift it.
- **Never cut these to save effort:** input validation at trust boundaries, authorization, secrets kept out of code and logs, and anything that could lose someone's data. Use parameterized queries, never string-built ones.

## Fixing a bug

Do not guess. Guess-and-patch is how a one-hour bug becomes a three-day one.

1. **Read the whole error,** including the stack trace and any earlier warning.
2. **Reproduce it,** ideally as a failing test. If you cannot reproduce it, say so and gather evidence; do not ship a theory.
3. **Trace it to where the bad value starts,** not where it crashes. Check what changed recently.
4. **Form one hypothesis and test it with one change.** Fix the cause once, in the shared code, after checking everything that calls it.
5. **After three failed fixes, stop.** Three misses mean your model of the system is wrong. Go back to the evidence, question the design, and tell the person what you have learned.

## Tests

- A test you have never seen fail proves nothing. Watch it fail for the expected reason first. For a regression test, undo the fix and confirm it goes red.
- Test behaviour through the public surface, using real collaborators where you can. A test that only asserts your mock was called is checking the mock.
- Add a test for new logic: a branch, a loop, a parser, anything touching money or security. Trivial changes need none.
- Never weaken, skip or delete a test to get to green unless it is genuinely wrong, and say so when you do.

## Before you say it is done

Claims need evidence you gathered just now:

| Claim                          | What proves it                                             |
| ------------------------------ | ---------------------------------------------------------- |
| Tests pass                     | The test command's output, this run, showing zero failures |
| It builds or type-checks       | That command's exit status, this run                       |
| The bug is fixed               | The reproduction now passes, and failed before the fix     |
| The feature works              | You ran it and saw the behaviour, not only its tests       |
| The other agent or tool did it | You read the resulting diff or output yourself             |

Run the project's whole gate, not just your new test, and read your own diff as a stranger would: anything unrequested, anything left over, anything you would question in review?

Then report plainly: what changed, what you ran and what it showed, what you did not check, and any risk the person should know. If a check failed or could not run, say that in the first line. "Should work" is not a result.

## When you are stuck

If you are re-reading the same files or retrying the same command without learning anything, you are not making progress. Change approach, or report what you tried and exactly what stopped you. Finish or explicitly drop every step you started; never leave work silently half done.

© vicotrbb · Apache-2.0 · vicotrbb/cubebot

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — coding от других авторов.

coding davidkiss Скилл coding для Claude Code задаёт общие правила разработки и подключается к задачам по написанию, рефакторингу и проверке кода. Он также требует проверять изменения перед завершением работы. CX Codex +1 394установок general-best-practices Mindrally Скилл general-best-practices для Claude Code задаёт агенту свод правил по качеству кода, тестам, безопасности и архитектуре. Помогает ИИ писать код в одном стиле во всём проекте. CX Codex +1 840установок refactor-project FradSer Скилл refactor-project для Claude Code, Codex, Cursor и других агентов запускает автоматический рефакторинг сразу по всем файлам проекта. Находит дубли, выравнивает стиль и убирает устаревший код за один прогон. CX Codex +1 122установок coding-standards affaan-m Скилл coding-standards для Claude Code задаёт правила именования, неизменяемости и простого кода. Его включают при ревью и рефакторинге. CX Codex +1 7 900установок principal-engineering riekelt Скилл principal-engineering задаёт строгие инженерные правила перед правками: запрещает заглушать ошибки, требует чекпоинт рисков и проверку работы реальным кодом, а не догадками. CX Codex +1 25 700установок improve-code-quality wondelai Скилл improve-code-quality для Claude Code и Codex ведёт проект от непротестированного прототипа к стабильному релизу. Пошаговый план фиксирует тесты, долг и архитектурные решения прямо в папке docs/. CX Codex +1 2 700установок gjalla-debug gjalla Скилл gjalla-debug для поиска первопричины бага с доказательствами до того, как агент предложит исправление. Работает с Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. CX Codex +1 357установок

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

create-room-or-team Скилл create-room-or-team для Claude Code помогает спланировать комнаты и команды агентов и отправить запросы на создание. Он включается, когда нужно объединить агентов или распределить работу между ними. CX Codex +1 ★ 121звёзд репо design Скилл design для Claude Code помогает проектировать интерфейсы и проверять их перед выпуском. Он подключается при создании или изменении видимых пользователю экранов, а также при разборе дизайна. CX Codex +1 ★ 121звёзд репо build-app Скилл build-app для Claude Code собирает веб-приложения, которые открываются в консоли рядом с диалогом. Он подключается к запросам на дашборды, трекеры, формы и инструменты. CX Codex +1 ★ 121звёзд репо create-agent Скилл create-agent для Claude Code помогает спроектировать агента и оформить запрос на его создание. Он включается, когда нужно создать, переименовать агента или изменить его cube. CX Codex +1 ★ 121звёзд репо

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

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