Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/blutrich/musk-algo-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/blutrich/musk-algo-plugin/musk-algo)<a href="https://agentmods.dev/commands/blutrich/musk-algo-plugin/musk-algo"><img src="https://agentmods.dev/badge/commands/blutrich/musk-algo-plugin/musk-algo/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/blutrich/musk-algo-plugin/musk-algo"><img src="https://agentmods.dev/badge/commands/blutrich/musk-algo-plugin/musk-algo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.03207 |
| Opus 5 | $0.00016 | $0.01604 |
| Sonnet 5 | $0.00007 | $0.00641 |
| Haiku 4.5 | $0.00003 | $0.00321 |
Grade A, and why
musk-algo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Musk Algo — Repo Flow Analyzer
Analyze the repo at $ARGUMENTS through two lenses:
- Musk's 5-Step Algorithm — find what shouldn't exist at all
- Theory of Constraints (Goldratt) — find what's slowing the entire system
Produce a deep, specific, actionable report with before/after examples and a prioritized roadmap. If $ARGUMENTS is empty, ask the user which repo path to analyze.
Phase 0: Repo Intake
Build a map of the repo before diving in:
# Structure
find <repo> -type f | grep -v node_modules | grep -v .git | grep -v dist | grep -v __pycache__ | head -100
# LOC by file
find <repo> -type f | grep -v node_modules | grep -v .git | xargs wc -l 2>/dev/null | sort -rn | head -30
# Dependency files
find <repo> -name "package.json" -o -name "requirements.txt" -o -name "Cargo.toml" -o -name "pom.xml" -o -name "go.mod" | grep -v node_modules
# Git depth
cd <repo> && git log --oneline | wc -l 2>/dev/null
# Largest files
find <repo> -type f -not -path "*/node_modules/*" -not -path "*/.git/*" | xargs ls -la 2>/dev/null | sort -k5 -rn | head -20
Build a mental model: project type, languages, scale (LOC, files, deps), activity (commits).
Detect repo type before choosing the scan depth
Some repos are 95% code. Others (Claude Code plugins, prompt libraries, documentation sites) are 95% markdown with a small code sidecar. The Musk/Goldratt lens still applies to prompt-heavy repos, but the scans in Phase 1 need to shift:
# What's the dominant file type?
find <repo> -type f -not -path "*/node_modules/*" -not -path "*/.git/*" -not -path "*/dist/*" \
| sed 's/.*\.//' | sort | uniq -c | sort -rn | head -10
If .md dominates, treat prompts/skills as the "code" — scan them for stale references, half-finished renames, duplicated instructions, and sections that no longer match the current architecture. Tell the user explicitly: "This is a prompt-heavy repo, I'm shifting to a content-audit lens."
Tracked-artifact scan (things that shouldn't be in git at all)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 261 lines · 33 tokens per session scan A f8f75704deab
musk-algo is a command published in the GitHub repository blutrich/musk-algo-plugin (2 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 3,207 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
qa-changes
This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
fix
Universal debugging and fix application with semantic code analysis.
doctor
Badi configuration validation. Checks all Badi components and produces a diagnostic report.
http-service
Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.
gh-issue-use-cypress
Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.