Building with an Agent
How to have an AI agent build a plugin, a theme or a headless site for Pano. The pattern is the same each time: start from the official scaffold, let the agent read the agent guide, ask for one thing at a time, run the checks, review by hand.
The agent guide
Pano's rules for agents live in this docs repository, PanoMC/docs, under guidelines/: agent-guide/ (a short README.md that routes by task, "making a new plugin", "restyling without touching markup", "a headless front-end"..., and one small file per task) and design/ (the panel design rules). Every official Pano repository has this repository as its git submodule docs/, and its AGENTS.md only routes the agent there; CLAUDE.md, GEMINI.md and .github/copilot-instructions.md point to AGENTS.md.
| Repository | Has the docs/ submodule |
|---|---|
PanoMC/pano-starter-sveltekit (headless starter) | yes |
PanoMC/pano-boilerplate-plugin (plugin template) | yes |
PanoMC/vanilla-theme (default theme) | yes |
The plugin and theme scaffold commands do not add it to a new project. Add it once, in your project's git repository:
git submodule add -b dev https://github.com/PanoMC/docs.git docsThen start your prompts with "Read docs/guidelines/agent-guide/README.md first", or put that sentence in your own AGENTS.md.
Plugin
Start as Addon Getting Started describes, with Pano running locally and Development Mode on:
cd <your-pano>/plugins && bunx @panomc/plugin-kit new my-plugin
cd my-plugin && bun run devExample prompts:
Read docs/guidelines/agent-guide/README.md first. Add a site page at /my-plugin/rules that shows a list of
server rules. Store the rules in the plugin's own table and add the endpoint that lists them.Read docs/guidelines/agent-guide/README.md first. Add a panel page where an admin can add, edit and delete
the rules, protected by a permission of this plugin. Follow docs/guidelines/design/README.md.Move every text of this plugin into src/main/resources/locales/ and add a Turkish translation.Check the result: bun run check (or bunx pano-plugin check --strict), then ./gradlew build. Kotlin changes need ./gradlew build -Pnoui and a restart of Pano before you see them.
Theme
Start as Theme Getting Started describes:
bunx @panomc/theme-core new my-theme
cd my-theme && bun install && bun run dev:uiExample prompts:
Read docs/guidelines/agent-guide/README.md first. Give this theme a dark look with a green accent.
Change only src/styles/tokens.scss and src/styles/style.scss; do not eject any view.Read docs/guidelines/agent-guide/README.md first. Replace the home page with a landing page: a hero with the
server address, then the latest three posts. Keep every plugin slot.Restyle the market plugin's product card to match this theme. Take the cheapest step that
works and tell me which one you took.Check the result: bunx @panomc/theme-core check --strict, bun run build, and open <your Pano address>/__pano/views to see every view with sample data.
Headless front-end
Start as Headless Quick Start describes. This scaffold already contains AGENTS.md, CLAUDE.md and a .gitmodules entry for docs/; add the submodule as above to fill it:
bunx @panomc/client-gen new my-site --url http://localhost:8088
cd my-site && bun run devExample prompts:
Read AGENTS.md first. Add a /servers page that lists the Minecraft servers of this Pano with
their online player counts. Use the generated client in src/lib/pano; do not edit it.Run bun run pano:pull, then add a store page built on the market plugin's operations.Check the result: bun run check, bun test, bun run build. bun run package makes the zip you upload as "My uploaded site".
Review by hand before you release
- Run it. A green check is not a working plugin or theme. Open the page in a Pano with Development Mode on, at phone width too.
- Read the diff. Look for edits in generated folders (a theme's
src/routes/,src/lib/,lang/; a plugin'ssrc/main/resources/plugin-ui/; a headless site'ssrc/lib/pano/), TypeScript files, and a changedsvelteversion. The guide forbids all of them. - Plugins: permissions on every panel endpoint, input validation, and that the plugin writes only to its own tables. The
pluginIdcan never change after the first release. - Secrets: no front-end key, license key or password in the code or in the commit.
- Versions and releases: the agent should not bump a version, tag or push. Releases come from your commit messages: see Building & Publishing and Publishing.