thedivergentai/gd-agentic-skills/godot-genre-rhythm
Claude Code and agent skill by thedivergentai/gd-agentic-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert blueprint for rhythm games including audio synchronization (BPM conductor, latency compensation with AudioServer.get_time_since_last_mix), note highways (scroll speed, timing windows), judgment systems (Perfect/Great/Good/Bad/Miss), scoring with combo multipliers, input processing (lane-based, hold note detection), and chart/beatmap loading. Based on DDR/osu!/Beat Saber research. Trigger keywords: rhythm_game, audio_sync, timing_judgment, note_highway, combo_system, BPM_conductor, latency_compensation.
Install
npx vskill@latest install thedivergentai/gd-agentic-skills/godot-genre-rhythmSKILL.md
The same SKILL.md was published earlier as thedivergentai/gd-agentic-skills/godot-genre-rhythm.
NEVER Do (Expert Anti-Patterns)
Audio Sync & Logic
- NEVER use
Time.get_ticks_msec()/Time.get_ticks_usec()as the song clock; strictly use `AudioStreamPlayer.get_playback_position() + AudioServer.get_time_since_last_mix() - AudioServer.get_output_latency()` (see rhythm_conductor.gd). - NEVER process song logic in
_process(); strictly use `_physics_process()` or a conductor loop to ensure deterministic timing regardless of render frames. - NEVER use
_process()to capture hit inputs; strictly use `_input(event)` to record the exact timestamp of the button press event. - NEVER scale engine time_scale for song speed; strictly use `AudioStreamPlayer.pitch_scale` to adjust speed and avoid globally breaking physics logic.
- NEVER neglect Audio Latency calibration; strictly provide a tool for players to adjust for hardware/Bluetooth delays (~30-100ms) to prevent "unplayable" sync issues.
- NEVER use
_processdelta as the song clock; strictly read the conductor'sget_song_time()(playback + mix − output latency). - NEVER move thousands of note sprites on the CPU; strictly use a Shader-Based Highway (UV scrolling) to offload track movement to the GPU.
- NEVER use
yieldorawaitfor beat timing; strictly use a sample-accurate Delta Accumulator tied to the audio clock. - NEVER assume a constant BPM; strictly build your conductor to handle a Tempo Map for complex track changes.
Feedback & Performance
- NEVER judge inputs based on world position (pixels); strictly judge against the Song's Elapsed Time (ms) to ensure consistency across resolutions.
- NEVER play hit sounds with static pitch; strictly add ±5% Random Pitch Variation to hit sounds to avoid the "machine gun" effect.
- NEVER use tight timing windows (e.g., <25ms) for all players; strictly use Wider Windows for Beginners to prevent immediate frustration.
- NEVER instantiate note nodes every beat; strictly use Object Pooling to recycle note instances and prevent GC spikes during dense tracks.
- NEVER use standard Area2D signals for rhythmic hits; strictly Poll Inputs in the conductor loop to compare against target timestamps.
- NEVER calculate FFT for visualization on the main thread; strictly use AudioEffectSpectrumAnalyzerInstance for optimized engine-side analysis.
- NEVER allow note spamming/mashing; strictly penalize misses or break combos to maintain the game's integrity.
- NEVER use
load()dynamically during gameplay; strictly use ResourceLoader.load_threaded_request() to avoid thread stalling. - NEVER forget to pause the conductor/ highway; strictly sync with the audio player's pause state to prevent notes from scrolling while the music is stopped.
🛠 Expert Components (scripts/)
MANDATORY reads before implementing the matching system:1. rhythm_conductor.gd — canonical audio clock2. input_judge_logic.gd — time-window judging3. note_object_pool.gd — pooled notes (no per-beat instantiate)4. latency_calibrator.gd — player hardware offset
Original Expert Patterns
- rhythm_conductor.gd - Song time = playback_position + mix − output latency.
- input_judge_logic.gd - ms windows vs song time (not pixel position).
- note_object_pool.gd - Recycle note instances under dense charts.
- latency_calibrator.gd - Calibration UI offset applied on the conductor.
Modular Components
- note_orchestrator.gd - Spawn/schedule notes from chart data.
- rhythm_scoring_system.gd - Score aggregation from judgments.
- score_combo_manager.gd - Combo / break rules.
- rhythm_ui_feedback.gd - Hit sparks / judgment labels.
- beat_synced_animator.gd - Visuals locked to conductor beats.
- note_lane_manager.gd - Multi-lane layout helpers.
- dynamic_bpm_handler.gd - Tempo map / BPM changes.
- audio_spectrum_analyzer.gd - Spectrum visuals (not the clock).
Do NOT load unused lanes: skip audio_spectrum_analyzer.gd unless building reactive viz; skip dynamic_bpm_handler.gd for constant-BPM tracks.
Script map: BaselineMusicConductorsamples → rhythm_conductor.gd;JudgmentSystem→ input_judge_logic.gd; chart spawn → note_orchestrator.gd + note_object_pool.gd.
Core Loop
- Calibrate latency → 2. Conductor clock → 3. Spawn pooled notes → 4. `_input` judge → 5. Score/combo UI
Decision Trees
Clock (one recipe)
| Need | Action | |
|---|---|---|
| Song position | MANDATORY rhythm_conductor.gd get_song_time() | |
| Visual highway | Position from song time / beats — never _process delta integration as truth | |
| Hit timestamp | Capture in _input / _unhandled_input, compare to note target time |
Systems
| Need | Action | |
|---|---|---|
| Judgment windows | input_judge_logic.gd | |
| Scoring / combo | rhythm_scoring_system.gd + score_combo_manager.gd | |
| Chart spawn | note_orchestrator.gd + pool | |
| Juice | rhythm_ui_feedback.gd / beat_synced_animator.gd |
Do not re-inline MusicConductor / NoteHighway / JudgmentSystem / RhythmScoring classes in this skill — load the scripts.
Skill Chain
| Phase | Skills | Purpose | |
|---|---|---|---|
| 1. Audio | godot-audio-systems | Stream clock + latency | |
| 2. Input | godot-input-handling | Timestamped hits | |
| 3. UI | godot-ui-containers | Highway / HUD | |
| 4. Perf | pooling / shaders | Dense charts | |
| 5. Balance | godot-monte-carlo-balancer | Window difficulty bands |
Common Pitfalls
| Pitfall | Solution | |
|---|---|---|
Time.get_ticks_* conductor | Use playback + mix − latency | |
Judge in _process | _input + song time | |
| Instantiate per note | note_object_pool.gd |
MANDATORY for depth beyond decision trees and script catalog: rhythm-systems-deep.md. Do NOT Load on first-pass wiring — use bundledscripts/first.
Godot-Specific Tips
- Audio latency: Calibrate with
AudioServerand custom offset - Input polling: Use
_inputnot_processfor precise timing - Shaders: UV scrolling for note highways
- Particles: Use
GPUParticles2Dfor hit effects
3. Hardware-Synced Latency Calibration
Calculate precise offsets by compensating for OS/Hardware latency.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationWarning, 67 of 100Marginal. 1 run. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingskills/godot-genre-rhythm/SKILL.md
Popularity
- Repository stars
- 756
- Repository forks
- 45
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 8 months ago.
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/thedivergentai/gd-agentic-skills/godot-genre-rhythm)