Files
yugioh-legacy-bots/AGENTS.md
T
2026-10-19 18:19:14 -07:00

1.9 KiB

yugioh-legacy-bots

Instructions for any coding agent. README.md has the layout, the contract, the build and the release.

  • The game runs this code. Solo duels in the Unity game play these bots, so a change here is a change to the game. Keep game behaviour identical unless the owner asked for the change; say in the commit what a player would see differ.
  • The library stays what Unity compiles: netstandard2.1, LangVersion 9, no Unity, Mono or Microsoft.Data reference, no package it would ship (Newtonsoft is compile-time only). Anything it needs from the game goes through BotHost (src/YGOLegacy.Bots/Host/BotHost.cs); a new need is a new member there, written in README.md's contract table and filed for the Unity repo.
  • Keep the namespaces the game uses (WindBot.*, YGOSharp.*, YGOLegacy.Bot, YGOLegacy.Characters, YGOLegacy.Services) and WindBot's [YGOL] markers on fork changes.
  • Everything builds in Docker (Dockerfile); there is no dotnet on the hosts. docker build --target test . before every push, and confirm the Gitea Actions run is green after it.
  • The engine is a release, never built here: engine.json is the pin, build/fetch-engine.sh fetches it.
  • Releases are tags (vX.Y.Z, with its CHANGELOG.md section). Never re-upload a release; tag a patch. Tag only when asked.
  • The Unity repo (donny/yugioh-legacy-unity) is never changed from here: work for it is a ticket. It is huge: never a full or blob-less clone, never git grep over it; read single files through the Gitea API or a depth-1, tree-less fetch of only the paths needed.
  • Test data is tests/fixture/game, built by tests/fixture/make-fixture.py from the Unity repo's Data/ at a named commit. Never read or write the live Syncthing shares (/mnt/nvme/syncthing/).
  • Git remote: Gitea (donny), never GitHub. Default branch main.