agentleFS
striderZAstriderZA/OpenCodeGameStudios/.agents/skills/init-template/SKILL.md

init-template

Skill90 starsChanged 4 months agoMITView on GitHub

First-time repo setup for new projects. Transforms the cloned OCGS template into a clean, ready-to-use game project with your own identity.

  • Deletes or force-pushes
  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is invoked:

    line 9
  2. Very specific:

    Check if CLI arguments were passed (from argument-hint):

    line 13
  3. Very specific:

    If --name and --engine are both provided, skip the interactive prompt entirely and proceed to Phase 2 using the provided values.

    line 19
  4. Distinctive:

    After setting project identity, install the desired framework modules:

    line 37
  5. Distinctive:

    Write a fresh README.md to the project root.

    line 72
  6. Distinctive:

    Read AGENTS.md and update:

    line 109
  7. Very specific:

    Update the model assignment: replace the model table with the user's preference (default/workhorse/lightweight), mapping to their engine's …

    line 111
  8. Distinctive:

    Remove or update any project-specific settings

    line 112
  9. Distinctive:

    If AGENTS.md is missing or malformed, warn and skip this phase

    line 113
  10. Very specific:

    Read opencode.json and clean it up:

    line 117
  11. Distinctive:

    Remove any internal-only plugin paths

    line 118
  12. Very specific:

    Keep the ccgs-hooks.ts plugin reference only if the file actually exists: if [ -f .opencode/plugins/ccgs-hooks.ts ].

    line 120
  13. Very specific:

    If opencode.json is missing or malformed, warn and skip this phase

    line 121
  14. Very specific:

    If the user selected --reset-git or agrees when prompted:

    line 135
  15. Very specific:

    Delete all old tags (optional) — warn: if tags were previously pushed to remote, deletion requires git push origin --delete <tag> for each …

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

When this skill is invoked:

Phase 1: Parse Arguments

Check if CLI arguments were passed (from argument-hint):

  • --name "My Game" → sets game name (skips the name question below)
  • --engine godot|unity|unreal → sets engine (skips engine question)
  • --reset-git → automatically offers git reset (skips the prompt)

If --name and --engine are both provided, skip the interactive prompt entirely and proceed to Phase 2 using the provided values.

Otherwise, use question to gather missing details:

Tab 1: Project Identity

  • What is your game's name? (e.g., "My Game")
  • What is your game's one-line description? (e.g., "A 2D platformer about a cat in space")

Tab 2: Engine & Genre

  • Which engine are you using? (godot / unity / unreal)
  • What genre best describes your game? (e.g., platformer, RPG, puzzle, FPS, strategy)

Tab 3: Team

  • Team size (solo / small 2-5 / medium 6-15 / large 16+)
  • Preferred model tier (default / workhorse / lightweight) — refer to the README's Model Mapping section for options

Modular Installation

After setting project identity, install the desired framework modules:

node .agents/modules/install.mjs add core
node .agents/modules/install.mjs add engine-godot
node .agents/modules/install.mjs add art design ui qa release prototyping

Available modules (run node .agents/modules/install.mjs list to see all):

ModuleDescription
coreFramework skeleton (required)
artAseprite MCP, art generation, art bible
designGame mechanics, systems design, combat
architectureTechnical planning, ADRs
storiesEpics, stories, dev workflow, code review
programmingGameplay, AI, engine, network agents + rules
uiUX design, UI programming, accessibility
audioAudio direction, sound design
narrativeStory, world-building, dialogue
level-designLevel layout, encounter design
qaTesting strategy, bug tracking, profiling
releaseRelease management, sprints, changelogs
prototypingRapid prototyping, exploration
live-opsPost-launch content, community
localizationi18n, translation pipeline
engine-godotGodot 4 specialists
engine-unityUnity specialists
engine-unrealUnreal Engine 5 specialists
engine-bevyBevy specialists
dataData file conventions

Phase 2: Replace README.md

Write a fresh README.md to the project root. Use a template structure like:

# [Game Name]

> [One-line description]

Built with [Engine] using [OpenCode Game Studios](https://github.com/striderZA/OpenCodeGameStudios).

## Quick Start

```bash
opencode

Type /start for onboarding, or browse all skills with /.

Project Structure

/
├── src/              # Game source code
├── assets/           # Game assets (art, audio, vfx)
├── design/           # Game design documents
├── docs/             # Technical documentation
└── production/       # Sprint plans, session logs

License

[Choose a license]


Replace `[Game Name]`, `[One-line description]`, and `[Engine]` with the user's answers from Phase 1.

## Phase 3: Update AGENTS.md

Read AGENTS.md and update:
- Set the engine to the user's choice by changing the `## Technology Stack` section
- Update the model assignment: replace the model table with the user's preference (default/workhorse/lightweight), mapping to their engine's specialist agents
- Remove or update any project-specific settings
- If AGENTS.md is missing or malformed, warn and skip this phase

## Phase 4: Update opencode.json

Read opencode.json and clean it up:
- Remove any internal-only plugin paths
- Set project name appropriately
- Keep the ccgs-hooks.ts plugin reference only if the file actually exists: `if [ -f .opencode/plugins/ccgs-hooks.ts ]; then ...`
- If opencode.json is missing or malformed, warn and skip this phase

## Phase 5: Remove Internal Files

For each file/directory below, check existence first before deleting. If the directory already has user-created content, warn and skip rather than destroying it:

- `rm -f UPGRADING.md CONTRIBUTING.md SECURITY.md CODE_OF_CONDUCT.md`
- Clear `design/` contents only if empty of user files: `if ls design/*.md >/dev/null 2>&1; then echo "WARNING: design/ has content, skipping"; else rm -rf design/*; fi`
- Clear `src/` contents only if empty of user files: `if ls src/*.gd src/*.cs src/*.cpp src/*.ts >/dev/null 2>&1; then echo "WARNING: src/ has code files, skipping"; else rm -rf src/* && touch src/.gitkeep; fi`
- Clear `production/` contents only if empty of user files: similar guard
- On any error (file locked, permission denied), warn and continue to next item

## Phase 6: Optional Git Reset

If the user selected `--reset-git` or agrees when prompted:
- Offer to reset git history to a single commit
- `git checkout --orphan fresh-root`
- `git add -A`
- `git commit -m "Initial commit: scaffolded from OpenCode Game Studios template"`
- Delete all old tags (optional) — warn: if tags were previously pushed to remote, deletion requires `git push origin --delete <tag>` for each one
- Force push if needed (warn: this rewrites remote history for anyone who has cloned this repo)

## Phase 7: Summary

Print a completion summary:

✅ Template initialized

Project: [Game Name] Engine: [Engine] Team: [Size]

What's next:

  • Run /setup-engine [engine] to configure your engine docs
  • Run /concept-brainstorm to start designing your game concept
  • Run /start for guided onboarding

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.