diff --git a/AGENTS.md b/AGENTS.md index 09003d0..1e13a22 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,48 +1,54 @@ +# General -# Rules +- The `README.md` contains the full spec of the application. Read it end-to-end to understand the full context. It should be kept up to date whenever the code is ready for a PR +- You must follow the instructions in the `AGENTS.md` file while working on your task and regularly review if you are still aligned with these instructions and the spec. +- Do not stop until every acceptance criterion is implemented, verified locally and prepared for review. +- **Co-locate docs**: every code file must have a matching `*.md` sidecar next to it, that explains the component in detail. The goal of the sidecar is to make purpose, API, invariants, examples and test strategy of the component obvious to agents and humans. -## General - This is a minimal local first web app (static HTML + modular JS). Prefer tailwind over custom CSS. -- Entrypoint: `index.html` (+ static pages in `pages/`) +- Entrypoint: `index.html` (+ static pages in `pages/` if any needed) - The code is composed of small, focused modules in `src/` (`components/`, `utils/`, ..) with colocated tests - Run `npm test` and `npm outdated` at the start and end of each significant task and weekly at minimum; keep dependencies healthy. Prefer bumping to the `Wanted` version unless blocked by incompatibilities (document any exceptions). Also run `npm audit` to catch security issues even when versions are current -- `README.md` typically contains big picture dev. spec and context. It should be kept up to date whenever the code is ready for a PR - Only change code directly related to the current task; keep diffs small! - Preserve existing comments & docs; add concise, long-lived comments where useful and avoid narrating changes via comments - When external documentation could be consulted, do so to validate your plan makes sense. If you lack a browsing/online search tool, ask the user to run an online search for you (e.g., "Please search for \"x\" and paste back the findings") ## Dependencies & no-build approach to use + This project follows a no-build, static workflow: + - Use native ES modules and `