Triton Sequential Stateful Blocks — Development skill for Claude Code
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
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 RepositoryRelated Skills
Triton Flash Attention V2
Implement FlashAttention v2 kernels in Triton with online softmax, causal masking, GQA head routing, multi-str
Triton Fused Epilogue Kernels
Fuse epilogue ops (normalization, gating, residual, activation, dropout) into Triton attention/matmul kernels
Claude Code Thinking Patch
Make Claude Code's thinking blocks visible by default without pressing ctrl+o.
Work Block
Daytime multi-issue work block — process an explicit issue list or queue selector through ship with per-issue
Arckit.Architecture Repository
Build architecture repository — patterns library, standards register, reusable building blocks
No Vibes
Claude Code Stop hook that blocks false-success closeouts. Single bash file, jq-only dep, drop-in. Receipts in
Related Agents
Fk Kernel Engineer
Writes and integrates GPU kernels (Triton, TileLang, CuTe DSL, CUDA C++, CUDA graphs, torch.compile) under can
Raw Imaging Engineer
Image-processing pipeline specialist covering Core Image / Metal kernels, RAW decode (Fujifilm RAF RAW files,
PR Manager Lite
Trimmed variant of pr-manager for fast iterations. Reads reviewer comments on a Gemma-Code PR, applies in-scop