GitHubНачать

Эта страница ещё не переведена на русский язык, поэтому ниже показан английский оригинал.

Руководства

Agent Skill

The repository publishes an Agent Skill at skills/nsgo-game so coding agents know how to scaffold, build, test, inspect and drive NSGo games using the nsgo game CLI, plain-text YAML formats and the game/mcp tool suite.

Install

Install the skill with bunx skills add:

bunx skills add nsgo-dev/game

Pair it with NSGo's own nsgo skill for core UI primitives, signals, nsgotest and go tool nsgo:

bunx skills add nsgo-dev/nsgo

To let an agent inspect and drive a running game live, also register NSGo's MCP server:

claude mcp add nsgo -- go tool nsgo mcp

What the skill covers

  • SKILL.md: project rules (Go only, plain-text versioned YAML formats, go tool nsgo check/test, stability tiers), quick-start CLI workflow, minimal game.Loop + mcp.Attach wiring, and the deterministic MCP verification loop.
  • references/packages.md: complete grouped catalog of every package in github.com/nsgo-dev/game, with import paths and stability status matching API Stability.
  • references/cli-and-formats.md: all nsgo game subcommands (Command Reference), companion module tools, the YAML format contract (File Formats), JSON Schemas (Schemas) and native external formats (Tiled, LDtk, Aseprite, TexturePacker, BMFont, glTF, Yarn).
  • references/mcp-tools.md: mcp.Bridge setup (mcp) and the full tool catalog covering scene/entity inspection, fixed-step loop control, game-coordinate input, live spawning and component editing, screenshots with diagnostic overlays, debug console tunables, input recording/replay, performance telemetry and live asset hot reload.

Typical agent workflow

  1. Scaffold and add building blocks with nsgo game new, nsgo game generate, nsgo game assets and nsgo game check.
  2. Attach mcp.Bridge on the game's *core.Scope and run go tool nsgo dev -automation (or nsgotest.Start in tests).
  3. Drive reproducible checks through MCP: pause with game_loop_pause, seed with game_loop_seed, inject inputs or spawn entities, advance synchronously with game_loop_step, inspect entities with game_entities_list / game_entity_inspect / game_component_get, and capture overlays with game_screenshot.
Редактировать страницу