Skip to content
Skillpedia
Websites & UI (frontend)7.2k · #13364

design-action-combat

What it does

This skill helps an AI agent plan the fighting rules in a web action game. It is for game designers and developers who want attacks, blocks and dodges to feel fair and be easy to test.

When to use it

  • ✓When you are designing attacks, blocks or dodges for a game.
  • ✓When combat feels unfair, confusing or too slow.
  • ✓When you want tests that check combat timing and hit results.

Skill link

https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/design-action-combat/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/design-action-combat/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Help me design fair attack and dodge timing for the boss in my browser game.”

5 new skills a week. 1 minute to read.

How it works

The agent defines each action's start, active window, recovery and result. It then uses the game's own collision events to decide hits, and writes tests for early, late and repeated inputs.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Design Action Combat

Treat combat as explicit state machines with visible, testable timing rather than animation-driven guesses.

Specify every combat verb

For each player or enemy action, define: startup, active window, recovery, cancellation rules, resource cost, contact shape, damage/posture outcome, cooldown, and feedback. Make telegraph, danger, contact, and recovery readable at normal camera distance.

Use authoritative outcomes

  • Drive hits, blocks, parries, and interrupts from authoritative collision/contact events.
  • Require direction, range, phase, and state validity before resolving an outcome.
  • Apply each contact once using stable action and target identifiers.
  • Keep visuals downstream of resolved simulation events.

Tune for decisions

Give each defense a distinct purpose: spacing, dodge, timed guard, interruption, or resource trade. Avoid unpunishable attacks, recovery loops, unavoidable damage, and dominant spam. Boss phases must alter decision pressure without invalidating learned timing.

Test combat deterministically

Cover early/late timing, wrong direction, out-of-range contact, multiple targets, interrupted actions, phase changes, cooldown boundaries, pause/frame step, equip swaps, and repeated inputs. Use seeded or queryable review scenarios instead of requiring long campaign playthroughs.

Verify in play

Test at realistic frame rate and camera distance. Confirm that player intent, contact feedback, health/posture changes, sound/VFX, and target state agree. Check reduced motion and input alternatives before release.

FAQ

Does it only cover animations?

No. It treats combat as clear rules with timing, cost and results, and says animations should follow those rules rather than decide them.

What tests does it write?

It covers early and late timing, wrong direction, out-of-range hits, interrupted actions and cooldown edges.

Is it only for bosses?

No. The same rules apply to player moves and regular enemies, with boss phases as an extra layer.

Details

Original description by the author

Design, implement, tune, or test readable tactical action combat for web games. Use for attack timing, guard and dodge windows, hit contact, posture, lock-on, weapons, boss phases, combat feedback, and deterministic combat tests.

repo: MengTo/Skills

Popularity

GitHub stars
7.2k
Ranking position
#13364
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills