/elon-musk-algorithm-skills:musk-algorithmfrom elon-musk-algorithm-skills
Applies Elon Musk's 5-step engineering algorithm (question requirements, delete, simplify, accelerate, automate) in strict order for reviewing, auditing, cleaning up, or restructuring existing systems.
Ships in elon-musk-algorithm-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Engineering decision framework derived from Elon Musk's 5-step algorithm, as articulated during the 2021 Starbase tour with Tim Dodd and curated in The Book of Elon by Eric Jorgenson (Simon & Schuster, 2026).
Scope: Primarily for reviewing and cleaning up existing systems. The algorithm's natural verbs (delete, simplify, accelerate, automate) assume something already exists. For greenfield application building, apply with translation (see below). For function-level coding behavior, pair with andrej-karpathy-skills.
Tradeoff: This framework biases toward deletion over preservation, and toward order over speed. For trivial tasks, use judgment.
Order is mandatory. Do not advance to a later step until the earlier steps are visibly complete in the conversation or diff. Optimizing or automating something that should not exist is the most common engineering failure. Each step skill has a Gate section that enforces this.
Execute in strict order. Each step is its own skill. Follow the wiki links.
When invoked, do the following in order:
The framework is working if:
This algorithm originated in hardware (rockets, cars, factories). For software, data, and AI work, "part" maps to feature, endpoint, table, column, service, dependency, config flag, document, meeting, or role. Deleted code can hide invariants. The translation requires care, which is why steps 1 and 2 demand explicit attribution and invariant identification.
For new application building (no existing system to review), the algorithm shifts emphasis:
| Step | Greenfield meaning |
|---|---|
| 1. Question requirements | Where 80% of the value lives. Refuse every feature without a named owner. |
| 2. Delete parts | "Default to no". Reject speculative abstractions and unrequested features before they exist. |
| 3. Simplify | Build the simplest thing that solves the named requirement. |
| 4. Accelerate | Not applicable until v1 exists and there is a measurable cycle. |
| 5. Automate | Not applicable until the system has been operated manually long enough to surface edge cases. |
For greenfield, only steps 1, 2, and 3 are actively useful. Steps 4 and 5 wait until you have an operational system.
This framework operates at the feature and system level (what to build, what to cut, what to automate). For function-level coding behavior (when Claude is actually writing code), pair with andrej-karpathy-skills. They do not conflict; they operate at different granularities.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wezendy/elon-musk-algorithm-skills --plugin elon-musk-algorithm-skills6 skills in this plugin
/musk-step-1-question-requirementsStep 1 of the Musk algorithm. Question every requirement and demand a named human originator. Applies to BOTH brownfield (reviewing existing requirements) and greenfield (evaluating new requirements before building). Use whenever the user introduces a requirement, constraint, policy, or "we need to" statement. Trigger on phrases like "we need to", "the requirement is", "compliance says", "best practice is", "the team wants", "X is required because", "should we build X", "do we need this feature", or any rule or feature request that lacks a clear named owner. Also trigger as the first step when the [[musk-algorithm]] overview is invoked./musk-step-2-delete-partsStep 2 of the Musk algorithm. Delete aggressively. PRIMARILY BROWNFIELD - use whenever the user is reviewing an existing system, codebase, process, set of features, dashboard, document collection, or any inventory of accumulated parts. Trigger on phrases like "clean this up", "we have too many", "should we keep", "is this still used", "let's prune", "what can we remove", or any review of accumulated complexity. The 10% add-back rule is the calibration signal. GREENFIELD ANALOG - "default to no" on every speculative abstraction, configurability hook, or feature that lacks a named requirement from step 1. Requires [[musk-step-1-question-requirements]] to be complete first./musk-step-3-simplify-optimizeStep 3 of the Musk algorithm. Simplify and optimize what survived deletion. Applies to BOTH brownfield (simplify existing survivors) and greenfield (build the simplest thing that works). Use whenever the user wants to optimize performance, refactor code, reduce complexity, improve a DAX measure, tune a query, restructure a pipeline, or choose the simplest viable implementation for a new feature. Trigger on phrases like "optimize this", "make this faster", "refactor", "simplify", "clean up", "reduce complexity", "improve performance", or "build the simplest version". Requires [[musk-step-1-question-requirements]] and [[musk-step-2-delete-parts]] to be complete first. This is the most common entry point where engineers want to skip ahead; refuse./musk-step-4-accelerate-cycle-timeStep 4 of the Musk algorithm. Accelerate cycle time on what survived simplification. BROWNFIELD ONLY. Requires an existing, operational process with measurable cycle times. Not applicable to greenfield work where no cycle exists yet. Use whenever the user wants to reduce latency, shorten build/deploy time, speed up an existing pipeline, reduce time-to-insight on an established workflow, or compress any measured feedback loop. Trigger on phrases like "make this faster", "reduce cycle time", "speed up", "shorten the loop", "reduce latency", "less waiting", or "compress this process". Requires steps 1, 2, and 3 to be complete first./musk-step-5-automateStep 5 of the Musk algorithm. Automate only what survived steps 1 through 4. BROWNFIELD ONLY. Requires the target process to have been operated manually long enough to surface edge cases. Not applicable to greenfield work; for new applications, design for manual operation first, automate later. Use whenever the user wants to automate an existing manual task, build a workflow, create an N8N/Make/Zapier flow, write a script for an established repetitive process, or replace proven manual work with code. Trigger on phrases like "let's automate this", "build an automation for", "create a workflow", "script this", "make this run on a schedule", or "the AI should handle this automatically". The Fremont rule applies - automating too early is the costliest engineering mistake. Requires steps 1 through 4 to be complete first.Other plugins' skills for the same job