What problem does it solve?
Maintaining consistent test ID prefixes across dozens of rule spec files in the markuplint repository is error-prone. This Skill scans all rule test files to list existing IDs, detect tests missing the mandatory [rule-name-category-NNN] prefix, and help pick the next available ID number.
Core Features & Use Cases
- Test ID Listing: Enumerates every test ID from
packages/@markuplint/rules/src*.spec.ts with file and line references.
- Filtering and Stats: Filter by rule name or category, show summary statistics by rule and category, or output results as JSON.
- Missing ID Detection: The
--no-id flag surfaces tests lacking the mandatory ID prefix, distinguishing exempt repo-wide meta specs from violations inside rule directories.
- Use Case: Before adding a new test to the
wai-aria rule, run the script with --rule wai-aria to see existing IDs and choose the next available number.
Quick Start
Ask the AI to list all test IDs for a specific rule or to find tests missing their ID prefix in the markuplint rules package.