jame581/godotprompter/ability-system
Claude Code and agent skill by jame581/godotprompter
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use when building or replacing an ability system — abilities with cost/cooldown, buffs/debuffs, stat modifiers, and gameplay tags. Not for extending an existing one
Install
npx vskill@latest install jame581/godotprompter/ability-systemSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jame581/godotprompter/ability-system.
Ability System
Build a data-driven ability system from Godot-native parts: abilities are Resources, an AbilityComponent node owns and runs them, and effects/stats/tags compose on top. No third-party addon required.
Related skills: resource-pattern for theResourcedata containers, component-system for the component node pattern, event-bus for cross-system ability events, state-machine for caster states (e.g. casting/stunned), hud-system for cooldown UI.
1. Architecture overview
An ability system in Godot 4.x is built from three collaborating layers:
- Data layer — `Ability` (Resource): Each ability is a
Resourcesubclass with exported fields (ability_name,cost,cooldown,cast_time) and two methods:can_activate(caster) -> boolto validate preconditions, andactivate(caster) -> voidto execute the effect. Storing abilities as Resources lets designers create and balance them in the Godot editor without touching code.
- Behaviour layer — `AbilityComponent` (Node): A single node added to any entity that should use abilities. It holds the granted ability set, enforces cost/cooldown, and drives the
Ability.activate()call. Four signals keep the rest of the game informed without coupling:ability_activated(ability),ability_failed(ability, reason),cooldown_started(ability, duration), andcooldown_finished(ability). Grant new abilities at runtime withgrant(ability)and trigger them withtry_activate(ability_name).
- Effects layer — stat modifiers, buffs/debuffs, and gameplay tags: Abilities can read from and write to a caster's
StatSet(a Resource that owns a dictionary of namedStatModifierentries) to apply temporary or permanent stat changes. AGameplayTagContainernode (a child of the caster) gates activation — for example, a "stunned" tag can prevent any ability from firing. These three deep-dives are covered in the reference documents: - Stat modifiers and StatSet
- Gameplay tags and conditions
- HUD binding for cooldowns and resource bars
Core rule: Data in Resources, behavior in the component, communication via signals.
This separation means an Ability resource carries no Node references and can be safely duplicated, saved, and loaded as any other Godot Resource. The AbilityComponent owns runtime state (cooldown timers, active ability set), keeping Ability resources stateless and reusable across multiple casters simultaneously.
2. Abilities (cost / cooldown / cast)
GDScript
C#
3. Buffs & debuffs (timed effects)
Effects are Resource subclasses — designers create them in the editor and abilities apply them. An EffectHolder node owns the runtime: it tracks elapsed time, calls periodic ticks, and removes effects when they expire.
GDScript
C#
Footgun: Never iterate_activedirectly while removing entries. GDScript builds ato_removelist and erases after the loop; C# iteratesnew List<Effect>(_active.Keys)for the same reason.
Implementation checklist
- [ ] Abilities are
Resources; behavior lives inAbilityComponent, not in the data. - [ ] Activation validates cost, cooldown, and
can_activate()before spending resources. - [ ] Cooldowns tick in
_process/_Processand emit start/finish signals. - [ ] Buffs/debuffs apply → tick → expire and emit signals; durations refresh or stack by source.
- [ ] Stat modifiers recompute deterministically (ADD → MULTIPLY → OVERRIDE) and clamp.
- [ ] Ability gating uses the gameplay-tag container; immunities block effects.
- [ ] HUD binds to component signals — no per-frame polling of cooldown state.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ability-system/SKILL.md
Popularity
- Repository stars
- 354
- Repository forks
- 18
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jame581/godotprompter/ability-system)