Use this skill when THB-BBL backend behavior, schema, contracts, or persistence semantics may change.
When to use
- Route, payload, auth, schema, migration, or backend business-rule changes in
src/app/api/**/route.ts,src/server/services/**,prisma/schema.prisma, orbackend/**. - Compatibility risk for downstream consumers inside this app (UI screens, exports, and reporting routes).
- Backend performance, data integrity, privacy, or security-sensitive behavior changes.
When not to use
- UI-only changes in
src/app/**orsrc/components/**with no backend contract impact. - Typo-only edits with no runtime effect.
- Process-only requests without backend behavior changes.
Preflight
- Read touched repo guidance (
agents.mdand relevant docs). - Identify affected endpoints, service modules, schema objects, and any mirrored logic in
backend/**. - Enumerate downstream consumers in this repo that rely on changed payloads/semantics.
Stop condition: if compatibility impact cannot be determined, stop before implementation.
Execution checklist
- Identify affected API surfaces (
src/app/api/**/route.ts) and service/data layers (src/server/services/**,prisma/schema.prisma,backend/**). - Classify compatibility as backward-compatible or breaking.
- Confirm migration approach before schema changes.
- Add/update route-level tests where present (
route.test.ts) and service tests. - Run Prisma migration impact analysis when schema changes.
- Run parity checks when behavior exists in both TypeScript and Python paths.
- Validate with
npm run lint,npm run typecheck,npm run test, andpython3 -m pytest backend/testswhen Python backend changes. - Document rollout and rollback strategy.
Fallbacks
- If scope becomes cross-layer coordination-heavy, route primary coordination to
bbl-senior-fullstack. - If scope becomes UI-primary, route to
bbl-senior-frontendand keep backend as secondary. - If downstream updates are deferred, record explicit compatibility risk and follow-up dependency.
Completion contract
Return:
scope_statementaffected_endpointsaffected_servicesaffected_schema_objectscompatibility_statusparity_impact(TS vs Python where applicable)files_changedvalidations_runblocked_checksresidual_risksrollback_notes