77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
feat: lock standards, publish catalog + router spec + golden skill
AbhishekBarali15ad712e2c2dc
diff --git a/docs/COMPATIBILITY.md b/docs/COMPATIBILITY.mdnew file mode 100644index 0000000..f7a6ccf--- /dev/null+++ b/docs/COMPATIBILITY.md@@ -0,0 +1,80 @@+# Compatibility++The portable core of every skill in this repository is the **Agent Skills open standard**+(`SKILL.md`). One canonical skill folder serves the agents that consume the standard natively;+three rules-based editors are supported through **generated adapters**. This page documents+where each agent looks for skills and how it triggers them. For copy-paste install commands,+see [`INSTALLATION.md`](INSTALLATION.md).++## Support matrix++| Agent | Native skills? | Skill format | Project install path | User / global path | Trigger | Adapter needed? |+|-------|:--------------:|--------------|----------------------|--------------------|---------|:---------------:|+| **Claude Code** | ✅ | `SKILL.md` | `.claude/skills/<name>/` | `~/.claude/skills/<name>/` | auto (Skill tool) · `/skills` menu | ❌ |+| **Claude Agent SDK** | ✅ (filesystem) | `SKILL.md` | `.claude/skills/<name>/` | `~/.claude/skills/<name>/` | auto via `skills` option (set `setting_sources`) | ❌ |+| **Claude.ai** | ✅ (zip upload) | `SKILL.md` at zip root | — (per-account upload) | — | auto in chat | ❌ (zip the folder; `description` ≤ 200 chars) |+| **Kiro** | ✅ | `SKILL.md` | `.kiro/skills/<name>/` | `~/.kiro/skills/<name>/` | auto · `/skill-name` | ❌ |+| **Gemini CLI** | ✅ | `SKILL.md` | `.agents/skills/<name>/` (or `.gemini/skills/`) | `~/.agents/skills/` (or `~/.gemini/skills/`) | `activate_skill` + consent | ❌ |+| **Codex CLI** | ✅ | `SKILL.md` | `.agents/skills/<name>/` | `~/.agents/skills/` | `$skill` · `/skills` · implicit | ❌ |+| **Cursor** | ❌ | `.mdc` rule | `.cursor/rules/<name>.mdc` | Settings → Rules | Agent Requested (description) · globs · `@name` | ✅ generate |+| **Windsurf** | ❌ | `.md` rule | `.windsurf/rules/<name>.md` | `global_rules.md` | `model_decision` · `glob` · `@name` | ✅ generate (respect char budget) |+| **Cline** | ❌ | `.md` / `.txt` rule | `.clinerules/<name>.md` | `Documents/Cline/Rules/` | `paths` glob · manual toggle | ✅ generate (fold description into body) |++**Native drop-in summary.** A single `SKILL.md` tree serves **Claude Code, Kiro, Gemini CLI,+and Codex CLI** (plus the Claude Agent SDK, and Claude.ai via zip upload). The one directory+that Gemini CLI **and** Codex CLI both read is **`.agents/skills/<name>/SKILL.md`** — use it as+the universal CLI location. Claude Code reads `.claude/skills/`; Kiro reads `.kiro/skills/`.+Only **Cursor, Windsurf, and Cline** require generated adapters.++## The portable-core rule++A committed `SKILL.md` contains **only** portable, agent-agnostic content:++- **Frontmatter:** `name`, `description` (required) plus optional `license`, `compatibility`,+ and `metadata` (`engine` / `category` / `difficulty`). Nothing else.+- **Body:** the open-standard Markdown playbook (when-to-use, workflow, patterns, pitfalls,+ references), with optional `references/`, `scripts/`, and `assets/`.++The following agent-specific keys are **forbidden** in a committed `SKILL.md` (the validator+rejects them); they belong only in generated adapters:++```+when_to_use argument-hint disable-model-invocation user-invocable model+paths hooks shell context globs+alwaysApply trigger+```++`allowed-tools` is part of the open standard but honored only by Claude Code; this repo omits+it by default. Keeping the core clean is what lets one file install everywhere — agent quirks+are applied at adapter-generation time, never baked into the source.++## Adapters (Cursor / Windsurf / Cline)++These editors use a *rules* system rather than skills. Adapters are **generated** from the+canonical `SKILL.md` and treated as build artifacts — never hand-edited, never a parallel copy+of the skill. The mapping:++| From `SKILL.md` | → Cursor `.mdc` | → Windsurf `.md` | → Cline `.md` |+|-----------------|-----------------|------------------|---------------|+| `name` | filename + `@id` | filename + `@id` | filename |+| `description` | `description:` (mode *Agent Requested*) | `description:` (`trigger: model_decision`) | **prepended into the body** (no description field) |+| file-scoped skill | `globs:` (Auto Attached) | `trigger: glob` + `globs:` | `paths:` |+| router / always-on skill | `alwaysApply: true` | `trigger: always_on` | no frontmatter |+| body | verbatim (rewrite refs as `@path`) | verbatim (enforce char budget; spill depth to references) | description + verbatim body |++The default mode mirrors how `SKILL.md` itself triggers: description-driven (Cursor *Agent+Requested*, Windsurf *model_decision*). The master router maps to an always-on rule.++**Fidelity caveats:**++- **Cline** has no description-driven trigger, so the adapter folds the description into the top+ of the body to preserve *what + when*.+- **Windsurf** enforces a per-file character budget; the generator trims or pushes depth into+ referenced files. Author bodies lean so they survive the conversion.++## Why this works++The open standard formalizes progressive disclosure (metadata → body → resources) and a small,+fixed frontmatter contract. Because the four CLI agents and the Claude surfaces all read that+same contract, a correct `SKILL.md` is portable by construction; the editors that don't read it+yet are reached by deterministic generation rather than by maintaining nine copies of every skill.diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.mdnew file mode 100644index 0000000..a32de55--- /dev/null+++ b/docs/INSTALLATION.md@@ -0,0 +1,114 @@+# Installation++How to install these skills into each supported agent. The compatibility details (paths,+triggers, adapters) live in [`COMPATIBILITY.md`](COMPATIBILITY.md); this page is the+practical how-to.++## The one rule++Skills are stored here as:++```+skills/<category>/<name>/SKILL.md+```++The `<name>/` folder — the direct parent of `SKILL.md` — **is** the skill, and its name equals+the skill's `name`. To install a skill, copy that `<name>/` folder (with its `references/`,+`scripts/`, `assets/` if present) into the agent's skills directory. Skill names are unique+across this repository, so installing every skill into one flat directory is safe.++> The examples below use one skill (`godot-tilemap`) and POSIX shell. On Windows PowerShell,+> replace `cp -R src dest` with `Copy-Item -Recurse src dest` and `mkdir -p` with `mkdir`.++## Claude Code++```bash+# project-local+mkdir -p .claude/skills+cp -R skills/godot/godot-tilemap .claude/skills/++# …or every skill (names are globally unique, so flattening is safe)+find skills -name SKILL.md -type f -exec dirname {} \; | while read -r d; do+ cp -R "$d" .claude/skills/+done+```++For all projects, copy into `~/.claude/skills/` instead. Claude Code auto-triggers a skill from+its `description`; `/skills` opens an interactive menu.++## Kiro++```bash+mkdir -p .kiro/skills # or ~/.kiro/skills for global+cp -R skills/godot/godot-tilemap .kiro/skills/+```++The default agent auto-loads skills from both locations. A **custom** agent must opt in via its+`resources`:++```json+{ "name": "my-agent",+ "resources": ["skill://.kiro/skills/*/SKILL.md", "skill://~/.kiro/skills/*/SKILL.md"] }+```++Trigger automatically by description match, or explicitly with `/skill-name`.++## Gemini CLI & Codex CLI (shared location)++Both read `.agents/skills/`, so one copy serves both:++```bash+mkdir -p .agents/skills # repo-local; or ~/.agents/skills for user-global+cp -R skills/godot/godot-tilemap .agents/skills/+```++- **Gemini CLI:** verify with `gemini skills list` or `/skills`; activation prompts for consent.+- **Codex CLI:** list with `/skills`, or mention `$godot-tilemap`; implicit activation by+ description also works.++## Claude Agent SDK (Python)++Skills are filesystem artifacts under `.claude/skills/`; load them by setting+`setting_sources`:++```python+from claude_agent_sdk import ClaudeAgentOptions++options = ClaudeAgentOptions(+ cwd="/path/to/project", # contains .claude/skills/+ setting_sources=["user", "project"], # REQUIRED, or no skills are discovered+ skills="all", # or ["godot-tilemap", ...]+ allowed_tools=["Read", "Write", "Bash", "Skill"],+)+```++## Claude.ai++1. Settings → Capabilities → enable **Code execution**.+2. Zip the skill folder so that the folder (named exactly like `name`) is the zip root and+ `SKILL.md` sits inside it.+3. Customize → Skills → **Upload**.++Keep `description` ≤ 200 characters so it is not truncated by the upload UI.++## Cursor / Windsurf / Cline (generated adapters)++These editors use rules files rather than `SKILL.md`, so a skill is converted to the editor's+rule format (see the mapping in [`COMPATIBILITY.md`](COMPATIBILITY.md)). The adapter generator+is delivered with the tooling sessions; the intended interface is:++```bash+scripts/adapters/generate-rules --target cursor --out .cursor/rules+scripts/adapters/generate-rules --target windsurf --out .windsurf/rules+scripts/adapters/generate-rules --target cline --out .clinerules+```++Until then, a skill can be adapted by hand: create the rule file at the path in the matrix,+copy the `SKILL.md` body in, and (for Cline) prepend the `description` to the body so the model+still sees what the skill is and when to use it.++## Verify after installing++Open your agent and confirm the skill is listed (e.g. `/skills` in Claude Code, Kiro, Codex, or+Gemini). Then ask a question that should trigger it — for `godot-tilemap`, something like+"set up a tilemap with autotiling in Godot" — and confirm the skill activates.diff --git a/docs/SKILL-FORMAT.md b/docs/SKILL-FORMAT.mdindex 6e23ad5..640c6bb 100644--- a/docs/SKILL-FORMAT.md+++ b/docs/SKILL-FORMAT.md@@ -1,166 +1,272 @@# Skill Authoring Standard-This is the canonical standard for every skill in this repository. It is the-contract that keeps 60+ skills, written across many sessions, consistent and-high quality. Read it fully before authoring or reviewing a skill.+This is the canonical standard for every skill in this repository. It is the contract+that keeps 60+ skills, written across many sessions, consistent and high quality. Read it+fully before authoring or reviewing a skill.-> Format basis: the **Agent Skills open standard** (agentskills.io) used by Claude-> Code, the Claude Agent SDK, Kiro, and compatible agents.+> **Status: FROZEN for v1 (locked at session S05).** Authoring sessions build against this+> document as written — do not reinterpret it. If a genuine gap or contradiction is found,+> note it in the session's progress doc and the QA session (S13) resolves it; do not silently+> diverge. The companion files are [`COMPATIBILITY.md`](COMPATIBILITY.md) (where each agent+> looks for skills), [`INSTALLATION.md`](INSTALLATION.md) (how to install them), and+> [`skill-catalog.md`](skill-catalog.md) (the frozen list of v1 skills + sources + router signals).++> **Format basis:** the **Agent Skills open standard** (agentskills.io), consumed natively by+> Claude Code, the Claude Agent SDK, Kiro, Gemini CLI, Codex CLI, and compatible agents. The+> portable core is `SKILL.md`; nothing agent-specific ever goes in a committed skill.---## 1. What a skill is-A skill is a **directory** containing a `SKILL.md` file and, optionally,-supporting folders. The agent pre-loads only the `name` + `description` of every-skill; it reads the body **on demand**, and reads bundled files **only when-needed**. This is *progressive disclosure* — design for it.+A skill is a **directory** containing a `SKILL.md` file and, optionally, supporting folders.+The agent pre-loads only the `name` + `description` of every skill; it reads the body **on+demand**, and reads bundled files **only when needed**. This is *progressive disclosure* —+design for it.```skills/<category>/<skill-name>/├── SKILL.md # required — the playbook (keep < 500 lines)-├── references/ # optional — deep docs the agent reads on demand+├── references/ # optional — deep docs the agent reads on demand (one level deep)│ └── *.md├── scripts/ # optional — runnable, deterministic helpers-│ └── *.{py,sh,gd,...}+│ └── *.{py,sh,gd,lua,...}└── assets/ # optional — templates, configs, sample files```+`references/`, `scripts/`, and `assets/` are the **only** permitted top-level subfolders.++### Progressive-disclosure budget (design to these numbers)++| Tier | What loads | When | Budget |+|------|-----------|------|--------|+| 1 — Metadata | `name` + `description` | At startup, for **every** skill | ~100 tokens / skill |+| 2 — Instructions | the `SKILL.md` body | when the skill activates | **< 5000 tokens** (and **< 500 lines**) |+| 3 — Resources | `references/`, `scripts/`, `assets/` | read/executed on demand | effectively unbounded |+----## 2. Frontmatter (required + optional fields)+## 2. Frontmatter++Frontmatter is YAML between two `---` fences, and must be the **very first bytes** of the file+(no BOM, no blank line before the opening `---`).```yaml----name: godot-tilemap # REQUIRED. ≤64 chars. lowercase a-z, 0-9, hyphens.- # No leading/trailing hyphen. MUST equal the folder name.-description: > # REQUIRED. ≤1024 chars. Third person.- Build and edit TileMaps/TileSets in Godot 4 — terrain autotiling, collision and- navigation layers, custom tile data, and runtime tile updates. Use when the user- is building 2D levels, tile-based worlds, or asks about TileMap/TileSet in Godot.+name: love2d-core # REQUIRED. 1–64 chars. lowercase a-z, 0-9, hyphens.+ # No leading/trailing hyphen, no consecutive hyphens.+ # MUST equal the folder name. Unique across the repo.+description: > # REQUIRED. 1–1024 chars. Third person.+ Structure a LÖVE (Love2D) game in Lua — the love.load/update/draw loop, delta-time+ movement, input handling, and simple state stacks. Use when building or debugging a+ LÖVE (.love) game, or when the user mentions love2d, love.run, conf.lua, or main.lua.license: Apache-2.0 # optional-compatibility: Godot 4.2+ # optional, ≤500 chars (engine/runtime/network needs)-metadata: # optional, arbitrary key/values- engine: godot- category: godot- difficulty: intermediate-# allowed-tools: ... # optional, experimental — usually omit+compatibility: LÖVE 11.5 (Lua 5.1 / LuaJIT) # optional, ≤500 chars (engine/runtime/network)+metadata: # optional; a flat string→string map+ engine: love2d+ category: other-engines+ difficulty: beginner---```-### Writing the `description` (this is the most important line you write)-The agent decides whether to trigger the skill almost entirely from `name` +-`description`. A weak description = a skill that never fires or fires wrongly.+### 2.1 Field reference (exact limits — from the open standard)++| Field | Required | Limit | Rules |+|-------|:--------:|-------|-------|+| `name` | **Yes** | **1–64 chars** | `^[a-z0-9]+(-[a-z0-9]+)*$` — lowercase/digits/hyphens; no leading/trailing/consecutive hyphen. **Equals the parent folder name. Unique repo-wide.** Must not contain XML tags or the reserved words `anthropic`/`claude`. |+| `description` | **Yes** | **1–1024 chars** | States *what it does* **and** *when to use it*; embeds real trigger words. No XML tags. See §3. |+| `license` | No | short | e.g. `Apache-2.0` (repo default). |+| `compatibility` | No | **1–500 chars** | Runtime/engine/network requirements, e.g. `Godot 4.3+`, `Unity 6 (6000.0 LTS)`. |+| `metadata` | No | — | A flat **string→string** map. This repo uses `engine`, `category`, `difficulty`. No nested/non-string values. |++`version` is **not** a top-level field. If you must record a target version beyond+`compatibility`, put it inside `metadata` — but `compatibility` is the canonical place.++### 2.2 Forbidden frontmatter keys (hard reject)++These are agent-specific keys that belong in **generated adapters**, never in a committed+`SKILL.md`. The validator fails the build if any appear:++```+when_to_use argument-hint disable-model-invocation user-invocable model+paths hooks shell context globs+alwaysApply trigger+```++`allowed-tools` is part of the open standard (experimental, honored only by Claude Code) but+this repo **omits it by default**; the validator emits a **warning** if present. Keeping the+core free of these keys is exactly what lets one file install across every agent (see+[`COMPATIBILITY.md`](COMPATIBILITY.md) for how adapters are generated for Cursor/Windsurf/Cline).++### 2.3 Cross-surface portability note (claude.ai)++The hard cap on `description` is **1024 chars**, but **claude.ai's upload UI truncates at+200 chars**. Treat **≤200 chars as a soft target**: lead with the primary use case so the+skill still triggers correctly if the description is clipped. The validator warns above 200.-- Lead with **what it does**, then **when to use it** ("Use when …").-- Include the concrete **trigger vocabulary** a user would actually type- (engine name, node/class names, genre words, file types).-- Be specific and disambiguating. `godot-2d-platformer` should not fire for a 3D FPS.-- Third person, no "I". No marketing adjectives ("amazing", "best").+---++## 3. Writing the `description` (the most important line you write)++The agent decides whether to trigger a skill almost entirely from `name` + `description`.+A weak description = a skill that never fires, or fires on the wrong task.++- **Lead with what it does, then when to use it** ("Use when …"). Put the primary use case+ first — retrieval budgets truncate the tail.+- **Embed the exact trigger vocabulary a user types:** engine name + version, node/class+ names (`CharacterBody2D`, `MonoBehaviour`, `AnimationTree`), file types (`.tscn`, `.gd`,+ `main.lua`), and genre words.+- **Be specific and disambiguating.** A `godot-2d-movement` skill must not fire for a 3D FPS;+ point to the sibling skill that does.+- **Third person, no "I"/"we".** No marketing adjectives (`amazing`, `best`, `powerful`,+ `ultimate`).----## 3. Body structure (the SKILL.md playbook)+## 4. Body structure (the `SKILL.md` playbook)-Keep it scannable, imperative, and lean. Recommended sections:+Keep it scannable, imperative, and lean. Choose a **body archetype** on purpose:++- a **knowledge** skill — task-bucketed recipes, code-forward; or+- a **workflow** skill — numbered steps, decision points, pitfalls, anti-pattern call-outs.++Either way, include these sections:1. **Title + one-line purpose.**-2. **When to use / when not to use** — sharpen the trigger boundary.+2. **When to use / when not to use** — sharpen the trigger boundary; name the sibling skill+ that owns what this one doesn't.3. **Core workflow** — numbered, decision-oriented steps the agent follows.-4. **Key patterns / recipes** — short, correct, idiomatic code blocks for the- most common tasks. Show the *right* way; name the *wrong* way to avoid.+4. **Patterns / recipes** — **≥2** short, correct, **version-pinned** code blocks for the+ most common tasks. Show the right way; name the wrong way to avoid.5. **Pitfalls & gotchas** — version traps, performance footguns, common bugs.-6. **References** — point to `references/*.md` for depth ("For X, read references/x.md").- Push long tables, API dumps, and rarely-needed detail into `references/`.+6. **References** — point to `references/*.md` for depth ("For X, read `references/x.md`").+ Push long tables, API dumps, and rarely-needed detail there.++Principles: **procedural, not encyclopedic**; **decisions first**; **one responsibility per+skill** (if it sprawls, split it and let the router compose); **< 500 lines** (move depth to+`references/`).++----Principles:-- **Procedural, not encyclopedic.** Tell the agent *how to act*, not everything known.-- **Decisions first.** Help the agent choose between approaches for the situation.-- **One responsibility per skill.** If it sprawls, split it and let the router compose.-- **< 500 lines.** If you exceed it, move detail into `references/`.+## 5. Authoring principles (L1–L10) — the distilled standard++These ten principles, derived from studying the ecosystem and the primary specs, are the+heart of the standard. Every rule above and rubric item below traces back to one of them.++- **L1 — Write the description as a routing rule.** What it does, then when to use it, with+ the exact words a developer types (engine + version, class/node names, file types, genre).+ Lead with the primary use case; stay specific; fit the retrieval budget.+- **L2 — Design for progressive disclosure with explicit budgets.** Tiny always-loaded+ metadata; a lean body (**< 500 lines**, well under ~5k tokens) about *how to act*; depth in+ `references/` (one level deep); deterministic helpers in `scripts/`; templates in `assets/`.+- **L3 — One responsibility per skill.** Prefer many sharp, well-named skills over a few broad+ ones; they auto-trigger more accurately. If a skill sprawls, split it.+- **L4 — Choose a body archetype on purpose** (knowledge *or* workflow). Keep it procedural+ and scannable, with a short when-to-use / when-not boundary.+- **L5 — Pin versions and verify against primary docs.** State the engine/runtime version,+ verify every API against official documentation, never invent APIs, and call out changes+ across major versions (e.g. Godot 3→4 idioms).+- **L6 — Bake in verification suited to the medium.** For games: inspect the scene tree,+ validate scenes/scripts, run headless, capture screenshots / playtest — and report only+ what was actually observed, never assumed.+- **L7 — The standard is enforced mechanically.** The validator checks `name` == folder,+ required frontmatter, description quality, size/token budgets, resolved cross-references,+ and forbidden keys. Run it before every commit.+- **L8 — Make composition explicit.** Provide "Related skills" cross-references and clear+ hand-offs between skills used together (player controller → input + state machine ++ animation). The master router composes them; you make composition legible.+- **L9 — Be portable by construction.** Keep the `SKILL.md` core agent-neutral; isolate any+ agent-specific detail in generated adapters, not the source file.+- **L10 — Treat trust & safety as first-class.** Scope each skill to what it needs, avoid+ undocumented network calls in `scripts/`, prefer bundled references over live fetches where+ staleness matters, ship no secrets, and write everything originally from primary sources.----## 4. Code & technical accuracy+## 6. Code & technical accuracy-- Code must be **correct and idiomatic** for the stated engine version. Do not invent- APIs, signals, or methods. When unsure, verify against **primary docs** (official- engine documentation) via Firecrawl before writing.-- **Pin versions.** State the engine/runtime version the patterns target- (e.g., "Godot 4.3", "Unity 6 / 2022 LTS", "Unreal 5.4", "Bevy 0.14").-- Prefer **minimal, runnable** snippets over large dumps. Each snippet should make one point.-- Note breaking changes between major versions where it matters (e.g., Godot 3 → 4).+- Code must be **correct and idiomatic** for the stated version. Do not invent APIs, signals,+ or methods. When unsure, **verify against primary docs** (official engine documentation) via+ Firecrawl before writing.+- **Pin versions.** State the engine/runtime the patterns target (e.g. "Godot 4.3", "Unity 6+ / 6000.0 LTS", "Unreal 5.4+", "Bevy 0.16+", "LÖVE 11.5"). Note breaking changes between major+ versions where it matters.+- Prefer **minimal, runnable** snippets over large dumps. Each snippet makes one point.- `scripts/` are for **deterministic** helpers the agent can run (generators, validators,- converters). Make them self-contained and documented at the top.+ converters). Make them self-contained and documented at the top; no undocumented network calls.----## 5. Originality & licensing (mandatory)+## 7. Originality & licensing (mandatory)- **Write from scratch from primary sources.** Other repos/skills may be studied for*structure and ideas only*. Never paste their prose or code.-- Cite **primary documentation** (official engine/framework docs) as the source of truth,- not third-party skills.-- All skills are licensed **Apache-2.0** (repo default). If a pattern is genuinely derived- from a permissively licensed source, attribute it in `NOTICE`.-- The QA session runs an originality pass; anything resembling copied content is rewritten.+- Cite **primary documentation** (official engine/framework docs) as the source of truth.+- All skills are licensed **Apache-2.0** (repo default). If a pattern is genuinely derived from+ a permissively licensed source, attribute it in [`NOTICE`](../NOTICE).+- **No growth/marketing language** in any committed file (no "stars", launch, or+ competitor-comparison text). The QA session (S13) runs an originality pass.----## 6. Quality rubric (a skill ships only if every box is true)--- [ ] Folder name = `name` = lowercase/hyphen, ≤64 chars, unique in the repo.-- [ ] `description` ≤1024 chars; states what + when; contains real trigger words; disambiguated.-- [ ] `SKILL.md` < 500 lines; depth pushed to `references/`.-- [ ] Body has: when-to-use, core workflow, ≥2 correct code patterns, pitfalls, references.-- [ ] All code is version-pinned, idiomatic, and verified against primary docs (no invented APIs).-- [ ] Original prose & code — no copied content; primary sources cited.-- [ ] No growth/marketing language. No secrets. No external network calls in scripts unless documented.-- [ ] Renders cleanly as Markdown; valid YAML frontmatter; internal links resolve.-- [ ] Passes the validator (`scripts/validate-skills.*` — added in the scaffolding session).-----+## 8. Cross-agent portability (the portable-core rule)-## 7. Cross-agent compatibility+The `SKILL.md` open standard is the portable core. The full per-agent breakdown lives in+[`COMPATIBILITY.md`](COMPATIBILITY.md); the rules an author must internalize:-The `SKILL.md` open standard is the portable core. Notes:-- **Claude Code / Kiro / Claude Agent SDK:** consume `SKILL.md` natively.-- **Cursor / Windsurf / Cline / Gemini CLI / Codex:** support varies; we ship a thin- compatibility doc (`docs/COMPATIBILITY.md`) and, where useful, generated adapters- (e.g., rules files) rather than forking each skill. Never embed agent-specific hacks- in the core `SKILL.md`.+- **Native consumers** (drop the folder in): Claude Code (`.claude/skills/`), Claude Agent SDK,+ Claude.ai (zip upload), Kiro (`.kiro/skills/`), Gemini CLI & Codex CLI (`.agents/skills/`).+ The one directory all CLI agents can share is **`.agents/skills/<name>/SKILL.md`**.+- **Adapter-required editors** (rules-based, not skill-based): Cursor (`.cursor/rules/*.mdc`),+ Windsurf (`.windsurf/rules/*.md`), Cline (`.clinerules/`). We **generate** adapters from the+ canonical `SKILL.md`; we never hand-fork a skill or embed editor-specific keys in the core.+- Keep the body agent-neutral. Anything agent-specific is applied at adapter-generation time.----## 8. Example: a minimal, correct skill+## 9. Quality rubric (a skill ships only if every box is true)++This rubric is what the validator and the QA session enforce. `[E]` = checked as a hard error+by `scripts/validate-skills.py`; `[W]` = warning / human-reviewed.++- [ ] **[E]** Folder name = `name`; lowercase/digits/hyphens; ≤64 chars; no leading/trailing/+ consecutive hyphen; **unique repo-wide**.+- [ ] **[E]** `description` present, ≤1024 chars. **[W]** states what + when, contains real+ trigger words, third person, no marketing adjectives, ≤200 chars for claude.ai portability.+- [ ] **[E]** `compatibility` (if present) ≤500 chars.+- [ ] **[E]** No forbidden frontmatter keys (§2.2). **[W]** `allowed-tools` absent.+- [ ] **[E]** `SKILL.md` < 500 lines. **[W]** body < ~5000 tokens.+- [ ] **[W]** Body has: when-to-use, core workflow, **≥2** correct code patterns, pitfalls,+ references.+- [ ] **[W]** All code is version-pinned, idiomatic, and verified against primary docs (no+ invented APIs).+- [ ] **[W]** Original prose & code — no copied content; primary sources cited.+- [ ] **[W]** No growth/marketing language. No secrets. No undocumented network calls in scripts.+- [ ] **[E]** Internal `references/` links resolve. **[W]** references are one level deep;+ only `references/`/`scripts/`/`assets/` subfolders present.+- [ ] **[E]** Passes the validator (`python scripts/validate-skills.py`).-```markdown-----name: love2d-core-description: >- Structure a LÖVE (Love2D) game in Lua — the love.load/update/draw loop, delta-time- movement, input handling, and state stacks. Use when building or debugging a Love2D- (.love) game or when the user mentions LÖVE, love.run, or main.lua.-license: Apache-2.0-compatibility: LÖVE 11.x (Lua 5.1/LuaJIT)-metadata: { engine: love2d, category: other-engines, difficulty: beginner }----# Love2D Core+## 10. The golden reference skill-Use when starting or debugging a LÖVE game. Not for asset art or shader work-(see `disciplines/shader-programming`).+[`skills/other-engines/love2d-core/`](../skills/other-engines/love2d-core/) is the **golden+reference** authored in S05. It demonstrates this standard end-to-end: a routing-rule+description, the six body sections, ≥2 version-pinned patterns, a pitfalls list, and a+`references/` file for progressive disclosure. **Copy its shape.** When in doubt about+structure, open it.-## Core workflow-1. Confirm `main.lua` defines `love.load`, `love.update(dt)`, `love.draw`.-2. Drive all motion by `dt` (frame-rate independence). ...+Start every new skill from [`../templates/SKILL.template.md`](../templates/SKILL.template.md).-## Patterns-... correct, version-pinned Lua snippets ...+----## Pitfalls-- Forgetting `dt` → speed varies with FPS. ...+## 11. Validator-## References-- For state management, read `references/state-stack.md`.+```bash+python scripts/validate-skills.py```++Pure Python, no dependencies. It validates every `skills/**/SKILL.md` and `router/SKILL.md`+against this standard (frontmatter limits, `name` == folder, < 500 lines, resolved+`references/` links) and exits non-zero with a precise report on any failure. Fix every+reported problem before you commit.diff --git a/docs/progress/INDEX.md b/docs/progress/INDEX.mdindex 0fbc172..ee657b9 100644--- a/docs/progress/INDEX.md+++ b/docs/progress/INDEX.md@@ -9,9 +9,9 @@ Status legend: ⬜ pending · 🟦 in progress · ✅ done|-----|---------|:----:|:------:|--------------|| S01 | Landscape & skill-craft teardown | 1 | ✅ | [SESSION-01-landscape.md](SESSION-01-landscape.md) — 40+ sources triaged, 19 deep || S02 | Format & cross-agent compatibility | 1 | ✅ | [SESSION-02-format-compat.md](SESSION-02-format-compat.md) — compat matrix (9 surfaces), portable-core/adapter rule, install snippets, 26-check validator spec |-| S03 | Domain taxonomy & source map | 1 | ⬜ | — |+| S03 | Domain taxonomy & source map | 1 | ✅ | [SESSION-03-taxonomy.md](SESSION-03-taxonomy.md) — 62-skill v1 catalog + verified primary-source map || S04 | Repo scaffolding & infrastructure | 1 | ✅ | [SESSION-04](SESSION-04-scaffolding.md) |-| S05 | Standards lock & router spec (gate) | 2 | ⬜ | — |+| S05 | Standards lock & router spec (gate) | 2 | ✅ | [SESSION-05-standards-lock.md](SESSION-05-standards-lock.md) — standard frozen; catalog + compatibility + install + router spec published; golden skill `love2d-core` || S06 | Author: Godot skills | 3 | ⬜ | — || S07 | Author: Unity + Unreal skills | 3 | ⬜ | — || S08 | Author: Web + other engines | 3 | ⬜ | — |@@ -26,9 +26,9 @@ Status legend: ⬜ pending · 🟦 in progress · ✅ done## Waves-- **Wave 1** (S01–S04): research, format/compat, taxonomy, and repo scaffolding — run in parallel.-- **Wave 2** (S05): standards + taxonomy + router spec locked (gate).-- **Wave 3** (S06–S11): author the skills in parallel.+- **Wave 1** (S01–S04): research, format/compat, taxonomy, and repo scaffolding — run in parallel. ✅ done+- **Wave 2** (S05): standards + taxonomy + router spec locked (gate). ✅ **gate passed — Wave 3 unblocked**+- **Wave 3** (S06–S11): author the skills in parallel. ⬜ ready to start (read `docs/skill-catalog.md` + `docs/SKILL-FORMAT.md` + the golden skill `skills/other-engines/love2d-core/`)- **Wave 4** (S12): build the master router and integrate.- **Wave 5** (S13): QA, validation, originality audit.- **Wave 6** (S14–S16): docs polish → release → launch.diff --git a/docs/progress/SESSION-05-standards-lock.md b/docs/progress/SESSION-05-standards-lock.mdnew file mode 100644index 0000000..dc1c933--- /dev/null+++ b/docs/progress/SESSION-05-standards-lock.md@@ -0,0 +1,87 @@+# Session 05 — Standards Lock & Router Spec (GATE)++> Public build-log entry. Value-focused only. No growth/marketing/strategy language.++- **Session:** S05+- **Wave:** 2 (the gate; runs alone after Wave 1)+- **Date (UTC):** 2026-06-24+- **Depends on:** S01, S02, S03, S04+- **Status:** complete+- **Branch / commits:** `main` → standards-lock commit (this session)++## Objective+Turn the Wave-1 research into **frozen, committed standards** plus a published catalog and+router spec, so the six authoring sessions (S06–S11) can run in parallel from committed files+alone, and prove the standard works by authoring one golden reference skill.++## What was produced+- **`docs/SKILL-FORMAT.md`** — locked authoring standard. Folds in the S01 lessons (L1–L10)+ and the S02 format refinements: exact frontmatter limits, the forbidden agent-specific+ frontmatter keys, the claude.ai 200-char description note, a rubric tagged to the validator,+ and a pointer to the golden skill. Marked **frozen** for Wave 3.+- **`docs/COMPATIBILITY.md`** — the 9-surface support matrix (Claude Code, Claude Agent SDK,+ Claude.ai, Kiro, Gemini CLI, Codex CLI, Cursor, Windsurf, Cline), the portable-core rule,+ and the adapter-generation mapping for the three rules-based editors.+- **`docs/INSTALLATION.md`** — per-agent install instructions (native folder copy for the CLI+ agents and Kiro, zip upload for Claude.ai, generated adapters for Cursor/Windsurf/Cline).+- **`docs/skill-catalog.md`** — the **frozen v1 catalog** (the file authoring sessions read):+ one table per category for all **62** skills, each with target version, difficulty, verified+ primary-doc sources, router signals (file/extension detection + phrase triggers), and status.+- **`router/ROUTER-SPEC.md`** — the master-router specification: engine detection by project+ files (with precedence + disambiguation), task classification, the task→skill routing-table+ format, the progressive-disclosure read protocol, multi-skill composition, and unknown-engine+ fallback. S12 implements this as `router/SKILL.md`.+- **`skills/other-engines/love2d-core/`** — the **golden reference skill** (`SKILL.md` ++ `references/state-stack.md`), authored end-to-end against LÖVE 11.5 and marked `golden-done`+ in the catalog so its owning authoring session (S08) skips it.+- This progress entry; `docs/progress/INDEX.md` updated.++## Key decisions+- **The standard is frozen, not advisory.** `docs/SKILL-FORMAT.md` and `docs/skill-catalog.md`+ carry a FROZEN banner; authoring sessions build to them as written and record any gap rather+ than diverging. QA (S13) resolves genuine conflicts.+- **The catalog is the single source of truth for names.** Git does not track empty+ directories, so no placeholder skill folders were created; locking the exact 62 names in the+ committed catalog is what the worktree sessions actually read. Each authoring session creates+ its own real folders.+- **One engine set, additive concepts.** The router selects exactly one engine skill set from a+ project fingerprint, then layers the discipline/genre/workflow skills the request triggers;+ genres compose engine + discipline skills and never re-teach primitives.+- **Golden skill = `love2d-core`.** LÖVE is small, stable, and fully documented, making it an+ ideal exemplar of the full skill shape (routing-rule description, six body sections, ≥2+ version-pinned patterns, pitfalls, and a `references/` file for progressive disclosure).++## Verification+- **Name validity + uniqueness:** parsed the committed catalog and confirmed **62** skill names,+ all unique, all matching `^[a-z0-9]+(-[a-z0-9]+)*$` and ≤64 chars (longest:+ `threejs-materials-lighting`, 26). Count matches the per-category totals (15+8+6+6+5+9+9+4).+- **Golden skill API correctness:** the load-bearing LÖVE 11.5 facts were verified against the+ primary wiki via Firecrawl — the `love.load`/`love.update(dt)`/`love.draw`/`love.keypressed`/+ `love.quit` callbacks; `conf.lua`'s `love.conf(t)` with `t.version = "11.5"`, `t.window.*`,+ `t.window.vsync` as a number (since 11.0) and `t.modules.*`; and that **color components are+ 0–1 floats since 11.0** (the most common version bug).+- **Validator:** `python scripts/validate-skills.py` → "Validated 1 skill file(s). All checks+ passed." (exit 0). The golden skill's `description` is 191 chars (≤200 soft target, ≤1024 hard+ limit); `SKILL.md` is 147 lines (< 500); the `references/state-stack.md` link resolves.+- **Wave-1 integration:** confirmed the SESSION-01/02/03 progress docs were already tracked and+ committed; `plan/` and the local strategy files remain gitignored.++## Sources consulted (primary docs)+- `https://love2d.org/wiki/love` — LÖVE callback list and module overview (for the golden skill).+- `https://love2d.org/wiki/Config_Files` — `conf.lua` / `love.conf` fields and defaults (11.x).+- `https://love2d.org/wiki/love.graphics.setColor` — the 0–1 color range since 11.0.+- The Wave-1 research (S01 lessons, S02 compatibility matrix, S03 catalog + verified source map)+ was the basis for the standards, compatibility/install docs, and catalog.++## Handoff to next sessions+- **S06–S11** read their section of `docs/skill-catalog.md` + `docs/SKILL-FORMAT.md` + the golden+ skill, then author on their own branches. Re-verify each cited page and pin code to the listed+ version before writing. Skip `love2d-core` (already done).+- **S12** implements `router/SKILL.md` from `router/ROUTER-SPEC.md` and cross-checks every skill+ name against the catalog.+- **S13** can seed its routing test set from the worked-examples matrix in the router spec.++## If partial — remaining work+- None for the gate. Non-blocking follow-ups for later sessions: re-verify the `†` source URLs+ (slug-pattern, not individually fetched) at authoring time; confirm Windsurf's live per-file+ character cap when the adapter generator is built.diff --git a/docs/skill-catalog.md b/docs/skill-catalog.mdnew file mode 100644index 0000000..3cf42e5--- /dev/null+++ b/docs/skill-catalog.md@@ -0,0 +1,224 @@+# Skill Catalog (v1 — frozen)++This is the **frozen v1 catalog**: the authoritative list of every skill in the collection,+with its target version, primary documentation, router signals, and build status. It is the+file the authoring sessions (S06–S11) build against and the router session (S12) routes from.++> **Status: FROZEN at S05.** The names, categories, and counts below are locked for v1. New+> skills arrive as post-v1 contributions, not by editing this list mid-wave. The authoring+> standard is [`SKILL-FORMAT.md`](SKILL-FORMAT.md); where skills install is+> [`COMPATIBILITY.md`](COMPATIBILITY.md); the routing design is+> [`../router/ROUTER-SPEC.md`](../router/ROUTER-SPEC.md).++## How authoring sessions use this file++1. Find your category's table. Each row is one skill you will author as+ `skills/<category>/<name>/SKILL.md`.+2. The **Primary sources** are your starting point. **Re-verify the exact page** (Firecrawl)+ and **pin code to the listed version** before writing — docs move.+3. Put the **Router signals** to work in the `description` (the *says:* phrases are the trigger+ vocabulary; the *files:* patterns tell the router when your skill is relevant).+4. Skills marked **`golden-done`** already exist — skip them.++### Column legend++- **Skill** — the final `name`: lowercase-hyphen, ≤64 chars, equals the folder name, unique repo-wide.+- **Scope** — the single responsibility. One skill, one job.+- **Version** — the engine/runtime the patterns target. Pin code to this.+- **Diff** — difficulty: `beginner` / `intermediate` / `advanced`.+- **Primary sources** — official docs (paths are relative to each category's **doc root**,+ given above its table). `†` = cited by a confirmed slug pattern, not individually fetched —+ re-verify before use. `‡` = nearest authoritative anchor for that skill's topic.+- **Router signals** — `files:` project-file/extension detection · `says:` user-phrase triggers+ (and, for genres, `composes:` the skills it orchestrates).+- **Status** — `pending` (to author) · `golden-done` (reference skill, complete).++## Counts (v1 = 62 skills)++| Category | Count | Owning session |+|----------|:-----:|----------------|+| [godot](#godot-15) | 15 | S06 |+| [unity](#unity-8) | 8 | S07 |+| [unreal](#unreal-6) | 6 | S07 |+| [web-engines](#web-engines-6) | 6 | S08 |+| [other-engines](#other-engines-5) | 5 | S08 |+| [disciplines](#disciplines-9) | 9 | S09 |+| [genres](#genres-9) | 9 | S10 |+| [workflows](#workflows-4) | 4 | S11 |+| **Total** | **62** | |++---++## godot (15)++Target **Godot 4.x stable** (pin code to 4.3 / 4.4). Doc root: `https://docs.godotengine.org/en/stable/`++| Skill | Scope | Version | Diff | Primary sources (paths under doc root) | Router signals | Status |+|-------|-------|---------|------|------------------------------------------|----------------|--------|+| `godot-gdscript` | GDScript language: typing, lifecycle, `@export`, `await`/signals, idioms. | Godot 4.x | beginner | `/tutorials/scripting/gdscript/gdscript_basics.html` · `/getting_started/step_by_step/scripting_first_script.html` · `/tutorials/best_practices/index.html`† | files: `*.gd`, `project.godot` · says: "GDScript", "Godot script", "_ready/_process" | pending |+| `godot-nodes-scenes` | Scene tree, node composition, instancing, autoloads, `PackedScene`. | Godot 4.x | beginner | `/getting_started/step_by_step/nodes_and_scenes.html` · `/getting_started/step_by_step/instancing.html` · `/classes/class_packedscene.html` · `/getting_started/introduction/key_concepts_overview.html` | files: `*.tscn`, `project.godot` · says: "scene", "node tree", "instance a scene" | pending |+| `godot-signals-groups` | Event-driven design with signals + groups (decoupling, observer). | Godot 4.x | beginner | `/getting_started/step_by_step/signals.html` · `/classes/class_signal.html` · `/tutorials/scripting/groups.html` | files: `*.gd`, `*.tscn` · says: "signal", "emit", "connect", "groups" | pending |+| `godot-2d-movement` | `CharacterBody2D` kinematic movement, `move_and_slide`, slopes, collisions. | Godot 4.x | intermediate | `/classes/class_node2d.html` · `/tutorials/physics/physics_introduction.html` · `/getting_started/first_2d_game/03.coding_the_player.html` | files: `*.tscn` w/ CharacterBody2D · says: "2D movement", "platformer controller", "move_and_slide" | pending |+| `godot-tilemap` | `TileMapLayer`/`TileSet`: autotiling, terrain, collision & navigation layers, runtime edits. | Godot 4.3+ | intermediate | `/classes/class_tilemaplayer.html` · `/tutorials/2d/using_tilemaps.html` · `/tutorials/2d/using_tilesets.html` | files: `*.tscn` w/ TileMapLayer, `*.tres` tileset · says: "tilemap", "tileset", "autotile" | pending |+| `godot-physics` | `RigidBody`/`Area`/`StaticBody` (2D+3D), collision layers/masks, raycasts. | Godot 4.x | intermediate | `/tutorials/physics/physics_introduction.html` · `/tutorials/physics/ray-casting.html` | files: `*.tscn` w/ physics bodies · says: "rigidbody", "collision layer", "raycast", "area2d" | pending |+| `godot-ui-control` | `Control` nodes: anchors, containers, themes, focus/keyboard nav. | Godot 4.x | intermediate | `/classes/class_control.html` · `/tutorials/ui/size_and_anchors.html` · `/tutorials/ui/gui_navigation.html` | files: `*.tscn` w/ Control · says: "UI", "Control node", "anchors", "theme", "HUD" | pending |+| `godot-animation` | `AnimationPlayer`, `AnimationTree` state machines/blending, `Tween`. | Godot 4.x | intermediate | `/tutorials/animation/introduction.html` · `/tutorials/animation/animation_tree.html` · `/classes/class_animationplayer.html` · `/tutorials/2d/2d_sprite_animation.html` | files: `*.tscn` w/ AnimationPlayer · says: "AnimationPlayer", "AnimationTree", "blend", "Tween" | pending |+| `godot-shaders` | Godot shading language: `canvas_item` (2D) + `spatial` (3D) shaders, screen-reading. | Godot 4.x | advanced | `/tutorials/shaders/your_first_shader/your_first_3d_shader.html` · `/tutorials/shaders/screen-reading_shaders.html` | files: `*.gdshader`, `*.tres` shader · says: "Godot shader", "gdshader", "fragment/vertex" | pending |+| `godot-3d-essentials` | 3D nodes, cameras, lighting, environment/post, `GridMap`. | Godot 4.x | intermediate | `/tutorials/3d/introduction_to_3d.html` · `/tutorials/3d/using_gridmaps.html` · `/tutorials/3d/environment_and_post_processing.html` | files: `*.tscn` w/ Node3D · says: "3D", "camera3d", "WorldEnvironment", "gridmap" | pending |+| `godot-resources` | Custom `Resource` classes, `.tres`, data-driven design, `ResourceLoader`. | Godot 4.x | intermediate | `/tutorials/scripting/resources.html` · `/classes/class_resource.html` | files: `*.tres`, `*.res` · says: "custom Resource", "data resource", ".tres", "ResourceLoader" | pending |+| `godot-audio` | `AudioStreamPlayer`, buses, effects, music/SFX, sync-to-beat. | Godot 4.x | intermediate | `/tutorials/audio/audio_buses.html` · `/tutorials/audio/audio_streams.html` · `/tutorials/audio/sync_with_audio.html` | files: `*.tscn` w/ AudioStreamPlayer · says: "Godot audio", "audio bus", "play sound/music" | pending |+| `godot-multiplayer` | High-level multiplayer: `MultiplayerAPI`, RPCs, `MultiplayerSpawner`/`Synchronizer`. | Godot 4.x | advanced | `/tutorials/networking/high_level_multiplayer.html` · `/tutorials/networking/webrtc.html` | files: `*.gd` w/ `@rpc` · says: "multiplayer", "RPC", "networked", "MultiplayerSpawner" | pending |+| `godot-export` | Export presets/templates, platform builds, headless/CLI export. | Godot 4.x | intermediate | `/tutorials/export/exporting_for_web.html` · `/tutorials/editor/command_line_tutorial.html` | files: `export_presets.cfg`, `project.godot` · says: "export Godot", "build for web/windows", "export template" | pending |+| `godot-csharp` | Using C#/.NET in Godot: bindings, signals as events, GDScript interop. | Godot 4.x (.NET) | intermediate | `/tutorials/scripting/c_sharp/index.html` · `/tutorials/scripting/c_sharp/c_sharp_basics.html` · `/tutorials/scripting/c_sharp/c_sharp_signals.html` | files: `*.cs` + `*.csproj` in Godot proj · says: "Godot C#", "GodotSharp", "C# signals in Godot" | pending |++---++## unity (8)++Target **Unity 6 (6000.0 LTS)** (also valid 2022 LTS). Doc root: `https://docs.unity3d.com/`+(Manual at `/Manual/`, API at `/ScriptReference/`).++| Skill | Scope | Version | Diff | Primary sources | Router signals | Status |+|-------|-------|---------|------|-----------------|----------------|--------|+| `unity-csharp-scripting` | `MonoBehaviour` lifecycle, GameObject/component model, coroutines, serialization. | Unity 6 LTS | beginner | `/Manual/index.html` · `/Manual/class-ScriptableObject.html`‡ · `/ScriptReference/MonoBehaviour.html`† | files: `*.cs` + `*.asmdef`, `ProjectSettings/` · says: "Unity script", "MonoBehaviour", "Start/Update" | pending |+| `unity-input-system` | New Input System package: actions, bindings, action maps, devices. | Unity 6 (Input System 1.x) | intermediate | `/Manual/com.unity.inputsystem.html` · `/Manual/class-InputManager.html` | files: `*.inputactions`, `Packages/manifest.json` w/ inputsystem · says: "Unity Input System", "InputAction", "action map" | pending |+| `unity-physics` | Rigidbody, colliders, layers, joints, `LayerBasedCollision`. | Unity 6 LTS | intermediate | `/Manual/PhysicsOverview.html` · `/Manual/PhysicsSection.html` · `/Manual/LayerBasedCollision.html` · `/Manual/class-HingeJoint.html` | files: `*.unity`, `*.prefab` w/ Rigidbody · says: "Unity physics", "Rigidbody", "collision layers", "joint" | pending |+| `unity-animation` | Animator Controllers, state machines, blend trees, humanoid Avatar/IK. | Unity 6 LTS | intermediate | `/Manual/AnimationSection.html` · `/Manual/AnimationStateMachines.html` · `/Manual/InverseKinematics.html` · `/Manual/class-Avatar.html` | files: `*.controller`, `*.anim` · says: "Animator", "state machine", "blend tree", "Mecanim" | pending |+| `unity-scriptableobjects` | Data architecture with `ScriptableObject` (config, event channels, registries). | Unity 6 LTS | intermediate | `/Manual/class-ScriptableObject.html` · `/ScriptReference/ScriptableObject.html`† | files: `*.asset`, `*.cs` w/ `: ScriptableObject` · says: "ScriptableObject", "SO architecture", "data asset" | pending |+| `unity-tilemap-2d` | 2D Tilemap/Tile Palette, rule tiles, tilemap colliders. | Unity 6 LTS | intermediate | `/Manual/class-Tilemap.html` · `/Manual/PrefabInstanceOverrides.html`‡ | files: `*.unity` w/ Tilemap, `*.asset` tile · says: "Unity tilemap", "tile palette", "rule tile" | pending |+| `unity-navmesh` | AI navigation: NavMesh bake, `NavMeshAgent`, AI Navigation package. | Unity 6 LTS | intermediate | `/Manual/nav-NavigationSystem.html` · `/Manual/class-CharacterController.html` | files: `*.unity` w/ NavMesh, `NavMesh.asset` · says: "NavMesh", "NavMeshAgent", "pathfinding Unity" | pending |+| `unity-build-pipeline` | Build settings, players, quality settings, code stripping, Addressables pointer. | Unity 6 LTS | intermediate | `/Manual/WindowsStandaloneBinaries.html` · `/Manual/android-BuildProcess.html` · `/Manual/class-QualitySettings.html` · `/Manual/managed-code-stripping.html` | files: `ProjectSettings/EditorBuildSettings.asset` · says: "build Unity", "player settings", "IL2CPP", "Addressables" | pending |++---++## unreal (6)++Target **Unreal Engine 5.4+** (docs verified at UE 5.8). Doc root:+`https://dev.epicgames.com/documentation/en-us/unreal-engine/`++| Skill | Scope | Version | Diff | Primary sources (slugs under doc root) | Router signals | Status |+|-------|-------|---------|------|-----------------------------------------|----------------|--------|+| `unreal-blueprints` | Blueprint visual scripting: classes, graphs, variables, comms, common nodes. | UE 5.4+ | beginner | `/overview-of-blueprints-visual-scripting-in-unreal-engine` · `/BlueprintAPI` | files: `*.uasset` (Blueprint), `*.uproject` · says: "Blueprint", "BP graph", "event graph" | pending |+| `unreal-cpp-gameplay` | C++ gameplay + Gameplay Framework (GameMode, Pawn, Controller, Actor/components). | UE 5.4+ | advanced | `/unreal-engine-cpp-quick-start` · `/gameplay-framework-in-unreal-engine` | files: `Source/**/*.cpp`/`*.h` w/ `UCLASS`, `*.Build.cs` · says: "Unreal C++", "GameMode", "Pawn", "ACharacter" | pending |+| `unreal-enhanced-input` | Enhanced Input: Input Actions, Mapping Contexts, Modifiers, Triggers. | UE 5.4+ | intermediate | `/enhanced-input-in-unreal-engine` | files: `*.uasset` (IA_/IMC_), `*.uproject` · says: "Enhanced Input", "Input Mapping Context", "IA_/IMC_" | pending |+| `unreal-behavior-trees` | AI Behavior Trees + Blackboard, tasks/decorators/services, AIController. | UE 5.4+ | advanced | `/behavior-trees-in-unreal-engine` | files: `*.uasset` (BT_/BB_) · says: "Behavior Tree", "Blackboard", "AIController", "BTTask" | pending |+| `unreal-niagara` | Niagara VFX: systems, emitters, modules, parameters. | UE 5.4+ | advanced | `/overview-of-niagara-effects-for-unreal-engine` | files: `*.uasset` (NS_/NE_) · says: "Niagara", "VFX", "particle system Unreal" | pending |+| `unreal-packaging` | Packaging/cooking projects, build configs, shipping builds per platform. | UE 5.4+ | intermediate | `/packaging-your-project` | files: `*.uproject`, `Config/Default*.ini` · says: "package Unreal", "cook content", "shipping build" | pending |++---++## web-engines (6)++Phaser, PixiJS, Three.js. Detected primarily from `package.json` dependencies + imports.++| Skill | Scope | Version | Diff | Primary sources | Router signals | Status |+|-------|-------|---------|------|-----------------|----------------|--------|+| `phaser-core` | Phaser 3 game config, Scene lifecycle, loader, cameras, cross-scene comms. | Phaser 3.90 | beginner | `https://docs.phaser.io/phaser/getting-started/making-your-first-phaser-game` · `https://docs.phaser.io/phaser/concepts/scenes` · `https://docs.phaser.io/api-documentation/class/scene` | files: `package.json` dep `phaser`, `import Phaser` · says: "Phaser", "Phaser scene", "preload/create/update" | pending |+| `phaser-arcade-physics` | Arcade Physics: bodies, velocity, colliders/overlap, groups, world bounds. | Phaser 3.90 | intermediate | `https://docs.phaser.io/phaser/concepts/physics/arcade` · `https://docs.phaser.io/phaser/concepts/physics` · `https://docs.phaser.io/api-documentation/class/physics-arcade-sprite` | files: `package.json` dep `phaser` · says: "Arcade Physics", "collider", "Phaser physics", "overlap" | pending |+| `pixijs-rendering` | PixiJS v8 scene graph: `Application`, `Container`, `Sprite`, events, render groups. | PixiJS v8 | intermediate | `https://pixijs.com/8.x/guides/getting-started/quick-start` · `https://pixijs.com/8.x/guides/concepts/scene-graph` · `https://pixijs.com/8.x/guides/components/scene-objects/sprite` · `https://pixijs.com/8.x/guides/components/events` | files: `package.json` dep `pixi.js`, `import * as PIXI` · says: "PixiJS", "Pixi sprite", "stage", "Container" | pending |+| `threejs-scene-setup` | Three.js scene/camera/renderer/animation-loop, resizing, controls. | three.js r165+ | beginner | `https://threejs.org/manual/#en/fundamentals`† · `https://threejs.org/docs/#manual/en/introduction/Creating-a-scene`† | files: `package.json` dep `three`, `import * as THREE` · says: "three.js", "THREE.Scene", "WebGLRenderer", "render loop" | pending |+| `threejs-gltf-loading` | Loading glTF/GLB models + skinned animations with `GLTFLoader`/`AnimationMixer`. | three.js r165+ | intermediate | `https://threejs.org/manual/#en/load-gltf`† · `https://threejs.org/docs/#examples/en/loaders/GLTFLoader`† | files: `*.gltf`/`*.glb` + `three` dep · says: "load gltf", "GLTFLoader", "AnimationMixer", "import 3D model" | pending |+| `threejs-materials-lighting` | Materials (PBR/standard), lights, shadows, environment maps. | three.js r165+ | intermediate | `https://threejs.org/manual/#en/materials`† · `https://threejs.org/manual/#en/lights`† · `https://threejs.org/docs/`† | files: `three` dep · says: "three.js material", "MeshStandardMaterial", "lighting", "shadows" | pending |++> Three.js docs/manual are single-page apps using `#en/...` hash routes; the `threejs.org/manual`+> and `threejs.org/docs` roots are verified — resolve the exact section before writing.++---++## other-engines (5)++Bevy, pygame, LÖVE, Roblox.++| Skill | Scope | Version | Diff | Primary sources | Router signals | Status |+|-------|-------|---------|------|-----------------|----------------|--------|+| `bevy-ecs` | Bevy app + ECS: components, systems, queries, resources, schedules, plugins. | Bevy 0.16+ (pin hard) | advanced | `https://bevy.org/learn/quick-start/getting-started` · `https://bevy.org/learn/quick-start/introduction` · `https://docs.rs/bevy/latest/bevy/`† | files: `Cargo.toml` dep `bevy`, `*.rs` w/ `App::new()` · says: "Bevy", "ECS system/query", "Commands", "Bevy plugin" | pending |+| `pygame-core` | pygame game loop, `Surface`/`Rect`, sprites/groups, event + input handling. | pygame 2.6 / pygame-ce 2.5 | beginner | `https://www.pygame.org/docs/` · `https://www.pygame.org/docs/ref/sprite.html` · `https://www.pygame.org/docs/ref/surface.html` · `https://www.pygame.org/docs/tut/newbieguide.html` | files: `*.py` w/ `import pygame` · says: "pygame", "blit", "sprite group", "pygame loop" | pending |+| `love2d-core` | LÖVE `love.load/update/draw` loop, dt-driven motion, `love.graphics`, input, states. | LÖVE 11.5 | beginner | `https://love2d.org/wiki/love` · `https://love2d.org/wiki/love.graphics`† · `https://love2d.org/wiki/Config_Files`† | files: `main.lua` w/ `love.*`, `conf.lua`, `*.love` · says: "LÖVE", "love2d", "love.draw", "love.update(dt)" | **golden-done** |+| `roblox-luau` | Roblox Luau scripting: services, instances, events, client/server model, Studio. | Roblox (current) / Luau | beginner | `https://create.roblox.com/docs` · `https://create.roblox.com/docs/reference/engine` | files: `*.luau`/`*.lua` + `*.rbxl(x)`, `*.project.json` (Rojo) · says: "Roblox", "Luau", "RemoteEvent", "Roblox service" | pending |+| `roblox-datastores` | Persistent data with DataStoreService: get/set, sessions, limits, ordered stores. | Roblox (current) | intermediate | `https://create.roblox.com/docs/cloud-services/data-stores` · `https://create.roblox.com/docs/reference/engine`† | files: `*.luau`/`*.lua` w/ `DataStoreService` · says: "DataStore", "save player data Roblox", "GetDataStore" | pending |++---++## disciplines (9)++Cross-engine concepts. These teach the *concept/algorithm* and route alongside the detected+engine skill; their sources are the authoritative engine pages that implement the concept, so+examples stay primary-sourced.++| Skill | Scope | Version basis | Diff | Primary sources | Router signals | Status |+|-------|-------|---------------|------|-----------------|----------------|--------|+| `game-ai` | NPC decision-making: FSMs, behavior trees, steering, pathfinding integration. | engine-agnostic | advanced | Unreal `/behavior-trees-in-unreal-engine` · Unity `/Manual/nav-NavigationSystem.html` · Godot `/tutorials/navigation/navigation_introduction_2d.html` | files: any engine + AI assets · says: "enemy AI", "behavior tree", "state machine", "steering", "pathfinding" | pending |+| `procedural-gen` | Procedural content: noise, RNG, seeds, grid/dungeon/terrain generation. | engine-agnostic | advanced | Godot `/tutorials/math/random_number_generation.html` · Godot `/tutorials/2d/using_tilemaps.html` · Unity `/Manual/terrain-SetHeight.html` | files: any engine · says: "procedural generation", "perlin/simplex noise", "random seed", "dungeon generator" | pending |+| `dialogue-systems` | Branching dialogue/narrative: nodes, conditions, variables, localization hooks. | Yarn Spinner / Ink | intermediate | `https://docs.yarnspinner.dev/` · `https://www.inklestudios.com/ink/` · Godot `/tutorials/scripting/resources.html` | files: `*.yarn`, `*.ink` · says: "dialogue system", "branching dialogue", "Yarn Spinner", "Ink", "conversation tree" | pending |+| `save-systems` | Serialize/restore game state: formats, slots, versioning/migration, autosave. | engine-agnostic | intermediate | Godot `/tutorials/io/saving_games.html` · Godot `/tutorials/io/background_loading.html` · Roblox `/docs/cloud-services/data-stores` | files: `save*.json`/`*.sav`, save dirs · says: "save system", "save/load game", "persistence", "save slots" | pending |+| `audio-design` | Game audio practice: buses/mixing, adaptive/dynamic music, SFX, ducking. | engine-agnostic | intermediate | Godot `/tutorials/audio/audio_buses.html` · Unity `/Manual/AudioMixer.html` · Godot `/tutorials/audio/sync_with_audio.html` | files: audio assets + mixer files · says: "audio design", "adaptive music", "audio mixer", "ducking", "SFX" | pending |+| `shader-programming` | Shader concepts cross-engine: vertex/fragment, UVs, common 2D/3D effects. | engine-agnostic (GLSL/HLSL) | advanced | Godot `/tutorials/shaders/your_first_shader/your_first_3d_shader.html` · Godot `/tutorials/shaders/screen-reading_shaders.html` · Unity material docs (re-verify) | files: `*.gdshader`, `*.shader`, `*.hlsl`, `*.glsl` · says: "shader", "fragment shader", "dissolve/outline effect", "GLSL/HLSL" | pending |+| `physics-tuning` | Tuning physics feel: fixed timestep, mass/drag, CCD, stability, layers. | engine-agnostic | intermediate | Godot `/tutorials/physics/physics_introduction.html` · Unity `/Manual/PhysicsOverview.html` · Unity `/Manual/LayerBasedCollision.html` | files: physics settings/config · says: "physics feel", "jitter/tunneling", "fixed timestep", "collision tuning" | pending |+| `level-design` | Level/whitebox structure, tile/grid layout, pacing, blockout to playable. | engine-agnostic | intermediate | Godot `/tutorials/2d/using_tilemaps.html` · Godot `/tutorials/3d/using_gridmaps.html` · Unity `/Manual/class-Tilemap.html` | files: level/scene/map files · says: "level design", "whitebox/blockout", "tilemap layout", "level pacing" | pending |+| `input-systems` | Input architecture: action mapping, rebinding, multi-device, buffering. | engine-agnostic | intermediate | Unity `/Manual/com.unity.inputsystem.html` · Unreal `/enhanced-input-in-unreal-engine` · Godot `/tutorials/inputs/input_examples.html` | files: `*.inputactions`, IMC assets, InputMap in `project.godot` · says: "input mapping", "rebind controls", "gamepad support", "input buffering" | pending |++---++## genres (9)++**Compositional**: a genre skill orchestrates engine + discipline skills into a working+template (loop, glue, structure) and never re-teaches primitives. The `composes:` field lists+the skills it links out to.++| Skill | Scope | Version basis | Diff | Primary sources | Router signals · composes | Status |+|-------|-------|---------------|------|-----------------|---------------------------|--------|+| `platformer` | 2D platformer: run/jump/coyote-time, tiled levels, hazards, goals. | engine-agnostic | intermediate | Godot `/getting_started/first_2d_game/index.html` · Godot `/getting_started/first_2d_game/03.coding_the_player.html` · Godot `/tutorials/2d/using_tilemaps.html` | says: "platformer", "jump mechanic", "Mario-like" · composes: `*-2d-movement`, `godot-tilemap`/`unity-tilemap-2d`, `level-design` | pending |+| `roguelike` | Grid/turn movement, procedural dungeons, permadeath, FOV, loot tables. | engine-agnostic | advanced | Godot `/tutorials/math/random_number_generation.html` · Godot `/tutorials/2d/using_tilemaps.html` | says: "roguelike", "procedural dungeon", "permadeath", "turn-based grid" · composes: `procedural-gen`, `*-tilemap` | pending |+| `rpg` | Stats/leveling, inventory, quests, dialogue, save/load, turn or action combat. | engine-agnostic | advanced | Godot `/tutorials/scripting/resources.html` · `https://docs.yarnspinner.dev/` · Godot `/tutorials/io/saving_games.html` | says: "RPG", "stats/leveling", "inventory", "quest system" · composes: `dialogue-systems`, `save-systems`, `godot-resources`/`unity-scriptableobjects` | pending |+| `fps-shooter` | First-person controller, camera, shooting/hitscan, basic enemy AI. | engine-agnostic | advanced | Unreal `/code-a-firstperson-adventure-game-in-unreal-engine` · Godot `/getting_started/first_3d_game/index.html` · Unity `/Manual/class-CharacterController.html` | says: "FPS", "first-person shooter", "hitscan", "aim/shoot" · composes: `*-3d`/`unreal-cpp-gameplay`, `input-systems`, `game-ai` | pending |+| `tower-defense` | Wave spawning, pathing along lanes, towers/targeting, economy. | engine-agnostic | intermediate | Godot `/tutorials/navigation/navigation_introduction_2d.html` · Godot `/getting_started/first_2d_game/05.the_main_game_scene.html` | says: "tower defense", "wave spawner", "enemy path", "tower targeting" · composes: `game-ai`, `*-2d-movement` | pending |+| `card-game` | Card data, deck/hand/discard zones, draw/play rules, turn structure, UI. | engine-agnostic | intermediate | Godot `/tutorials/scripting/resources.html` · Godot `/classes/class_control.html` | says: "card game", "deckbuilder", "hand/deck/discard", "TCG" · composes: `godot-resources`/`unity-scriptableobjects`, `godot-ui-control` | pending |+| `visual-novel` | Branching script, character/bg display, text box + choices, save/log/backlog. | engine-agnostic | beginner | `https://www.inklestudios.com/ink/` · `https://docs.yarnspinner.dev/` · Godot `/classes/class_control.html` | files: `*.ink`, `*.yarn` · says: "visual novel", "VN", "branching story", "choice menu" · composes: `dialogue-systems`, `save-systems`, UI | pending |+| `survival-crafting` | Resource gathering, inventory, crafting recipes, hunger/needs, base building. | engine-agnostic | advanced | Godot `/tutorials/scripting/resources.html` · Godot `/tutorials/io/saving_games.html` | says: "survival game", "crafting system", "inventory", "resource gathering" · composes: `save-systems`, `godot-resources`/`unity-scriptableobjects` | pending |+| `puzzle` | Grid/board state, match/rule resolution, undo, level progression. | engine-agnostic | intermediate | Godot `/tutorials/2d/using_tilemaps.html` · Godot `/classes/class_control.html` | says: "puzzle game", "match-3", "grid logic", "tile-matching" · composes: `*-tilemap`, `level-design` | pending |++---++## workflows (4)++Process skills; platform/tooling docs are the primary sources.++| Skill | Scope | Version basis | Diff | Primary sources | Router signals | Status |+|-------|-------|---------------|------|-----------------|----------------|--------|+| `game-jam` | Scope/plan/execute a jam build under time limits; submit to a jam. | itch.io jams | beginner | `https://itch.io/docs/creators/getting-started` · Godot `/getting_started/introduction/introduction_to_godot.html`‡ | says: "game jam", "48-hour game", "Ludum Dare/GMTK", "jam submission" | pending |+| `prototype-fast` | Greybox a playable vertical slice quickly; cut scope; validate the fun. | engine-agnostic | beginner | Godot `/getting_started/first_2d_game/index.html` · `https://pixijs.com/8.x/guides/getting-started/quick-start`‡ | says: "prototype fast", "vertical slice", "MVP game", "greybox" | pending |+| `steam-publish` | Steamworks onboarding: app/depots, store page, builds, release checklist. | Steamworks (current) | intermediate | `https://partner.steamgames.com/doc/home` · `https://partner.steamgames.com/doc/store`† · `https://partner.steamgames.com/doc/sdk`† | files: `steam_appid.txt`, Steamworks SDK · says: "publish on Steam", "Steamworks", "store page", "depot/build upload" | pending |+| `itch-publish` | Publish/update on itch.io: project page, channels, `butler` CLI uploads. | itch.io / butler | beginner | `https://itch.io/docs/creators/getting-started` · `https://itch.io/docs/butler` | files: `.itch.toml`, butler usage · says: "publish on itch", "itch.io page", "butler push", "upload build itch" | pending |++---++## Composition & single-responsibility rules++The router (S12) composes skills; each skill owns exactly one responsibility.++1. **Engine API vs cross-engine concept.** Engine skills teach *the engine's API* for a+ capability; `disciplines/*` teach the *portable concept/algorithm* and defer to the detected+ engine skill for syntax. Pairings:+ - `godot-shaders` / Unity-Unreal material docs ↔ `shader-programming`+ - `godot-audio` ↔ `audio-design` · `godot-physics`/`unity-physics` ↔ `physics-tuning`+ - `unity-input-system`/`unreal-enhanced-input`/Godot InputMap ↔ `input-systems`+ - `unity-navmesh`/`unreal-behavior-trees`/Godot navigation ↔ `game-ai`+ - `godot-tilemap`/`unity-tilemap-2d` ↔ `level-design`+ - `roblox-datastores`/Godot saving ↔ `save-systems`+2. **Genres never re-teach primitives.** A genre skill orchestrates engine + discipline skills+ into a working template and links out (see each genre's `composes:`).+3. **Engine selection is exclusive; concepts/genres are additive.** The router picks **one**+ engine skill set from project-file detection, then layers the discipline/genre/workflow+ skills the user's phrasing triggers.+4. **De-duplication decisions (locked):**+ - No separate `godot-save-load` — covered by `save-systems` (which cites Godot saving docs).+ - `unity-tilemap-2d` (engine tool) is kept separate from `level-design` (design practice).+ - `dialogue-systems` owns Yarn/Ink; `visual-novel` and `rpg` consume it.+ - `procedural-gen` owns noise/RNG; `roguelike` and `survival-crafting` consume it.++## Naming guarantees++All 62 names are unique repo-wide, lowercase-hyphen, ≤64 chars, match+`^[a-z0-9]+(-[a-z0-9]+)*$`, and equal their folder names. This list is the authority for the+exact folder name each authoring session must use. (Verified at S05 — see+`docs/progress/SESSION-05-standards-lock.md`.)diff --git a/router/ROUTER-SPEC.md b/router/ROUTER-SPEC.mdnew file mode 100644index 0000000..cc65cb1--- /dev/null+++ b/router/ROUTER-SPEC.md@@ -0,0 +1,189 @@+# Master Router — Specification++This document specifies the **master router**: the entry-point skill that detects a project's+engine and the user's task, then dispatches to the right specialized skill(s) so the collection+"installs once and routes itself." Session **S12** implements this as `router/SKILL.md`; this+spec is the contract S12 builds to.++> **Status: FROZEN at S05.** The detection signals here are derived from the `files:` / `says:`+> columns in [`../docs/skill-catalog.md`](../docs/skill-catalog.md) — the catalog is the source+> of truth for per-skill triggers; this spec is the *algorithm* that uses them.++## What the router is (and is not)++- **Is:** a small, always-relevant skill whose description triggers on game-development requests.+ It fingerprints the workspace, classifies the task, names the minimal set of specialized+ skills to load, and tells the agent to read them. It is a *dispatcher and composer*.+- **Is not:** a place that re-teaches engine APIs. The router points; the specialized skills+ teach. It must stay lean (< 500 lines as a `SKILL.md`; push long tables into `references/`).++## The routing algorithm (overview)++```+1. DETECT ENGINE project fingerprint → at most one engine skill set (or "unknown")+2. CLASSIFY TASK user phrasing → discipline(s) + at most one genre + workflow(s)+3. RESOLVE SKILLS engine skill(s) + discipline(s) + genre + workflow(s) (the minimal set)+4. READ (disclosure) open only the chosen SKILL.md bodies; references/ only when needed+5. COMPOSE order: engine fundamentals → discipline concept → genre glue → workflow+6. FALLBACK if engine unknown or no skill fits, see §7+```++---++## 1. Engine detection (project fingerprint)++Scan the workspace for the highest-confidence signal. Detection is **exclusive**: choose **one**+engine skill set. Use this precedence (stop at the first match):++| Priority | Engine | Primary signal (project files) | Secondary signals | Skill set root |+|:--------:|--------|--------------------------------|--------------------|----------------|+| 1 | **Godot** | `project.godot` | `*.tscn`, `*.gd`, `*.gdshader`, `export_presets.cfg` | `skills/godot/` |+| 2 | **Unreal** | `*.uproject` | `Source/**/*.Build.cs`, `Config/Default*.ini`, `*.uasset` | `skills/unreal/` |+| 3 | **Unity** | `Assets/` **and** `ProjectSettings/ProjectVersion.txt` | `*.unity`, `*.asmdef`, `Packages/manifest.json` | `skills/unity/` |+| 4 | **Bevy** | `Cargo.toml` with a `bevy` dependency | `*.rs` with `App::new()` / `bevy::prelude` | `skills/other-engines/bevy-ecs/` |+| 5 | **Phaser** | `package.json` dep `phaser` | `import Phaser` / `new Phaser.Game` | `skills/web-engines/phaser-*` |+| 6 | **PixiJS** | `package.json` dep `pixi.js` | `import * as PIXI` | `skills/web-engines/pixijs-rendering/` |+| 7 | **Three.js** | `package.json` dep `three` | `import * as THREE`, `*.gltf`/`*.glb` | `skills/web-engines/threejs-*` |+| 8 | **LÖVE** | `conf.lua` or `main.lua` calling `love.*` | `*.love` | `skills/other-engines/love2d-core/` |+| 9 | **pygame** | `*.py` with `import pygame` | `pygame.init()` | `skills/other-engines/pygame-core/` |+| 10 | **Roblox** | `*.rbxl` / `*.rbxlx`, or `*.project.json` (Rojo) | `*.luau`, `DataStoreService` | `skills/other-engines/roblox-*` |++### Disambiguation rules (must-handle ambiguities)++- **Godot C# vs Unity vs Bevy** — all may contain a `.csproj`/`Cargo.toml`. The presence of+ `project.godot` means **Godot** (route `godot-csharp` for C# work) even when `.csproj` exists;+ Unity requires the `Assets/` + `ProjectSettings/` pair; Bevy requires a `bevy` dep, not just+ any Rust crate.+- **Multiple web deps** — a `package.json` may list more than one of `phaser`/`pixi.js`/`three`.+ Prefer the library actually imported in the file under discussion; if unclear, ask which+ renderer the task targets.+- **Monorepo / multiple engines** — if more than one engine fingerprint is present, route by the+ file or subdirectory the request is about; if still ambiguous, ask one targeted question+ (§7).+- **No engine files at all** — go to the unknown-engine fallback (§7); many discipline/genre/+ workflow tasks need no engine.++---++## 2. Task classification (phrasing → category)++After the engine, read the request for task signals. Match against the `says:` vocabulary in the+catalog. Three additive categories:++- **disciplines** — cross-engine *concepts*: `game-ai`, `procedural-gen`, `dialogue-systems`,+ `save-systems`, `audio-design`, `shader-programming`, `physics-tuning`, `level-design`,+ `input-systems`. Triggered by concept words ("pathfinding", "save slots", "fragment shader").+- **genres** — *whole-game templates*: `platformer`, `roguelike`, `rpg`, `fps-shooter`,+ `tower-defense`, `card-game`, `visual-novel`, `survival-crafting`, `puzzle`. Triggered by+ genre words ("make a roguelike", "deckbuilder").+- **workflows** — *process/shipping*: `game-jam`, `prototype-fast`, `steam-publish`,+ `itch-publish`. Triggered by process words ("publish on Steam", "vertical slice").++Some tasks also carry **file signals** (`*.yarn`/`*.ink` → `dialogue-systems`/`visual-novel`;+`steam_appid.txt` → `steam-publish`). Use them to raise confidence.++---++## 3. Resolution: the task→category→skill routing table format++S12 fills a table of this shape (one row per routing rule). It is a **lookup**, not prose:++| Task signal (`says:`/`files:`) | Needs engine? | Engine-skill slot | Discipline/genre/workflow skills | Notes |+|--------------------------------|:-------------:|-------------------|----------------------------------|-------|+| "platformer", "double jump" | yes | `{engine}-2d-movement` | `platformer`, `level-design` | genre composes movement + tilemap |+| "save / load", "save slots" | optional | (engine save API if present) | `save-systems` | concept-first; engine-agnostic if no engine |+| "enemy AI", "behavior tree" | yes | `{engine}` AI skill¹ | `game-ai` | ¹ `unity-navmesh` / `unreal-behavior-trees` / Godot nav |+| "publish on Steam" | no | — | `steam-publish` | pure workflow |++`{engine}` is filled from §1 (e.g. `godot`, `unity`). Where a genre lists `composes:` in the+catalog, expand it into the engine + discipline skills for the **detected** engine.++---++## 4. Progressive-disclosure read protocol++The router must respect the three-tier disclosure budget (see `SKILL-FORMAT.md` §1):++1. **Preloaded:** only every skill's `name` + `description` are in context. The router decides+ purely from these plus the fingerprint — it does **not** pre-read bodies.+2. **On selection:** read the body of **each chosen** `skills/<category>/<name>/SKILL.md` — and+ only those. Do not bulk-load a category.+3. **On demand:** read a skill's `references/*.md` only when the specific subtask requires that+ depth (the skill body says when).+4. **Re-route on pivot:** if the task changes mid-session (e.g. from movement to saving), select+ and read the newly relevant skill rather than keeping everything loaded.++The router's output to the user/agent should name the skills it is loading and why, e.g.:+*"Detected Godot (`project.godot`). Loading `godot-2d-movement` for the controller and+`platformer` for jump feel; will open `references/coyote-time.md` if you want input buffering."*++---++## 5. Multi-skill composition++- **One engine set, additive concepts.** Exactly one engine skill set (§1); add the disciplines+ the task needs and, usually, **at most one** genre. Workflows attach independently.+- **Ordering:** engine fundamentals → discipline concept → genre orchestration → workflow.+- **Ownership on overlap:** the **engine** skill owns API/syntax; the **discipline** skill owns+ the portable concept/algorithm and defers to the engine skill for code; the **genre** skill+ owns structure/glue and never re-teaches a primitive (it links to the others). This mirrors the+ catalog's composition rules.+- **Hand-offs:** when a genre's `composes:` names a slot like `*-2d-movement`, bind it to the+ detected engine (`godot-2d-movement`, etc.). If that engine lacks the exact skill, see §7.++---++## 6. Worked examples (end-to-end)++| Request | Detected engine | Skills loaded (in order) |+|---------|-----------------|--------------------------|+| "add a double jump to my Godot player" | Godot (`project.godot`) | `godot-2d-movement` → `platformer` (jump feel); `references/` for coyote-time on demand |+| "make an inventory for my Unity RPG" | Unity (`Assets/`+`ProjectSettings/`) | `unity-scriptableobjects` → `rpg` → `save-systems` |+| "procedural dungeon generator in Bevy" | Bevy (`Cargo.toml`+bevy) | `bevy-ecs` → `procedural-gen` → `roguelike` |+| "branching dialogue from a .yarn file" | (none required) | `dialogue-systems` (file signal `*.yarn`); add engine UI skill if an engine is detected |+| "how do I design save slots with migration?" | (none) | `save-systems` only — concept question, no engine |+| "publish my game on itch with butler" | (any/none) | `itch-publish` only |++This matrix doubles as a seed for S13's routing test set.++---++## 7. Unknown-engine & no-skill fallback++**Engine unknown (no fingerprint, no engine named):**++1. Check the request for an engine name in plain text ("in Unity", "using Phaser"). If found,+ adopt it.+2. If the task is a pure concept/genre/workflow question, route to the **engine-agnostic**+ discipline/genre/workflow skill directly — no engine needed (e.g. "what's a good save format?"+ → `save-systems`).+3. Only if engine choice actually blocks the answer, ask **one** targeted question+ ("Which engine — Godot, Unity, Unreal, or a web/other engine?") and proceed on the answer.+4. Never invent an engine or load an engine skill on a guess.++**Engine known but no specific skill covers the subtask:**++- Load the closest engine skill plus the relevant discipline, and **state the gap** plainly+ (e.g. "there's no dedicated Godot particles skill yet; using `godot-shaders` + general+ `audio-design`-style guidance"). Do not fabricate a skill name.++**Conflicting/!multiple genres:** pick the dominant genre from the phrasing; mention the+secondary and offer to load it if the user confirms.++---++## 8. Implementation notes for S12++- Implement as `router/SKILL.md` using the open standard. The **description** must carry broad+ game-dev trigger vocabulary plus the engine names and "router/route/which skill" cues so it+ activates on game-dev requests across agents.+- Keep the body lean; if the full routing table grows past the budget, move it to+ `router/references/routing-table.md` and keep the algorithm + top rules in the body.+- The router contains **no** forbidden frontmatter keys (see `SKILL-FORMAT.md` §2.2); its+ always-relevant behavior is expressed through the description, and the always-on mapping is+ applied per agent at adapter-generation time (`COMPATIBILITY.md`), not via `alwaysApply`/+ `trigger` in the committed file.+- The router's `name` is `router` (it lives in `router/`, so the validator expects+ `name: router`).+- Cross-check every skill the router references against `docs/skill-catalog.md` so it never+ points at a name that does not exist.diff --git a/skills/other-engines/love2d-core/SKILL.md b/skills/other-engines/love2d-core/SKILL.mdnew file mode 100644index 0000000..d4679bc--- /dev/null+++ b/skills/other-engines/love2d-core/SKILL.md@@ -0,0 +1,146 @@+---+name: love2d-core+description: >+ Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop,+ delta-time movement, input, and screen states. Use when building a LÖVE 11.x game+ (main.lua, conf.lua, .love).+license: Apache-2.0+compatibility: LÖVE 11.5 (Lua 5.1 / LuaJIT)+metadata:+ engine: love2d+ category: other-engines+ difficulty: beginner+---++# LÖVE (Love2D) Core++Set up and debug the foundation of a LÖVE game in Lua: the callback loop, frame-rate-+independent movement, input, and screen states. Targets **LÖVE 11.5**.++## When to use++- Use when starting a LÖVE game, wiring up `main.lua`/`conf.lua`, or fixing the core loop,+ movement that runs at the wrong speed, input handling, or screen switching.+- Use when the workspace has `main.lua` calling `love.*`, a `conf.lua`, or a `.love` file.++**When *not* to use:** Lua *language* questions unrelated to LÖVE; physics bodies/joints+(LÖVE uses Box2D via `love.physics` — a separate concern); shader code (`love.graphics`+GLSL is its own topic). For cross-engine save/load patterns, use `save-systems`.++## Core workflow++1. **Confirm the entry points.** A LÖVE game runs `main.lua`; it should define+ `love.load()` (one-time setup), `love.update(dt)` (state), and `love.draw()` (rendering).+ Window/version setup goes in `conf.lua` (run *before* modules load).+2. **Pin the version.** Set `t.version = "11.5"` in `conf.lua` so LÖVE warns on mismatch.+3. **Drive all motion by `dt`** (delta time, in seconds) so speed is frame-rate independent.+4. **Handle input** two ways: polled (`love.keyboard.isDown` in `update`, for held keys) and+ event (`love.keypressed` callback, for discrete presses).+5. **Manage screens** (menu, game, pause) with a small state stack rather than a pile of+ `if` flags — see Patterns and `references/state-stack.md`.+6. **Run and observe.** Launch with `love .` from the project folder; verify the window,+ motion speed, and input on screen before assuming it works.++## Patterns++### 1. `main.lua` skeleton (the callback loop + input)++```lua+-- main.lua — LÖVE calls these callbacks for you. Colors are 0–1 in LÖVE 11.x.+function love.load()+ -- One-time setup. speed is in PIXELS PER SECOND, not per frame.+ player = { x = 100, y = 100, size = 40, speed = 220 }+ love.graphics.setBackgroundColor(0.1, 0.1, 0.12)+end++function love.update(dt)+ -- Polled input: good for continuous movement while a key is held.+ if love.keyboard.isDown("right") then player.x = player.x + player.speed * dt end+ if love.keyboard.isDown("left") then player.x = player.x - player.speed * dt end+ if love.keyboard.isDown("down") then player.y = player.y + player.speed * dt end+ if love.keyboard.isDown("up") then player.y = player.y - player.speed * dt end+end++function love.draw()+ love.graphics.setColor(0.2, 0.8, 1.0) -- tint ON+ love.graphics.rectangle("fill", player.x, player.y, player.size, player.size)+ love.graphics.setColor(1, 1, 1) -- reset tint before text/images+ love.graphics.print("Arrow keys to move, Esc to quit", 10, 10)+end++function love.keypressed(key)+ -- Event input: fires once per physical press. Use for menus, jumps, toggles.+ if key == "escape" then love.event.quit() end+end+```++### 2. Frame-rate independence (the single most common bug)++```lua+-- RIGHT: scaled by dt → same real-world speed at 30 or 240 FPS.+player.x = player.x + player.speed * dt+-- WRONG: "pixels per frame" → moves twice as fast at double the frame rate.+player.x = player.x + player.speed+```++### 3. `conf.lua` (window + version; runs before `main.lua`)++```lua+-- conf.lua — must be its own file; love.conf will NOT run from main.lua.+function love.conf(t)+ t.version = "11.5" -- the LÖVE version this game targets (string "X.Y")+ t.window.title = "My LÖVE Game"+ t.window.width = 800+ t.window.height = 600+ t.window.vsync = 1 -- number since 11.0: 1 = on, 0 = off, -1 = adaptive+ t.window.resizable = false+ t.modules.physics = false -- disable modules you don't use to trim startup/memory+end+```++### 4. Color is 0–1 in LÖVE 11.x (not 0–255)++```lua+-- LÖVE 11.x uses normalized floats. (Pre-11.0 code used 0–255 and will look wrong.)+love.graphics.setColor(1, 0, 0) -- opaque red+love.graphics.setColor(0.2, 0.8, 1.0, 0.5) -- translucent cyan (alpha 0.5)+-- Need to convert old byte values? Use the helper instead of dividing by hand:+love.graphics.setColor(love.math.colorFromBytes(128, 234, 255))+```++### 5. Screen states (brief — full manager in references)++```lua+-- A screen is a table with optional :update(dt), :draw(), :keypressed(key).+-- Keep the active screen on a stack so pause/menu overlays are trivial to pop.+local Stack = require("state_stack") -- see references/state-stack.md for the module+function love.load() Stack.push(require("screens.menu")) end+function love.update(dt) Stack.current():update(dt) end+function love.draw() Stack.current():draw() end+function love.keypressed(key) Stack.current():keypressed(key) end+```++## Pitfalls++- **Speed varies with FPS** → you forgot `* dt`. Every per-frame change to position, timers,+ or animation must be scaled by `dt`.+- **`love.conf` placed in `main.lua`** → it silently does nothing. It must live in `conf.lua`,+ which LÖVE runs *before* loading modules.+- **Colors washed out or invisible** → you used 0–255 values. In 11.x, `setColor(255,0,0)`+ clamps to white; use `setColor(1,0,0)` or `love.math.colorFromBytes`.+- **Everything tinted after one `setColor`** → color is global and persists across draws.+ Reset with `love.graphics.setColor(1, 1, 1)` before drawing text/images you want untinted.+- **Nothing happens on key release/repeat** → `love.keypressed(key, scancode, isrepeat)`+ fires on press (and OS key-repeat); use `love.keyreleased` for release, and check+ `isrepeat` if you must ignore held-key repeats.++## References++- For a complete push/pop screen-state manager (menu → game → pause, with delegated+ callbacks), read `references/state-stack.md`.++## Related skills++- `save-systems` — saving/loading game state (engine-agnostic).+- `input-systems` — rebindable, multi-device input architecture.+- `pygame-core` / `phaser-core` — the same loop concepts in other lightweight engines.diff --git a/skills/other-engines/love2d-core/references/state-stack.md b/skills/other-engines/love2d-core/references/state-stack.mdnew file mode 100644index 0000000..7c0c70a--- /dev/null+++ b/skills/other-engines/love2d-core/references/state-stack.md@@ -0,0 +1,159 @@+# Screen state stack (LÖVE 11.5)++A small, complete screen manager: menu → game → pause, with the active screen on a stack so+overlays (pause on top of game) are trivial. Each *screen* is a plain Lua table with any of+the optional methods `enter`, `leave`, `update(dt)`, `draw`, `keypressed(key)`.++This is the full version of the brief snippet in `SKILL.md`. Drop `state_stack.lua` in your+project root and the screens under `screens/`.++## `state_stack.lua`++```lua+-- state_stack.lua — minimal screen/state manager for LÖVE 11.x.+-- A screen is a table that may define: enter, leave, update(dt), draw, keypressed(key).+local Stack = { screens = {} }++-- Add a screen on top (e.g. open a pause overlay above the game).+function Stack.push(screen)+ table.insert(Stack.screens, screen)+ if screen.enter then screen:enter() end+end++-- Remove and return the top screen (e.g. close the pause overlay).+function Stack.pop()+ local screen = table.remove(Stack.screens)+ if screen and screen.leave then screen:leave() end+ return screen+end++-- Replace the top screen entirely (e.g. menu -> game).+function Stack.switch(screen)+ if #Stack.screens > 0 then Stack.pop() end+ Stack.push(screen)+end++function Stack.current()+ return Stack.screens[#Stack.screens]+end++return Stack+```++## Wiring it in `main.lua`++Delegate each LÖVE callback to the top screen. The helper tolerates screens that omit a+method, so a screen only implements what it needs.++```lua+local Stack = require("state_stack")++-- Call method `name` on the top screen if it exists.+local function forward(name, ...)+ local screen = Stack.current()+ if screen and screen[name] then screen[name](screen, ...) end+end++function love.load() Stack.push(require("screens.menu")) end+function love.update(dt) forward("update", dt) end+function love.draw() forward("draw") end+function love.keypressed(k) forward("keypressed", k) end+```++### Drawing overlays (pause on top of the paused game)++To keep the game visible behind a pause screen, draw every screen bottom-to-top but only+update the top one:++```lua+function love.update(dt)+ forward("update", dt) -- only the top screen updates+end++function love.draw()+ for _, screen in ipairs(Stack.screens) do -- draw all, bottom to top+ if screen.draw then screen:draw() end+ end+end+```++## Example screens++```lua+-- screens/menu.lua+local menu = {}++function menu:draw()+ love.graphics.setColor(1, 1, 1)+ love.graphics.print("MENU — press Enter to play, Esc to quit", 20, 20)+end++function menu:keypressed(key)+ if key == "return" then+ require("state_stack").switch(require("screens.game"))+ elseif key == "escape" then+ love.event.quit()+ end+end++return menu+```++```lua+-- screens/game.lua+local Stack = require("state_stack")+local game = {}++function game:enter()+ self.player = { x = 100, y = 100, speed = 220 }+end++function game:update(dt)+ if love.keyboard.isDown("right") then+ self.player.x = self.player.x + self.player.speed * dt -- dt-scaled motion+ end+end++function game:draw()+ love.graphics.setColor(0.2, 0.8, 1.0)+ love.graphics.rectangle("fill", self.player.x, self.player.y, 40, 40)+ love.graphics.setColor(1, 1, 1)+ love.graphics.print("P = pause, hold Right to move", 20, 20)+end++function game:keypressed(key)+ if key == "p" then Stack.push(require("screens.pause")) end -- overlay, game stays beneath+end++return game+```++```lua+-- screens/pause.lua+local Stack = require("state_stack")+local pause = {}++function pause:draw()+ -- Dim the game beneath, then label the overlay.+ love.graphics.setColor(0, 0, 0, 0.5)+ love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight())+ love.graphics.setColor(1, 1, 1)+ love.graphics.print("PAUSED — press P to resume", 20, 60)+end++function pause:keypressed(key)+ if key == "p" then Stack.pop() end -- return to the game underneath+end++return pause+```++## Notes++- `require("screens.menu")` returns the **same table** each call (Lua caches modules), so a+ screen here is effectively a singleton. If you need fresh per-instance state, make the+ module a factory: `return function() return setmetatable({}, Screen) end` and call it.+- Keep screen logic in `update`/`draw`; do not block in `enter`. Long loads belong in a+ loading screen that yields across frames.+- This manager has no transitions/animation by design. Add a `fade` screen pushed on top that+ draws a shrinking alpha rectangle if you want crossfades — the stack already supports it.