/tt-review-skills:tt-comment-hygiene-reviewfrom Tenstorrent Review Skills
Reviews Tenstorrent code diffs for comment hygiene: flags iteration-journey comments, missing tribal knowledge, magic tile/grid values, and ttnn op docstring gaps. Cheap to run alongside other reviews.
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.
None: SKILL.md is the whole skill.
Assumes tt-review-core. Cheap, runs alongside anything else. Two concerns: comments that should
not exist, and knowledge that should be in the code and is not.
A comment describing how the code got here rather than what it does. It reads as helpful and decays immediately, because the reader has no access to the state being contrasted against.
Grep the diff for the tells:
\bwas\b|\bpreviously\b|\bused to\b|\bvs\.?\b|\bnow uses\b|\binstead of\b|\bchanged from\b
// changed from 4 to 8 because 4 was too slow
Six months later "4" means nothing. If the value matters, the comment should say why 8 is right — what constraint picks it — not what it replaced. The PR is the record of the change; the comment is the record of the state.
Not every match is a finding. instead of is legitimate when contrasting two live alternatives
("uses X instead of Y because Y forces a layout change" — both still exist and the reader can check
both). The test is whether the thing being contrasted against still exists.
If behaviour needs historical context to understand, that knowledge is not in the code.
tech_reports/ fixes it. The role cross-walk in particular (which RISC is the reader, which is
the writer) is worth stating wherever it is load-bearing.8, a bare CoreRange(...), a shard shape
with no derivation. Either a named constant or a comment giving the constraint.Flag patterns a newcomer would plausibly misuse even if regulars navigate them fine: implicit initialisation ordering, silently-required environment variables, subtle API gotchas. "Everyone here knows that" is the condition being flagged, not a rebuttal to it.
For ttnn ops, the docstring is the public surface. Check that supported dtypes, layouts, and memory
configs are stated and match the actual SUPPORTED declaration — see tt-test-coverage-review on
registry honesty. A docstring promising more than the op delivers is worse than a missing one,
because it is trusted.
MUST-FIX — a comment or docstring that will actively mislead into an error, including one that is
now wrong because the code changed under it. SHOULD-FIX — tribal knowledge not in the code, magic
values with no derivation, iteration-journey comments. CONSIDER — minor clarity.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
comment-hygiene, code-review, documentation, tenstorrent, ttnn
15 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-l1-memory-reviewnpx claudepluginhub tenstorrent/skills --plugin tt-review-skillsOther plugins' skills for the same job