Repository navigation
Expand file tree
/
Copy pathdocsync.yml
More file actions
902 lines (803 loc) · 30.5 KB
/
Copy pathdocsync.yml
File metadata and controls
902 lines (803 loc) · 30.5 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
# Curated code → doc index. Matching is root-anchored (no implicit **/).
# Schema: devtools/docsync/docsync.yml.example
#
# Built by walking every tracked doc section onto the source it describes,
# then walking source packages back onto those sections.
#
# Intentionally unmapped (no honest product-doc pair):
# - Flutter template / LaunchImage READMEs
# - spacemacs/private/local/README.md (upstream boilerplate)
# - text/markdown/linkfix, tools/mdlinkfix (no README)
# - codelab/{go,coffee,csharp,unison,proto} toys
# - v3/ (generated Bazel module cache, not source)
# - Historical plans as live targets: storage-design.md,
# repo-sync/IMPLEMENTATION_PLAN.md, ansible/TODO.org
# - gitignored docs/superpowers/ (python-modern-practices spec/plan)
# - .agent/workflows (no parent doc)
# - scripts/update-env-keys.sh
version: 1
rules:
# --- repository root: Make / Bazel / toolchain ---
- match: ["Makefile"]
docs:
- path: README.org
section: "** GNU Make"
why: "make check/test/lint/format/fix/coverage targets"
- match: [".gitignore"]
docs:
- path: CLAUDE.md
section: "## Temp File Handling"
why: "project-local .tmp/ is gitignored"
- match: ["MODULE.bazel", ".bazeliskrc", "BUILD.bazel", ".bazelrc"]
docs:
- path: README.org
section: "** Bazel"
why: "Bazelisk, Go SDK, nogo, Gazelle, format alias, Termux nogo skip"
- match: ["go.mod", "pyproject.toml", "uv.lock"]
docs:
- path: README.org
section: "* Getting Started"
why: "Go module path, uv lockfile, listed linters"
- match: [".golangci.yml"]
docs:
- path: README.org
section: "* Getting Started"
why: "golangci-lint is part of make lint"
- path: README.org
section: "** GNU Make"
why: "make lint-golangci / verify-golangci-config"
- path: SECURITY.md
section: "## Security Practices"
why: "static analysis via golangci-lint"
- match: [".semgrep/**"]
docs:
- path: README.org
section: "* Getting Started"
why: "semgrep is a listed linter"
- path: README.org
section: "** GNU Make"
why: "make check-semgrep is part of make check"
- match: ["check-bazel-src-files.sh"]
docs:
- path: README.org
section: "** GNU Make"
why: "make check-bazel-go-files runs check-bazel-src-files.sh"
- path: tools/org-lint/README.md
why: "same completeness-check pattern as org_lint_tests"
- match: ["tools/format/**"]
docs:
- path: README.org
section: "** GNU Make"
why: "make format / check-format drive //tools/format"
- path: CLAUDE.md
section: "## Automation & Workflow"
why: "use make format instead of gofmt/goimports directly"
- match: ["tools/lint/**"]
docs:
- path: README.org
section: "** Bazel"
why: "nogo static analysis via //tools/lint"
- match: ["PklProject", "PklProject.deps.json"]
docs:
- path: README.org
section: "** Bazel"
why: "rules_pkl / pkl-go pin for configuration codegen"
- path: devtools/gh-nudge/README.org
section: "*** Pkl Configuration (Recommended)"
why: "pkl-gen-go resolved through repo-root PklProject"
- match:
- "scripts/strip_pr_html_comments.py"
- ".github/workflows/strip-pr-html-comments.yml"
- ".github/pull_request_template.md"
docs:
- path: CLAUDE.md
section: "## Pull requests"
why: "squash-merge copies HTML comments; reusable strip workflow"
- path: AGENTS.md
why: "omit template HTML comments from PR bodies"
- match: [".github/workflows/bazel-test.yml"]
docs:
- path: README.org
section: "** GNU Make"
why: "CI coverage-html / lcov mirrors make coverage-html"
- path: SECURITY.md
section: "## Security Practices"
why: "automated testing via CI"
- match: [".github/workflows/go.yml"]
docs:
- path: README.org
section: "* Getting Started"
why: "the job runs make check with Go 1.26.10"
- path: SECURITY.md
section: "## Security Practices"
why: "automated testing via CI"
- match: [".github/workflows/emacs.yml"]
docs:
- path: spacemacs/README.org
section: "* Setup"
why: "CI runs spacemacs/Makefile on .spacemacs changes"
# --- .claude extensions ---
- match: [".claude/skills/code-review/**", ".claude/commands/review.md"]
docs:
- path: CLAUDE.md
section: "## Skills & Commands"
why: "/review and code-review skill"
- match:
- ".claude/skills/claude-code-mechanism-selector/**"
- ".claude/agents/**"
- ".claude/commands/org-to-slide.md"
- ".claude/skills/org-slide-converter/**"
docs:
- path: .claude/CLAUDE.md
section: "## Directory Structure"
why: "skills vs commands vs agents layout"
# --- baseball / text / codelab ---
- match: ["baseball/**/*.go"]
docs:
- path: baseball/README.md
why: "Bulls and Cows solver"
- path: README.org
section: "* Repository Layout"
why: "baseball/ directory"
- match: ["memocache/**/*.go"]
docs:
- path: README.org
section: "* Repository Layout"
why: "in-memory cache library"
- match: ["my-ts-project/src/**", "my-ts-project/package.json"]
docs:
- path: README.org
section: "* Repository Layout"
why: "TypeScript Mocha learning project"
- match: ["text/{box,gantt,table,wrap}/**/*.go"]
docs:
- path: README.org
section: "* Repository Layout"
why: "text rendering libraries (box, gantt, table, wrap)"
- match: ["text/canvas/canvas.go"]
docs:
- path: text/canvas/README.md
section: "### Canvas"
why: "Canvas type, drawing, and Renderable host"
- path: text/canvas/README.md
section: "### Renderable Interface"
why: "Renderable contract"
- match: ["text/canvas/grid.go"]
docs:
- path: text/canvas/README.md
section: "### Grid"
why: "Grid layout"
- match: ["text/canvas/stack.go"]
docs:
- path: text/canvas/README.md
section: "### Stack"
why: "Stack layout"
- match: ["text/canvas/border.go", "text/canvas/boxchars.go"]
docs:
- path: text/canvas/README.md
section: "### Border"
why: "Border wrapper, styles, title, AddBorder"
- match: ["text/canvas/borderlayout.go"]
docs:
- path: text/canvas/README.md
section: "### BorderLayout"
why: "North/South/East/West/Center regions"
- path: text/canvas/README.md
section: "### Region (for BorderLayout)"
why: "Region type"
- match: ["text/canvas/flowlayout.go"]
docs:
- path: text/canvas/README.md
section: "### FlowLayout"
why: "Flow layout"
- match: ["text/canvas/convenience.go"]
docs:
- path: text/canvas/README.md
section: "## Convenience Functions"
why: "Center, Title, Margin helpers"
- match: ["text/canvas/layout.go"]
docs:
- path: text/canvas/README.md
section: "## Type Reference"
why: "Direction, BorderStyle, TitlePosition, Spacing"
- match: ["text/markdown/split/*.go"]
docs:
- path: text/markdown/split/README.md
section: "## Features"
why: "header-based splitting"
- path: text/markdown/split/README.md
section: "## Output Structure"
why: "split file layout"
- match: ["text/markdown/split/cmd/split/**"]
docs:
- path: text/markdown/split/README.md
section: "## Usage"
why: "split CLI flags (-input/-output)"
- path: text/markdown/split/README.md
section: "### Arguments"
why: "-input and -output flags"
- match: ["codelab/dart/shyaml/lib/**", "codelab/dart/shyaml/bin/**"]
docs:
- path: codelab/dart/shyaml/README.org
section: "* How It Works"
why: "spreadsheet-as-config parsing rules"
- path: codelab/dart/shyaml/README.org
section: "** Key Rules"
why: "CSV-to-YAML key rules"
# --- tools/org-lint ---
- match: ["tools/org-lint/defs.bzl"]
docs:
- path: tools/org-lint/README.md
section: "### The Starlark macro (defs.bzl)"
why: "org_lint_tests macro"
- path: tools/org-lint/README.md
section: "## Files"
why: "defs.bzl in the file list"
- match: ["tools/org-lint/test_org_lint.sh"]
docs:
- path: tools/org-lint/README.md
section: "### The test wrapper (test_org_lint.sh)"
why: "Bazel test wrapper around org-lint"
- match: ["tools/org-lint/check-org-lint-tests.sh"]
docs:
- path: tools/org-lint/README.md
section: "### The validation check (check-org-lint-tests.sh)"
why: "coverage check that every .org has a test"
- match: ["tools/org-lint/BUILD.bazel"]
docs:
- path: tools/org-lint/README.md
section: "## Usage"
why: "bazel test //tools/org-lint:all_org_lint_tests"
# --- devtools catalog summaries (any source change in the package) ---
- match: ["devtools/devcheck/**/*.go"]
docs:
- path: devtools/README.org
section: "*** devcheck"
why: "package summary"
- match: ["devtools/docsync/**/*.go"]
docs:
- path: devtools/README.org
section: "*** docsync"
why: "package summary"
- match: ["devtools/linters/**/*.go"]
docs:
- path: devtools/README.org
section: "*** linters"
why: "package summary"
- match: ["devtools/ascii-art/**/*.go"]
docs:
- path: devtools/README.org
section: "*** ascii-art"
why: "package summary"
- match: ["devtools/rename-jira-keys/**/*.go"]
docs:
- path: devtools/README.org
section: "*** rename-jira-keys"
why: "package summary"
- match: ["devtools/claude-usage/**/*.go"]
docs:
- path: devtools/README.org
section: "*** claude-usage"
why: "package summary"
- match: ["devtools/magit/magit"]
docs:
- path: devtools/README.org
section: "*** magit"
why: "package summary"
- match: ["devtools/prsync/**/*.go"]
docs:
- path: devtools/README.org
section: "*** prsync"
why: "package summary"
- match: ["devtools/reviewpush/**/*.go"]
docs:
- path: devtools/README.org
section: "*** reviewpush"
why: "package summary"
- match: ["devtools/gh-nudge/**/*.go"]
docs:
- path: devtools/README.org
section: "*** gh-nudge"
why: "package summary"
- match: ["devtools/repo-sync/**/*.go"]
docs:
- path: devtools/README.org
section: "*** repo-sync"
why: "package summary"
- match: ["devtools/setup-dev/ansible/*.go"]
docs:
- path: devtools/README.org
section: "*** setup-dev"
why: "package summary"
# --- devcheck / docsync / linters ---
- match: ["devtools/devcheck/cmd/**", "devtools/devcheck/internal/runner/**"]
docs:
- path: devtools/devcheck/README.org
section: "* Usage"
why: "--dry-run/--filter/--format/--changed-only/--force-fallback"
- path: devtools/devcheck/README.org
section: "* Exit codes"
why: "CLI exit codes"
- match: ["devtools/devcheck/internal/detector/**"]
docs:
- path: devtools/devcheck/README.org
section: "* Detection"
why: "project/build-system detection"
- match: ["devtools/devcheck/internal/config/**"]
docs:
- path: devtools/devcheck/README.org
section: "* Overview"
why: "config types for detected tools"
- match: ["devtools/docsync/cmd/**", "devtools/docsync/internal/cli/root.go"]
docs:
- path: devtools/docsync/README.org
section: "* Installation"
why: "go install / bazel run entry point"
- path: devtools/docsync/README.org
section: "* Config discovery"
why: "upward docsync.yml discovery and --config"
- match: ["devtools/docsync/internal/cli/check.go", "devtools/docsync/internal/gitchanges/**", "devtools/docsync/internal/matcher/**"]
docs:
- path: devtools/docsync/README.org
section: "** check"
why: "--base/--files/--json/--exit-zero matching"
- match: ["devtools/docsync/internal/cli/validate.go", "devtools/docsync/internal/mapping/**"]
docs:
- path: devtools/docsync/README.org
section: "** validate"
why: "schema, glob, and missing-doc lint"
- path: devtools/docsync/README.org
section: "* Mapping file"
why: "rules/match/docs schema"
- match: ["devtools/docsync/docsync.yml.example"]
docs:
- path: devtools/docsync/README.org
section: "* Mapping file"
why: "commented three-rule example"
- match: ["devtools/docsync/internal/matcher/**"]
docs:
- path: devtools/docsync/README.org
section: "** Glob semantics"
why: "root-anchored doublestar matching"
- match: ["devtools/docsync/internal/cli/exit.go"]
docs:
- path: devtools/docsync/README.org
section: "* Exit codes"
why: "check/validate exit codes 0-3"
- match: ["devtools/docsync/internal/cli/version.go", "devtools/docsync/internal/version/**"]
docs:
- path: devtools/docsync/README.org
section: "** version"
why: "JSON version output"
- match: ["devtools/linters/cmd/org-lint/**"]
docs:
- path: devtools/linters/README.org
section: "** org-lint"
why: "org-lint CLI, exit codes, Emacs package loading"
- match: ["devtools/linters/unnecessaryinterfaceassertion/**"]
docs:
- path: devtools/linters/README.org
section: "** unnecessary-interface-assertion-linter"
why: "unused var _ Iface = (*T)(nil)"
- path: README.org
section: "** Bazel"
why: "nogo custom linter"
- match: ["devtools/linters/cmd/unnecessary-interface-assertion-linter/**"]
docs:
- path: devtools/linters/README.org
section: "** unnecessary-interface-assertion-linter"
why: "CLI --json/--dir"
- match: ["devtools/ascii-art/cmd/box-renderer/**"]
docs:
- path: devtools/ascii-art/README.org
section: "** Box Renderer (~box-renderer~)"
why: "box-renderer CLI flags and stdin sections"
- path: devtools/ascii-art/README.org
section: "** Box Renderer CLI"
why: "usage examples"
- match: ["devtools/rename-jira-keys/**/*.go"]
docs:
- path: devtools/rename-jira-keys/README.org
section: "* Command Line Options"
why: "--old/--new flags and file rename behavior"
- path: devtools/rename-jira-keys/README.org
section: "* Safety Features"
why: "word-boundary matching and overwrite checks"
- match: ["devtools/claude-usage/cmd/**"]
docs:
- path: devtools/claude-usage/README.org
section: "* Usage"
why: "human table and --json"
- path: devtools/claude-usage/README.org
section: "* Exit codes"
why: "CLI exit codes"
- match: ["devtools/claude-usage/internal/credentials/**"]
docs:
- path: devtools/claude-usage/README.org
section: "* Prerequisites"
why: "Keychain / credentials file resolution"
- path: devtools/claude-usage/README.org
section: "* Security"
why: "token never printed; read-only use of existing login"
- match: ["devtools/claude-usage/internal/usage/**"]
docs:
- path: devtools/claude-usage/README.org
section: "* Overview"
why: "5-hour and 7-day usage windows"
- match: ["devtools/magit/magit"]
docs:
- path: devtools/magit/README.org
section: "* Usage"
why: "magit CLI for $PWD or an explicit directory"
- path: devtools/magit/README.org
section: "** Options"
why: "-c/-t flags"
- path: devtools/magit/README.org
section: "* Behavior"
why: "emacsclient, perspective reuse, canonical-path matching"
- match:
- "devtools/prsync/cmd/**"
- "devtools/prsync/internal/cli/root.go"
- "devtools/prsync/prsync.config.example"
docs:
- path: devtools/prsync/README.org
section: "* Commands"
why: "scan/tabs/dispatch/comment/gate flags"
- path: devtools/prsync/README.org
section: "* Configuration"
why: "prsync.config keys"
- match: ["devtools/prsync/internal/scan/**", "devtools/prsync/internal/cli/scan.go"]
docs:
- path: devtools/prsync/README.org
section: "** scan"
why: "open-PR survey and classification"
- match: ["devtools/prsync/internal/cli/tabs.go", "devtools/prsync/internal/scan/orphan.go"]
docs:
- path: devtools/prsync/README.org
section: "** tabs --orphans"
why: "orphan tabs, --stdin, --close-merged"
- match: ["devtools/prsync/internal/dispatch/**", "devtools/prsync/internal/cli/dispatch.go"]
docs:
- path: devtools/prsync/README.org
section: "** dispatch"
why: "herdr prompt injection and --rebase/--ci-fix/--go/--force"
- path: devtools/prsync/README.org
section: "** Live dispatch"
why: "gate wait, settle debounce, herdr --wait --until"
- match: ["devtools/prsync/internal/comment/**", "devtools/prsync/internal/cli/comment.go"]
docs:
- path: devtools/prsync/README.org
section: "** comment"
why: "conversation-level PR comments via gh"
- match: ["devtools/prsync/internal/cli/gate.go", "devtools/prsync/internal/dispatch/gate.go"]
docs:
- path: devtools/prsync/README.org
section: "** gate"
why: "concurrency gate"
- path: devtools/prsync/README.org
section: "** Live dispatch"
why: "gate wait and blocked-as-busy"
- match: ["devtools/prsync/internal/runlog/**", "devtools/prsync/internal/cli/log.go", "devtools/prsync/internal/cli/logs.go"]
docs:
- path: devtools/prsync/README.org
section: "** logs"
why: "XDG state run log, --log-level, PRSYNC_LOG, prsync logs"
- match: ["devtools/prsync/internal/cli/exit.go"]
docs:
- path: devtools/prsync/README.org
section: "* Exit codes"
why: "CLI exit codes"
- match: ["devtools/prsync/internal/gh/**", "devtools/prsync/internal/herdr/**"]
docs:
- path: devtools/prsync/README.org
section: "* Prerequisites"
why: "gh CLI and herdr >= 0.8"
- match: ["devtools/prsync/internal/config/**"]
docs:
- path: devtools/prsync/README.org
section: "** Keys"
why: "config file key list"
- match: ["devtools/reviewpush/cmd/**"]
docs:
- path: devtools/reviewpush/README.md
section: "## CLI"
why: "review-and-push-loop entry point"
- path: devtools/reviewpush/README.md
section: "## Flags"
why: "--repo/--base/--max-iterations/--output"
- path: devtools/reviewpush/README.md
section: "## Environment variables"
why: "wrapper env overrides"
- match: ["devtools/reviewpush/codex.go"]
docs:
- path: devtools/reviewpush/README.md
section: "## Codex response contract"
why: "PUSH vs BLOCKED JSON contract"
- match: ["devtools/reviewpush/reviewpush.go"]
docs:
- path: devtools/reviewpush/README.md
section: "## What it does"
why: "oldest-ahead commit loop and wrapper push"
- path: devtools/reviewpush/README.md
section: "## Safety properties"
why: "read-only Codex; wrapper performs git push"
- match: ["devtools/pkg/ghauth/**"]
docs:
- path: devtools/pkg/PLAN.md
section: "### Using pkg/ghauth"
why: "TokenSource chain"
- match: ["devtools/pkg/ghtest/**"]
docs:
- path: devtools/pkg/PLAN.md
section: "### Using pkg/ghtest"
why: "ghtest helpers"
# --- gh-nudge (per-command docs) ---
- match:
- "devtools/gh-nudge/cmd/gh-nudge/**"
- "devtools/gh-nudge/internal/notification/**"
docs:
- path: devtools/gh-nudge/nudge.org
section: "** Usage"
why: "review-reminder CLI flags"
- path: devtools/gh-nudge/nudge.org
section: "** Notification Persistence"
why: "notification thresholds and history"
- path: devtools/gh-nudge/README.org
why: "suite index"
- match:
- "devtools/gh-nudge/cmd/gh-slack/**"
- "devtools/gh-nudge/internal/slack/**"
docs:
- path: devtools/gh-nudge/slack.org
section: "** Usage"
why: "gh-slack CLI"
- path: devtools/gh-nudge/slack.org
section: "** Configuration and Setup"
why: "GitHub-to-Slack mapping"
- match: ["devtools/gh-nudge/cmd/gh-merge/**"]
docs:
- path: devtools/gh-nudge/merge.org
section: "** Usage"
why: "gh-merge CLI, MERGEABLE filter, dry-run"
- match: ["devtools/gh-nudge/cmd/gh-codeowners/**"]
docs:
- path: devtools/gh-nudge/codeowners.org
section: "* Command Line Tool Usage"
why: "gh-codeowners CLI"
- match: ["devtools/gh-nudge/internal/codeowners/**"]
docs:
- path: devtools/gh-nudge/codeowners.org
section: "* Custom Section-Based Matching (Project-Specific)"
why: "section-union CODEOWNERS matching"
- match: ["devtools/gh-nudge/cmd/gh-pr-review/**"]
docs:
- path: devtools/gh-nudge/pr-review.org
section: "*** Command Reference"
why: "capture/comment/submit/list/delete/next/resolve"
- path: devtools/gh-nudge/cmd/gh-pr-review/README.md
section: "## Core Commands"
why: "quick-start command list"
- match: ["devtools/gh-nudge/internal/prreview/**", "devtools/gh-nudge/internal/models/**"]
docs:
- path: devtools/gh-nudge/pr-review.org
section: "** Architecture"
why: "storage structure and comment/diff JSON"
- match: ["devtools/gh-nudge/internal/git/**"]
docs:
- path: devtools/gh-nudge/pr-review.org
section: "** Features"
why: "local branch diffs, hunk capture, auto line adjustment"
- match: ["devtools/gh-nudge/internal/github/**"]
docs:
- path: devtools/gh-nudge/README.org
section: "** File Structure"
why: "shared gh CLI client"
- path: devtools/gh-nudge/nudge.org
why: "gh CLI integration for pending PRs"
- path: devtools/gh-nudge/pr-review.org
why: "PR files API / review submit via gh"
- match: ["devtools/gh-nudge/internal/argparser/**"]
docs:
- path: devtools/gh-nudge/pr-review.org
section: "*** Command Reference"
why: "Unix flag parser used by gh-pr-review"
- path: devtools/gh-nudge/storage.org
section: "*** Command Reference"
why: "same parser used by gh-storage"
- match: ["devtools/gh-nudge/cmd/gh-storage/**"]
docs:
- path: devtools/gh-nudge/storage.org
section: "*** Command Reference"
why: "init/info/ls/get-set/migrate/backup/clean/lock/export"
- match: ["devtools/gh-nudge/internal/storage/**"]
docs:
- path: devtools/gh-nudge/storage.org
section: "** Storage Architecture"
why: "~/.config/gh-nudge/storage layout"
- match:
- "devtools/gh-nudge/internal/config/**"
- "devtools/gh-nudge/pkl/**"
- "devtools/gh-nudge/Makefile"
docs:
- path: devtools/gh-nudge/README.org
section: "*** Pkl Configuration (Recommended)"
why: "pkl Config.pkl and generate-pkl"
- path: devtools/gh-nudge/README.org
section: "*** YAML Configuration (Legacy)"
why: "legacy YAML config"
- path: devtools/gh-nudge/nudge.org
section: "** Configuration and Setup"
why: "Slack token and reminder configuration"
# --- repo-sync ---
- match:
- "devtools/repo-sync/cmd/**"
- "devtools/repo-sync/internal/cli/**"
docs:
- path: devtools/repo-sync/README.org
section: "** Commands"
why: "CLI commands (init/config/sync)"
- path: devtools/repo-sync/README.org
section: "*** Building"
why: "Bazel/Make install"
- match: ["devtools/repo-sync/internal/config/**"]
docs:
- path: devtools/repo-sync/README.org
section: "** Configuration"
why: "~/.config/repo-sync/config.yaml layout"
- match: ["devtools/repo-sync/internal/database/**"]
docs:
- path: devtools/repo-sync/database-schema.org
section: "* Database Schema"
why: "SQLite schema and metadata tracking"
- match: ["devtools/repo-sync/internal/git/**"]
docs:
- path: devtools/repo-sync/technical-implementation.org
section: "* Git Workflow Implementation"
why: "automated commit-pull-push"
- path: devtools/repo-sync/README.org
section: "** Git Integration"
why: "git-based sync workflow"
- match: ["devtools/repo-sync/internal/reposync/**"]
docs:
- path: devtools/repo-sync/conflict-resolution.org
why: "content/deletion conflict detection and rsync"
- path: devtools/repo-sync/technical-implementation.org
section: "* Rsync Implementation"
why: "selective sync and include patterns"
- path: devtools/repo-sync/README.org
why: "selective sync behavior"
- match: ["devtools/repo-sync/internal/**/*.go"]
docs:
- path: devtools/repo-sync/technical-implementation.org
why: "architecture (config/database/git/reposync/cli)"
- path: devtools/repo-sync/error-handling.org
why: "error recovery procedures"
# --- setup-dev / ansible ---
- match:
- "devtools/setup-dev/ansible/packages_data.go"
docs:
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Adding a New Package"
why: "packages array in packages_data.go"
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Adding a Platform-Specific Tool"
why: "GoTool and platforms map"
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "## Important Files"
why: "packages_data.go is the file to edit"
- path: devtools/setup-dev/ansible/CLAUDE.md
section: "## Key Files"
why: "packages_data.go"
- match:
- "devtools/setup-dev/ansible/generate_packages.go"
- "devtools/setup-dev/ansible/templates.go"
- "devtools/setup-dev/ansible/types.go"
- "devtools/setup-dev/ansible/Makefile"
docs:
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Regenerating Playbooks"
why: "make generate-ansible"
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "## Important Files"
why: "generator, templates, types"
- path: devtools/setup-dev/ansible/README.org
why: "generator, playbook list"
- path: devtools/setup-dev/ansible/CLAUDE.md
section: "## Quick Commands"
why: "make generate-ansible"
- match: ["devtools/setup-dev/ansible/install_methods.go"]
docs:
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Installation Methods"
why: "InstallMethod implementations"
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Platform-Specific Installation Strategy"
why: "Termux/Debian/macOS/Go/Python/Rust strategy"
- path: devtools/setup-dev/ansible/README.org
section: "** Platform-Specific Installation Strategy"
why: "per-platform install methods"
- path: devtools/setup-dev/ansible/macos.org
why: "Homebrew and community.general on macOS"
- match:
- "devtools/setup-dev/ansible/ensure.sh"
- "devtools/setup-dev/ansible/bootstrap.sh"
- "devtools/setup-dev/ansible/ansible_become.sh"
- "devtools/setup-dev/ansible/community_general.sh"
- "devtools/setup-dev/ansible/cache_expired.sh"
- "devtools/setup-dev/ansible/verified-run"
docs:
- path: devtools/setup-dev/ansible/README.org
section: "* How to Use"
why: "ensure.sh, ansible-core, community.general"
- path: devtools/setup-dev/ansible/README.org
section: "* Bootstrap (Fresh Machine)"
why: "bootstrap.sh"
- path: devtools/setup-dev/README.org
section: "* Bootstrap (Fresh Machine)"
why: "fresh-machine bootstrap"
- path: devtools/setup-dev/README.org
section: "* Quick Start (Existing Clone)"
why: "./ensure.sh all"
- path: devtools/setup-dev/ansible/CLAUDE.md
section: "## Shell Installer Verification"
why: "verified-run for curl|bash installers"
- path: devtools/setup-dev/ansible/macos.org
why: "ensure.sh Homebrew path"
- match:
- "devtools/setup-dev/ansible/setup-*.yml"
- "devtools/setup-dev/ansible/all.yml"
docs:
- path: .claude/skills/ansible-dev-setup/SKILL.md
section: "### Manual Playbooks"
why: "hand-maintained playbooks not produced by the generator"
- path: devtools/setup-dev/ansible/README.org
section: "* Manual Playbooks"
why: "generated list of non-generated YAML playbooks"
- match: ["devtools/setup-dev/ansible/profile-*.yml"]
docs:
- path: devtools/setup-dev/ansible/README.org
section: "** Profiles (Qubes OS / Subset Installs)"
why: "profile-*.yml curated subsets"
- path: devtools/setup-dev/ansible/README.org
section: "*** Available Profiles"
why: "profile-minimal / profile-emacs-daily / ..."
- match: ["devtools/setup-dev/qubes/**"]
docs:
- path: devtools/setup-dev/ansible/README.org
section: "*** Qubes OS Workflow"
why: "hand-written TemplateVM trim/default/Brave scripts"
# --- spacemacs ---
- match: ["spacemacs/.spacemacs"]
docs:
- path: spacemacs/README.org
section: "** .spacemacs"
why: ".spacemacs deployment"
- path: spacemacs/CLAUDE.md
section: "## Sync Workflow"
why: "upstream ediff merge"
- path: spacemacs/CLAUDE.md
section: "## Platform Detection"
why: "crostini/termux/macos"
- path: spacemacs/CLAUDE.md
section: "## Conventions"
why: "naming, keybindings, layers"
- path: .claude/skills/spacemacs/SKILL.md
why: "edit conventions for .spacemacs"
- match: ["spacemacs/Makefile", "spacemacs/setup.sh"]
docs:
- path: spacemacs/README.org
section: "* Setup"
why: "ensure.sh spacemacs setup"
- path: spacemacs/CLAUDE.md
section: "## Local Validation"
why: "make byte-compile"
- match: ["spacemacs/private/local/*.el"]
docs:
- path: spacemacs/CLAUDE.md
section: "### Custom Elisp Files"
why: "custom elisp conventions"
- path: spacemacs/README.org
section: "** DONE Alert.el Integration for Claude Code Notifications"
why: "my-attention.el / alert.el integration"
- path: .claude/skills/spacemacs/SKILL.md
why: "private/local packages such as my-attention.el"