Skip to content
Get started

Build with a coding agent

View as Markdown

A coding agent writes better code when it can check its own work. A Minekube project gives it what a developer has: the rules of a Minekube game, a strict check, tests that run in seconds, a live server and the game’s message logs. This page shows what the agent gets and how to hand it a task.

mk init writes everything an agent needs to work on the project without guessing:

File What it gives the agent
AGENTS.md A short entry point that most coding agents read: where the game and the network live, which checks to run, and to read the skill first.
CLAUDE.md Imports AGENTS.md, for agents that read this name instead.
.agents/skills/minekube-games/ The minekube-games skill: the rules of a Minekube game, the game structure with a complete example, Paper and Velocity from TypeScript, testing and recordings, the dev loop, and running on a real server. It is the same material as these docs, written for an agent.
.mcp.json The devtools’ MCP server, effect-ui at http://127.0.0.1:4774/mcp.
.oxlintrc.json Effect’s lint rules in their strictest form. Warnings fail the check, and async and await are errors.

bun run check runs the type checker and every lint rule in one command. An agent’s mistakes fail there, in seconds, instead of on the server.

  1. Start the dev server in its own terminal: mk server --accept-eula.
  2. Start mk dev . in the project, so every save installs the game.
  3. Open your coding agent in the project folder and give it a task.

This prompt works in a project that mk init created:

Give this to your coding agent
Read AGENTS.md and the minekube-games skill it points to.
Then make placing a diamond block score 5 points instead of 1, and keep every other block at 1 point.
Carry the block type in the message with its generated Schema, change the rules in src/Round.ts and src/game.ts, add a Story test, and run `bun run check` and `bun test`.
Install it with `mk dev .`. If something behaves unexpectedly, find out why through the effect-ui MCP server before changing code.

Works in a project created with mk init, with mk server running.

  • It reads the rules first. The skill says that the rules import no Java, that messages are data with Schemas, and that Paper’s API is used as it is.
  • It proves the change in Bun. It writes a Story for the new rule and runs bun test and bun run check.
  • It installs on the live server. mk dev . swaps the game while you stay connected. A broken bundle never replaces a working one.
  • It reads why something happened. Through MCP it lists the session’s entries, follows the cause chain of a surprising one with get_chain, and compares Models with diff_state.

The agent loop explains the full loop, including bot clients that let an agent play what it built.

The skill tells an agent never to write plugin code. If something cannot be done through the server’s API from TypeScript, the agent names the missing capability instead of working around it. Report such gaps to Minekube, so they are fixed for everyone.

Was this helpful?