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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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.
- 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.
- 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. - 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. - 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. - Automate last, or you automate something that should not exist. Volume alone does not justify it; precision and reviewability do. pstack
principle-build-the-leverstill 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
コメント
- …
このリポジトリの他のスキル
advisor
15k重要な判断の前や、エラーで行き詰まったときなど、要所でより強力な第二のモデルに相談させます。機能をオンにしている場合のみ動きます。
check-agent-compatibility
15kAIコーディングエージェントがリポジトリを起動し、検証し、文書化できるかを包括的に確認し、主な問題とともに1つの互換性スコアを返します。
cli-for-agents
15kAIエージェントがプロンプトなしで実行でき、わかりやすいヘルプ文と例を備えるように、コマンドラインツールを設計または確認する方法をエージェントに教えます。
continual-learning
15k過去のチャットを確認する作業を専用のメモリ更新エージェントに任せることで、AGENTS.mdのメモを最新に保ちます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。