Imported from mnaimfaizy/myorganizer (
libs/web/pages/AGENTS.md). Install upstream withnpx skills add mnaimfaizy/myorganizer --skill pages. Copyright stays with the author.
Web Page Libraries Agent Guide
Scope
One Nx React library per frontend route/page, imported by thin wrappers in apps/myorganizer/src/app/**.
Commands
- Test one page library:
yarn nx test web-pages-<route>. - Lint one page library:
yarn nx lint web-pages-<route>.
Do
- Keep page components, data loading, form logic, schemas, and page helpers in the route library.
- For creating or editing React components, follow
.agents/skills/component-builder/SKILL.md. - Use
@myorganizer/web-ui,@myorganizer/auth,@myorganizer/web-vault, and the generated API client as appropriate. - Keep vault-backed pages ciphertext-only outside the browser.
- Nested page Agent Guides exist only when they add constraints this file does not. Do not add a README next to a page library (ADR 0023).
Do Not
- Do not move page logic back into the Next app wrapper.
- Do not duplicate shared UI or vault primitives inside a page library.