aurostack-org/stacks/add-screen
Claude Code and agent skill by aurostack-org/stacks
- community
Checking that the SKILL.md file is still in the repository.
Add a screen to one of this monorepo's apps — the route, its data through the shared RTK Query baseApi, loading/empty/error states, forms, page meta and the app's nav entry — built from the shared UI kit. Use when asked to "build the X page", "add a /things screen", "implement this design", or to turn an artboard into a working route.
Install
npx vskill@latest install aurostack-org/stacks/add-screenSKILL.md
The same SKILL.md was published earlier as aurostack-org/stacks/add-screen.
Add a screen
First decide which app it belongs to. Each has its own router, nav and origin:
- the signed-in product:
apps/client<!-- @feature app-client --> - the console:
apps/admin, seeadd-admin-page<!-- @feature app-admin --> - public pages:
apps/landing, seeadd-marketing-page<!-- @feature app-landing -->
1. The data first
If the screen reads or writes API data, the endpoint must exist on the API. <!-- @feature:start types --> Generate its types: with the API running, set API_DOC_URL, API_DOC_USER and API_DOC_PASSWORD (in packages/types/.env), run yarn workspace @acme/types gen, and commit packages/types/src/types/api/. <!-- @feature:end -->
The slice lives with the screen that owns it, in apps/<app>/src/features/<things>/api.ts, or in packages/api if more than one app calls it:
Add 'Things' to tagTypes in packages/api/src/base-api.ts: one global namespace across every app.
2. The route
apps/<app>/src/routes/things.tsx, a named ThingsRoute export, with <PageMeta title="Things" /> from @acme/ui and every state the design shows: PageSkeleton while loading, Empty with no data, StateScreen on error (from @acme/layouts). Compose from @acme/ui and theme utilities; a missing component is added to the kit with add-component, not inlined. Forms use Formik with toFormikValidationSchema(...) and the @acme/ui form fields. Lay it out for phone width too.
3. Register it
In apps/<app>/src/app/router.tsx: a lazy import and a child of the app's branch ({ path: 'things', element: lazyRoute(<ThingsRoute />) }). Then the nav entry in apps/<app>/src/app/nav.tsx ({ to: '/things', label: 'Things', icon: <Box className="size-4" /> }). Paths are the app's own; another app links to it through its host (VITE_APP_CLIENT_HOST and friends), never a relative path.
4. Check
yarn lint && yarn typecheck, then yarn workspace <app> dev and walk every state against the design at desktop and phone width.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/react-monorepo/files/.claude/skills/add-screen/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aurostack-org/stacks/add-screen)