sota-check
One repeatable pass that stops fak from re-inventing known kernel art - before writing or optimizing a compute kernel (a quantized GEMM, a fused attention, a…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить sota-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
sota-check - the prior-art-before-scratch pass
Why this skill exists
This repo has a documented failure mode: an agent reaches for "implement the Mac Q6_K fused MLP from scratch" or "hand-roll the amd64 kquant SIMD" without first checking that llama.cpp's GGML kernels, Marlin, CUTLASS, FlashInfer, or a named paper already solved the same contraction - and re-derives, badly, what is known art. Prior art WAS being researched (idea_scout, the docs/notes/RESEARCH-* corpus, the SOTA matrix) but the research was inert: nothing on the kernel-commit path forced an agent to consult it.
The law, in one line: the default answer to "should I write this kernel from scratch?" is NO - find the production reference first, route deliberately (borrow / bind / stay-minimal), prove against an oracle, and record what you read.
The single source of truth is internal/sotamatrix (a flat in-binary literal, same discipline
as internal/benchcatalog). The human front door is
docs/sota/README.md. Three surfaces read the matrix: the
fak sota command (lookup), the PRIOR_ART advisory gate (commit-time nudge), and
tools/sota_coverage_scorecard.py (keeps the matrix complete against the tree).
The pass
- Look up and capture the reference - BEFORE writing code. Run the installed
first-class binary and save its read-only machine payload:
It reports the SOTA stack,fak sota <slug> --json > sota-<slug>.json fak sota <the-file-you-are-about-to-edit> --json > sota-path.jsonPrimaryLink, chosen route, oracle, and named papers.fak sota listenumerates every operation. If the operation is NOT in the matrix, that is itself the finding - go to step 5. Persist a generated study note only through the separate explicitfak sota <slug> --writegate; JSON capture alone must not mutate the repository. - Read the primary reference. Open the
PrimaryLink. Record the research date, canonical URL, pinned revision/version, and license beside the captured JSON. The point is not to copy bytes (the licenses and the language differ) - it is to learn the technique (the fused dequant tile, the online-softmax recurrence, the radix-tree reuse) so the fak version is an informed implementation, not a naive one. A web search for the named paper is fair game here, but it supplements the captured local catalog result rather than replacing it. - Route honestly. Pick
stay-minimal(the bit-exact contract is fak's value, not raw throughput - most rows),bind(use the production library/format directly: cuBLAS fp16, the GGUF format), orborrow(adapt the reference technique). The hard rule: borrow a kernel only after a witness for the current path exists, so the choice is evidence-based and not a premature bet. - Prove against the oracle. The matrix row names the witness (almost always
cpureff32 with a cosine floor, or bit-identity). A kernel with no recorded oracle floor is not done - it can read green on a CPU box while being wrong on the device. - If the matrix had a blind spot, add the row. When
fak sotadid not know the operation, or the sota-coverage scorecard flags an uncovered kernel file, add oneOptointernal/sotamatrix/sotamatrix.go: the FileGlobs that should trigger the advisory, the verified fak path, the SOTA stack, a primary http(s) link, the route, and the oracle. This is the additive-leaf discipline - the next person inherits the reference you found. - Stamp the commit. End the kernel commit with a
Prior-art:trailer naming what you consulted - e.g.Prior-art: Marlin fused dequant-MMA (IST-DASLab/marlin); cosine >= 0.995 vs HF AWQ. This silences the advisory gate AND leaves a durable, greppable record.
Portfolio output — best default plus bounded coverage
Do not collapse the matrix to one universal winner. Produce both (a) the best net-true default
for fak's common supported case and (b) a bounded capability superset view of useful
alternatives for named cohorts. Route each viable technique through /field-borrow as
DEFAULT, OPTIONAL-MODULE, RECIPE, WATCH, or EXCLUDE. A globally second-place approach
may still deserve an isolated module or recipe for a different accelerator, provider, privacy
constraint, deployment topology, compatibility requirement, cost envelope, or operator
preference. It must not displace the default merely to increase feature count.
Bound the exercise: require dated evidence, a supported cohort, a modular seam, incremental
support cost, and a disconfirming witness. Mark genuinely dominated, unsafe,
license-incompatible, out-of-scope, and support-uneconomic approaches EXCLUDE; mark volatile
or immature moment-in-time findings WATCH with a review trigger. This prevents both ego-driven
"not invented here" rejection and boil-the-ocean accumulation.
What "done" proves
fak sota <op>resolves the operatio
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sota-check?
One repeatable pass that stops fak from re-inventing known kernel art - before writing or optimizing a compute kernel (a quantized GEMM, a fused attention, a KV-cache reuse, a MoE dispatch, a Metal/CUDA kernel), it checks the SOTA prior-art matrix for the production reference (llama.cpp / Marlin / CUTLASS / FlashInfer / vLLM / SGLang / a named paper), decides the route (borrow / bind / stay-minimal), holds the result to the named oracle, and records what was consulted in. Use when this named workflow matches the task.
Как установить скилл sota-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sota-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…