Разработка маленькими шагами

Строит ПО небольшими проверяемыми шагами – одно изменение, запуск, commit, дальше – держит приложение рабочим на каждом шаге и аккуратно восстанавливается, когда шаг что-то ломает. Используйте при многошаговой реализации фичи или приложения вместе с агентом.

ВайбкодингПак: Вайбкодинг68 строкsmall-steps-builder

Установка

Выполните одну команду — она сохранит SKILL.md в папку скиллов агента. Перезапустите агента, и он подхватит скилл сам.

Claude Code — macOS, Linux
mkdir -p ~/.claude/skills/small-steps-builder && curl -fsSL https://anymodel.org/en/skills/vibe-coding/small-steps-builder/SKILL.md -o ~/.claude/skills/small-steps-builder/SKILL.md
Codex, Cursor — macOS, Linux
mkdir -p ~/.agents/skills/small-steps-builder && curl -fsSL https://anymodel.org/en/skills/vibe-coding/small-steps-builder/SKILL.md -o ~/.agents/skills/small-steps-builder/SKILL.md
Claude Code — Windows PowerShell
New-Item -ItemType Directory -Force "$HOME\.claude\skills\small-steps-builder" | Out-Null; Invoke-WebRequest https://anymodel.org/en/skills/vibe-coding/small-steps-builder/SKILL.md -UseBasicParsing -OutFile "$HOME\.claude\skills\small-steps-builder\SKILL.md"
Codex, Cursor — Windows PowerShell
New-Item -ItemType Directory -Force "$HOME\.agents\skills\small-steps-builder" | Out-Null; Invoke-WebRequest https://anymodel.org/en/skills/vibe-coding/small-steps-builder/SKILL.md -UseBasicParsing -OutFile "$HOME\.agents\skills\small-steps-builder\SKILL.md"

Другой агент: сохраните файл в его папку скиллов или дайте ему ссылку на файл: https://anymodel.org/en/skills/vibe-coding/small-steps-builder/SKILL.md

SKILL.md

Исходник

Small Steps Builder

Large unverified changes are the main way agent-built projects rot. Work in increments where each one is small, runs, and is saved before the next begins.

The loop

Repeat for every step:

  1. Pick the next smallest change that adds one visible behavior. If the plan step is bigger than roughly 50 to 100 changed lines or touches more than 3 files, split it.
  2. State the change and the check in one or two lines before editing: "Add the /health route; check: curl returns 200".
  3. Make only that change. Do not tidy unrelated code on the way.
  4. Run it. Use the strongest check available, in this order: automated tests, the type checker or linter, starting the app and exercising the feature, reading the output. "It compiles" is not a check for behavior.
  5. If the check passes, commit (agree once at the start that you will commit after each green step) with a message describing the one change. If the project is not a git repo, ask the user whether to initialize one.
  6. Tell the user in one line what now works, then move to the next step.

Keep it runnable

  • The main branch state after every commit must start and pass existing tests.
  • Prefer a thin working slice over finished layers: one route that reads from the real database beats a complete data layer with no route.
  • Stub what is not built yet (a fixed response, a TODO screen) so the app still runs, and list stubs so they are not forgotten.
  • Add a test with the feature when the behavior is core or easy to get wrong. A smoke test that boots the app is worth adding at step 1.
  • Do not install a dependency mid-step without telling the user why. One dependency per step, committed with the step that uses it.

When a step breaks things

  1. Stop adding code. Read the actual error output completely.
  2. Check what changed: git status and git diff. The cause is almost always inside the current step.
  3. If the fix is obvious and small, fix it and rerun the same check.
  4. If a second attempt fails, stop guessing. Revert only the current step's changes with git restore <files> for tracked files you changed in this step, or git stash to keep them aside. Confirm with the user before discarding work they might want, and never run a hard reset without asking.
  5. Retry the step in a smaller form: first the part that works in isolation, then the integration.
  6. If three attempts fail, report: what you tried, the exact error, and your best hypothesis. Ask for direction instead of changing approach silently.

Commit hygiene

  • One logical change per commit. Message in imperative mood: "add login form validation".
  • Never commit secrets, .env files, build output or the dependency folder. Check git status before staging and add a .gitignore early.
  • Stage files by name instead of adding everything when untracked files you did not create are present.
  • Do not push unless the user asked for it.

Example of a good step sequence

1. app boots and GET /health returns 200            check: curl -i localhost:3000/health
2. create the notes table and a migration           check: migration runs on an empty database
3. POST /notes stores a note                        check: test posts one and reads it back
4. GET /notes lists notes                           check: test with zero and with three notes
5. notes page renders the list                      check: open the page, see three notes

Each line is one commit. If a line needs the word "and" between two behaviors, split it.

Pitfalls

  • Batching: "I'll do steps 3, 4 and 5 together" is how bugs become impossible to locate. Do not.
  • Fixing a failing test by weakening it. Fix the code, or tell the user the test expectation looks wrong.
  • Leaving the app broken at the end of a turn. If you must stop mid-step, revert to the last working commit state or leave a clear note about what is half-done.
  • Declaring success without running the check. Say what you ran and what it printed.

Report back

After each step: the change, the check you ran and its result, the commit message, and the next step. After a failed step: the error, what you reverted, and what you need.

Source: AnyModel skills catalog · License: CC BY 4.0

Подключить через AnyModel API

Скилл работает на той модели, которую использует агент. Подключите Claude Code, Codex или Cursor к AnyModel и запускайте его на Claude, GPT, Gemini и других моделях по одному ключу — оплата за токены, без подписки.

Ещё из пака Вайбкодинг

Спецификация перед кодом

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

Карта незнакомого репозитория

Быстро составляет карту незнакомого репозитория и выдаёт короткий документ-ориентир: точки входа, команды сборки, запуска и тестов, роли директорий, поток запросов и данных, ключевые абстракции и подводные камни, со ссылками на файлы. Используйте, когда пользователь впервые видит репозиторий или спрашивает, как устроен код.

От прототипа к продакшену

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

Полировка интерфейса

Исправляет типичные проблемы интерфейсов, собранных ИИ: неровные отступы, отсутствующие состояния «пусто», «загрузка» и «ошибка», поломанную вёрстку на телефоне, слабый фокус и контраст, вылезающий за границы текст, разнобой в кнопках; проверяет скриншотами на 390px и 1440px. Используйте, когда UI работает, но выглядит сыро.

Безопасный рефакторинг

Рефакторит код без изменения поведения: сначала фиксирует поведение тестами, делает мелкие механические шаги, гоняет тесты после каждого, держит refactor-коммиты отдельно от изменений поведения и останавливается, если объём растёт. Используйте, когда просят почистить, перестроить, переименовать или упростить код.