一键导入
agile-sync
Synchronize all agile development artifacts in one command. Updates CHANGELOG, README stats, progress tracking, and validates documentation completeness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Synchronize all agile development artifacts in one command. Updates CHANGELOG, README stats, progress tracking, and validates documentation completeness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Optimize context loading for efficient token usage. Use when working with large codebases, context limits, or when the user mentions "context", "token", "optimize", "summarize", or asks to reduce context size.
cc-initializer 자동 복구 및 문제 해결. Hook 실패, 문서 손상, 설정 오류를 진단하고 수정합니다.
Complete sprint lifecycle management. Start sprints, track velocity, generate burndown charts, and automate retrospectives.
Phase, Sprint, 문서 간 동기화 문제 해결. 불일치 감지 및 자동 수정.
cc-initializer 설정 및 구성 검증. settings.json, hooks, agents, skills, documents 무결성 확인.
BIM 데이터 조회 및 분석 쿼리 작성 스킬
| name | agile-sync |
| description | Synchronize all agile development artifacts in one command. Updates CHANGELOG, README stats, progress tracking, and validates documentation completeness. |
One-command synchronization of all agile development artifacts. Ensures documentation, progress tracking, and project state are always up-to-date.
/agile-sync [--full|--quick|--validate]
| Option | Description |
|---|---|
--full | Complete sync: changelog + readme + progress + validation |
--quick | Quick sync: readme stats + recent changes only |
--validate | Validate only: check for inconsistencies without changes |
| (default) | Standard sync: changelog + readme + progress |
# Get recent commits since last sync
git log --oneline -10
# Check for uncommitted changes
git status --porcelain
# Get current branch
git branch --show-current
# Analyze commits not yet in changelog
# Group by type: feat, fix, docs, refactor, test, chore
# Generate entries:
## [Unreleased]
### Added
- feat commits
### Fixed
- fix commits
### Changed
- refactor commits
### Documentation
- docs commits
# Count components
agents_count=$(find .claude/agents -name "*.md" | wc -l)
skills_count=$(find .claude/skills -name "SKILL.md" -o -name "*.md" | wc -l)
hooks_count=$(find .claude/hooks -name "*.sh" -o -name "*.md" | wc -l)
commands_count=$(find .claude/commands -name "*.md" | wc -l)
# Update README.md Stats section
| Category | Count |
|----------|-------|
| Agents | $agents_count |
| Skills | $skills_count |
| Hooks | $hooks_count |
| Commands | $commands_count |
# Read from Phase system (standardized location)
# Primary: docs/PROGRESS.md
# Source: docs/phases/phase-*/TASKS.md
# Scan all phase TASKS.md files
for phase_dir in docs/phases/phase-*/; do
tasks_file="$phase_dir/TASKS.md"
if [[ -f "$tasks_file" ]]; then
total=$(grep -c "^- \[" "$tasks_file" 2>/dev/null || echo 0)
done=$(grep -c "^- \[x\]\|^- \[X\]\|✅" "$tasks_file" 2>/dev/null || echo 0)
fi
done
# Calculate overall progress
# Update docs/PROGRESS.md with progress bar
# Progress format:
# [████████████░░░░░░░░] 60% (Phase 2 of 5)
Note: Uses Phase system. Legacy
docs/progress/status.mdis deprecated.
# Check for:
# - Missing CLAUDE.md
# - Outdated README sections
# - Broken internal links
# - Missing required files
# Output validation report
## 📊 Agile Sync Report
**Synced at**: YYYY-MM-DD HH:MM
**Branch**: main
### Changes Made
- ✅ CHANGELOG.md: Added 3 entries
- ✅ README.md: Updated stats (Agents: 15→16)
- ✅ Progress: Updated to 65%
- ⚠️ docs/api.md: Missing (suggested)
### Recommendations
- [ ] Create docs/api.md
- [ ] Update CLAUDE.md with new patterns
- [ ] Run /sprint status for sprint progress
📊 AGILE-SYNC: Starting synchronization...
[1/5] Analyzing git state...
Branch: feature/new-feature
Uncommitted: 2 files
Recent commits: 5
[2/5] Updating CHANGELOG.md...
✅ Added 3 new entries
- feat(auth): add OAuth support
- fix(api): resolve timeout issue
- docs: update README
[3/5] Syncing README stats...
✅ Updated component counts
- Agents: 15 → 16 (+1)
- Skills: 13 → 14 (+1)
[4/5] Updating progress tracking...
✅ Progress: 58% → 62%
- Completed: 12 → 14 tasks
[5/5] Validating documentation...
✅ All checks passed
📊 AGILE-SYNC: Complete!
Duration: 2.3s
Changes: 4 files updated
📊 AGILE-SYNC: Validation Report
✅ CHANGELOG.md: Up to date
✅ README.md: Stats accurate
⚠️ Progress: 3 tasks marked complete but no commit found
❌ docs/architecture.md: Referenced but missing
Issues found: 2
Recommendations: 2
# After implementing a feature
/agile-sync
# Before creating PR
/agile-sync --full
# Quick check before commit
/agile-sync --validate
# Sync includes sprint progress when active
/sprint status # Shows current sprint
/agile-sync # Includes sprint metrics in sync
# Auto-triggered after:
# - git commit (via auto-doc-sync hook)
# - File changes in .claude/
# Manual trigger for full sync
/agile-sync --full
{
"agile": {
"auto_changelog": true,
"auto_readme_sync": true,
"sprint_tracking": true,
"velocity_tracking": true,
"sync_on_commit": true
}
}
# .claude/agile-config.yml
sync:
changelog:
enabled: true
group_by_type: true
include_scope: true
readme:
update_stats: true
update_badges: false
sections:
- Stats
- Quick Start
progress:
source: docs/progress/status.md
auto_calculate: true
format: "progress_bar"
validation:
check_links: true
check_required_files: true
required_files:
- README.md
- CLAUDE.md
- CHANGELOG.md
/agile-sync before PR creation/agile-sync --validate before major releases# Create initial CHANGELOG
/agile-sync # Will create automatically
# Add Stats section to README.md:
## Stats
| Category | Count |
|----------|-------|
| Agents | 0 |
| Skills | 0 |
# Create progress file
mkdir -p docs/progress
touch docs/progress/status.md
/agile-sync
| Skill | Purpose |
|---|---|
/sprint | Sprint lifecycle management |
/readme-sync | Detailed README synchronization |
/changelog | Manual changelog management |
/doc-validate | Comprehensive doc validation |