--- id: TASK-37 title: Prioritize v3 local audit skills status: In Progress assignee: [] created_date: '2026-06-06 21:30' updated_date: '2026-06-06 21:38' labels: [] dependencies: [] priority: high ordinal: 39000 --- ## Description Add a deterministic local-audit relevance rule before the v3 skill selection cap so core applicable skills are not displaced by registry order. ## Acceptance Criteria - [x] #1 Full-evidence v3 selection includes local-seo-basics and performance-experience within the cap - [x] #2 v3 input/applicability gating remains enforced - [x] #3 Legacy category-based skill selection remains supported ## Implementation Plan 1. Inspect current v3 selection and existing audit-evidence tests 2. Add RED tests against real v2_elemente/skills.md for full-evidence core skill inclusion and missing-input gating 3. Run focused test and record RED 4. Implement minimal deterministic local-audit relevance sort before cap 5. Run focused tests green and full pnpm test if fast 6. Self-review scope and leave task In Progress ## Implementation Notes RED: pnpm exec tsc -p tsconfig.test.json passed. Focused node --test .test-output/tests/audit-evidence.test.js failed as expected: full-evidence v3 selection returned registry-order ids visual-design, first-impression-clarity, contact-conversion, mobile-usability, trust-signals, conversion-copy instead of including local-seo-basics and performance-experience before the cap. GREEN: pnpm exec tsc -p tsconfig.test.json passed. Focused node --test .test-output/tests/audit-evidence.test.js passed 8/8. Full pnpm test passed 356/356. Added deterministic v3 local-audit priority before cap while preserving applicability/input gating and legacy category selection.