Platform Frontend
Use this sub-skill for the autogpt_platform/frontend Next.js App Router
application: authenticated platform pages, Builder, Copilot, Library,
Marketplace, settings, teams, generated API hooks, feature flags, design-system
components, and frontend test suites.
Reference map
- Read frontend architecture for route
groups, component/hook structure, state, API clients, auth, and design rules.
- Read API and testing for Orval generation,
MSW handlers, Vitest integration tests, Playwright happy paths, Storybook,
and command ordering.
- Read troubleshooting for Corepack/pnpm,
stale OpenAPI, auth redirects, build/type errors, MSW, and seeded E2E data.
- Run
python scripts/frontend_preflight.py --repo <checkout> for a read-only
Node/package/layout check. It does not install packages or launch Next.js.
Development sequence
- Work from
autogpt_platform/frontend. Enable Corepack so the
packageManager field selects the pinned pnpm version, then install only
the dependencies required for the task.
- For a page, use the App Router under
src/app, keep page logic in a hook
when it is non-trivial, and colocate feature components and helpers.
- For server data, use Orval-generated React Query hooks under
src/app/api/__generated__/endpoints/; regenerate from the backend OpenAPI
source rather than hand-editing generated files.
- Use Tailwind design tokens, the design-system components, and the Icon atom
with Hugeicons. Do not introduce legacy component paths or raw internal
links when the project convention provides a component.
- Add a page-level Vitest/RTL/MSW integration test for new feature behavior.
Use Playwright only for a critical real-browser journey and Storybook for
visual/design-system behavior.
Required checks after frontend changes
pnpm format
pnpm lint
pnpm types
pnpm test:unit
Use pnpm generate:api after intentional backend API/OpenAPI changes. Full
pnpm test or pnpm test-ui builds the app and requires the backend stack and
seeded test data; do not run it as a casual smoke check.
Routing boundaries
1---2name: platform-frontend3description: "Develop and validate the AutoGPT Platform Next.js frontend,4 generated API hooks, Builder/Copilot UI, design system, and frontend tests."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/platform-frontend7 disco-role: operating8disable-model-invocation: true9license: NOASSERTION10---1112# Platform Frontend1314Use this sub-skill for the `autogpt_platform/frontend` Next.js App Router15application: authenticated platform pages, Builder, Copilot, Library,16Marketplace, settings, teams, generated API hooks, feature flags, design-system17components, and frontend test suites.1819## Reference map2021- Read [frontend architecture](references/frontend-architecture.md) for route22 groups, component/hook structure, state, API clients, auth, and design rules.23- Read [API and testing](references/api-and-testing.md) for Orval generation,24 MSW handlers, Vitest integration tests, Playwright happy paths, Storybook,25 and command ordering.26- Read [troubleshooting](references/troubleshooting.md) for Corepack/pnpm,27 stale OpenAPI, auth redirects, build/type errors, MSW, and seeded E2E data.28- Run `python scripts/frontend_preflight.py --repo <checkout>` for a read-only29 Node/package/layout check. It does not install packages or launch Next.js.3031## Development sequence32331. Work from `autogpt_platform/frontend`. Enable Corepack so the34 `packageManager` field selects the pinned pnpm version, then install only35 the dependencies required for the task.362. For a page, use the App Router under `src/app`, keep page logic in a hook37 when it is non-trivial, and colocate feature components and helpers.383. For server data, use Orval-generated React Query hooks under39 `src/app/api/__generated__/endpoints/`; regenerate from the backend OpenAPI40 source rather than hand-editing generated files.414. Use Tailwind design tokens, the design-system components, and the Icon atom42 with Hugeicons. Do not introduce legacy component paths or raw internal43 links when the project convention provides a component.445. Add a page-level Vitest/RTL/MSW integration test for new feature behavior.45 Use Playwright only for a critical real-browser journey and Storybook for46 visual/design-system behavior.4748## Required checks after frontend changes4950```bash51pnpm format52pnpm lint53pnpm types54pnpm test:unit55```5657Use `pnpm generate:api` after intentional backend API/OpenAPI changes. Full58`pnpm test` or `pnpm test-ui` builds the app and requires the backend stack and59seeded test data; do not run it as a casual smoke check.6061## Routing boundaries6263- Backend route/schema/OpenAPI source changes belong to64 [platform-backend](../platform-backend/SKILL.md).65- Docker, service startup, env files, and migrations belong to66 [platform-stack](../platform-stack/SKILL.md).67- Classic frontend/agent references belong to [classic-agents](../classic-agents/SKILL.md).