/tt-review-skills:tt-review-corefrom Tenstorrent Review Skills
Shared review contract for Tenstorrent code review: severity vocabulary, evidence rule, scope guidance, and do-not-flag guards. Load before any domain review skill.
Ships in Tenstorrent Review 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.
Read when SKILL.md points to them; scripts run unread.
The shared contract. Every domain review skill in this repo assumes these rules and does not restate them. Load this first; load at most two domain skills on top.
Every finding cites file:line plus a source. A source is one of: a path in the repo under
review, a documented invariant, or a reference file shipped with the skill that raised the finding.
A finding without evidence does not go in the report. This is the single most important rule here — a domain-loaded reviewer that speculates is worse than no reviewer, because its findings look authoritative.
If a finding hinges on something you could not verify, say so explicitly in the finding and downgrade one severity step (MUST-FIX → SHOULD-FIX → CONSIDER). Do not suppress it, and do not state the unverified part as fact.
| Label | Meaning |
|---|---|
MUST-FIX | Wrong. Incorrect results, a hang, a race, memory corruption, or a broken contract. |
SHOULD-FIX | Works, but carries real cost: performance left on the table, a maintenance trap, a missing test for changed behaviour. |
CONSIDER | Judgment. A cleaner alternative exists; reasonable people may decline. |
Labels describe impact, not workflow gates. Nothing here blocks a merge on its own.
A diff is a narrow window. Before flagging anything:
These are the guards that stop a domain-loaded reviewer from drowning a PR in noise. Each one is a mistake reviewers actually make on Tenstorrent code.
ttnn.deallocate(...) is not a leak. TTNN device buffers are released when the last
tensor reference is destroyed. Missing explicit deallocation is a peak memory question, not a
leak. Only report retention when references demonstrably outlive their intended scope.data_parallel_size /
tt_data_parallel may mean the SDPA/KV-cache data-parallel degree, while tt-metal code often
means mesh-local structure (input mesh rows, attention weight copies). Validate the active caller
contract before flagging any relationship among tt_data_parallel, max_batch_size,
batch_size_per_row, and mesh dimensions.references/false-positive-guards.md for the full list with worked examples.hasattr and friends "just to be safe" are not acceptable. Code should be specific
about what it expects, not permissively accept anything the rest of the repo will never send it.None device or mesh). Assert or return an explicit error at the boundary instead.Emit findings only. Never post them. See references/output-format.md for the exact shape.
In a gh-aw workflow the agent runs read-only and the workflow posts through safe-outputs. A
skill that calls gh api -X POST is a bug, not a feature.
| File | Read when |
|---|---|
references/false-positive-guards.md | Before reporting anything that looks like a leak, an inconsistency, or a missing call |
references/output-format.md | Emitting findings |
references/scope-and-evidence.md | A finding depends on context outside the diff, or you cannot verify a claim |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tenstorrent, code-review, review-contract, severity, evidence-rule
npx claudepluginhub tenstorrent/skills --plugin tt-review-skills15 skills in this plugin
/llk-perf-audit-reviewStatic performance review of Tensix compute kernels — wasted cycles, redundant register and memory traffic, loop-invariant work, and cheaper numerically-equivalent instruction sequences. Gated by a provenance lens (sfpi-compiled versus hand-written) and a semantic-equivalence test. Use when reviewing SFPU or Tensix kernel changes under tt_metal/tt-llk./llk-race-audit-reviewReviews tt-llk kernel changes for the nine intra-kernel race hazard classes plus stale hardware config across invocations — cfg-word overlap, dataflow CB sync, instruction latency, mailbox sync, MMIO ordering, NoC sync, reconfig stalls, semaphore handshakes, and srcreg bank sync — plus the cross-class seams between them. Use when reviewing changes under tt_metal/tt-llk./tt-comment-hygiene-reviewReviews comments and documentation surface — iteration-journey comments that describe how the code got here, unsurfaced tribal knowledge, magic tile and grid values, and ttnn op docstrings. Cheap to run alongside any other review. Use on any Tenstorrent diff./tt-l1-memory-reviewReviews per-core L1 footprint and circular-buffer sizing — buffer inventory discipline, data-movement cost across memory tiers, CB capacity versus tile counts, and accumulator sizing. Use when reviewing program factories, CB allocation, blocking or work-split changes, or any change that adds a buffer./tt-model-bringup-reviewReviews TTNN model code — layout and memory-config defaults, the decode residual contract, composite-op preference, program-config pitfalls, hidden host fallbacks, and logical batch versus tile padding. Use when reviewing model bringup or optimization changes under models/ or ttnn/ Python./tt-multichip-ccl-reviewReviews multi-chip and collective-communication code — num_links against device topology, bias-before-all-reduce numerics, distributed RMSNorm correctness, gather and reduce axes, fabric initialisation order, and CCL tuning claims. Use when reviewing changes touching CCL ops, mesh devices, fabric, or any all_gather / reduce_scatter / all_reduce path.Other plugins' skills for the same job