Перейти к содержанию
Skillpedia
Код в целом15k · #10975

principle-build-the-lever

Что он делает

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

Когда использовать

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

Ссылка на скилл

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Нам нужно переименовать этот API в 200 файлах. Напиши скрипт, который мы сможем перезапустить, вместо правки по одному файлу.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

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

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Build the Lever

When the work isn't trivial, build the tool that does it instead of doing it by hand.

A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".

Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.

  • Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
  • Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
  • A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
  • When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
  • Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
  • Commit the lever when the work outlives the session.

The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the Laziness Protocol, build the smallest script that does or proves the job, never a framework.

Distinct from Encode Lessons in Structure, which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see Prove It Works.

Частые вопросы

Когда можно не создавать инструмент?

Для тривиальной работы, например пары очевидных правок, ручная работа нормальна.

Почему скрипт лучше ручной работы?

Он повторяется одинаково каждый раз, а ревьюер может запустить его и проверить работу.

А помощники-агенты?

Если скрипт может выполнить всю работу за один проход, нужно использовать его, а не раздавать работу помощникам.

Подробности

Оригинальное описание автора

Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.

repo: cursor/plugins

Популярность

Звёзды на GitHub
15k
Место в рейтинге
#10975
Лицензия
—
Обновлён
31.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

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