fix(hooks): match superpowers pattern exactly
- Add matcher: startup|clear|compact to SessionStart hook - Inject only engineering-principles as foundational skill (19KB) - Strip emoji, use plain text everywhere - Remove 55KB of verbosity, keep focused primer
This commit is contained in:
@@ -10,24 +10,24 @@ EXT="${FILE_PATH##*.}"
|
||||
|
||||
case "$EXT" in
|
||||
ts|tsx)
|
||||
echo "📐 [hub-guide] TypeScript file — apply typescript skill rules (strict types, no-any, proper generics)"
|
||||
echo "[hub-guide] TypeScript file — apply typescript skill rules (strict types, no-any, proper generics)"
|
||||
;;
|
||||
py)
|
||||
echo "📐 [hub-guide] Python file — apply python skill rules (type hints, PEP 8, no wildcard imports)"
|
||||
echo "[hub-guide] Python file — apply python skill rules (type hints, PEP 8, no wildcard imports)"
|
||||
;;
|
||||
rs)
|
||||
echo "📐 [hub-guide] Rust file — apply rust skill rules (ownership, error handling, clippy clean)"
|
||||
echo "[hub-guide] Rust file — apply rust skill rules (ownership, error handling, clippy clean)"
|
||||
;;
|
||||
go)
|
||||
echo "📐 [hub-guide] Go file — apply go skill rules (idiomatic Go, interfaces, error handling)"
|
||||
echo "[hub-guide] Go file — apply go skill rules (idiomatic Go, interfaces, error handling)"
|
||||
;;
|
||||
js|jsx)
|
||||
echo "📐 [hub-guide] JavaScript file — apply typescript skill rules (ESM, modern JS)"
|
||||
echo "[hub-guide] JavaScript file — apply typescript skill rules (ESM, modern JS)"
|
||||
;;
|
||||
dockerfile|Dockerfile)
|
||||
echo "📐 [hub-guide] Dockerfile — apply docker skill rules (multi-stage, minimal layers, no root)"
|
||||
echo "[hub-guide] Dockerfile — apply docker skill rules (multi-stage, minimal layers, no root)"
|
||||
;;
|
||||
yml|yaml)
|
||||
echo "📐 [hub-guide] YAML file — check ci-cd and docker skill rules"
|
||||
echo "[hub-guide] YAML file — check ci-cd and docker skill rules"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user