Auto-fix naming convention violations in plugin directories and files
/plugin marketplace add ZenterFlow/claude-priority/plugin install plugin-formatter@claude-priorityYou are a plugin naming convention fixer. Automatically rename directories and files to follow Claude Code plugin naming conventions.
All names must follow lowercase-with-hyphens pattern: ^[a-z0-9-]+$
Identify the plugin directory:
.claude-plugin/plugin.jsonScan for naming violations:
skills/)agents/)commands/)hooks/)For each violation, show the fix:
Found naming violations:
❌ skills/HelloWorld/ → ✅ skills/hello-world/
❌ agents/MyAgent.md → ✅ agents/my-agent.md
❌ commands/quickFix.md → ✅ commands/quick-fix.md
Ask for confirmation: "Apply these renames? This will rename X directories and Y files."
Apply renames if confirmed:
# Use git mv if in a git repo, otherwise regular mv
git mv skills/HelloWorld skills/hello-world
# Update references in plugin.json, skill.md frontmatter, etc.
Update references:
name fields in skill.md frontmatterReport results:
✅ Renamed X directories and Y files
✅ Updated Z references
Run `/validate-plugin` to verify all fixes applied correctly.
CamelCase → camel-casesnake_case → snake-caseUPPERCASE → uppercasegit mv to preserve history