smimd
Evaluate a codebase for parallelism opportunities — SIMD lanes, SWAR bit-tricks, MIMD/thread-level data parallelism, and the algorithm or data-structure…
Skill by folkengine
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/folkengine-smimd
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend, data, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/smimd
What's inside
- Skill name
smimd- Description
- Evaluate a codebase for parallelism opportunities — SIMD lanes, SWAR bit-tricks, MIMD/thread-level data parallelism, and the algorithm or data-structure changes that beat all three — ranked by payoff-per-risk against fixed anchors and written as a standardized, re-runnable audit in the repo's docs folder (PARALLELISM_AUDIT.md). Use when the user types `/smimd` or `/smimd <target>`, or asks "where could SIMD help", "find vectorization opportunities", "can we parallelize this", "hot loop audit", "should this use rayon/threads", "SWAR opportunities", "why is this loop slow / can it go wide" — even if they never say smimd. Do NOT trigger for implementing an already-identified optimization (regular coding), dependency entanglement (/untangle), API design (/reusability), or kernel purity (/domain-kernel). Analysis only — never applies optimizations.
- License
- Apache-2.0
- Instructions
- 139 lines in SKILL.md · view on GitHub
Files (4)
- DESIGN.md
- SKILL.md
- pattern-catalog.md · references/
- report-template.md · references/
SKILL.md (first lines)
# /smimd Survey a codebase's hot paths for places where SIMD, SWAR, MIMD, or — just as importantly — an algorithm/data-structure change would pay off, and write the findings as a standardized audit. The question the audit answers: **where would going parallel actually pay, and what cheaper change beats it there?** Inspired by Mitchell Hashimoto's ["Everyone Should Know SIMD"](https://mitchellh.com/writing/everyone-should-know-simd) — "every developer should be able to recognize the opportunity." This skill turns that recognition into a repeatable audit. Three guiding principles: - **Hot paths first, opportunities second.** Every finding names the hot path it sits in and the evidence tier that makes it hot (benchmark > profile > structural signal). A vectorizable loop nobody proved hot is a "Not worth it" entry, not a finding. - **Algorithm beats lanes.** Before recommending vectorization, check whether a data-structure or algorithmic change wins outright (perfect hash before lane-parallel search, SoA layout before scattered loads). The ordering discipline in the Method section is mandatory per finding. - **Anchored tiers, not ad-hoc scales.** Findings are ranked payoff × risk against the fixed anchor tables in `references/pattern-catalog.md`; quote the matched anchors next to each finding. Never invent a per-run scale (P1/P2/... by gut feel) — anchors are what make consecutive audits diffable. No arithmetic headline; the TL;DR is a prose verdict. Read `references/pattern-catalog.md` before the first audit in a session. ## Modes | Invocation | Does | |---|---| | `/smimd` | Audit the whole repo's hot paths → `<docs>/PARALLELISM_AUDIT.md` | | `/smimd <path-or-subsystem>` | Focused audit of one module/crate/pipeline; same file, scoped section | Detect the repo's docs folder the way the other house skills do (`docs/` or wherever existing design docs live). The audit **refreshes `PARALLELISM_AUDIT.md` in place** — regenerate each run with a fresh header, preserve any `## Notes (human)` section verbatim, keep `TODO-PAR-N` IDs stable across runs (checked/unchecked state survives; retired items move to a Superseded list rather than vanishing), and add a one-line `Δ` note to any finding whose tier changed since the last run. **Predecessor docs:** if the repo already has an ad-hoc parallelism analysis (e.g. an `ANALYSIS_SIMD*.md`), the first run links it as a predecessor and carries its open TODOs forward under stable `TODO-PAR-N` IDs instead of duplicating them. A predecessor item that is decision-shaped (big table, architecture swap) carries into Decision points, not the TODO list — record the mapping in the Predecessor header line and note it under Superseded without marking it retired. ## Method ### 1. Find the hot paths Evidence hierarchy, best first: 1. **Benchmark/perf-harness results** already in the repo (bench targets, perf crates, CI perf jobs) — read their results; never run long benchmarks yourself unless asked. Numbers recorded secondhand (in a predecessor doc, EPIC, or README) still count as benchmark-tier — cite the provenance. 2. **Profiling artifacts** (flamegraphs, perf reports) if present. 3. **Structural signals** — innermost loops over large collections, per-element work, table lookups or hashing inside loops, allocation inside loops, O(n·m) nestings on data-plane types. Record which tier each hot path rests on in the report header and per finding. Structural-only evidence is fine — say so, and let the Verification section prescribe the measurement. ### 2. Classify candidates Match each candidate against the catalog's classes: **algorithm-first**, **SWAR**, **SIMD**, **MIMD**, or **composition** (threads × lanes). SIMD candidacy uses Hashimoto's five-step shape test (broadcast → chunked loop → lane ops → reduce/store → scalar tail) — details in the catalog. ### 3. Apply the ordering discipline (per finding, in order) 1. **Algorithm-first check** — does a data-structure/algorithm change beat vectorizing the current shape? If yes, that's the finding; lane work is at most a follow-on. 2. **Amdahl check** — name the serial tail. If it dominates, parallelism on the rest is noise; say so. 3. **Auto-vectorization check** — simple reduction loops the compiler already vectorizes are not findings. 4. **Data-size check** — lanes want thousands of elements per call; small-N goes to "Not worth it". ### 4. Rank with the anchors Score payoff (dominant-cost / significant / marginal) × risk (safe-stable / feature-gated / heavy) against the anchor tables in the catalog. Integer tiers; between two anchors, take the lower and say why. Every finding quotes its matched anchors and cites `file:line` evidence. ### 5. Emit the report Fill `references/report-template.md` — every REQUIRED slot. Structure: header (evidence sources used), TL;DR prose verdict, architecture sketch of the hot paths, ranked finding dossiers, **"Not worth it"** (REQUIRED — restraint is a finding), **Decision points** (big-ticket "this is a decision, not code" items like precomputed-table evaluators, with the trigger that would justify them), `TODO-PAR-N` checklist, Verification (output-invariance tests, before/after benchmark procedure per TODO, feature-gate policy: scalar path stays default until benchmarks justify flipping), preserved `## Notes (human)`. Large reworks (multi-session, architecture-changing) → recommend `/epic` for a phased design doc rather than inlining a plan. ## Other ecosystems The method is language-agnostic; only the mechanical tactics are
From folkengine/.claude, Apache-2.0.
More from folkengine/.claude
- 0.570score
huxley
folkengine
Use when the user types /huxley <code>, or asks how a function, type, file, or snippet evolved over time, wants its git lineage or "family tree", asks where…
SkillAFreshness: AClaude Code +9 - 0.529score
untangle
folkengine
Evaluate how entangled a repository is with each of its dependencies and what removing them would take — a standardized audit written to the repo's docs…
SkillBFreshness: BClaude Code +9 - 0.529score
dev-playbook
folkengine
Use when the user types /dev-playbook, asks to start, scaffold, bootstrap, or init a new project/repo/library in rust, python, go, java, cpp, c, php, ts-lib…
SkillBFreshness: BClaude Code +9 - 0.529score
conformance
folkengine
Measure a codebase against an externally-authored ruleset — a standards-body spec, RFC, protocol document, regulation, house rules PDF, or API contract —…
SkillBFreshness: BClaude Code +9 - 0.524score
qanda
folkengine
Generate a paired self-test Q&A study set — <TOPIC>_QUESTIONS.md and <TOPIC>_ANSWERS.md in the repo's docs folder — that helps developers learn how the code…
SkillBFreshness: BClaude Code +9 - 0.524score
critique
folkengine
Deliver a harsh, evidence-backed critique of whatever the user points at — a file, directory, codebase, skill, design doc, API, spec, README, or pasted text.
SkillBFreshness: BClaude Code +9 - 0.524score
quality-commitments
folkengine
Facilitates Quality Commitments work — collaborative definition of quality standards, generation of a Quality Commitments Matrix, evidence-based audit of an…
SkillBFreshness: BClaude Code +9 - 0.519score
debrief
folkengine
Bullet-point summary of what changed on the current branch versus main.
SkillBFreshness: BClaude Code +9 - 0.499score
blooper
folkengine
Use when the user asks for a "blooper report" or wants to dig through a repo's git history to find its most embarrassing early coding mistakes and see which…
SkillBFreshness: BClaude Code +9 - 0.479score
deconstruct
folkengine
Distill an existing codebase into a portable regeneration pack — language-agnostic DECON epics in the /epic house style plus golden test vectors extracted by…
SkillCFreshness: CClaude Code +9 - 0.479score
codebase-kata
folkengine
Turn a real codebase into a TDD-style coding kata that teaches the core technology or algorithm behind it.
SkillCFreshness: CClaude Code +9 - 0.474score
dog
folkengine
Dog mode, aka "walking the dog" — Claude writes no code; it walks the developer through a coding task one step at a time while the developer types everything.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 15, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/folkengine/.claude
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from folkengine
- 0.570score
huxley
folkengine
Use when the user types /huxley <code>, or asks how a function, type, file, or snippet evolved over time, wants its git lineage or "family tree", asks where…
SkillAFreshness: AClaude Code +9 - 0.529score
dev-playbook
folkengine
Use when the user types /dev-playbook, asks to start, scaffold, bootstrap, or init a new project/repo/library in rust, python, go, java, cpp, c, php, ts-lib…
SkillBFreshness: BClaude Code +9 - 0.529score
untangle
folkengine
Evaluate how entangled a repository is with each of its dependencies and what removing them would take — a standardized audit written to the repo's docs…
SkillBFreshness: BClaude Code +9 - 0.529score
conformance
folkengine
Measure a codebase against an externally-authored ruleset — a standards-body spec, RFC, protocol document, regulation, house rules PDF, or API contract —…
SkillBFreshness: BClaude Code +9 - 0.524score
qanda
folkengine
Generate a paired self-test Q&A study set — <TOPIC>_QUESTIONS.md and <TOPIC>_ANSWERS.md in the repo's docs folder — that helps developers learn how the code…
SkillBFreshness: BClaude Code +9 - 0.524score
critique
folkengine
Deliver a harsh, evidence-backed critique of whatever the user points at — a file, directory, codebase, skill, design doc, API, spec, README, or pasted text.
SkillBFreshness: BClaude Code +9
Cite this page
smimd skill. Agent Mart. https://agentmart.dev/skills/folkengine-smimd (last updated 2026-10-24)