/tt-review-skills:tt-l1-memory-reviewfrom Tenstorrent Review Skills
Reviews per-core L1 memory footprint and circular-buffer sizing in Tenstorrent kernel code. Checks buffer inventory discipline, data-movement cost across memory tiers, CB capacity vs tile counts, and accumulator sizing. Use when reviewing program factories, CB allocation, blocking or work-split changes, or any change that adds a buffer.
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.
Assumes tt-review-core. Reviews how much L1 an op uses, why it uses that much, and whether the
CBs are sized consistently with how the kernels actually use them.
L1 pressure gets absorbed as "solve for a smaller block" instead of "need fewer buffers". Once an op has a budget predicate and a blocking search, every new pressure is answered by turning a knob, and the buffer inventory is never revisited. The result is an op elaborate about fitting its footprint and silent about why the footprint is what it is — carrying scratch buffers nobody justified, in a solve that prices them forever.
Minimising L1 and shrinking the inventory are different activities. An op can be sophisticated at the first while never attempting the second. When a diff adds a knob, a heuristic, or a safety fraction to make an op fit, the finding is about the inventory, not the knob.
Inventory before solve. Does the change add a buffer? Is there a stated reason that buffer must exist, distinct from "the solve accommodates it"? A buffer that should not exist cannot be solved away — a solve built around it makes it permanent and hard to see.
One decision per buffer. Each CB should have a legible justification: what it holds, whose
lifetime it spans, why an existing buffer could not serve. Reviewing a new CB with no such rationale
is a SHOULD-FIX even when it fits.
Disjoint lifetimes. Two buffers alive at different times can share. Does the change introduce a buffer whose lifetime is disjoint from an existing one, without reusing it?
CB capacity against use. Cross-check num_pages in the descriptor against every tile count in
cb_* calls. Non-dividing counts are UB — see ttnn-op-kernel-review category 4, which owns that
finding. Here the concern is sizing: is the accumulator CB large enough for the spill it must
hold? An undersized accumulator blocks on cb_reserve_back and deadlocks.
Tile alignment including padding. Sizing computed from logical shape rather than padded tile count under-allocates. Check that the padded count is what reaches the CB configuration.
Work-split as a memory decision. See references/data-movement-tiers.md. Splitting an axis
changes each core's slice size, so it changes what stays resident and how many times an input
crosses the most expensive tier. A split that fills the grid but re-reads an input from DRAM can
lose to one that fills the grid and does not.
MUST-FIX.SHOULD-FIX. It is a real cost: it constrains every future shape.SHOULD-FIX, and say which buffer to re-justify.CONSIDER. The trade is a hypothesis until
measured; do not assert a winner from the diff alone.| File | Read when |
|---|---|
references/data-movement-tiers.md | The change alters work split, blocking, or core count |
references/reduce-accumulate-constraints.md | The change touches reduce with Accumulate |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
l1-memory, circular-buffer, kernel-review, memory-footprint, tenstorrent
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-reviewOther plugins' skills for the same job