watcher-hermes/hermes-skills/attention-shapes

Claude Code and agent skill by watcher-hermes/hermes-skills

Trust tier 3
  • community
Source check pending

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

Install

npx vskill@latest install watcher-hermes/hermes-skills/attention-shapes

SKILL.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:

  1. Which matrix has the wrong shape. Name the tensor.
  2. What its shape should be, derived from (d_s, d_h, d_attn, T_enc, T_dec, batch_size).
  3. One-line fix. Transpose, reshape, or project.
  4. A test to catch regressions. Typically assert output.shape == (batch, T_dec, d_h) and weights.shape == (batch, T_dec, T_enc) and weights.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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/watcher-hermes/hermes-skills/attention-shapes/badge)](https://verified-skill.com/skills/watcher-hermes/hermes-skills/attention-shapes)

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