build-hook
**Interactive guide for creating custom hooks with Q&A workflow and automatic validation.**
**Check that your generated output is properly formatted and ready to use.**
How it fires
How this command gets triggered: by you, by Claude, or both.
/validate-outputContext preview
What this command does when you run it.
**Check that your generated output is properly formatted and ready to use.**
**Check that your generated output is properly formatted and ready to use.**
---
/validate-output skill [path] /validate-output prompt /validate-agent [path] /validate-output hook [path]
---
Validates generated output and creates distribution files:
---
/validate-output skill generated-skills/my-skill
**Checks**:
1. **YAML Frontmatter**:
--- name: skill-name-kebab-case ✅ Check format description: One-line description ✅ Check present ---
2. **Naming**:
3. **Required Files**:
4. **Quality**:
**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-output prompt
**Checks**:
1. **Format Structure**:
2. **Completeness**:
3. **Quality** (from prompt-factory's 7-point validation):
**Output**:
Validating generated prompt... ✅ Format: XML (properly structured) ✅ Completeness: No placeholders ✅ Examples: 3 examples found ✅ Token Count: ~5,200 tokens (Core mode, optimal) ✅ Quality: 7/7 gates passed 🎉 Prompt validation PASSED! Ready to use. How to use: 1. Copy the <mega_prompt> block 2. Paste into Claude/ChatGPT/Gemini 3. Start using your customized AI!
---
/validate-agent .claude/agents/my-agent
**Checks**:
1. **YAML Frontmatter**:
--- name: agent-name-kebab-case ✅ description: When to invoke... ✅ tools: Read, Write, Edit ✅ Comma-separated string model: sonnet ✅ Valid value color: green ✅ Valid color field: frontend ✅ Domain expertise: expert ✅ Level ---
2. **Naming**:
3. **Tools Format**:
4. **Description Quality**:
**Output**:
Validating: .claude/agents/my-agent.md ✅ YAML Frontmatter: Valid ✅ Agent Name: my-agent (kebab-case ✓) ✅ Tools: "Read, Write, Edit" (proper format ✓) ✅ Model: sonnet (valid ✓) ✅ Color: green (valid ✓) ✅ Description: Specific and clear ✓ 🎉 Agent validation PASSED! Ready to use. The agent will auto-invoke when: [Description from agent] Or invoke manually: "Use the my-agent agent to [task]"
---
/validate-output hook generated-hooks/my-hook
**Checks**:
1. **JSON Structure**:
{
"matcher": { ... }, ✅ Valid object
"hooks": [ ... ] ✅ Non-empty array
}2. **Safety Patterns**:
3. **Event Type Validation**:
4. **Hook Commands**:
**Output**:
Validating: generated-hooks/my-hook/hook.json ✅ JSON Structure: Valid - matcher object: ✓ - hooks array: 1 command ✓ ✅ Safety Patterns: All present - Tool detection: ✓ - Silent failure: ✓ - No destructive ops: ✓ - Path safety: ✓ ✅ Event Type: PostToolUse - Timeout: 60s (appropriate ✓) - Matcher: tool_names + paths ✓ ✅ Security: PASSED - No path traversal ✓ - Proper quoting ✓ - Error handling ✓ 🎉 Hook validation PASSED!
A comprehensive toolkit for generating production-ready Claude Skills and Claude Code Agents at scale.
Repo: alirezarezvani/claude-code-skill-factory
**Interactive guide for creating custom hooks with Q&A workflow and automatic validation.**
**Quick access to the factory-guide orchestrator for building custom Skills, Prompts, Agents, or Hooks.**
**Easy wrapper for running Codex CLI commands from Claude Code with proper syntax.**
**See what you've built, what's validated, what's installed, and what's next.**