benchflow-ai/skillsbench/attention-variants-from-papers

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install benchflow-ai/skillsbench/attention-variants-from-papers

SKILL.md

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.

  1. Build a shape ledger before coding.

Use shape-ledger.md to track projections, head grouping, branch count, and output width.

  1. Choose the mechanism pattern.

Use mechanism-patterns.md for subtractive attention, branch mixing, learned gates, and extra normalization.

  1. 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.

  1. Validate in layers.

Start with random-tensor smoke tests, then compare against a baseline attention path. Use stability-and-validation.md.

  1. 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

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,474
Repository forks
325
7-day trend score
36

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/benchflow-ai/skillsbench/attention-variants-from-papers/badge)](https://verified-skill.com/skills/benchflow-ai/skillsbench/attention-variants-from-papers)

Something wrong with this skill or its page? Tell us.