Agent skill
battle-system
Implement classic turn-based battle scene (top HUD + bottom commands)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/battle-system
SKILL.md
Skill: Turn-based battle system
Objective
Implement a minimal but correct classic JRPG battle loop:
- show battle scene with pre-rendered background
- show party/enemy status in a top HUD
- allow selecting a command for the current actor
- execute a single turn and advance
Steps
- Create battle scene
game/scenes/battle/BattleScene.tscn- background renderer
- battler sprite anchors (party and enemy)
- BattleHUD (top)
- CommandMenu (bottom)
- Implement battle state machine
game/scripts/battle/battle_controller.gd- states: Start, CommandSelect, ResolveTurn, End
- Data models (minimal)
- CharacterData, EnemyData, SkillData, ItemData
- Integration
- Exploration encounter triggers transition to BattleScene
- On battle end, return to exploration at a defined spawn
Verification
- Can win a battle and return to exploration
- UI updates HP correctly
- Deterministic outcomes when seeded
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?