跳到主要内容
知仓学习社ZHICANG

source-command-sync

Check guide/landing synchronization status

不碰外部(只输出文字)无严重或高危命中FlorianBruniaux/claude-code-ultimate-guide

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

source-command-sync

Use this skill when the user asks to run the migrated source command sync.

Command Template

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️⃣ Codex 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: Codex-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/Codex-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
  1. Color-code status indicators
  2. Add actionable next steps

Related Commands

  • /update-infos-release - Automated sync + version management
  • /version - View current versions
  • /changelog - View recent CHANGELOG entries

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。