AgentSkillsCN

agile-sync

只需一条命令,即可同步所有敏捷开发工件。更新 CHANGELOG、README 统计信息、进度跟踪,并全面验证文档的完整性。

SKILL.md
--- frontmatter
name: agile-sync
description: Synchronize all agile development artifacts in one command. Updates CHANGELOG, README stats, progress tracking, and validates documentation completeness.

Agile Sync Skill

One-command synchronization of all agile development artifacts.

Usage

bash
/agile-sync [--full|--quick|--validate]
OptionDescription
--fullComplete sync: changelog + readme + progress + validation
--quickQuick sync: readme stats + recent changes only
--validateValidate only: check for inconsistencies without changes
(default)Standard sync: changelog + readme + progress

Workflow Steps

StepActionInputOutput
1Analyze Git Stategit log, git statusBranch, commits, uncommitted files
2Update CHANGELOG.mdCommits grouped by typefeat/fix/refactor/docs entries
3Sync README StatsComponent counts via findUpdated Stats table
4Update ProgressPhase TASKS.md scanPROGRESS.md with progress bar
5Validate DocsLink/file checksValidation report
6Generate ReportAll aboveSync summary with recommendations

Step 2: CHANGELOG Groups

Commit TypeCHANGELOG Section
featAdded
fixFixed
refactorChanged
docsDocumentation

Step 3: README Stats

bash
agents_count=$(find .codex/agents -name "*.md" | wc -l)
skills_count=$(find .codex/skills -name "SKILL.md" -o -name "*.md" | wc -l)

Step 4: Progress (Phase-Integrated)

Source: docs/phases/phase-*/TASKS.md Target: docs/PROGRESS.md Format: [████████████░░░░░░░░] 60% (Phase 2 of 5)

Uses Phase system. Legacy docs/progress/status.md is deprecated.

Integration

ContextCommand
After feature implementation/agile-sync
Before creating PR/agile-sync --full
Quick check before commit/agile-sync --validate
With active sprintAuto-includes sprint metrics
Auto-triggered byauto-doc-sync hook, .codex/ changes

Configuration

json
{
  "agile": {
    "auto_changelog": true,
    "auto_readme_sync": true,
    "sprint_tracking": true,
    "velocity_tracking": true,
    "sync_on_commit": true
  }
}

Best Practices

DODON'T
Run before PR creationSkip validation before releases
Run --validate before releasesManually edit generated sections
Keep CHANGELOG under version controlIgnore sync warnings
Use conventional commits-

Troubleshooting

ErrorFix
CHANGELOG.md not found/agile-sync creates automatically
README stats section missingAdd ## Stats table to README.md
Progress tracking failedmkdir -p docs/progress && touch docs/progress/status.md

Related

SkillPurpose
/sprintSprint lifecycle management
/readme-syncDetailed README synchronization
/changelogManual changelog management
/doc-validateComprehensive doc validation