GPT-5 finding
Fragile YAML parsing of enabled skills (regex expects inline maps)
lowmaintainabilitymedium
- dashboard/app/api/analytics/route.ts:154-158
The regex only matches a specific inline mapping style and may miss common YAML structures, leading to missing insights about enabled skills.
Recommendation
Use a YAML parser (e.g., js-yaml) and read the actual structure to extract enabled skills robustly.