acc-check-version-consistency
Version Consistency Audit
Analyze project files for version number synchronization across all locations where version is referenced.
Detection Patterns
1. composer.json vs README Version Mismatch
// composer.json says:
{ "version": "2.10.0" }
<!-- README.md says: -->
Current version: **2.9.0** <!-- OUTDATED! -->
2. CHANGELOG Missing Latest Version
<!-- CHANGELOG.md -->
## [2.9.0] - 2025-01-15
- Added feature X
<!-- Missing entry for 2.10.0! -->
3. Documentation References Old Version
<!-- docs/getting-started.md -->
composer require vendor/package:^2.8
<!-- Should be ^2.10 -->
4. Component Count Mismatch
<!-- README.md says: -->
| Skills | 200 |
<!-- docs/quick-reference.md says: -->
| Skills | 222 |
<!-- Out of sync! -->
Verification Process
Step 1: Find All Version References
# Version in composer.json
Grep: "\"version\"" --glob "composer.json"
# Version in README
Grep: "version|v[0-9]+\.[0-9]+\.[0-9]+" -i --glob "README.md"
# Version in CHANGELOG
Grep: "## \[" --glob "CHANGELOG.md"
# Version in docs
Grep: "version|v[0-9]+\.[0-9]+" -i --glob "docs/**/*.md"
# Version in configuration
Grep: "version" --glob "**/*.json" --glob "**/*.yaml" --glob "**/*.yml"
Step 2: Extract Canonical Version
# Primary source of truth: composer.json or latest CHANGELOG entry
Read: composer.json
# Extract version field
# Or from git tags
# git describe --tags --abbrev=0
Step 3: Cross-Check All Locations
For each location where version appears:
- Extract the version number
- Compare against canonical version
- Report mismatches
Step 4: Verify Component Counts
# Count actual components
Glob: .claude/commands/acc-*.md # Commands count
Glob: .claude/agents/acc-*.md # Agents count
Glob: .claude/skills/acc-*/SKILL.md # Skills count
# Check documented counts in all files
Grep: "commands.*[0-9]+|agents.*[0-9]+|skills.*[0-9]+" -i --glob "README.md"
Grep: "commands.*[0-9]+|agents.*[0-9]+|skills.*[0-9]+" -i --glob "docs/quick-reference.md"
Grep: "commands.*[0-9]+|agents.*[0-9]+|skills.*[0-9]+" -i --glob "composer.json"
Step 5: Verify CHANGELOG Completeness
# Check CHANGELOG has entry for current version
Grep: "## \[" --glob "CHANGELOG.md"
# Check comparison links at bottom
Grep: "\[.*\]: https://.*compare" --glob "CHANGELOG.md"
Files to Check
| File | What to Verify |
|---|---|
composer.json |
version field, description with counts |
README.md |
Version badges, component counts, install examples |
CHANGELOG.md |
Latest version section, comparison links |
docs/quick-reference.md |
Statistics table, version references |
llms.txt |
Quick Facts section, component counts |
CLAUDE.md |
Architecture section counts |
docs/*.md |
Version references in examples |
Severity Classification
| Pattern | Severity |
|---|---|
| composer.json version wrong | π΄ Critical |
| CHANGELOG missing latest version | π΄ Critical |
| README version mismatch | π Major |
| Component count mismatch | π Major |
| Docs referencing old version | π‘ Minor |
| Badge showing wrong version | π‘ Minor |
Output Format
### Version Consistency: [Description]
**Severity:** π΄/π /π‘
**Canonical Version:** X.Y.Z
**Mismatches Found:**
| File | Expected | Found | Line |
|------|----------|-------|------|
| `README.md` | 2.10.0 | 2.9.0 | 15 |
| `docs/guide.md` | ^2.10 | ^2.8 | 23 |
**Component Count Sync:**
| File | Commands | Agents | Skills | Status |
|------|----------|--------|--------|--------|
| Actual | 26 | 56 | 222 | Source |
| README.md | 26 | 56 | 222 | OK |
| composer.json | 26 | 56 | 200 | MISMATCH |
**Fix:**
Update all listed files to version X.Y.Z.
More from dykyi-roman/awesome-claude-code
psr-overview-knowledge
PHP Standards Recommendations (PSR) overview knowledge base. Provides comprehensive reference for all accepted PSRs including PSR-1,3,4,6,7,11,12,13,14,15,16,17,18,20. Use for PSR selection decisions and compliance audits.
22detect-code-smells
Detects code smells in PHP codebases. Identifies God Class, Feature Envy, Data Clumps, Long Parameter List, Long Method, Primitive Obsession, Message Chains, Inappropriate Intimacy. Generates actionable reports with refactoring recommendations.
15clean-arch-knowledge
Clean Architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Clean Architecture and Hexagonal Architecture audits.
15ddd-knowledge
DDD architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Domain-Driven Design audits.
14testing-knowledge
Testing knowledge base for PHP 8.4 projects. Provides testing pyramid, AAA pattern, naming conventions, isolation principles, DDD testing guidelines, and PHPUnit patterns.
12bug-root-cause-finder
Root cause analysis methods for PHP bugs. Provides 5 Whys technique, fault tree analysis, git bisect guidance, and stack trace parsing.
12