In my last two posts, I covered the hardware tiering and token economics behind my hybrid cloud/local Godot 4 “Virtual Studio”. Once the plumbing was solid—frontier cloud reasoning paired with fast local Gemma 4 endpoints via bin/ollama-gen—I ran straight into the next bottleneck: process discipline.
Left to its own devices, even the smartest coding agent exhibits two opposite failure modes when building a game:
- Without engineering process skills, it jumps straight into writing code from a vague prompt, builds shallow coupled modules, skips tests, and drifts away from the original requirements.
- Without Godot-specific domain skills, it applies generic web/OOP habits to a scene-tree engine—fighting node lifecycles, wiring brittle
get_node()paths instead of signals, hallucinating Godot 3 APIs, or writing untestable scripts tightly coupled to_process().
The unlock for me has been treating agent skills as a two-layer system:
- The Outer Loop (Matt Pocock’s Skills): Language-agnostic software engineering discipline—interrogating requirements, designing deep modules, slicing work into crisp tickets, driving red-green-refactor cycles, and reviewing diffs against standards and specs.
- The Inner Loop (GodotPrompter Skills): Engine-idiomatic execution—Godot 4 scene organisation, custom
Resourcedata containers, GDScript static-typing patterns, GUT/gdUnit4 testing mechanics, and Godot-specific debugging.
Here is the exact workflow, which skills I use at each stage, how I resolve overlaps between the two libraries, and how the whole pipeline connects back to my hybrid cloud/local Ollama setup.
1. The Architecture: Outer Loop vs. Inner Loop#
Rather than dumping 60+ skills into every conversation and hoping the agent picks the right one, I separate responsibilities cleanly into two concentric loops:

The cloud model stays in charge of the outer loop—architectural reasoning, cross-file seams, and human alignment. Whenever a task drops into engine implementation, the inner loop pulls in just the relevant GodotPrompter skills, and hands bounded boilerplate, unit tests, and two-axis diff reviews down to my local Ollama endpoints (ollama-pc and ollama-mac).
2. The Skill Roster: What Runs Where#
The Outer Loop: Matt Pocock’s Engineering Skills#
These skills govern how I think, plan, and verify—regardless of whether I am writing GDScript, TypeScript, or Terraform:
| Stage | Skill(s) | What It Actually Does in My Workflow |
|---|---|---|
| Discovery | research, prototype | Investigates Godot 4.x APIs or design questions against primary sources, or spins up a throwaway spike to sanity-check whether a mechanic or state model feels right before committing. |
| Alignment | grill-with-docs | Relentlessly interviews me one decision at a time while cross-referencing my project docs and specs before any code is written, walking down the design tree so edge cases are settled up front instead of mid-implementation. |
| Architecture | domain-modeling, codebase-design, improve-codebase-architecture | Sharpens ubiquitous terminology (GLOSSARY.md, ADRs), forces deep modules with clean seams, and refactors sprawling single-file scripts into reusable modules and state machines—preventing the classic indie-game trap of a 1,200-line Player.gd god script. |
| Work Slicing | tickets-for-local-llm (my derivative of Matt’s to-tickets) | Splits the design into vertical, independently testable tickets, enriching each with exact file anchors, method signatures, numeric defaults, and test cases so a 12B local model can execute them reliably. |
| Execution | tdd | Enforces strict red-green-refactor vertical slices rather than dumping 400 lines of untested gameplay code and trying to bolt tests on afterwards. |
| Verification | code-review, pr | Runs a two-axis review (Standards + Spec) against the git diff, then drafts a clean, structured PR body once everything is green. |
| Meta-Loop | writing-for-agents | Whenever an agent makes a repeatable mistake, I use this skill to tighten AGENTS.md or update local skill instructions concisely without bloating the prompt. |
The Inner Loop: GodotPrompter as a Modular Skill Library#
For Godot 4 specifics, I use the GodotPrompter skill library. Because there are dozens of Godot skills available, I treat them as three distinct tiers pulled in on demand:
- Engine Lifecycle Skills:
godot-brainstorming,godot-testing,godot-debugging,godot-code-review,godot-grill. - Language & Architecture Foundations:
gdscript-patterns,gdscript-advanced,scene-organization,component-system,resource-pattern,event-bus,dependency-injection. - Feature & Domain Recipes:
state-machine,ability-system,inventory-system,physics-system,player-controller,godot-ui,hud-system,save-load,shader-basics, etc.
3. Resolving the Overlap: The Strict Handoff Rule#
If you install both Matt Pocock’s skills and GodotPrompter side by side, you immediately notice four direct collisions:
| Concern | Matt Pocock Skill | GodotPrompter Skill |
|---|---|---|
| Pre-build interrogation | grill-with-docs | godot-grill |
| Test-driven development | tdd | godot-testing |
| Code review | code-review | godot-code-review |
| Bug investigation | diagnosing-bugs | godot-debugging |
Leaving that ambiguity unresolved causes unpredictable agent behaviour—sometimes the agent runs a generic review and misses a Godot signal leak; other times it runs a Godot-only checklist and forgets to check the ticket’s acceptance criteria.
My rule is a strict handoff:
- Matt Pocock’s skills own high-level and cross-cutting work:
grill-with-docs,domain-modeling,codebase-design,improve-codebase-architecture,tickets-for-local-llm(my derivative of Matt’sto-tickets),code-review, andpr. - GodotPrompter skills take over for engine-specific execution:
godot-testing(when writing GUT/gdUnit4 suites),godot-debugging(when tracing signals, remote trees, or physics/frame-order bugs), plus the relevant architecture and feature skills (gdscript-patterns,resource-pattern,state-machine, etc.) for the ticket at hand.
Even where Matt’s code-review owns the outer two-axis structure (Standards + Spec), the Standards prompt inside my local bin/ollama-gen --review-standards script encodes the repo’s Godot 4 rules (static typing, signal cleanup, tab indentation, avoiding untyped Variant leaks). That way, there is one review workflow with zero duplication.
4. End-to-End Walkthrough: Building a Resource-Based Ability System#
To make this concrete, here is how a representative Godot 4 gameplay feature—a Resource-based Character Ability System (data-driven abilities with cooldowns, mana/stamina cost, cast states, and HUD binding)—moves through the pipeline from raw idea to merged PR.
Phase 1: Discovery & Grilling (Cloud — Outer Loop)#
- Optional Spike (
prototype/research): If I am unsure how Godot 4.3+ handles customResourceduplication per-instance vs. shared references, I run a quickresearchpass or throwawayprototype. - Interrogation (
grill-with-docs): I invokegrill-with-docsto cross-check my existing project docs and force every open design question into the open one at a time:- Can abilities be interrupted mid-cast?
- Are cooldowns driven by
_physics_processdelta orSceneTreeTimer? - Does the HUD poll the ability runner, or subscribe via typed signals?
- Are buffs/modifiers in scope for v1, or deferred?
Phase 2: Architecture & Local-Ready Slicing (Cloud — Outer Loop)#
- Domain & Module Seams (
domain-modeling+codebase-design):- Lock terminology (
AbilityDatavs.AbilitySlotvs.AbilityRunner). - Draw a deep module seam:
AbilityRunnerexposes a tiny public surface (try_cast(id),get_cooldown_ratio(id), and typed signalsability_cast,cooldown_updated) while hiding state transitions and timer bookkeeping internally.
- Lock terminology (
- Ticket Slicing (
tickets-for-local-llm, derived from Matt’sto-tickets):- Instead of one giant “Implement Ability System” issue, the cloud orchestrator slices it into 3–4 vertical tickets:
- Ticket 1:
AbilityDatacustomResource+ validation unit tests. - Ticket 2:
AbilityRunnercooldown & cost logic + state transitions. - Ticket 3:
EventBus/ HUD cooldown bar binding.
- Ticket 1:
- Because each ticket uses
tickets-for-local-llm, it includes exact file paths, GDScript method signatures with static types, numeric defaults, and concrete test assertions—giving my local 12B Gemma 4 model everything it needs to succeed without guessing.
- Instead of one giant “Implement Ability System” issue, the cloud orchestrator slices it into 3–4 vertical tickets:
Phase 3: Engine Implementation (Inner Loop — Cloud + Local Ollama)#
- Skill Loading (Just-in-Time): For Ticket 2, the agent loads only the inner-loop skills relevant to that slice:
godot-testing,gdscript-patterns,resource-pattern, andability-system(orstate-machine). - Red-Green-Refactor (
tdd+godot-testing):- Red: The cloud orchestrator delegates test generation directly to disk on my RTX 4070 Ti:Cloud context impact: ~15 tokens (
bin/ollama-gen -p "Write GUT unit tests for AbilityRunner cooldowns and insufficient resource rejection per Ticket #42..." -o tests/test_ability_runner.gdWrote 94 lines to tests/test_ability_runner.gd (7.2s)). - Green: Implement
AbilityRunnerfollowinggdscript-patterns(strict static typing,class_name, typed signals, zero hardcodedget_node()paths), then run pre-filtered tests:bin/test | grep -E "(Running test suite|Results:|FAIL|ERROR|ALL TEST SUITES PASSED)" - Debug (if needed): If a test fails because of a subtle Godot lifecycle quirk (e.g.,
call_deferredtiming or an orphan node warning in GUT), I hand off strictly togodot-debuggingrather than letting the agent guess blindly.
- Red: The cloud orchestrator delegates test generation directly to disk on my RTX 4070 Ti:
Phase 4: Review, Ship & Tighten the Loop (Local + Cloud — Outer Loop)#
- Local Two-Axis Code Review (
code-reviewviabin/ollama-gen):Both axes run locally onbin/ollama-gen --review-standards bin/ollama-gen --review-spec 42ollama-pcin ~15 seconds for zero cloud tokens, checking Godot 4 coding standards on one axis and Ticket #42’s acceptance criteria on the other. - PR Creation (
pr): Once both reviews reportCLEANand tests pass,prdrafts a concise PR summary tied back to the ticket. - Continuous Improvement (
writing-for-agents): If the local model repeatedly forgot to typeArray[AbilityData]or leaked a test node, I don’t just fix the code—I usewriting-for-agentsto add a one-line guardrail toAGENTS.mdso the mistake never recurs.
5. Five Real-World Lessons (and Gotchas)#
Combining two large skill ecosystems with a hybrid cloud/local setup wasn’t frictionless. Five lessons stood out quickly:
1. Fighting the Massive Single-File God Script#
One of the biggest issues I’ve faced with coding models in Godot is their strong gravity toward massive single-file codebases. Left unchecked, an agent will happily pile movement, combat, cooldowns, animation hooks, and UI updates into one 1,000+ line script because keeping everything in a single file is easier for the model to track in the moment.
The fix has been running improve-codebase-architecture explicitly whenever a script starts bloating, paired with targeted Godot prompts to extract state machines (state-machine) and reusable modules (component-system, resource-pattern, scene-organization). Guiding the refactor with those concrete structural targets—rather than a vague “clean this up”—consistently breaks monoliths into small, composable, independently testable Godot scenes and scripts.
2. Skill Overlap Causes Trigger Ambiguity#
When both grill-with-docs and godot-grill, or code-review and godot-code-review, live in your global skills folder, an agent will occasionally invoke the wrong one—or worse, load both and waste thousands of tokens reconciling two conflicting checklists. Documenting the strict handoff rule explicitly in AGENTS.md (and your global user rules) eliminates the guesswork.
3. Loading Too Many Skills Bloats the Context Window#
GodotPrompter has 50+ skills. Treating them as always-on instructions is a fast way to burn cloud quota and confuse a 32k-context local model. Keep the outer loop lean, and load Godot domain skills per ticket—an inventory ticket only needs inventory-system, resource-pattern, and godot-testing, not shader-basics or xr-development.
4. Standard Tickets Fail on 12B Local Models#
High-level human tickets (“Add cooldown tracking to abilities and wire it to the HUD”) work fine for a frontier cloud model, but a local 12B model (gemma4-it-qat-32k) will hallucinate file paths, invent method names, or mismatch signal signatures. Using tickets-for-local-llm as the bridge between codebase-design (cloud) and bin/ollama-gen (local) is what makes local delegation reliable: concrete file anchors, exact signatures, numeric defaults, and explicit edge-case tests remove the ambiguity before the local model ever runs.
5. Close the Loop with writing-for-agents#
Skills aren’t static documentation; they are executable engineering habits. Every time a Godot 4 footgun slips through—like forgetting queue_free() on dynamically instantiated test fixtures or misusing await with freed nodes—investing two minutes with writing-for-agents to patch AGENTS.md pays dividends on every subsequent ticket.
6. Key Takeaways#
- Separate Process from Domain: Matt Pocock’s skills give your agent software-engineering discipline (the outer loop); GodotPrompter gives it engine fluency (the inner loop). You need both, and they work best when their boundaries are explicit.
- Use Strict Handoffs on Overlaps: Don’t let overlapping skills compete. Assign high-level planning, design, and two-axis review to the outer loop, and hand off cleanly to Godot-specific skills for engine testing, debugging, and scene architecture.
- Design Tickets for the Model That Will Execute Them: Pairing
codebase-designon a cloud model withtickets-for-local-llmturns your local GPU into a reliable implementation and review workhorse without burning frontier token budgets.
Are you layering general engineering skills with engine-specific skills in your own agentic workflow? Let me know what combinations—or skill collisions—you’ve run into in the comments below!
