principle-the-algorithm

Apply a five-step engineering process to eliminate wasteful requirements before designing solutions.

15.8k|1.6k|Updated Jan 23, 2026
Ready to run
npx skills add https://github.com/cursor/plugins --skill principle-the-algorithm-cursor
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: principle-the-algorithm
Source: https://github.com/cursor/plugins/tree/main/dyl-stack/skills/principle-the-algorithm
Command: npx skills add https://github.com/cursor/plugins --skill principle-the-algorithm-cursor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill addresses the common mistake of optimizing or automating requirements that should not exist. By systematically questioning, deleting, optimizing, accelerating, and automating—in that order—you avoid wasting effort on flawed foundations. ## Core Features & Use Cases - Make requirements less dumb: Question the requirement's source and reasoning; push back on unclear directives. - Delete before optimizing: Remove unnecessary parts, flags, layers, or steps entirely rather than refining them. - Optimize, then accelerate, then automate: Only optimize what survived deletion; tighten feedback loops before automating volume. - Use Case: You receive a ticket to add caching to a database query. Before implementing, you run the algorithm: discover the query itself is redundant (step 1), delete the feature entirely (step 2), and close the ticket without writing code. ## Quick Start When facing any non-trivial change, name the requirement you questioned, explain what you deleted, and document which of the five steps removed it.

Frequently Asked Questions about principle-the-algorithm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the correct order of the five steps?▼

The order is mandatory: make requirements less dumb, delete, optimize, accelerate, automate. Each step is cheap only after the one before it; doing them out of order wastes effort optimizing things that should not exist.

How do I question a requirement if it came from my manager or a ticket?▼

Find the person behind the requirement and ask for their reasoning. Understand the actual problem they are trying to solve, not just the stated solution. If the reasoning does not hold up, no is a valid outcome.

When should I rerun the algorithm?▼

Rerun it on the result before you ship. The second pass typically deletes more and catches optimizations that became unnecessary after the first round of deletion.

What does it mean to delete a part or process step?▼

Deletion means removing the feature, flag, layer, retry logic, or workflow step entirely. If you never add anything back, you did not delete enough. This is the highest-impact step.

How do I know if I have skipped the algorithm?▼

A proper citation names the requirement you made less dumb, who owned it, and what you deleted. A citation with neither means you skipped the process and moved straight to implementation.