Skip to content
Development
Hook

Hooks

What claude-for-hardware runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
claude-for-hardware
2214 skills3 agents3 commands1 hook
Install
> /plugin marketplace add Midstall/claude-for-hardware
> /plugin install claude-for-hardware@claude-for-hardware

Ships with claude-for-hardware. Installing the plugin gets these hooks.

What fires, and when

PostToolUse

  • MatchesWrite|Edit|MultiEditsh "${CLAUDE_PLUGIN_ROOT}/hooks/check-style.sh"
Read hooks/hooks.json

Where it lives

  • hooks/check-style.shRunsGitHub
    Read the script
    #!/usr/bin/env sh
    # PostToolUse hook: when a skill markdown file is written or edited, enforce the
    # house style (no em dashes, no emoji, valid SKILL.md frontmatter) at write time.
    # Only acts on files under a skills/ directory, so it never blocks ordinary work
    # in other repos. Exit 2 with feedback makes Claude fix the file. No node or jq.
    dir=$(dirname "$0")
    . "$dir/../scripts/skill-checks.sh"
    
    payload=$(cat)
    file=$(printf '%s' "$payload" | grep -o '"file_path"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | sed 's/.*:[[:space:]]*"//; s/"$//')
    
    [ -n "$file" ] || exit 0
    is_skill_markdown "$file" || exit 0
    
    out=$(check_skill_file "$file")
    if [ -n "$out" ]; then
      echo "House-style violations in $file:" >&2
      printf '%s\n' "$out" | sed 's/^/  - /' >&2
      echo 'Fix these before continuing: no em dashes or emoji, and a SKILL.md needs a name matching its directory plus a "Use when" description under 500 chars.' >&2
      exit 2
    fi
    exit 0
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withclaude-for-hardware

Claude Code skills for hardware design, validation, and bring-up. A plugin of focused skills that teach Claude how to do real hardware work: designing reusable HDL, integrating an SoC, bringing up FPGAs and bare-metal targets, building firmware boot chains,

Get the whole plugin