What problem does it solve?
Legacy specification files named with SPEC-* or SPEC-ENT-* prefixes break the date+slug naming convention, cause filename collisions when numeric prefixes are dropped, and leave stale links scattered across the repository after renames.
Core Features & Use Cases
- Filename Normalization: Converts legacy
SPEC-* and SPEC-ENT-* filenames into the canonical {YYYY-MM-DD}-{slug}.md format across .ai/specs and ai/specs roots.
- Collision Resolution: Detects when two files would normalize to the same target and appends a numeric suffix to keep both files.
- Reference Updating: Rewrites filename references in all Markdown, MDX, and text files throughout the repository so links stay valid after renames.
- Use Case: After migrating a project to the date+slug spec convention, run the script in dry-run mode to preview planned renames, then apply them and verify no conflicts remain.
Quick Start
Ask the assistant to normalize the legacy spec filenames in the specs directories, starting with a dry run to review the planned renames before applying them.