claude-code-ultimate-guide/.claude/commands/sync.md
Florian BRUNIAUX 16d484a50f feat: add maintenance slash commands for release management
Commands added:
- /update-infos-release [bump-type]: Automate CC releases tracking + version bump
- /version: Display guide & CC versions with content stats
- /changelog [count]: View recent CHANGELOG entries
- /sync: Check guide/landing synchronization status

Workflow automation:
- Claude Code releases tracking (YAML + MD + Landing badge)
- Guide version management (VERSION + sync all docs)
- CHANGELOG updates
- Landing site sync verification
- Git commit/push to both repositories

Files:
- .claude/commands/update-infos-release.md: Full release workflow
- .claude/commands/version.md: Version info display
- .claude/commands/changelog.md: CHANGELOG viewer
- .claude/commands/sync.md: Sync check with actionable fixes
- .gitignore: Allow .claude/commands/ while ignoring other .claude/ config
- CLAUDE.md: Document new maintenance commands

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-21 11:41:24 +01:00

3.1 KiB
Raw Blame History

name description
sync Check guide/landing synchronization status

Synchronization Check

Run comprehensive sync verification between guide repository and landing site.

What to Check

Execute ./scripts/check-landing-sync.sh and display results with enhanced formatting.

Output Format

🔄 Guide ↔ Landing Synchronization Check

═══════════════════════════════════════════════════════════

1⃣ Guide Version
   Guide:   3.9.11
   Landing: 3.9.11
   Status:  ✅ Synchronized

2⃣ Templates Count
   Guide Files:      65
   Landing (index):  65
   Landing (examples): 65
   Status:  ✅ Synchronized

3⃣ Quiz Questions
   Source (JSON):     227
   Landing (index):   227
   Landing (quiz):    227
   Status:  ✅ Synchronized

4⃣ Guide Lines
   Actual Count:      11,560
   Landing Display:   11,000+ (approximate)
   Status:  ✅ Within Tolerance

5⃣ Claude Code Version
   Releases YAML:     v2.1.14
   Landing Badge:     v2.1.14
   Status:  ✅ Synchronized

═══════════════════════════════════════════════════════════

✅ All Components Synchronized

No action required. Guide and landing site are in sync.

If Mismatches Detected

🔄 Guide ↔ Landing Synchronization Check

═══════════════════════════════════════════════════════════

1⃣ Guide Version
   [... as above ...]

2⃣ Templates Count
   Guide Files:      65
   Landing (index):  63
   Landing (examples): 65
   Status:  ⚠️ MISMATCH

3⃣ Quiz Questions
   [... etc ...]

═══════════════════════════════════════════════════════════

❌ Synchronization Issues Detected (1 issue)

Issues to Fix:

1. Templates Count Mismatch
   Location: claude-code-ultimate-guide-landing/index.html
   Current:  63
   Expected: 65
   Action:   Update badge and meta tags with correct count

Quick Fixes:
   # Update landing templates count
   cd /Users/florianbruniaux/Sites/perso/claude-code-ultimate-guide-landing
   # Edit index.html lines: 6, 9, 188, 204, 455
   # Change "63 templates" → "65 templates"
   git add index.html
   git commit -m "fix: sync templates count (63 → 65)"
   git push

Recommended:
   Run /update-infos-release to automate synchronization

Implementation

  1. Execute sync check script
  2. Capture output and parse status codes
  3. Format results with clear visual hierarchy
  4. If issues detected:
    • List each mismatch
    • Provide file locations
    • Suggest exact fixes
    • Recommend automation commands
  5. Color-code status indicators
  6. Add actionable next steps
  • /update-infos-release - Automated sync + version management
  • /version - View current versions
  • /changelog - View recent CHANGELOG entries