Commit e9d0852
docs(standardize-repo): harden the v2→v3 adopt flow (pre-commit/gitleaks/gitignore/AGENTS) (#45)
From the harmon-ops v2.3.1→v3.9.0 re-template, three traps cost real time:
- Stale pre-commit hook: deleting .pre-commit-config.yaml leaves
.git/hooks/pre-commit, which blocks every commit ("No .pre-commit-config.yaml
file was found") -- run `pre-commit uninstall` then `task install:hooks`.
- gitleaks scans full history on adoption -> surfaces pre-existing leaks that
fail the pre-push hook + CI; allowlist each KNOWN finding's fingerprint in
.gitleaksignore AND rotate the secret (urgent if the repo is public).
- Mis-shebanged scripts (#!/bin/sh using bash features) make shfmt fail.
Also: Path B --overwrite resets .gitignore -> re-merge the repo's custom ignores
(minus what v3 now tracks). And strengthen the AGENTS.md fold guidance to fold
the *substantive* old guidance, not just a one-line blurb (a thin fold dropped
real content this session).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent deb2614 commit e9d0852
1 file changed
Lines changed: 25 additions & 2 deletions
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
316 | 339 | | |
317 | 340 | | |
318 | 341 | | |
| |||
0 commit comments