PRD: File Naming Convention Change
Project: ai-plans Date: 2026-02-08 Status: draft
Context
Current file structure uses uppercase filenames: project/task/PRD.md, project/task/TASKS.md, project/task/NOTES.md. We want to change to lowercase with prefixes: project/task/prd-task.md, project/task/tasks-task.md, project/task/notes-task.md.
Goals
- Use consistent lowercase naming with prefixes
- Make filenames more descriptive (include task name)
- Maintain nested folder structure
- Improve file organization and clarity
Requirements
Functional
- Update
publish_prdto createproject/task/prd-task.mdinstead ofproject/task/PRD.md - Update
publish_tasksto createproject/task/tasks-task.mdinstead ofproject/task/TASKS.md - Update
publish_notesto createproject/task/notes-task.mdinstead ofproject/task/NOTES.md - Update
update_task_statusto work with new file paths - Update
list_plansto detect new filenames - Update
update-index.tsto generate correct links - Migrate existing demo plans to new structure
Non-functional
- Maintain backward compatibility during migration
- Update all tests to use new structure
- Update documentation and examples
Technical Approach
- File Path Changes:
- Old:
docs/project/task/PRD.md -
New:
docs/project/task/prd-task.md -
URL Changes:
- Old:
http://localhost:8100/project/task/PRD/ -
New:
http://localhost:8100/project/task/prd-task/ -
Implementation Steps:
- Update filename generation in all tool files
- Keep folder structure unchanged (
project/task/) - Update
list_plansto detect new filenames (check forprd-*.mdpattern) - Update
update-index.tslink generation - Test with new plan creation
-
Migrate existing plans
-
MkDocs Considerations:
- MkDocs will automatically handle new filenames
- Folder structure remains the same
- No changes needed to
mkdocs.yml
Constraints and Risks
- Breaking change for existing plans
- Need to migrate or recreate existing demo plan
- URLs will change (but we're still in development)
- Tests need to be updated
Open Questions
- Should we add migration script or just recreate existing plans?
- Any edge cases with special characters in task names?