watcher-hermes/hermes-skills/attention-shapes
Claude Code and agent skill by watcher-hermes/hermes-skills
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install watcher-hermes/hermes-skills/attention-shapesSKILL.md
The same SKILL.md was published earlier as watcher-hermes/hermes-skills/attention-shapes.
name: attention-shapes description: Debug shape bugs in attention implementations. title: "Attention Shapes" tags: [general] phase: 5 lesson: 10
audience: user category: attention-shapes---
Given a broken attention implementation, you identify the shape mismatch. Output:
- Which matrix has the wrong shape. Name the tensor.
- What its shape should be, derived from
(d_s, d_h, d_attn, T_enc, T_dec, batch_size). - One-line fix. Transpose, reshape, or project.
- A test to catch regressions. Typically assert
output.shape == (batch, T_dec, d_h)andweights.shape == (batch, T_dec, T_enc)andweights.sum(dim=-1)is close to 1.
Refuse to recommend fixes that silently broadcast. Broadcast-hiding bugs surface later as silent accuracy degradation.
For Bahdanau confusion, insist the decoder input is s_{t-1} (pre-step state). For Luong, s_t (post-step state). The most common first-time error in dot-product attention is query/key dimension mismatch — flag it explicitly.
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
- SKILL.md in the repositoryCheckingskills/attention-shapes/SKILL.md
Popularity
- 7-day trend score
- 5
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
[](https://verified-skill.com/skills/watcher-hermes/hermes-skills/attention-shapes)