/validate-output - Validate Generated Skills, Prompts, Agents, or Hooks banner
alirezarezvani alirezarezvani

/validate-output - Validate Generated Skills, Prompts, Agents, or Hooks

Development community intermediate

Description

**Check that your generated output is properly formatted and ready to use.** ---

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for alirezarezvani/claude-code-skill-factory, shared by 13 entries in this directory. It describes the repository, not this entry specifically.

/validate-output - Validate Generated Skills, Prompts, Agents, or Hooks

**Check that your generated output is properly formatted and ready to use.**


Usage

/validate-output skill [path]
/validate-output prompt
/validate-agent [path]
/validate-output hook [path]

What This Command Does

Validates generated output and creates distribution files:

  • ✅ YAML frontmatter is correct
  • ✅ Naming conventions followed (kebab-case)
  • ✅ Required files present
  • ✅ Format is proper
  • ✅ Quality standards met
  • Creates ZIP file (if validation passes for skills)

Validate a Skill

/validate-output skill generated-skills/my-skill

**Checks**:

  1. YAML Frontmatter:
---
name: skill-name-kebab-case  ✅ Check format
description: One-line description  ✅ Check present
---
  1. Naming:
  • ✅ Skill name is kebab-case (not Title Case, snake_case, camelCase)
  • ✅ Folder name matches skill name
  • ✅ Python files are snake_case (if present)
  1. Required Files:
  • ✅ SKILL.md exists
  • ✅ HOW_TO_USE.md exists (or usage instructions in SKILL.md)
  • ✅ Python files (if skill needs code)
  • ✅ sample_input.json and expected_output.json (if applicable)
  1. Quality:
  • ✅ SKILL.md has clear capabilities section
  • ✅ Input/output formats documented
  • ✅ Examples provided
  • ✅ No placeholder text

**Output**:

Validating: generated-skills/my-skill/

✅ YAML Frontmatter: Valid
✅ Skill Name: my-skill (kebab-case ✓)
✅ Required Files: All present
   - SKILL.md ✓
   - HOW_TO_USE.md ✓
   - calculator.py ✓
   - sample_input.json ✓
✅ Quality: Documentation complete

🎉 Skill validation PASSED!

Creating ZIP file for Claude Desktop...

cd generated-skills && zip -r my-skill.zip my-skill/ -x "*.pyc" "*__pycache__*" "*.DS_Store"

✅ ZIP created: generated-skills/my-skill.zip (35KB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 Ready to use!

**For Claude Desktop** (Easiest):
Drag and drop: generated-skills/my-skill.zip

**For Claude Code**:
/install-skill generated-skills/my-skill

Next steps:
1. Import ZIP to Claude Desktop OR install to Claude Code
2. /test-factory my-skill

**If Issues Found**:

Validating: generated-skills/bad-skill/

❌ YAML Frontmatter: Invalid
   Issue: Name is "Bad Skill" (Title Case)
   Fix: Change to "bad-skill" (kebab-case)

❌ Required Files: Missing
   Issue: HOW_TO_USE.md not found
   Fix: Add usage documentation

⚠️ Quality: Incomplete
   Issue: No examples in SKILL.md
   Recommendation: Add 2-3 usage examples

Validation FAILED. Fix issues and run /validate-output again.

Validate a Prompt

/validate-output prompt

**Checks**:

  1. Format Structure:
  • ✅ XML: Has tags, properly nested
  • ✅ Claude: Has clear sections (Role, Mission, Workflow, etc.)
  • ✅ ChatGPT: Has both required sections
  • ✅ Gemini: Has role configuration
  1. Completeness:
  • ✅ No placeholder text ([TODO], [FILL IN], etc.)
  • ✅ All sections have content
  • ✅ Examples included (at least 2)