Gate check

From TraftG/opencode-game-studio · View interactive version

Gate check is an AI agent skill from the GitHub repository TraftG/opencode-game-studio. Validate readiness to advance between development phases. Produces a PASS/CONCERNS/FAIL verdict with specific blockers and required artifacts.

How to use this skill

Skill file

Phase Gate Validation

This skill validates whether the project is ready to advance to the next development

phase. It checks for required artifacts, quality standards, and blockers.

Distinct from /project-stage-detect: That skill is diagnostic ("where are we?").

This skill is prescriptive ("are we ready to advance?" with a formal verdict).

Production Stages (7)

The project progresses through these stages:

  1. Concept — Brainstorming, game concept document
  2. Systems Design — Mapping systems, writing GDDs
  3. Technical Setup — Engine config, architecture decisions
  4. Pre-Production — Prototyping, vertical slice validation
  5. Production — Feature development (Epic/Feature/Task tracking active)
  6. Polish — Performance, playtesting, bug fixing
  7. Release — Launch prep, certification

When a gate passes, write the new stage name to production/stage.txt

(single line, e.g. Production). This updates the status line immediately.


1. Parse Arguments

/project-stage-detect, then validate the NEXT phase transition


2. Phase Gate Definitions

Gate: Concept → Systems Design

Required Artifacts:

Quality Checks:


Gate: Systems Design → Technical Setup

Required Artifacts:

Quality Checks:


Gate: Technical Setup → Pre-Production

Required Artifacts:

Quality Checks:


Gate: Pre-Production → Production

Required Artifacts:

Quality Checks:


Gate: Production → Polish

Required Artifacts:

Quality Checks:


Gate: Polish → Release

Required Artifacts:

Quality Checks:


3. Run the Gate Check

For each item in the target gate:

Artifact Checks

Quality Checks

profiling data in tests/performance/ or recent /perf-profile output

Cross-Reference Checks


4. Collaborative Assessment

For items that can't be automatically verified, ask the user:

Never assume PASS for unverifiable items. Mark them as MANUAL CHECK NEEDED.


5. Output the Verdict

## Gate Check: [Current Phase] → [Target Phase]

**Date**: [date]
**Checked by**: gate-check skill

### Required Artifacts: [X/Y present]
- [x] design/gdd/game-concept.md — exists, 2.4KB
- [ ] docs/architecture/ — MISSING (no ADRs found)
- [x] production/sprints/ — exists, 1 sprint plan

### Quality Checks: [X/Y passing]
- [x] GDD has 8/8 required sections
- [ ] Tests — FAILED (3 failures in tests/unit/)
- [?] Core loop playtested — MANUAL CHECK NEEDED

### Blockers
1. **No Architecture Decision Records** — Run `/architecture-decision` to create one
   covering core system architecture before entering production.
2. **3 test failures** — Fix failing tests in tests/unit/ before advancing.

### Recommendations
- [Priority actions to resolve blockers]
- [Optional improvements that aren't blocking]

### Verdict: [PASS / CONCERNS / FAIL]
- **PASS**: All required artifacts present, all quality checks passing
- **CONCERNS**: Minor gaps exist but can be addressed during the next phase
- **FAIL**: Critical blockers must be resolved before advancing

6. Update Stage on PASS

When the verdict is PASS and the user confirms they want to advance:

  1. Write the new stage name to production/stage.txt (single line, no trailing newline)
  2. This immediately updates the status line for all future sessions

Example: if passing the "Pre-Production → Production" gate:

echo -n "Production" > production/stage.txt

Always ask before writing: "Gate passed. May I update production/stage.txt to 'Production'?"


7. Follow-Up Actions

Based on the verdict, suggest specific next steps:


Collaborative Protocol

This skill follows the collaborative design principle:

  1. Scan first: Check all artifacts and quality gates
  2. Ask about unknowns: Don't assume PASS for things you can't verify
  3. Present findings: Show the full checklist with status
  4. User decides: The verdict is a recommendation — the user makes the final call
  5. Get approval: "May I write this gate check report to production/gate-checks/?"

Never block a user from advancing — the verdict is advisory. Document the risks

and let the user decide whether to proceed despite concerns.

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.