Use when creating new pages, components, modules, or features in the orchestration cluster webapp at webapp/client/apps/orchestration-cluster-webapp/. Use when adding routes, data loading, forms, API integration, or UI components. Trigger whenever someone is building or modifying frontend feature code in webapp/client/, even for small changes like adding a column, filter, or panel.
66
78%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/frontend-feature/SKILL.mdReference for building features in @camunda/orchestration-cluster-webapp — the unified React frontend replacing Operate, Tasklist, and Admin. The app uses React 19, TypeScript, Vite, TanStack Router (file-based), TanStack Query, MobX (theme + session), Carbon Design System, and SCSS.
@carbon/react). Introducing alternative UI libraries fragments the design language and creates maintenance burden.#/ path aliases for all imports. Each pod has its own alias; shared infrastructure has one too:
#/operate/* → src/operate/ (Operate pod)#/tasklist/* → src/tasklist/ (Tasklist pod)#/admin/* → src/admin/ (Admin pod)#/shared/* → src/shared/ (cross-pod shared code)@camunda/camunda-api-zod-schemas to type API responses — trust the API contract. Use Zod schema validation only for user input (forms, URL search params, path params). For general validation needs beyond API contracts, use Zod directly.src/operate/, src/tasklist/, src/admin/) are autonomous — pods decide their own internal folder structure, naming conventions, and patterns. Do not prescribe internal layout for another pod's area.src/shared/ holds cross-cutting infrastructure (http, auth, config, errors, theme, i18n, tracking, feature flags). Changes here affect all pods; keep shared code focused and small.src/routes/_auth/{pod}/ and are thin wrappers: they wire the pod's page component into the router. No feature logic in route files.export {} block at the end of each file — no inline export on declarations. Only export symbols that are actually imported by other files. Don't export internal helpers, types used only within the same file, or constants that nothing else references. This keeps the public surface minimal and scannable.is (e.g., isLoading, isVisible).SCREAMING_SNAKE_CASE (e.g., MAX_RETRY_COUNT).PascalCase (e.g., DashboardHeader).PascalCase + Page suffix (e.g., DashboardPage); co-located styles and tests use the same name (DashboardPage.module.scss, DashboardPage.test.tsx)..map(), .filter(), transformations), always wrap in useMemo to avoid recomputing on every render.$spacing-05, var(--cds-spacing-05)). Never hardcode pixel or rem values for layout spacing.A feature lives in the pod's area and plugs into the shared router:
src/{operate,tasklist,admin}/) — build your page component and any supporting code here. Internal structure (folder names, conventions, depth) is the pod's decision. Reuse existing shared modules before creating new ones in the pod area.src/shared/ — for cross-cutting concerns used by more than one pod: http, auth, config, errors, theme, i18n, tracking, feature flags. Keep shared code focused; one module per concern.src/routes/_auth/{pod}/ — thin route file. File path = URL path. Auth-gated routes go under _auth/. The route owns the loader, pendingComponent, and errorComponent. It imports the page component from the pod area.Default to a new route for anything a user can navigate to. Skip a route only for transient overlays (toasts, hover cards), non-linkable modals (confirmations), or in-page tabs sharing the same data (encode as ?tab=... search param).
The URL holds the page's state. Components read from it, not from each other.
/_auth/processes/$processKey).Validate all URL inputs with Zod. Use validateSearch for search params and parseParams for path params. Reuse schemas from @camunda/camunda-api-zod-schemas when the URL slice maps to an API contract; otherwise co-locate the schema in the route file.
Uses TanStack Router loaders + TanStack Query. Three tiers in descending order of preference:
queryClient.ensureQueryData in the loader, useSuspenseQuery in the component. Same queryOptions constant for both.pendingComponent — same as above, but fire-and-forget the loader (don't await) and add a pendingComponent skeleton so the page doesn't freeze.await the fast query, fire-and-forget the slow one, wrap the slow slice in its own <Suspense>.queryOptions constants live in #/shared/http/queries.ts — the central query dictionary. API endpoint definitions (URL + method + types) live in #/shared/http/endpoints.ts. Do not co-locate queries or endpoints with individual pod areas; keep them in one place so the full set is visible and discoverable. Error handling defaults to errorComponent on the route. 401s are handled centrally by the request() wrapper (cache clear + login redirect).
Work through these Camunda-specific considerations. They shape the page architecture:
@camunda/camunda-api-zod-schemas. If not, add them as part of your work.useSuspenseInfiniteQuery. Trust hasMoreTotalItems, not totalItems. Prefer cursor-based pagination over offset for performance.x-eventually-consistent, poll with refetchInterval. Default to pessimistic UI — reach for optimistic updates only with an explicit reconciliation plan.batchOperationKey. Poll GET /v2/batch-operations/{key} for state. Show a toast confirming submission, poll in the background, surface the result when it lands. Never block the page on the poll.Decision rule: use plain HTML <form> for simple forms. Reach for react-final-form when the form needs schema-based validation or form/field meta state (dirty, touched, submission state, field arrays). Validate on submit (whole form) and on blur (single field) — never on every keystroke. Reuse Zod schemas from @camunda/camunda-api-zod-schemas where the form maps to an API contract.
When a feature is not ready for users but code needs to merge to main, gate it behind a flag. Export a boolean const from src/shared/feature-flags.ts, SCREAMING_SNAKE_CASE, default false. Gate at the highest possible level — route, page, or nav item — not deep inside a pod area. Remove flags in a dedicated cleanup PR once the feature ships.
Run these commands:
# From webapp/client/
npm run lint # ESLint + Prettier (workspace)
# From webapp/client/apps/orchestration-cluster-webapp/
npm run typecheck # TypeScript across all tsconfigs
npm run test:unit # Vitest browser mode (headless Chromium)docs/monorepo-docs/frontend/orchestration-cluster-webapp.md — tech stack, layout, scripts, testing overview.docs/monorepo-docs/frontend/data-loading.md — TanStack Router + Query patterns with full examples.docs/monorepo-docs/frontend/forms.md — form library guidance.docs/monorepo-docs/frontend/development-process/creating-a-new-page.md — step-by-step with checklist.docs/monorepo-docs/frontend/development-process/before-starting.md — pre-feature considerations.docs/monorepo-docs/frontend/development-process/extending-an-existing-page.md — incremental changes.docs/monorepo-docs/frontend/development-process/working-on-large-feature.md — PR splitting and feature flags.docs/monorepo-docs/frontend/code-style.md — naming, exports, comments.7fc9a66
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.