360 Secure SkillHub
360 安全技能中心

principle-build-the-lever

该 Skill 是一条开发实践原则:面对编辑、迁移、分析或检查等非琐碎工作,应构建可重复运行的脚本、codemod、生成器或代理技能,并先手工完成一个单元再验证工具;仅少量明显编辑可跳过。它不提供具体脚本或命令。

分类:开发
cursor
热度 48.82
最近更新 2026-11-17 11:40:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cursor/plugins/principle-build-the-lever
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
principle-build-the-lever
description
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.
disable-model-invocation
true

Build the Lever

When the work isn't trivial, build the tool that does it (a codemod, script, generator, or rerunnable check) instead of doing it by hand. The bar is triviality, not repetition. Skip the tool only for a couple of obvious edits.

  • Do the first unit by hand, then build the tool and prove it by rerunning it on that unit. Make it safe to rerun.
  • A deterministic tool beats fan-out. When you do fan out, write the recipe, the verification contract, and the fences as one skill the delegates read and cannot edit.
  • Applying this produces a file. No script, codemod, generator, or delegate skill in the diff means you didn't apply it. Commit it when the work outlives the session.
  • Build the smallest script that does or proves the job, never a framework.