Commit Graph

1 Commits

Author SHA1 Message Date
ZvoneO c035b2f247 fix(path-utils): deduplicate subdirectory agent names (#1422)
Fixes redundant skill names for agents in subdirectories where the
folder name matches the filename (e.g., tech-writer/tech-writer.md).

Changes:
- Deduplicate when last two path segments are identical
- Handle .yaml extension in addition to .md
- Add comprehensive test suite (40 tests)

Before: bmad-bmm-tech-writer-tech-writer.agent
After:  bmad-bmm-tech-writer.agent

Closes #1422

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 14:54:09 +01:00