Conversation
…lities Add two validation scripts to command-development skill, matching the pattern established by hook-development: - validate-command.sh: Validates command file structure including existence, .md extension, YAML frontmatter syntax, and filename conventions. Supports multiple files and provides colored output with error/warning counts. - check-frontmatter.sh: Validates YAML frontmatter fields including model (shorthand or full ID), description length, allowed-tools format, argument-hint convention, and disable-model-invocation boolean. Warns about unknown fields. Both scripts follow established patterns: - set -euo pipefail for safety - Colored output with ✅/❌/⚠️ indicators - Error and warning counting - Multi-file support - Clear, actionable messages Also updates SKILL.md to document the new scripts in the "Validation Scripts" section. Fixes #59 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @sjnims's task —— View job PR Review: Command Development ScriptsSummary✅ Looks excellent - This PR adds high-quality validation scripts following established patterns. The implementation is clean, well-tested, and properly documented. What's GoodScript Quality
Code Patterns
Documentation
Testing Claims Verified
SuggestionsMinor Enhancement Opportunities
Checklist Verification✅ Scripts follow established patterns (matches hook-development structure) Final VerdictThis PR is ready to merge. The scripts are well-crafted, thoroughly tested, and properly integrated into the skill documentation. The suggestions above are minor enhancements, not blockers. Great work following the established patterns from hook-development and adding comprehensive validation for command files! 🎯 |
Summary
scripts/directory to command-development skill with two validation utilitiesvalidate-command.shvalidates command file structure (existence, extension, frontmatter syntax)check-frontmatter.shvalidates YAML frontmatter fields (model, description, allowed-tools, etc.)Problem
Fixes #59
The command-development skill lacked a
scripts/directory with utility scripts, unlike the hook-development skill which provides helpful validation tools.Solution
Added two scripts following the established hook-development pattern:
validate-command.sh
---markers)check-frontmatter.sh
modelfield (sonnet, opus, haiku, or full model ID)descriptionlength (warns if > 60 chars)allowed-toolsformat (warns about overly permissive patterns)argument-hintbracket conventiondisable-model-invocationbooleanBoth scripts feature:
set -euo pipefailfor safetyAlternatives Considered
Considered adding a third script (
command-linter.sh) for best practices, but decided to stick with the two scripts specified in the issue to avoid scope creep.Changes
plugins/plugin-dev/skills/command-development/scripts/validate-command.sh: New fileplugins/plugin-dev/skills/command-development/scripts/check-frontmatter.sh: New fileplugins/plugin-dev/skills/command-development/SKILL.md: Added "Validation Scripts" sectionTesting
shellcheckpasses on both scriptsmarkdownlintpasses on SKILL.mdcommands/create-plugin.md)---markers (markdown horizontal rules)🤖 Generated with Claude Code