mirror of
https://github.com/Donchitos/Claude-Code-Game-Studios.git
synced 2026-06-27 04:51:46 +00:00
Compare commits
3 Commits
v1.0.0-bet
...
9ccc5440af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ccc5440af | ||
|
|
666e0fcb5a | ||
|
|
dd2769a580 |
@@ -2,16 +2,21 @@
|
|||||||
# Claude Code SubagentStop hook: Log agent completion for audit trail
|
# Claude Code SubagentStop hook: Log agent completion for audit trail
|
||||||
# Tracks when agents finish and their outcome
|
# Tracks when agents finish and their outcome
|
||||||
#
|
#
|
||||||
# Input schema (SubagentStop):
|
# Input schema (SubagentStop) — per Claude Code hooks reference:
|
||||||
# { "agent_id": "agent-abc123", "agent_name": "game-designer", ... }
|
# { "session_id": "...", "agent_id": "agent-abc123", "agent_type": "Explore",
|
||||||
|
# "agent_transcript_path": "...", "last_assistant_message": "...", ... }
|
||||||
|
#
|
||||||
|
# The agent name is in `agent_type`, NOT `agent_name`. Reading `.agent_name`
|
||||||
|
# returns null on every invocation, so the fallback "unknown" is always used
|
||||||
|
# and the audit trail captures nothing useful.
|
||||||
|
|
||||||
INPUT=$(cat)
|
INPUT=$(cat)
|
||||||
|
|
||||||
# Parse agent name -- use jq if available, fall back to grep
|
# Parse agent name -- use jq if available, fall back to grep
|
||||||
if command -v jq >/dev/null 2>&1; then
|
if command -v jq >/dev/null 2>&1; then
|
||||||
AGENT_NAME=$(echo "$INPUT" | jq -r '.agent_name // "unknown"' 2>/dev/null)
|
AGENT_NAME=$(echo "$INPUT" | jq -r '.agent_type // "unknown"' 2>/dev/null)
|
||||||
else
|
else
|
||||||
AGENT_NAME=$(echo "$INPUT" | grep -oE '"agent_name"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"agent_name"[[:space:]]*:[[:space:]]*"//;s/"$//')
|
AGENT_NAME=$(echo "$INPUT" | grep -oE '"agent_type"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"agent_type"[[:space:]]*:[[:space:]]*"//;s/"$//')
|
||||||
[ -z "$AGENT_NAME" ] && AGENT_NAME="unknown"
|
[ -z "$AGENT_NAME" ] && AGENT_NAME="unknown"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -2,16 +2,20 @@
|
|||||||
# Claude Code SubagentStart hook: Log agent invocations for audit trail
|
# Claude Code SubagentStart hook: Log agent invocations for audit trail
|
||||||
# Tracks which agents are being used and when
|
# Tracks which agents are being used and when
|
||||||
#
|
#
|
||||||
# Input schema (SubagentStart):
|
# Input schema (SubagentStart) — per Claude Code hooks reference:
|
||||||
# { "agent_id": "agent-abc123", "agent_name": "game-designer", ... }
|
# { "session_id": "...", "agent_id": "agent-abc123", "agent_type": "Explore", ... }
|
||||||
|
#
|
||||||
|
# The agent name is in `agent_type`, NOT `agent_name`. Reading `.agent_name`
|
||||||
|
# returns null on every invocation, so the fallback "unknown" is always used
|
||||||
|
# and the audit trail captures nothing useful.
|
||||||
|
|
||||||
INPUT=$(cat)
|
INPUT=$(cat)
|
||||||
|
|
||||||
# Parse agent name -- use jq if available, fall back to grep
|
# Parse agent name -- use jq if available, fall back to grep
|
||||||
if command -v jq >/dev/null 2>&1; then
|
if command -v jq >/dev/null 2>&1; then
|
||||||
AGENT_NAME=$(echo "$INPUT" | jq -r '.agent_name // "unknown"' 2>/dev/null)
|
AGENT_NAME=$(echo "$INPUT" | jq -r '.agent_type // "unknown"' 2>/dev/null)
|
||||||
else
|
else
|
||||||
AGENT_NAME=$(echo "$INPUT" | grep -oE '"agent_name"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"agent_name"[[:space:]]*:[[:space:]]*"//;s/"$//')
|
AGENT_NAME=$(echo "$INPUT" | grep -oE '"agent_type"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"agent_type"[[:space:]]*:[[:space:]]*"//;s/"$//')
|
||||||
[ -z "$AGENT_NAME" ] && AGENT_NAME="unknown"
|
[ -z "$AGENT_NAME" ] && AGENT_NAME="unknown"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: architecture-decision
|
|||||||
description: "Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR."
|
description: "Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR."
|
||||||
argument-hint: "[title] [--review full|lean|solo]"
|
argument-hint: "[title] [--review full|lean|solo]"
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
allowed-tools: Read, Glob, Grep, Write, Task, AskUserQuestion
|
allowed-tools: Read, Glob, Grep, Write, Edit, Task, AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
When this skill is invoked:
|
When this skill is invoked:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: story-done
|
|||||||
description: "End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint."
|
description: "End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint."
|
||||||
argument-hint: "[story-file-path] [--review full|lean|solo]"
|
argument-hint: "[story-file-path] [--review full|lean|solo]"
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
allowed-tools: Read, Glob, Grep, Bash, Edit, AskUserQuestion, Task
|
allowed-tools: Read, Glob, Grep, Bash, Write, Edit, AskUserQuestion, Task
|
||||||
---
|
---
|
||||||
|
|
||||||
# Story Done
|
# Story Done
|
||||||
|
|||||||
4
.github/FUNDING.yml
vendored
4
.github/FUNDING.yml
vendored
@@ -1,2 +1,2 @@
|
|||||||
ko_fi: donchitos
|
github: Donchitos
|
||||||
# github: Donchitos # Uncomment once GitHub Sponsors is approved
|
buy_me_a_coffee: donchitos3
|
||||||
|
|||||||
Reference in New Issue
Block a user