Activate when a local development server or database fails to start due to port collision errors (EADDRINUSE, address already in use, port already allocated) — trigger phrasings include "port 3000 is already in use", "kill process on port 5173", "why is port 6379 occupied", "EADDRINUSE 8080", "inspect my network…
Activate when structuring state management in React 18/19 and Next.js applications, selecting between Zustand, TanStack Query, and React Server Components, eliminating prop drilling, and handling cache invalidation — trigger phrasings include "how should I manage state in this React app", "setup Zustand store"…
Activate when a developer encounters a broken repository state, failed startup commands, missing runtime dependencies, unconfigured virtual environments, or mysterious build crashes — trigger phrasings include "why won't my project start", "run a health check on this repo", "diagnose my codebase", "npm run dev is…
Activate before git commits, Pull Requests, or production releases to scan the repository for hardcoded secrets, private keys, API tokens, and JWT credentials — trigger phrasings include "scan my repo for leaked secrets", "did I commit any API keys", "audit security before PR", "check for hardcoded passwords"…
Activate when creating, generating, or debugging Playwright end-to-end (E2E) browser automation tests for web applications — trigger phrasings include "write a Playwright test for this user flow", "create an E2E login test", "debug failed Playwright test", "setup automated browser testing", "test form submission with…
Activate when writing, generating, or refactoring unit test suites in TypeScript, JavaScript, or Python using Vitest, Jest, or Pytest — trigger phrasings include "write unit tests for this function", "create a Vitest test suite", "test edge cases for this utility", "mock this API in Jest", "increase test coverage to…