Why this matters
Prevents new tech debt and accelerates standardization across the codebase.
If the PR introduces or expands usage of deprecated libraries/patterns the team is migrating away from (e.g., Moment.js, React Class Components), block and suggest the modern replacement. If the repo includes a migration guide (e.g., `docs/migration.md`, `CONTRIBUTING.md`, `docs/adr/*`), follow it and propose the equivalent snippet. If no guide exists, use an available web/search MCP to propose a safe, modern alternative and ask for confirmation of project standards.
Prevents new tech debt and accelerates standardization across the codebase.
Side-by-side examples engineers can pattern-match during review.
Adds new Moment.js usage in a new feature.Uses date-fns/Luxon or native Intl APIs per migration guide; avoids new class components.import moment from 'moment'Use approved date library + follow migration guideFrom the same buckets as this rule.