This kit sets up AI coding agents (Claude Code, Codex CLI, Kimi Code, and Cursor to a lesser degree) to work on Voidcrew. It gives them the project's rules, its known traps, docs for every system, and tools to render maps. It also lays out a way of working with agents that keeps bad code out of the game.
The kit is public and free to use under the AGPL (see Licence). Never put credentials or server details in it.
| Part | Where | What it does |
|---|---|---|
| Rules file | rules/AGENTS.md |
The instructions every agent reads first. The installer copies it into your game checkout as AGENTS.md. |
| Skills | skills/ |
Task guides that agents load when they need them. voidcrew-traps lists engine and codebase traps and has a review checklist. dmm-mapping builds and checks maps. npc-outfit dresses NPCs. player-abuse-review lists how players break features and gives a review procedure. feature-design-pipeline takes a gameplay feature from a rough idea to a balanced, reviewed plan that several agents can build in parallel, with a prompt for each stage. gear-rating rates gear by comparing it with its peers and keeps tiers, prices and gates in step with the code. |
| Docs vault | vault/ |
One page per system (vault/modules/, vault/core/, vault/edits/), plus ship design studies. Start at vault/Index.md. It opens in Obsidian, but plain Markdown works too. |
| Agent | agents/deep-research.md |
A read-only research agent for Claude Code, for large audits. |
| Hook | hooks/ |
A Claude Code hook that blocks commits, PRs and comments that contain AI attribution or session links. |
| Tools | tools/bin/ (downloaded) |
SpacemanDMM dmm-tools (renders maps to PNG) and dreamchecker (DM linter). |
| Installer | install.ps1 |
Sets all of the above up for your AI tools and game checkouts. VERSION holds the kit version. |
- Git for Windows: https://git-scm.com/downloads/win. Claude Code also uses its Git Bash.
- BYOND 516, which includes
dm.exe: https://www.byond.com/download/. Match the version in the game'sdependencies.sh. - Python 3.11 or newer: https://www.python.org/downloads/. Then run
python -m pip install bidict pillowfor the map scripts. - bun:
tools/build/build.batdownloads its own copy for tgui builds. Install it yourself (https://bun.sh) only if you want to run tgui scripts directly. - One AI tool:
- Claude Code: https://code.claude.com/docs/en/setup
- Codex CLI: https://github.com/openai/codex
- Kimi Code: https://moonshotai.github.io/kimi-code/
Start your AI tool once before you install the kit, so its config folder exists.
You can get the kit from git or from a release zip. The installer works the same way
for both. Keep the kit at a fixed path, such as C:\code\voidcrew-ai-kit: the skill
links and the VOIDCREW_KIT variable point at it.
From git. Clone it and run the installer on your game checkout:
git clone https://github.com/voidcrew/voidcrew-ai-kit.git C:\code\voidcrew-ai-kit
powershell -ExecutionPolicy Bypass -File C:\code\voidcrew-ai-kit\install.ps1 -GameCheckout C:\code\tg-voidcrew
From a release zip.
- Download the zip from the Releases page of https://github.com/voidcrew/voidcrew-ai-kit.
- Extract it into
C:\code\. The zip holds onevoidcrew-ai-kitfolder, so the kit ends up atC:\code\voidcrew-ai-kit. - If Windows refuses to run the scripts or shows a security warning, unblock the
extracted files:
Get-ChildItem -Recurse C:\code\voidcrew-ai-kit | Unblock-File - Run the installer the same way:
powershell -ExecutionPolicy Bypass -File C:\code\voidcrew-ai-kit\install.ps1 -GameCheckout C:\code\tg-voidcrew
The installer:
- sets the user environment variable
VOIDCREW_KITto the kit folder; - writes
AGENTS.mdandCLAUDE.mdinto the checkout and hides them from git with.git/info/exclude(it never edits tracked files); - links each skill into the skills folder of every AI tool it finds;
- copies the agent into
~\.claude\agents\; - downloads the SpacemanDMM tools into
tools\bin\, checking their checksums.
Options:
| Option | Effect |
|---|---|
-WithHook |
Adds the attribution-blocking hook to ~\.claude\settings.json and turns off Claude Code's own co-author lines. It backs the file up first. Recommended for Claude Code. |
-WhatIf |
Shows what would change without changing anything. |
-Force |
Replaces an AGENTS.md, CLAUDE.md, skill or agent that the kit did not create. It keeps a backup. |
-Uninstall |
Removes what the kit created and restores backups. |
If you already had your own AGENTS.md, CLAUDE.md or a skill with the same name, the
installer leaves it alone and tells you. Close and reopen your terminal afterwards so
the new environment variable is visible.
Open your AI tool in the game checkout (cd C:\code\tg-voidcrew, then claude,
codex or kimi) and ask:
Compile the project with dm.exe and tell me the result: error count, warning count, and how long it took.
A good answer says it ran dm.exe -DCBT tgstation.dme (or tools\build\build.bat dm),
reports 0 errors, and took about 40 seconds. If it used build.bat and finished in 2
seconds, it did not compile anything, and the agent should have noticed. The rules file
explains why.
- Make a worktree for the task, based on current master. Each task gets a clean
tree, and your other work is not mixed in.
The installer run gives the new worktree its
git -C C:\code\tg-voidcrew fetch <voidcrew remote> git -C C:\code\tg-voidcrew worktree add C:\code\tg-voidcrew-helmfix -b helm-fix <voidcrew remote>/master powershell -ExecutionPolicy Bypass -File C:\code\voidcrew-ai-kit\install.ps1 -GameCheckout C:\code\tg-voidcrew-helmfixAGENTS.md. A new worktree also needs onetools\build\build.batrun for the tgui bundles, or no UI will open in game. - Ask the agent to read the vault page and the code, then propose a plan. An agent that reads first makes changes that fit the existing code.
- Read the plan and correct it. Fixing a wrong plan takes a minute. Fixing wrong code takes an hour.
- Let it implement.
- It compiles, and builds tgui or runs unit tests when the change touches them. This catches the mistakes that a compiler can catch, before you spend time on them.
- Read the whole diff yourself. Compiling says nothing about whether the code does the right thing.
- Playtest locally. Only running the game shows that it works.
- Write the PR description yourself. You are the one who can say what was tested and why the change is right.
Good at:
- Tracing a call chain through tg and Voidcrew code, including signals, components
and
voidcrew/edits/overrides. Ask forfile:linefor each step. - Finding every caller, override and signal handler of a proc before you change it.
- Porting a feature or fix from tgstation or another fork, and finding where our code has diverged from theirs.
- Boilerplate: new item types, datums, admin verbs, unit test scaffolding.
- Map work with the
dmm-mappingskill. It renders the map, checks door access, directions and density, and looks at the render before saying it is done. - Reviewing a diff against the trap checklist.
Bad at:
- They cannot playtest. They cannot see the game, click things, or notice that something feels wrong.
- They write confident patches for bugs nobody has diagnosed. Given a vague bug report, an agent will pick a plausible cause and fix that. Ask for a diagnosis first and make it show evidence.
- They invent procs, vars and signals that look plausible.
/datum/overmap/proc/get_sector_at()looks real. Make them grep for every name they use. The compiler catches some of these, but not names that happen to exist with a different meaning. - Tuning numbers are guesses. Damage, prices, spawn rates and timers from an agent have not been balanced. Treat them as placeholders and decide them yourself.
Use skills/voidcrew-traps/references/reviewing-generated-dm.md. It lists the bug
classes that compile cleanly and still break the game, each with a grep trigger. The
ones that come up most:
- A new
.dmfile with no#includeintgstation.dme. The IDE hides this; the command-line compiler does not. - An override that drops
..(), dropsreturn ..(), or leaves out the parent's default argument values. istype()given a type path instead of an instance. It is always false.- Signals registered on a path that can run twice, or never unregistered in
Destroy(). - Seconds mixed with deciseconds.
- tgui: a bare
{flag && <X />}, which prints a stray0;ui_data()keys that do not match the TSX type.
You can ask the agent to run the checklist on its own diff. Read the diff yourself too.
The full list is in rules/AGENTS.md. The ones that matter most:
- No AI attribution or session links anywhere public. No "Generated with" footers,
no model co-author trailers, no assistant session links in commits, PRs, issues or
comments. Session links expose your private conversation, including anything you
pasted into it.
-WithHookblocks these for Claude Code. With other tools, check before you push. - No AI working documents in the game repo. Plans, audits and status notes stay out of tracked files. They go stale and nobody maintains them. Put lasting knowledge in the kit's vault instead.
- Keep changes out of upstream code, and mark the ones you cannot avoid. Voidcrew
merges tg regularly. Every edit to a tg file is a possible merge conflict. Put
features in
voidcrew/modules/, and mark unavoidable upstream edits withVOIDCREW EDITcomments so the next merge can find them. - Compiling is not fixed. An agent can show that code compiles and reads correctly. Only a playtest shows that it works. PR descriptions should say what was playtested.
Be specific about what to read, what to produce, and when to stop.
Learn a system.
Read the kit's vault page
vault/modules/overmap.mdand the code invoidcrew/modules/overmap/, then explain how a ship moves from one sector to another. Give file:line for each step. Don't change anything.
Triage a bug report.
Look at issue 123 on voidcrew/Voidcrew with
gh issue view 123 -R voidcrew/Voidcrew --comments. Download every image it links and look at them before anything else. Then find the code involved and tell me the most likely cause, how sure you are, and what would confirm it. Don't write a fix yet.
Find every caller and override.
Find every caller and every override of
/atom/proc/emp_actincode/andvoidcrew/, including handlers forCOMSIG_ATOM_EMP_ACTandCOMSIG_ATOM_PRE_EMP_ACT. List them with file:line and mark which ones are Voidcrew code.
Port from upstream.
Port tgstation PR into this checkout. First list every file it touches and say which of them we override in
voidcrew/edits/or have changed withVOIDCREW EDITmarkers. Propose where each part should go, and wait for my go-ahead before editing.
Edit a map.
Use the dmm-mapping skill. In
_maps/voidcrew/ships/ship_boyardee.dmm, add a second cryopod next to the existing one. Render the ship before and after, run the direction check and the lint, and show me both renders. Don't regenerate the ship previews until I approve the change.
Review a diff.
Review
git diff <voidcrew remote>/master...HEADagainst the checklist in the voidcrew-traps skill (references/reviewing-generated-dm.md). Report only real problems, each with file:line and how it breaks. Don't edit anything.
Check a plan against the code.
Here is a plan another agent wrote. Check every claim about the code (proc names, vars, signals, file paths) against the checkout and tell me which ones are wrong.
Agents share your filesystem. Two agents in one checkout will overwrite each other's
edits to tgstation.dme and to shared modules, and one agent's git checkout can
throw away the other's work. Give each agent its own worktree and branch, as in
section 3, and run the installer for each new worktree.
For a feature too big for one agent, the feature-design-pipeline skill describes a split
that worked: one agent first adds every file, include and stub, then each agent builds a
package of files only it owns, and one integration agent merges them and runs the tests once.
A second model makes a good reviewer. After Claude Code writes a change, open Codex or Kimi in the same worktree and ask it to review the diff with the prompt in section 7, or give it the plan to check. Different models make different mistakes, so a second opinion catches things the first one misses. Tell the reviewer not to edit, so the two do not fight over the files.
The installer prints the kit version (from VERSION) in its summary.
If you cloned the kit, run the installer again with your checkouts after every
git pull:
git -C C:\code\voidcrew-ai-kit pull
powershell -ExecutionPolicy Bypass -File C:\code\voidcrew-ai-kit\install.ps1 -GameCheckout C:\code\tg-voidcrew
Skills update through their links, but AGENTS.md and the agent file are copies and
only update when the installer runs. It is safe to run as often as you like.
If you use release zips, update like this:
- Rename the old kit folder, for example
C:\code\voidcrew-ai-kittoC:\code\voidcrew-ai-kit.old. - Extract the new zip into
C:\code\so the new kit is at the same path,C:\code\voidcrew-ai-kit. Unblock the files if Windows complains (see section 2). - Run
install.ps1again with your checkouts. It updatesAGENTS.mdand the agent, re-points any skill link that needs it, and downloads the SpacemanDMM tools again (they are not in the zip). - Delete the old folder only after the installer has run.
Delete the old kit folder itself, never a skill link. Do not run Remove-Item -Recurse
on anything in ~\.claude\skills, ~\.codex\skills or ~\.kimi-code\skills: in
Windows PowerShell that follows the directory junction and deletes the files inside
the kit. Use install.ps1 -Uninstall to remove the links.
When you find something agents keep getting wrong, add it to the kit:
- A new trap: add it to the right file in
skills/voidcrew-traps/references/, with the symptom, the cause, a code pointer and the fix. If reviewers can check for it, add a line toreviewing-generated-dm.md. - A rule every agent should follow: add it to
rules/AGENTS.md, short and in the imperative. Everyone gets it the next time they run the installer. - A system changed: update its vault page.
vault/_agent-guide.mdexplains the page format. An agent can do the edit; check it against the code before you send it.
Send changes as a pull request to https://github.com/voidcrew/voidcrew-ai-kit. If you installed from a zip, clone the repo to make the change. Never put credentials, tokens, server addresses, hostnames or player data in the kit. Personal preferences, decisions about one past problem and anything about running the live server also stay out; keep those in your own private notes. It is shared with every developer and read by every agent.
Whichever way you installed, do not delete the skill links with Remove-Item -Recurse
in Windows PowerShell: on a directory junction it can delete the files inside the kit.
Use install.ps1 -Uninstall.
The kit is licensed under the GNU Affero General Public License v3.0, the same licence as
/tg/station and Voidcrew code. The full text is in LICENSE.
The map examples in skills/dmm-mapping/references/exemplars/ are excerpts of
/tg/station maps (AGPL-3.0). Their PNG renders
show /tg/station sprites, which are licensed under
CC BY-SA 3.0.