mirror of
https://github.com/Earth-Genesis-Games/Ajedrez_Purgatorio.git
synced 2026-09-11 09:47:35 +00:00
- Install CCGS agent/skill/hook framework (.claude/, docs templates, GitHub issue/PR templates) - Configure CLAUDE.md and technical-preferences.md for Unity 6000.3.3f1 (C#, URP, collider-based mouse picking) - Point engine reference import at docs/engine-reference/unity/ and remove unused Godot/Unreal reference docs - Add Version Awareness section to unity-specialist agent - Set production/review-mode.txt to lean - Add design/gdd/combat-mode.md: reverse-documented GDD for the vs-AI Combat mode, confirming it as the foundation for the guion.md narrative campaign (separate from Classic mode) - Add docs/architecture/ADR-0001: documents the existing board-state/singleton/per-mode architecture and the decision to keep Classic and Combat modes permanently separate - Add docs/architecture/control-manifest.md: programmer rules sheet sourced from ADR-0001 and Unity 6 engine reference docs - Continue in-progress Mono/Classic and Mono/Combat refactor (ScoreManager, scene/prefab updates) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
#!/bin/bash
|
|
# Claude Code PostToolUse hook: Advises running skill-test after skill file changes
|
|
# Fires when any file inside .claude/skills/ is written or edited.
|
|
#
|
|
# Exit behavior:
|
|
# exit 0 = advisory only (non-blocking)
|
|
#
|
|
# Input schema (PostToolUse for Write|Edit):
|
|
# { "tool_name": "Write", "tool_input": { "file_path": "...", "content": "..." } }
|
|
|
|
INPUT=$(cat)
|
|
|
|
# Parse file path -- use jq if available, fall back to grep
|
|
if command -v jq >/dev/null 2>&1; then
|
|
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty')
|
|
else
|
|
FILE_PATH=$(echo "$INPUT" | grep -oE '"file_path"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"file_path"[[:space:]]*:[[:space:]]*"//;s/"$//')
|
|
fi
|
|
|
|
# Normalize path separators (Windows backslash to forward slash)
|
|
FILE_PATH=$(echo "$FILE_PATH" | sed 's|\\|/|g')
|
|
|
|
# Only act on files inside .claude/skills/
|
|
if ! echo "$FILE_PATH" | grep -qE '(^|/)\.claude/skills/'; then
|
|
exit 0
|
|
fi
|
|
|
|
# Extract skill name from path (.claude/skills/[skill-name]/SKILL.md)
|
|
SKILL_NAME=$(echo "$FILE_PATH" | grep -oE '\.claude/skills/[^/]+' | sed 's|\.claude/skills/||')
|
|
|
|
if [ -z "$SKILL_NAME" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "=== Skill Modified: $SKILL_NAME ===" >&2
|
|
echo "Run /skill-test static $SKILL_NAME to validate structural compliance." >&2
|
|
echo "====================================" >&2
|
|
|
|
exit 0
|