Skip to content
alyn
benchflow-ai

Attention Variants From Papers skill

Implement paper-defined attention variants by extracting mechanism invariants, mapping tensor shapes, preserving module interfaces, validating numerical behavior, and integrating the custom attention into an existing transformer stack.

$npx skills add benchflow-ai/skillsbench --skill attention-variants-from-papers
View this skill on GitHubbenchflow-ai/skillsbench/tasks-extra/diff-transformer_impl/environment/skills/attention-variants-from-papers/SKILL.md
Pack stars
1,914
Pack installs
159
Alyn Score
52/99
Updated
7 days ago
License
Apache-2.0
– views – installs via Alyn

benchflow-ai

Attention Variants From Papers

Install Attention Variants From Papers

Pick your agent. Every command is ready to paste.

$npx skills add benchflow-ai/skillsbench --skill attention-variants-from-papers

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads attention-variants-from-papers when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the attention-variants-from-papers skill”. In Codex, type $attention-variants-from-papers.

The skill itself

SKILL.md

FolderGitHub

Attention Variants from Papers

Use this skill when a paper changes how attention scores, branches, normalization, or head sharing work, but the module still needs to behave like a drop-in transformer attention block.

Workflow

  1. Read the paper for invariants, not names. Use paper-to-implementation.md to extract the external contract, the changed computation, and the training-time constraints.
  2. Build a shape ledger before coding. Use shape-ledger.md to track projections, head grouping, branch count, and output width.
  3. Choose the mechanism pattern. Use mechanism-patterns.md for subtractive attention, branch mixing, learned gates, and extra normalization.
  4. Preserve the module boundary. Keep the same input and output shape, mask semantics, positional encoding flow, and cache behavior unless the task explicitly changes them.
  5. Validate in layers. Start with random-tensor smoke tests, then compare against a baseline attention path. Use stability-and-validation.md.
  6. Integrate into the stack last. Swap the new module into one transformer block, verify the residual path, then roll it through the full model. Use transformer-integration.md.

Checklist

  • extract the paper's invariants before writing code
  • account for every reshape, branch, and repeat in a shape ledger
  • preserve output width at concatenation or output projection
  • apply masks and positional terms at the intended stage
  • confirm random smoke tests stay finite
  • compare unchanged behaviors against a baseline attention implementation

Reference Map

Tips for Attention Variants From Papers

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
  • • It is part of a pack with 29 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Attention Variants From Papers

What does the Attention Variants From Papers skill do?

Implement paper-defined attention variants by extracting mechanism invariants, mapping tensor shapes, preserving module interfaces, validating numerical behavior, and integrating the custom attention into an existing transformer stack.

How do I install Attention Variants From Papers?

Run "npx skills add benchflow-ai/skillsbench --skill attention-variants-from-papers" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Attention Variants From Papers work in Cursor and Codex?

Yes. Attention Variants From Papers uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Attention Variants From Papers free?

Attention Variants From Papers is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.

Who made Attention Variants From Papers?

Attention Variants From Papers is published by benchflow-ai in the benchflow-ai/skillsbench repository, together with 28 other skills.

Similar skills. From other creators.