Commit ed482e5
feat: Auto-sync CLAUDE.md during semantic-release
Couples CLAUDE.md updates to the release workflow, ensuring documentation
stays in sync with each version release.
**Changes**:
- Created `scripts/sync-claude-md.sh` to update CLAUDE.md metrics
- Syncs version number from semantic-release
- Updates "Last Updated" date automatically
- Pulls self-assessment score from latest assessment JSON
- Uses simple sed patterns compatible across platforms
- Updated `.releaserc.json` to execute sync script during prepare phase
- Runs after pyproject.toml version bump
- Includes CLAUDE.md in git commit assets
- Ensures atomic version+docs updates
**Benefits**:
- Zero manual effort - happens automatically on every release
- Version and docs always in sync (no more 23-version drift!)
- Self-assessment score updated if new assessment available
- Auditable via release commits
**Testing**:
- Verified script works locally with test version 1.24.0
- Confirmed all fields update correctly (version, date, score)
- Tested on main branch CLAUDE.md (v1.0.0 baseline)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f06b2a8 commit ed482e5
2 files changed
+63
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments