Map systems

From striderZA/OpenCodeGameStudios · View interactive version

Map systems is an AI agent skill from the GitHub repository striderZA/OpenCodeGameStudios. Decompose a game concept into individual systems, map dependencies, prioritize design order, and create the systems index.

How to use this skill

Skill file

When this skill is invoked:

Parse Arguments

Two modes:

to create or update the systems index.

from the index and hand off to /design-system (Phase 6).

Also resolve the review mode (once, store for all gate spawns this run):

  1. If --review [full|lean|solo] was passed → use that
  2. Else read production/review-mode.txt → use that value
  3. Else → default to lean

See docs/framework/director-gates.md for the full check pattern.


Phase 1: Read Concept (Required Context)

Read the game concept and any existing design work. This provides the raw material

for systems decomposition.

Required:

> "No game concept found at design/gdd/game-concept.md. Run /concept-brainstorm first

> to create one, then come back to decompose it into systems."

Optional (read if they exist):

(update, don't recreate from scratch)

If the systems index already exists:

"The systems index already exists with [N] systems ([M] designed, [K] not started).

What would you like to do?"

"Review and revise priorities"


Phase 2: Systems Enumeration (Collaborative)

Extract and identify all systems the game needs. This is the creative core of the

skill — it requires human judgment because concept docs rarely enumerate every

system explicitly.

Step 2a: Extract Explicit Systems

Scan the game concept for directly mentioned systems and mechanics:

Step 2b: Identify Implicit Systems

For each explicit system, identify the hidden systems it implies. Games always

need more systems than the concept doc mentions. Use this inference pattern:

inventory UI, item serialization for save/load

enemy AI, combat UI (health bars, damage numbers), death/respawn

point of interest tracking, world state persistence

anti-cheat, network UI (ping, player list)

success/failure mechanics, recipe discovery/learning

state management, localization hooks

tracking, progression UI, progression save data

Explain in conversation text why each implicit system is needed (with examples).

Step 2c: User Review

Present the enumeration organized by category. For each system, show:

Then use question to capture feedback:

Iterate until the user approves the enumeration.


Phase 3: Dependency Mapping (Collaborative)

For each system, determine what it depends on. A system "depends on" another if

it cannot function without that other system existing first.

Step 3a: Map Dependencies

For each system, list its dependencies. Use these dependency heuristics:

depends on it (but UI is designed after the gameplay system)

Step 3b: Sort by Dependency Order

Arrange systems into layers:

  1. Foundation: Systems with zero dependencies (designed and built first)
  2. Core: Systems depending only on Foundation systems
  3. Feature: Systems depending on Core systems
  4. Presentation: UI and feedback systems that wrap gameplay systems
  5. Polish: Meta-systems, tutorials, analytics, accessibility

Step 3c: Detect Circular Dependencies

Check for cycles in the dependency graph. If found:

cycle by defining a contract between the two systems)

Step 3d: Present to User

Show the dependency map as a layered list. Highlight:

Use question to ask: "Does this dependency ordering look right? Any

dependencies I'm missing or that should be removed?"

Review mode check — apply before spawning TD-SYSTEM-BOUNDARY:

After dependency mapping is approved, spawn technical-director via Task using gate TD-SYSTEM-BOUNDARY (docs/framework/director-gates.md) before proceeding to priority assignment.

Pass: the dependency map summary, layer assignments, bottleneck systems list, any circular dependency resolutions.

Present the assessment. If REJECT, revise the system boundaries with the user before moving to priority assignment. If CONCERNS, note them inline in the systems index and continue.


Phase 4: Priority Assignment (Collaborative)

Assign each system to a priority tier based on what milestone it's needed for.

Step 4a: Auto-Assign Based on Concept

Use these heuristics for initial assignment:

Foundation-layer dependencies

Step 4b: User Review

Present the priority assignments in a table. For each tier, explain why systems

were placed there.

Use question to ask: "Do these priority assignments match your vision?

Which systems should be higher or lower priority?"

Explain reasoning in conversation: "I placed [system] in MVP because the core loop

requires it — without [system], the 30-second loop can't function."

"Why" column guidance: When explaining why each system was placed in a priority tier, mix technical necessity with player-experience reasoning. Do not use purely technical justifications like "Combat needs damage math" — connect to player experience where relevant. Examples of good "Why" entries:

Pure technical necessity ("X depends on Y") is insufficient alone when the system directly shapes player experience.

Review mode check — apply before spawning PR-SCOPE:

After priorities are approved, spawn producer via Task using gate PR-SCOPE (docs/framework/director-gates.md) before writing the index.

Pass: total system count per milestone tier, estimated implementation volume per tier (system count × average complexity), team size, stated project timeline.

Present the assessment. If UNREALISTIC, offer to revise priority tier assignments before writing the index. If CONCERNS, note them and continue.

Step 4c: Determine Design Order

Combine dependency sort + priority tier to produce the final design order:

  1. MVP Foundation systems first
  2. MVP Core systems second
  3. MVP Feature systems third
  4. Vertical Slice Foundation/Core systems
  5. ...and so on

This is the order the team should write GDDs in.


Phase 5: Create Systems Index (Write)

Step 5a: Draft the Document

Using the template at docs/framework/templates/systems-index.md, populate the

systems index with all data from Phases 2-4:

Step 5b: Approval

Present a summary of the document:

Ask: "May I write the systems index to design/gdd/systems-index.md?"

Wait for approval. Write the file only after "yes."

Review mode check — apply before spawning CD-SYSTEMS:

After the systems index is written, spawn creative-director via Task using gate CD-SYSTEMS (docs/framework/director-gates.md).

Pass: systems index path, game pillars and core fantasy (from design/gdd/game-concept.md), MVP priority tier system list.

Present the assessment. If REJECT, revise the system set with the user before GDD authoring begins. If CONCERNS, record them in the systems index as a > **Creative Director Note** at the top of the relevant tier section.

Step 5c: Update Session State

After writing, create production/session-state/active.md if it does not exist, then update it with:

Verdict: COMPLETE — systems index written to design/gdd/systems-index.md.

If the user declined: Verdict: BLOCKED — user did not approve the write.


Phase 6: Design Individual Systems (Handoff to /design-system)

This phase is entered when:

Step 6a: Select the System

"Would you like to start designing individual systems now? The first system in

the design order is [name]. Or would you prefer to stop here and come back later?"

Use question for: "Start designing [system-name] now, pick a different

system, or stop here?"

Step 6b: Hand Off to /design-system

Once a system is selected, invoke the /design-system [system-name] skill.

The /design-system skill handles the full GDD authoring process:

Do not duplicate the /design-system workflow here. This skill owns the systems

index; /design-system owns individual system GDDs.

Step 6c: Loop or Stop

After /design-system completes, use question:

If continuing, return to Step 6a.


Phase 7: Suggest Next Steps

After the systems index is created (or after designing some systems), present next actions using question:

The director review option ([B]) is worth highlighting: having a Creative Director or Technical Director review the completed systems index before starting GDD authoring catches scope issues, missing systems, and boundary problems before they're locked in across many documents. It is optional but recommended for new projects.

After any individual GDD is completed:


Collaborative Protocol

This skill follows the collaborative design principle at every phase:

  1. Question -> Options -> Decision -> Draft -> Approval at every step
  2. question at every decision point (Explain -> Capture pattern):
  1. "May I write to [filepath]?" before every file write
  2. Incremental writing: Update the systems index after each system is designed
  3. Handoff: Individual GDD authoring is owned by /design-system, which handles

incremental section writing, cross-referencing, design review, and index updates

  1. Session state updates: Write to production/session-state/active.md after

each milestone (index created, system designed, priorities changed)

Never auto-generate the full systems list and write it without review.

Never start designing a system without user confirmation.

Always show the enumeration, dependencies, and priorities for user validation.

Context Window Awareness

If context reaches or exceeds 70% at any point, append this notice:

Context is approaching the limit (≥70%). The systems index is saved to

design/gdd/systems-index.md. Open a fresh Claude Code session to continue

designing individual GDDs — run /map-systems next to pick up where you left off.


Recommended Next Steps

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.