When this content in
.claude/commands/math.md.claude/skills/math/SKILL.mdit works fine.
---
name: math
description: Simple math calculation
argument-hint: "[first-number] [second-number]"
hooks:
Stop:
- hooks:
- type: command
command: echo "Math hook fired at $(date)" > /tmp/math-hook-test.txt
timeout: 5
---
${1:-2} + ${2:-2} = $(( ${1:-2} + ${2:-2} ))
But it does not work when it’s in the same file type but in a plugin:
my-plugin/commands/math.mdThe command works fine, but hooks fired. I didn’t find any information it’s not possible. Any workaround? submitted by /u/FocusAlways
Originally posted by u/FocusAlways on r/ClaudeCode
You must log in or # to comment.
