/elon-algorithm:elon-algorithmfrom elon-algorithm
Runs Elon's algorithm on any artifact to aggressively simplify it: question requirements, delete non-essentials, and simplify survivors. Generates a reviewable cut-plan via agent swarm.
Ships in elon-algorithm. 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.
AI output is additive: it pads, hedges, over-explains, and invents requirements nobody asked for. Elon's algorithm is subtractive — the exact antidote. This skill runs it on any artifact and hands you a cut-plan to review.
(Steps 4–5, accelerate and automate, are about the factory, not the part — out of scope for a single-artifact pass.)
It clones the artifact first (the original is never touched), then runs four phases:
The output is a plan, not a blind rewrite — you review it and apply it as a diff/PR, staying in the loop at the deletion step where the human belongs.
The four phases above are the spirit of the algorithm, not a tool. How you run them depends on the size of the artifact:
When the target is one file or a small handful, you don't need the workflow — but the structural altitude still applies. The cross-file pass is moot with one file; questioning whether each section / block / requirement deserves to exist is not, and that's where the deepest cuts live. So attack structure before copy: default to deleting or merging whole sections, then simplify the survivors line-by-line. The failure mode is treating the existing structure as fixed and only trimming sentences inside it — a 1% pass, not an Elon pass. Then run the same clone → review → debate → judge shape with sub-agents directly (structural cuts first, then line-level; deletion gets the last word), no dynamic workflow.
This is the lighter, faster default for most "trim this one file/prompt/skill" asks.
When the target spans many files, invoke the bundled Workflow, which orchestrates the full fan-out deterministically:
Workflow({
scriptPath: "${CLAUDE_PLUGIN_ROOT}/workflows/elon-algorithm.js",
args: {
path: "<file OR directory/bundle to simplify>",
standardHint: "<the standard the artifact aspires to>"
}
})
path — a single file, or a whole directory/bundle (the bird's-eye pass handles multi-file artifacts). Use text instead for inline content with no file.standardHint (optional but high-leverage) — the taste/standard to judge against: a style rule, a skill's own doctrine, "every line must change agent behavior at a decision point", etc. The sharper the standard, the sharper the cuts.It returns { cloneRoot, proposals, plan } — plan.decisions (per-target verdict + confidence) and plan.addBackMenu. Hand that to a fresh agent to apply as a PR; don't burn your own context materializing edits.
The workflow is a starting point, not a black box. Copy workflows/elon-algorithm.js, tweak the lenses, the phases, or the prompts for your artifact, and run your version. The reusable shape is clone → review → debate → judge; everything else is tuning.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
simplification, bloat-removal, code-cleanup, ai-slop, refactoring
npx claudepluginhub nityeshaga/claude-code-essentials --plugin elon-algorithmOther plugins' skills for the same job