build-hook
**Interactive guide for creating custom hooks with Q&A workflow and automatic validation.**
**Synchronize AGENTS.md with current CLAUDE.md using the codex-cli-bridge skill.**
How it fires
How this command gets triggered: by you, by Claude, or both.
/sync-agents-mdContext preview
What this command does when you run it.
**Synchronize AGENTS.md with current CLAUDE.md using the codex-cli-bridge skill.**
**Synchronize AGENTS.md with current CLAUDE.md using the codex-cli-bridge skill.**
---
/sync-agents-md /sync-agents-md --validate /sync-agents-md --status
---
**Default** (`/sync-agents-md`):
**With `--validate`**:
**With `--status`**:
---
**Run this command when**:
**Don't need to run when**:
---
🔍 Checking Codex CLI installation... ✅ Found: /path/to/codex Version: codex-cli 0.50.0 📄 Checking CLAUDE.md... ✅ Found: /project/CLAUDE.md ✅ All safety checks passed!
📖 Parsing Claude Code project... ✅ Found 13 skills ✅ Found 59 agents ✅ Found 58 CLAUDE.md sections 📊 Project: your-project 📁 Type: GREENFIELD_NEW
📝 Generating AGENTS.md... ✅ AGENTS.md generated successfully 📄 Output: /project/AGENTS.md 📊 Skills documented: 13 🤖 Agents documented: 59
---
**User**:
/sync-agents-md
**What happens**: 1. Validates Codex CLI installed 2. Checks CLAUDE.md exists 3. Parses project structure 4. Regenerates AGENTS.md 5. Success message with statistics
**Output**:
✅ SUCCESS - AGENTS.MD REGENERATED 📄 Output: AGENTS.md 📊 Skills documented: 13 🤖 Agents documented: 59 AGENTS.md is now in sync with CLAUDE.md
---
**User**:
/sync-agents-md --validate
**What happens**: 1. Checks Codex CLI installation 2. Checks CLAUDE.md exists 3. Shows status report 4. **Does NOT regenerate AGENTS.md**
**Output**:
✅ VALIDATION PASSED Environment is ready for AGENTS.md generation. Codex CLI: v0.50.0 ✅ CLAUDE.md: Found ✅ AGENTS.md: Exists (last updated: 2025-10-30) To regenerate: /sync-agents-md
---
**User**:
/sync-agents-md --status
**What happens**: Shows current project status
**Output**:
📊 SYNC STATUS Project: claude-code-skills-factory CLAUDE.md: ✅ Exists AGENTS.md: ✅ Exists (in sync) Last updated: 2025-10-30 15:52 Skills: 13 (8 functional, 5 prompt-based) Agents: 59 Codex CLI: v0.50.0 installed
---
When you run `/sync-agents-md`, the following sections in AGENTS.md are regenerated:
1. **Project Overview**
2. **Available Skills**
3. **Project Structure**
4. **Workflow Patterns**
5. **Command Reference**
---
# 1. Edit CLAUDE.md vim CLAUDE.md # 2. Sync AGENTS.md /sync-agents-md # 3. Commit both files git add CLAUDE.md AGENTS.md git commit -m "docs: Update project configuration"
---
# 1. Create skill /build skill [Generated: .claude/skills/my-new-skill] # 2. Sync AGENTS.md (documents new skill) /sync-agents-md # 3. Verify cat AGENTS.md | grep "my-new-skill"
---
# In CI/CD pipeline # 1. Validate environment /sync-agents-md --validate # 2. If valid, proceed with build # 3. If invalid, fail pipeline
---
This command works seamlessly with:
/init → Creates CLAUDE.md → Auto-runs /sync-agents-md → Both files ready
/update-claude → Updates CLAUDE.md → Auto-runs /sync-agents-md → AGENTS.md stays in sync
/check-docs → Checks CLAUDE.md current → Checks AGENTS.md in sync → Suggests /sync-agents-md if needed
---
**Symptom**:
❌ Codex CLI not found!
**Solution**:
# Install Codex CLI # Visit: https://github.com/openai/codex # Verify codex --version
---
**Symptom**:
⚠️ CLAUDE.md not found
**Solution**:
# Option 1: Run /init to create CLAUDE.md /init # Option 2: Create manually # Then run /sync-agents-md
---
**Symptom**: Changes to CLAUDE.md not reflected in AGENTS.md
**Solution**:
# Simply regenerate /sync-agents-md # AGENTS.md now updated with latest changes
---
**Symptom**:
❌ Failed to write AGENTS.md: Permission denied
**Solution**:
# Check permissions ls -l AGENTS.md # Fix if needed chmod 644 AGENTS.md # Try again /sync-agents-md
---
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.**