claude-skills/engineering-team/skills/senior-backend/scripts
Claude 472f0ace5c
fix(engineering): resolve 3 bugs in senior-backend + senior-frontend decision engines
Addresses claude[bot] code review findings on PR #718.

1. backend_decision_engine.py: scoped language-preference match
   Previous code serialized the entire profile dict to JSON and ran a
   substring search, so --language-preference=go false-matched against
   "django", "mongo", etc. New approach tokenizes profile_name +
   stack.language + stack.runtime on '-' and checks exact membership.

   Verified:
     - language=go    → matches go-or-rust-microservice only
     - language=python → matches django-monolith + fastapi-python only
     - language=typescript → matches node-express only

2. frontend_decision_engine.py: removed dead pass-block kill check
   `if team_size in 4..10 and read_write_ratio >= 50: pass` was a no-op
   with an unclear intent comment. Removed.

3. frontend_decision_engine.py: wired up unused inp_target_ms field
   The field was declared on Inputs, exposed via --inp-target-ms, and
   threaded through main() but never consulted by any kill criterion.
   Added a kill check that mirrors the existing LCP one:
     "mobile-4g primary with INP target Xms: tighten to < 200ms"
   (Web Vitals 'good' threshold for INP is 200ms; 'poor' is 500ms.)

Verification:
- backend_decision_engine.py --sample → exit 0
- frontend_decision_engine.py --sample → exit 0
- fullstack_decision_engine.py --sample → exit 0 (untouched)
2026-05-21 12:56:19 +00:00
..
api_load_tester.py fix(plugins): restructure 9 multi-skill domain plugins into ./skills/ layout 2026-05-02 22:51:20 +02:00
api_scaffolder.py fix(plugins): restructure 9 multi-skill domain plugins into ./skills/ layout 2026-05-02 22:51:20 +02:00
backend_decision_engine.py fix(engineering): resolve 3 bugs in senior-backend + senior-frontend decision engines 2026-05-21 12:56:19 +00:00
database_migration_tool.py fix(plugins): restructure 9 multi-skill domain plugins into ./skills/ layout 2026-05-02 22:51:20 +02:00