principle-the-algorithm
What it does
Gives the assistant a five-step method for bigger changes: question the requirement, delete, optimize, accelerate and automate. It is for engineers who want simpler, well-reasoned designs.
When to use it
- ✓When you are about to design a change bigger than a simple edit.
- ✓When a requirement seems to add complexity that may not be needed.
- ✓When you want to check whether a part can be deleted before you optimize it.
Skill link
https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Before we design this feature, challenge the requirements and tell me what we can delete.”
5 new skills a week. 1 minute to read.
How it works
The assistant questions the requirement first, then tries hard to delete parts or steps, then optimizes what remains, accelerates it, and automates last. Its reply names what was questioned and what was deleted.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Why does the order matter?
Each step is cheap only after the one before it, so optimizing something that should not exist wastes effort.
Can the assistant reject a requirement?
Yes. If the reasoning behind a requirement does not hold up, the skill says no is a valid outcome.
Where does the method come from?
The skill says it is adapted from Elon Musk's five-step engineering process.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #10949
- License
- —
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.