本文へスキップ
Skillpedia
一般的なプログラミング15k · #10949

principle-the-algorithm

できること

このスキルは、大きめの変更のための5段階の方法をアシスタントに与えます。要件を問う、削除する、最適化する、加速する、自動化する、の順です。より単純で理にかなった設計を求めるエンジニア向けです。

使う場面

  • ✓単純な編集より大きな変更を設計しようとしているとき。
  • ✓ある要件が、必要ないかもしれない複雑さを加えているように見えるとき。
  • ✓最適化する前に、ある部分を削除できるかを確認したいとき。

スキルのリンク

https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“この機能を設計する前に、要件に異議を唱えて、何を削除できるかを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

アシスタントはまず要件に問いを立て、次に部品や手順を削除しようと努め、残ったものを最適化し、加速し、最後に自動化します。返答では、何を問い、何を削除したかを明示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

The Algorithm

Five steps, in order, for any change bigger than an edit you can see at a glance. The order is the principle. Each step is cheap only after the one before it, and the common failure is doing a late step on something an early step would have removed. Adapted from Elon Musk's five-step engineering process.

  1. Make the requirements less dumb. Assume the requirement is wrong and make it less wrong. It comes from a person, not a department. "The ticket", "the linter", "the reviewer", or "the old code did it" is a source, not a reason; find the person and their reasoning. If you do not agree with the reasoning, do not accept the requirement, however smart the person who gave it, the human included. No is a valid outcome.
  2. Delete the part or process step. Try hardest to delete the part, flag, layer, retry, or step entirely before touching step 3. Optimizing something that should not exist is the biggest mistake smart people make. If you never add anything back, you did not delete enough. Leaf: pstack principle-subtract-before-you-add.
  3. Optimize what survived. Third step, not first. Have one part do many things instead of a parallel copy per caller. Look hardest at boundaries between owners and layers, where a wrapper wraps a wrapper. Leaves: pstack principle-laziness-protocol, principle-minimize-reader-load.
  4. Accelerate. Be the part: walk one change through edit, build, check, and review yourself and note where you wait, crawl, or bounce. Tighten that. Leaf: pstack principle-sequence-verifiable-units.
  5. Automate last, or you automate something that should not exist. Volume alone does not justify it; precision and reviewability do. pstack principle-build-the-lever still applies. It runs on what survived.

Run it again. This is not a one-time gate. Rerun it on the result before you ship; the second pass deletes more.

The tell. A citation of this principle names the requirement you made less dumb, who owned it, and what you deleted. A citation with neither means you skipped it.

よくある質問

順序が重要なのはなぜですか?

各段階は前の段階の後でのみ安くなるため、存在すべきでないものを最適化すると努力が無駄になります。

アシスタントは要件を却下できますか?

はい。要件の根拠が成り立たない場合、「いいえ」も有効な結論だとスキルは述べています。

この方法はどこから来ましたか?

スキルは、Elon Muskの5段階のエンジニアリングのプロセスを基にしていると述べています。

詳細

作者による元の説明

Apply to any non-trivial change before designing it. Make the requirement less dumb, delete, optimize, accelerate, automate, in that order, then run it again on the result. The reply names the requirement you questioned and what you deleted.

repo: cursor/plugins

人気

GitHubのスター
15k
ランキング
#10949
ライセンス
—
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル