docs: add AGENTS.md so a new project inherits the rules on day one - #10
Merged
Merged
Conversation
A project created from this template was implemented as a Vite SPA - a main.tsx swapping screens on local state, with authored CSS files - by an agent that had the devup-ui skill and nothing else. Neither mistake was unreasonable from inside the repository. vinext runs Next App Router on Vite, so apps/front has a vite.config.ts and no next.config.ts, and an agent that does not know vinext reads that as a Vite SPA. And devup-ui is a styling skill that correctly says nothing about project structure, so nothing in reach forbade adding a stylesheet. A skill only helps a machine that has it installed. AGENTS.md travels with the clone, so the two rules that were actually broken - this is App Router despite vite.config.ts, and no .css belongs here - are now true for every project made from this template on day one, before any skill is loaded. Also records file placement, the Server-Component default, the real verification commands from package.json, and how to install the full skills through devup_skills.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A project created from this template (
fun-deposit, cloned 2026-09-13) was implemented as a Vite SPA — amain.tsxswapping screens on local state, with authored.cssfiles beside code that hasglobalCss()— by an agent that had been given the devup-ui skill and nothing else.Neither mistake was unreasonable from inside the repository:
vinextruns Next App Router on Vite. Soapps/fronthas avite.config.ts, nonext.config.ts, and uses@devup-ui/vite-plugin. An agent that does not knowvinextreads that as a Vite SPA — and the devup-ui skill lists Vite first among its build plugins, which confirms the misreading.devfive-frontend, which that machine did not have.A skill only helps a machine that has it installed.
AGENTS.mdtravels with the clone.What this adds
A single root
AGENTS.md, 131 lines, covering only what has actually been broken plus the minimum needed to act on it:vite.config.ts— with the evidence from this repo's ownpackage.json(vinext dev/build/start) andlayout.tsx(import type { Metadata } from 'next'). States plainly that there is nomain.tsxorindex.html, and shows the state-machine anti-pattern next to the file-routing fix.resetCss(), already called inapps/front/src/app/layout.tsx, andglobalCss().app/holds onlylayout.tsxandpage.tsx; the Server Component default; thepublic/icons/*.svgrule.apps/adminhas adevup.jsonandapps/frontdoes not yet, and that$tokenonly resolves in a JSX prop.package.json(oxlint,bun test,cargo clippy), including thecd apps/front && bun devvsbun -F front devzombie-process note.devup_skills { "action": "install" }, which carriesdevfive-frontend,devup-ui,vesperaandvespertideand installs them with no network.The file is explicitly scoped as "the minimum that has to be true even when no skill is loaded" — the depth stays in the skills.
Related
devfive-frontendin the binary sodevup_skills installcan deliver it to a bare machineNote
Docs only, no code touched. One thing I noticed while reading and did not change:
apps/front/vite.config.tscallsDevupUI()withoutinclude: ['@devup-ui/reset-css'], whilelayout.tsxdoes callresetCss(). If the plugin does not auto-process that package at1.0.69, the reset classes may not be emitted — worth a separate check, but I did not want to touch build config in a docs PR.