Skip to content

fix(skills): allow dots in skill names for cross-platform compatibility#868

Open
abhay-codes07 wants to merge 1 commit into
mistralai:mainfrom
abhay-codes07:fix/skill-name-dots
Open

fix(skills): allow dots in skill names for cross-platform compatibility#868
abhay-codes07 wants to merge 1 commit into
mistralai:mainfrom
abhay-codes07:fix/skill-name-dots

Conversation

@abhay-codes07

Copy link
Copy Markdown

Fixes #867

Skill directories that use dot namespacing (like ama.accounting.mailbox.vendor-receipts) work in other agent CLIs but fail Vibe's skill name validation, which only allowed lowercase alphanumerics separated by hyphens. Anyone sharing skills across tools has to rename their directories just for Vibe.

This relaxes the SkillMetadata.name pattern to also accept dots as separators: ^[a-z0-9]+([-.][a-z0-9]+)*$. Leading, trailing and consecutive separators are still rejected, and everything that was valid before stays valid. The registry name sanitizer already produces names that satisfy the old pattern, so nothing else needed to change.

Testing:

  • New model tests for dotted names (valid, consecutive dots, leading/trailing dots)
  • New manager test loading a skill from a dotted directory end to end
  • Full tests/skills suite passes (114 tests), ruff and pyright clean

@elGrogz would appreciate a look when you get a chance, this one keeps coming up for people moving skills between tools.

Skill directories named with dot namespacing (for example
ama.accounting.mailbox.vendor-receipts) load fine in other agent CLIs
but fail Vibe's name validation, which only allowed lowercase
alphanumerics and hyphens. Relax the pattern to accept dots as an
additional separator while still rejecting leading, trailing, and
consecutive separators.

Fixes mistralai#867
@abhay-codes07
abhay-codes07 requested a review from a team as a code owner July 2, 2026 19:33
Copilot AI review requested due to automatic review settings July 2, 2026 19:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Support Dots in Skill Directory Names for Cross-Platform Compatibility

2 participants