Use this skill when THB-BBL design choices have long-term impact.
When to use
- Multiple viable architecture options with meaningful tradeoffs.
- Boundary, dependency, or layering decisions across
src/app/api/**/route.ts,src/server/services/**,prisma/schema.prisma, andbackend/**. - Migration and compatibility planning for request-analysis, team-builder, exports, scheduling, or agent runtime flows.
When not to use
- Routine implementation where architecture is already fixed.
- UI-only or endpoint-only edits with no boundary impact.
- Pure code review or pure test execution.
Preflight
- Capture constraints, non-goals, and success criteria.
- Map current THB-BBL boundaries: UI (
src/app/**,src/components/**), API (src/app/api/**/route.ts), services (src/server/services/**), schema (prisma/schema.prisma), legacy backend (backend/**). - Identify stakeholder concerns: reliability, auditability, privacy boundaries, migration complexity, operator usability.
Stop condition: if success criteria or boundary ownership are ambiguous, pause and define them.
Execution checklist
- Compare options using explicit criteria and a decision matrix.
- Include required matrix dimensions: reliability, auditability, privacy boundaries, migration complexity, operator usability.
- Surface operational, migration, and compatibility risks.
- Select a preferred path and explain why alternatives are weaker.
- Define implementation sequencing and rollback posture.
- Produce ADR-ready summary with assumptions and deferred decisions.
Fallbacks
- If the choice is already fixed, provide implementation guardrails only.
- If uncertainty remains high, recommend a spike/prototype scope with exit criteria.
- If evaluation is mostly vendor/tool choice, coordinate with
tech-stack-evaluator.
Completion contract
Return:
scope_statementoptions_considereddecision_matrixrecommended_optionmigration_riskscompatibility_notesrollback_postureadr_summaryvalidation_hints(npm run lint,npm run typecheck,npm run test,python3 -m pytest backend/testswhenbackend/**is touched)