Copilot Skill Naming: Preserve Namespace
Change the Copilot converter to preserve command namespaces when converting commands to skills. Currently `workflows:plan` flattens to `plan`, which is too generic and clashes with Copilot's own features in the chat suggestion UI.
Overview
Copilot Skill Naming: Preserve Namespace
What We're Building
Change the Copilot converter to preserve command namespaces when converting commands to skills. Currently workflows:plan flattens to plan, which is too generic and clashes with Copilot's own features in the chat suggestion UI.
Why This Approach
The flattenCommandName function strips everything before the last colon, producing names like plan, review, work that are too generic for Copilot's skill discovery UI. Replacing colons with hyphens (workflows:plan -> workflows-plan) preserves context while staying within valid filename characters.
Key Decisions
- Replace colons with hyphens instead of stripping the prefix:
workflows:plan->workflows-plan - Copilot only — other converters (Cursor, Droid, etc.) keep their current flattening behavior
- Content transformation too — slash command references in body text also use hyphens:
/workflows:plan->/workflows-plan
Changes Required
src/converters/claude-to-copilot.ts— changeflattenCommandNameto replace colons with hyphenssrc/converters/claude-to-copilot.ts— updatetransformContentForCopilotslash command rewritingtests/copilot-converter.test.ts— update affected tests
Next Steps
-> Implement directly (small, well-scoped change)