Skip to content

feat(skills): add nsgo-game agent skill for game layer and MCP tools - #728

Merged
houko merged 5 commits into
mainfrom
feat/mcp-agent-skill-470
Nov 24, 2026
Merged

houko merged 5 commits into
mainfrom
feat/mcp-agent-skill-470

Conversation

@houko

@houko houko commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the installable skills/nsgo-game Agent Skill (bunx skills add nsgo-dev/game), following NSGo's skills/nsgo layout:
    • skills/nsgo-game/SKILL.md: YAML frontmatter (name: nsgo-game), core rules (Go only, plain-text versioned YAML formats, go tool nsgo check/test, stability tiers), quick-start go tool game workflow, minimal game.Loop + mcp.Attach example, and deterministic MCP verification loop.
    • skills/nsgo-game/references/packages.md: complete grouped catalog of all 111 non-internal packages/game/* packages with stability tiers.
    • skills/nsgo-game/references/cli-and-formats.md: all go tool game subcommands, companion tools, YAML format contract, schemas, and native external tool exports.
    • skills/nsgo-game/references/mcp-tools.md: complete game/mcp tool reference across #461–#469, mcp.Config wiring, component/prefab/asset registration, and nsgotest verification patterns.
  • Add automated Go tests verifying the skill and end-to-end CLI-to-MCP workflow:
    • packages/game/skill_test.go: TestAgentSkillValid (strict frontmatter, relative links, packages and their statuses against modulePackages and docs/en/stability.md, and the MCP tool tables equal to mcp.Bridge.Tools() in both directions) and TestAgentSkillWorkflowBuildAndVerifyThroughMCP.
    • packages/game/cmd/game/skill_e2e_test.go: TestAgentSkillDocumentsEveryCommand (every entry of the commands slice is documented) and TestAgentSkillCLIScaffoldGenerateCheckAndMCP (game new -> game generate -> place a player using the generated component in the generated scene -> game index -> game check -> sceneformat.ParseWith/SpawnEntities -> mcp.Attach -> MCP verification of that scene entity via automation.Call).
  • Add bilingual docs (docs/en/agent-skill.md, docs/zh/agent-skill.md), link from README.md, docs/{en,zh}/index.md, and apps/website/src/content/groups.ts.
  • Add changelog fragment changelog.d/mcp-agent-skill-470.md and implemented agent note .agents/notes/implemented/feature/2026-11-24-mcp-agent-skill.md.

Verification

Closes #470

@github-actions github-actions Bot added size/XL documentation Improvements or additions to documentation pkg/cmd area/website pkg/game area/agents enhancement New feature or request conflict Conflicts with the target branch; resolve before merging labels Nov 24, 2026
Name shared resources <name>.<type>.yaml and data tables any .yaml file as docs/en/formats.md does, note scene version 2 and list every published schema. Replace the closing note in mcp-tools.md, which said tool groups activate as subsystems are wired: every tool is always registered and reports which Config field is missing.
TestAgentSkillValid now requires the tool tables in mcp-tools.md to name exactly the tools game/mcp registers, and every package status in packages.md to match docs/en/stability.md. The CLI subcommand list moves to cmd/game, the velocity codec registration error is checked, and the doc comments are one line per paragraph.
…enerated scene

TestAgentSkillDocumentsEveryCommand loops over the commands slice, so a new subcommand fails until the skill documents it. The end-to-end test now places a player using the generated health component in the generated arena scene, parses it against a registry of that component, and inspects that scene entity through MCP instead of a hand-spawned one.
@houko
houko force-pushed the feat/mcp-agent-skill-470 branch from bd1d6dc to fbcb69d Compare November 24, 2026 19:59
@houko
houko merged commit 5a1b0a8 into main Nov 24, 2026
12 of 36 checks passed
@houko
houko deleted the feat/mcp-agent-skill-470 branch November 24, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents area/website conflict Conflicts with the target branch; resolve before merging documentation Improvements or additions to documentation enhancement New feature or request pkg/cmd pkg/game size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: an agent skill for the game layer

1 participant