You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add scripts/update-repomap.sh for automated repomap management
- Add pre-commit hook to auto-update repomap on code changes
- Add CI validation to ensure repomap stays current
- Update documentation (README.md, CLAUDE.md, docs/patterns/repomap.md)
- Add scripts/README.md documenting all automation scripts
The repomap now automatically updates when committing code changes
and CI validates it's current on every push/PR.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,12 +135,26 @@ cat .repomap.txt
135
135
- Major refactoring is completed
136
136
- Before creating PRs (ensure map is current)
137
137
138
+
**Automated regeneration**:
139
+
140
+
The repository includes automation for repomap management:
141
+
138
142
```bash
139
-
# Regenerate after changes
143
+
# Manual regeneration (recommended method)
144
+
./scripts/update-repomap.sh
145
+
146
+
# Check if repomap is current
147
+
./scripts/update-repomap.sh --check
148
+
149
+
# Legacy manual method (still works)
140
150
python repomap.py .> .repomap.txt
141
151
git add .repomap.txt # Include in commits
142
152
```
143
153
154
+
**Pre-commit hook**: The repomap is automatically regenerated when you commit changes to code files (`.py`, `.js`, `.ts`, `.tsx`, `.go`, `.sh`, `.bash`) via the pre-commit hook.
155
+
156
+
**CI validation**: The CI workflow validates that the repomap is current on every push/PR.
157
+
144
158
#### Integration with Development Workflow
145
159
146
160
**Include repomap in commit tracking**:
@@ -369,6 +383,7 @@ Focus on "why" rather than "what".
369
383
3.**`.github/workflows/ci.yml`** (General CI)
370
384
- Code example linting (if any)
371
385
- Documentation build test
386
+
- Repomap validation (ensures .repomap.txt is current)
Copy file name to clipboardExpand all lines: docs/patterns/repomap.md
+94-11Lines changed: 94 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,24 @@ Generate clean, token-optimized code structure maps using tree-sitter for AI-ass
8
8
9
9
## Quick Start
10
10
11
+
This repository includes **complete automation** for repomap management. The repomap is automatically updated via pre-commit hooks and validated in CI.
0 commit comments