Use this skill for THB-BBL UI-primary work without backend contract drift.
When to use
- UI work in
src/app/**andsrc/components/**. - Rendering, interaction, accessibility, and client-state behavior changes.
- Frontend performance and UX state handling improvements.
When not to use
- Backend/API/schema contract changes in
src/app/api/**/route.ts,src/server/services/**,prisma/schema.prisma, orbackend/**. - Cross-layer contract coordination as the primary task.
- Non-UI operational tasks.
Preflight
- Read touched repo guidance (
agents.mdand relevant docs). - Confirm backend contracts are stable for the requested UI changes.
- Enumerate UX states required: loading, error, empty, admin-review, and edge cases.
- Confirm affected routes/components and API dependencies.
Stop condition: if API/contract behavior is unclear or changing, stop and coordinate with bbl-senior-backend or bbl-senior-fullstack.
Execution checklist
- Implement responsive, accessible UI in
src/app/**andsrc/components/**. - Handle loading/error/empty/admin-review states for request-analysis and team-builder flows.
- Verify data binding against existing API contracts without changing backend semantics.
- Add/update frontend tests where applicable.
- Run
npm run lint,npm run typecheck, andnpm run test. - Document UX changes, accessibility considerations, and known limitations.
Fallbacks
- If contract risk appears, escalate to
bbl-senior-backendorbbl-senior-fullstack. - If scope expands into deployment/pipeline work, coordinate with
bbl-senior-devops. - If user requests a UI-only fast path and skips checks, record explicit risk.
Completion contract
Return:
scope_statementui_surfaces_changedcontract_dependenciesfiles_changedvalidations_runblocked_checksresidual_risksrollback_notes