Agent skill
bbl-senior-backend
Use for THB-BBL backend/API/schema/security changes across Next.js route handlers, TypeScript services, Prisma schema, and legacy Python backend modules when downstream compatibility must be controlled. Do not use for UI-only work.
Install this agent skill to your Project
npx add-skill https://github.com/therealityreport/THB-BBL/tree/main/skills/bbl-senior-backend
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
bbl-senior-architect
Use for THB-BBL architecture decisions, ADR-ready tradeoff analysis, dependency boundaries, and long-term system impact across request parsing, team building, exports, scheduler, and agent tool boundaries. Do not use for routine implementation where design is already fixed.
bbl-senior-qa
Use for THB-BBL risk-tiered validation planning, regression prevention, and release verification for changed behavior across request analysis, team assignment, exports, and scheduler flows. Do not use for implementation-only tasks.
bbl-senior-devops
Use for THB-BBL CI/CD reliability, deployment hardening, rollback-readiness, environment safety, and operational gates. Do not use for feature-only coding without operational impact.
bbl-senior-frontend
Use for THB-BBL UI-first Next.js App Router implementation, accessibility, rendering/state behavior, and frontend performance when backend contracts are stable. Do not use when backend/API/schema contracts need to move.
repo-structure-reviewer
Audit a repository's structure and propose a safe, approval-gated reorganization plan. Use when asked to review repo anatomy, propose folder changes, or apply an approved reorg with rollback.
bbl-senior-fullstack
Use for coordinated THB-BBL cross-layer work spanning UI, API routes, services/data, and optional legacy Python parity when shared contracts or data flow can drift. Do not use for docs-only work, pure UI polish, or low-risk isolated fixes.
Didn't find tool you were looking for?