anthony-maio

Triton Sequential Stateful Blocks — Development skill for Claude Code

Development community

Write Triton kernels with sequential stateful processing inside a single thread block, with mutable register state visible across iterations.

How to install Triton Sequential Stateful Blocks

Installs to ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks/SKILL.md

Terminal
mkdir -p ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks && curl -fsSL https://raw.githubusercontent.com/anthony-maio/triton-skills/HEAD/skills/triton-sequential-stateful-blocks.md -o ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Triton Sequential Stateful Blocks does


name: triton-sequential-stateful-blocks description: Write Triton kernels with sequential stateful processing inside a single thread block, with mutable register state visible across iterations.

Sequential Stateful Processing in a Single Triton Block

**Targets:** Triton >= 2.1, SM70+/CDNA2+

Overview

Some workloads require one thread block to process a sequence of items with mutable register state (e.g., LRU cache routing, sequential assignment). This pattern uses grid `(B,)` —

Alternatives in Development

  • Connect — Fancy stream processing made operationally mundane 8608 114 1 8.6k ★
  • Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
  • WP Block Development — Develop WordPress Gutenberg blocks 902 ★

Full documentation available on GitHub

View Source Repository