一键导入
hud-statusline
Configures Claude Code's statusline to display Unity workflow state — current phase, active agent, files modified, and session duration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configures Claude Code's statusline to display Unity workflow state — current phase, active agent, files modified, and session duration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
DOTween animation library — sequence composition, tween lifecycle, easing, kill strategies. CRITICAL: Always kill tweens in OnDestroy to prevent leaks and errors.
Dialogue tree patterns — ScriptableObject graph, node types (text, choice, condition, event), typewriter effect, localization-ready. Load when implementing NPC conversations.
Generic state machine patterns — IState interface, StateMachine<T>, game state management (menu/gameplay/pause), enemy AI states, hierarchical FSM. Load when implementing state-driven behavior.
2D platformer architecture — tight controls (coyote time, input buffer, variable jump), level design patterns, collectibles, checkpoints, hazards, boss patterns.
Unity physics — non-allocating queries, collision layers, FixedUpdate discipline, continuous collision detection, character controllers, joints.
How the atomic instinct learning system works — observations, distillation, confidence scoring, project vs global scope, and promotion/evolution workflows.
| name | hud-statusline |
| description | Configures Claude Code's statusline to display Unity workflow state — current phase, active agent, files modified, and session duration. |
| alwaysApply | false |
Guidance for commands and agents to update Claude Code's statusline with real-time Unity workflow state.
The recommended statusline format for Unity workflows:
[Phase: Execute] [Agent: unity-coder] [Modified: 5 files] [12m]
Fields:
Statusline data comes from the hook state directory at /tmp/unity-claude-hooks/:
| File | Content | Updated By |
|---|---|---|
session-edits.txt | One file path per line (may have duplicates) | track-edits.sh |
gateguard-reads.txt | One file path per line | track-reads.sh |
session-state.json | Branch, phase, workflow context | session-save.sh |
session-start-time | Unix timestamp | session-restore.sh |
session-cost.jsonl | One JSON object per tool call | cost-tracker.sh |
EDIT_COUNT=0
if [ -f "/tmp/unity-claude-hooks/session-edits.txt" ]; then
EDIT_COUNT=$(sort -u "/tmp/unity-claude-hooks/session-edits.txt" | wc -l | tr -d ' ')
fi
DURATION_MINS=0
if [ -f "/tmp/unity-claude-hooks/session-start-time" ]; then
START=$(cat "/tmp/unity-claude-hooks/session-start-time")
NOW=$(date +%s)
DURATION_MINS=$(( (NOW - START) / 60 ))
fi
Commands with phase gates (like /unity-workflow) should update the statusline at each transition:
Phase 1: Clarify → statusline: [Phase: Clarify]
Phase 2: Plan → statusline: [Phase: Plan]
Phase 3: Execute → statusline: [Phase: Execute] [Agent: unity-coder]
Phase 4: Verify → statusline: [Phase: Verify] [Agent: unity-verifier]
Done → statusline: [Phase: Done] [Modified: N files] [Xm]
When a command spawns a sub-agent, the statusline should reflect which agent is active. The agent field updates when:
During /unity-ralph, the statusline should show iteration progress:
[Ralph: 3/10] [Agent: unity-verifier] [Fixed: 5] [12m]
During /unity-team, the statusline should show parallel agent status:
[Team: build] [Agents: 3 running] [Modified: 8 files] [5m]
If the cost tracker is active (strict profile), the statusline can optionally show token usage:
[Phase: Execute] [Modified: 5 files] [12m] [Calls: 47]
Read from session-cost.jsonl:
CALL_COUNT=0
if [ -f "/tmp/unity-claude-hooks/session-cost.jsonl" ]; then
CALL_COUNT=$(wc -l < "/tmp/unity-claude-hooks/session-cost.jsonl" | tr -d ' ')
fi