English | 中文
Go toolkit for assembling game / microservice backends (gRPC, HTTP gateway, TCP, Mongo, Redis, NATS) with uber/fx — like LEGO.
Use any AI coding agent that supports Agent Skills (Cursor, Claude Code, Codex, Windsurf, …):
- Open this repository in your AI tool.
- Ask it to create a game, for example:
- create a game based on moke-kit
- use the create-game skill
/create-game(if your tool supports skill slash commands)
- Give a Go module path and service name (e.g.
github.com/example/arena,arena).
The create-game skill scaffolds the game, starts local Redis/Mongo/NATS, and runs the service.
Needs on the machine: Go (see go.mod), Docker, buf.
| Piece | Role |
|---|---|
fxmain |
fxmain.Main(...) app entry |
server |
gRPC / grpc-gateway / zinx (TCP·WS·KCP) |
orm |
Mongo, Redis/Dragonfly, GORM |
mq |
NATS + local MQ |
3rd |
Auth, IAP, Agones, … |
Skills live under .agents/skills/ (Agent Skills layout). Reference apps: moke-game/game, moke-game/platform. Version matrix: COMPATIBILITY.md.
- Add RPCs — ask your AI /
add-game-rpc - Wire more modules — ask your AI /
compose-moke-modules - Kit self-test:
go test -race ./...