Platform frontend

From VectorSpaceLab/AREX-Skill · View interactive version

Platform frontend is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Develop and validate the AutoGPT Platform Next.js frontend, generated API hooks, Builder/Copilot UI, design system, and frontend tests.

How to use this skill

Skill file

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

groups, component/hook structure, state, API clients, auth, and design rules.

MSW handlers, Vitest integration tests, Playwright happy paths, Storybook,

and command ordering.

stale OpenAPI, auth redirects, build/type errors, MSW, and seeded E2E data.

Node/package/layout check. It does not install packages or launch Next.js.

Development sequence

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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

platform-backend.

platform-stack.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.