Conversation
…docs Change name validation regex from [a-zA-Z0-9] to [a-z0-9] to match SKILL.md documentation requiring lowercase-only names. Also update error message to specify "lowercase" requirement. This makes validate-agent.sh consistent with create-agent-skeleton.sh which already uses lowercase-only validation. Fixes #33 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @sjnims's task —— View job PR Review: align validate-agent.sh name validation with docsSummary✅ Looks good - This is a clean, well-justified fix that aligns validation with both documentation and the related What's Good
Checklist Verification
Technical ReviewFile: Lines 68-69 (the change): - if ! [[ "$NAME" =~ ^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$ ]]; then
- echo "❌ name must start/end with alphanumeric and contain only letters, numbers, hyphens"
+ if ! [[ "$NAME" =~ ^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]]; then
+ echo "❌ name must start/end with lowercase alphanumeric and contain only lowercase letters, numbers, hyphens"This change:
Cross-reference verification:
This PR is ready to merge. The fix is correct, well-tested, and properly documented. |
Summary
Aligns
validate-agent.shname validation regex with documented requirements in SKILL.md, which specifies names should be "lowercase, numbers, hyphens only".Problem
Fixes #33
The validation regex allowed uppercase letters (
[a-zA-Z0-9]) but documentation requires lowercase only. This inconsistency could cause confusion where the validator accepts names likeCode-Reviewerthat don't follow documented conventions.Solution
Changed the name validation regex from
[a-zA-Z0-9]to[a-z0-9]and updated the error message to explicitly mention "lowercase" requirement.Alternatives Considered
create-agent-skeleton.shalready uses lowercase-only validation, so changing docs would create inconsistency with that script.Changes
plugins/plugin-dev/skills/agent-development/scripts/validate-agent.sh: Updated regex and error message on lines 68-69Testing
agent-creator.md)🤖 Generated with Claude Code