77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(rpg): only advance active quests and clamp counts, round damage once, document percent-modifier stacking
Kiro Crewfd5c6ce49762
diff --git a/skills/genres/rpg/SKILL.md b/skills/genres/rpg/SKILL.mdindex 13dd8ff..55744af 100644--- a/skills/genres/rpg/SKILL.md+++ b/skills/genres/rpg/SKILL.md@@ -90,12 +90,13 @@ def gain_xp(actor, amount):# Pseudocode. Game events advance matching objectives; completion grants rewards.def on_event(kind, data):for q in active_quests:+ if q.state != "active": continuefor obj in q.objectives:if obj.event == kind and matches(obj, data) and not obj.done:- obj.count += 1+ obj.count = min(obj.count + 1, obj.needed)if obj.count >= obj.needed: obj.done = Trueif all(o.done for o in q.objectives):- q.state = "complete" # turn-in grants xp/gold/items+ q.state = "complete" # turn-in grants xp/gold/items once```## Pitfalls / failure modes@@ -105,6 +106,8 @@ def on_event(kind, data):- **Storing derived stats as truth** → desync after a stat change. Recompute from base.- **Runaway XP/damage numbers** → either an exponential curve with no cap or a subtractiveformula at huge values. Pick a curve and a formula family deliberately (refs).+- **Stacked buffs explode** → percent modifiers multiplied together. Sum percents within a layer+ unless a rule says otherwise (refs §1).- **Content as code** → every item/quest hardcoded. Define items, enemies, and quests as**data** (`godot-resources` / `unity-scriptableobjects`).- **Save format with no version field** → old saves break on update. Add a `version` and adiff --git a/skills/genres/rpg/references/stats-combat-quests.md b/skills/genres/rpg/references/stats-combat-quests.mdindex cc4b849..6fcc074 100644--- a/skills/genres/rpg/references/stats-combat-quests.md+++ b/skills/genres/rpg/references/stats-combat-quests.md@@ -27,7 +27,11 @@ def derive(base, mods):Modifier layers (apply in this order): **base → flat adds → percent multipliers → clamp**.Equipping an item pushes a modifier; unequipping pops the same one. This avoids the classic-"buff wore off and left me at the wrong HP" bug.+"buff wore off and left me at the wrong HP" bug. Decide how percents stack and write it down:+summing them (`+20%` and `+30%` → `×1.5`) keeps growth linear; multiplying them (`×1.2 × 1.3`+→ `×1.56`) compounds and runs away when many buffs stack. Sum within a layer by default and+reserve multiplicative stacking for a few rare effects. Store a modifier's source (item or+effect id) so removing it removes exactly that one.## 2. Damage formulas@@ -38,16 +42,19 @@ Two common families — pick one and stay consistent:dmg = max(1, attacker.attack - defender.defense) # floor at 1 so nothing is immune# (b) Ratio/mitigation: defense gives diminishing % reduction. Scales smoothly to high numbers.-mitigation = defender.defense / (defender.defense + K) # K ~ 100; tune the curve-dmg = attacker.attack * (1 - mitigation)+mitigation = defender.defense / (defender.defense + K) # K ~ 100: defense == K halves damage+dmg = attacker.attack * (1 - mitigation) # same as attack * K / (defense + K)# Layer on: random variance (±10%), crit multiplier, and type effectiveness.dmg *= rng.range(0.9, 1.1)if is_crit: dmg *= 1.5dmg *= type_multiplier(attacker.element, defender.element) # 0.5 / 1.0 / 2.0+dmg = max(1, round(dmg)) # round once, at the very end```Subtractive feels "tactical" at low numbers; ratio scales better for big late-game values.+Round only the final number: rounding after every step adds error at each step and makes the+result depend on the order the multipliers are applied.## 3. Leveling curves