@qazuor/claude-code-config 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1248 -0
  3. package/dist/bin.cjs +11886 -0
  4. package/dist/bin.cjs.map +1 -0
  5. package/dist/bin.d.cts +1 -0
  6. package/dist/bin.d.ts +1 -0
  7. package/dist/bin.js +11869 -0
  8. package/dist/bin.js.map +1 -0
  9. package/dist/index.cjs +3887 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.d.cts +1325 -0
  12. package/dist/index.d.ts +1325 -0
  13. package/dist/index.js +3835 -0
  14. package/dist/index.js.map +1 -0
  15. package/package.json +86 -0
  16. package/templates/.log/notifications.log +1775 -0
  17. package/templates/agents/README.md +164 -0
  18. package/templates/agents/_registry.json +443 -0
  19. package/templates/agents/design/content-writer.md +353 -0
  20. package/templates/agents/design/ux-ui-designer.md +382 -0
  21. package/templates/agents/engineering/astro-engineer.md +293 -0
  22. package/templates/agents/engineering/db-drizzle-engineer.md +360 -0
  23. package/templates/agents/engineering/express-engineer.md +316 -0
  24. package/templates/agents/engineering/fastify-engineer.md +399 -0
  25. package/templates/agents/engineering/hono-engineer.md +263 -0
  26. package/templates/agents/engineering/mongoose-engineer.md +473 -0
  27. package/templates/agents/engineering/nestjs-engineer.md +429 -0
  28. package/templates/agents/engineering/nextjs-engineer.md +451 -0
  29. package/templates/agents/engineering/node-typescript-engineer.md +347 -0
  30. package/templates/agents/engineering/prisma-engineer.md +432 -0
  31. package/templates/agents/engineering/react-senior-dev.md +394 -0
  32. package/templates/agents/engineering/tanstack-start-engineer.md +447 -0
  33. package/templates/agents/engineering/tech-lead.md +269 -0
  34. package/templates/agents/product/product-functional.md +329 -0
  35. package/templates/agents/product/product-technical.md +578 -0
  36. package/templates/agents/quality/debugger.md +514 -0
  37. package/templates/agents/quality/qa-engineer.md +390 -0
  38. package/templates/agents/specialized/enrichment-agent.md +277 -0
  39. package/templates/agents/specialized/i18n-specialist.md +322 -0
  40. package/templates/agents/specialized/seo-ai-specialist.md +387 -0
  41. package/templates/agents/specialized/tech-writer.md +300 -0
  42. package/templates/code-style/.editorconfig +27 -0
  43. package/templates/code-style/.prettierignore +25 -0
  44. package/templates/code-style/.prettierrc +12 -0
  45. package/templates/code-style/biome.json +78 -0
  46. package/templates/code-style/commitlint.config.js +44 -0
  47. package/templates/commands/README.md +175 -0
  48. package/templates/commands/_registry.json +420 -0
  49. package/templates/commands/add-new-entity.md +211 -0
  50. package/templates/commands/audit/accessibility-audit.md +360 -0
  51. package/templates/commands/audit/performance-audit.md +290 -0
  52. package/templates/commands/audit/security-audit.md +231 -0
  53. package/templates/commands/code-check.md +127 -0
  54. package/templates/commands/five-why.md +225 -0
  55. package/templates/commands/formatting/format-markdown.md +197 -0
  56. package/templates/commands/git/commit.md +247 -0
  57. package/templates/commands/meta/create-agent.md +257 -0
  58. package/templates/commands/meta/create-command.md +312 -0
  59. package/templates/commands/meta/create-skill.md +321 -0
  60. package/templates/commands/meta/help.md +318 -0
  61. package/templates/commands/planning/check-completed-tasks.md +224 -0
  62. package/templates/commands/planning/cleanup-issues.md +248 -0
  63. package/templates/commands/planning/planning-cleanup.md +251 -0
  64. package/templates/commands/planning/sync-planning-github.md +133 -0
  65. package/templates/commands/planning/sync-todos-github.md +203 -0
  66. package/templates/commands/quality-check.md +211 -0
  67. package/templates/commands/run-tests.md +159 -0
  68. package/templates/commands/start-feature-plan.md +232 -0
  69. package/templates/commands/start-refactor-plan.md +244 -0
  70. package/templates/commands/sync-planning.md +176 -0
  71. package/templates/commands/update-docs.md +242 -0
  72. package/templates/docs/CHECKPOINT-SYSTEM.md +504 -0
  73. package/templates/docs/INDEX.md +677 -0
  74. package/templates/docs/RECOMMENDED-HOOKS.md +415 -0
  75. package/templates/docs/_registry.json +329 -0
  76. package/templates/docs/diagrams/README.md +220 -0
  77. package/templates/docs/diagrams/agent-hierarchy.mmd +55 -0
  78. package/templates/docs/diagrams/documentation-map.mmd +61 -0
  79. package/templates/docs/diagrams/tools-relationship.mmd +55 -0
  80. package/templates/docs/diagrams/workflow-decision-tree.mmd +38 -0
  81. package/templates/docs/doc-sync.md +533 -0
  82. package/templates/docs/examples/end-to-end-workflow.md +1505 -0
  83. package/templates/docs/glossary.md +495 -0
  84. package/templates/docs/guides/mockup-prompt-engineering.md +644 -0
  85. package/templates/docs/guides/mockup-setup.md +737 -0
  86. package/templates/docs/learnings/README.md +250 -0
  87. package/templates/docs/learnings/common-architectural-patterns.md +123 -0
  88. package/templates/docs/learnings/common-mistakes-to-avoid.md +149 -0
  89. package/templates/docs/learnings/markdown-formatting-standards.md +104 -0
  90. package/templates/docs/learnings/monorepo-command-execution.md +64 -0
  91. package/templates/docs/learnings/optimization-tips.md +146 -0
  92. package/templates/docs/learnings/planning-linear-sync-workflow.md +70 -0
  93. package/templates/docs/learnings/shell-compatibility-fish.md +46 -0
  94. package/templates/docs/learnings/test-organization-structure.md +68 -0
  95. package/templates/docs/mcp-installation.md +613 -0
  96. package/templates/docs/mcp-servers.md +989 -0
  97. package/templates/docs/notification-installation.md +570 -0
  98. package/templates/docs/quick-start.md +354 -0
  99. package/templates/docs/standards/architecture-patterns.md +1064 -0
  100. package/templates/docs/standards/atomic-commits.md +513 -0
  101. package/templates/docs/standards/code-standards.md +993 -0
  102. package/templates/docs/standards/design-standards.md +656 -0
  103. package/templates/docs/standards/documentation-standards.md +1160 -0
  104. package/templates/docs/standards/testing-standards.md +969 -0
  105. package/templates/docs/system-maintenance.md +604 -0
  106. package/templates/docs/templates/PDR-template.md +561 -0
  107. package/templates/docs/templates/TODOs-template.md +534 -0
  108. package/templates/docs/templates/tech-analysis-template.md +800 -0
  109. package/templates/docs/workflows/README.md +519 -0
  110. package/templates/docs/workflows/atomic-task-protocol.md +955 -0
  111. package/templates/docs/workflows/decision-tree.md +482 -0
  112. package/templates/docs/workflows/edge-cases.md +856 -0
  113. package/templates/docs/workflows/phase-1-planning.md +957 -0
  114. package/templates/docs/workflows/phase-2-implementation.md +896 -0
  115. package/templates/docs/workflows/phase-3-validation.md +792 -0
  116. package/templates/docs/workflows/phase-4-finalization.md +927 -0
  117. package/templates/docs/workflows/quick-fix-protocol.md +505 -0
  118. package/templates/docs/workflows/task-atomization.md +537 -0
  119. package/templates/docs/workflows/task-completion-protocol.md +448 -0
  120. package/templates/hooks/on-notification.sh +28 -0
  121. package/templates/schemas/checkpoint.schema.json +97 -0
  122. package/templates/schemas/code-registry.schema.json +84 -0
  123. package/templates/schemas/pdr.schema.json +314 -0
  124. package/templates/schemas/problems.schema.json +55 -0
  125. package/templates/schemas/tech-analysis.schema.json +404 -0
  126. package/templates/schemas/telemetry.schema.json +298 -0
  127. package/templates/schemas/todos.schema.json +234 -0
  128. package/templates/schemas/workflows.schema.json +69 -0
  129. package/templates/scripts/add-changelogs.sh +105 -0
  130. package/templates/scripts/generate-code-registry.ts +270 -0
  131. package/templates/scripts/health-check.sh +343 -0
  132. package/templates/scripts/sync-registry.sh +40 -0
  133. package/templates/scripts/telemetry-report.ts +36 -0
  134. package/templates/scripts/validate-docs.sh +224 -0
  135. package/templates/scripts/validate-registry.sh +225 -0
  136. package/templates/scripts/validate-schemas.ts +283 -0
  137. package/templates/scripts/validate-structure.sh +165 -0
  138. package/templates/scripts/worktree-cleanup.sh +81 -0
  139. package/templates/scripts/worktree-create.sh +63 -0
  140. package/templates/sessions/planning/.gitkeep +0 -0
  141. package/templates/sessions/planning/archived/.gitkeep +0 -0
  142. package/templates/settings.json +202 -0
  143. package/templates/settings.local.json +138 -0
  144. package/templates/skills/README.md +197 -0
  145. package/templates/skills/_registry.json +473 -0
  146. package/templates/skills/audit/accessibility-audit.md +309 -0
  147. package/templates/skills/audit/performance-audit.md +257 -0
  148. package/templates/skills/audit/security-audit.md +217 -0
  149. package/templates/skills/auth/nextauth-patterns.md +308 -0
  150. package/templates/skills/brand-guidelines.md +240 -0
  151. package/templates/skills/documentation/markdown-formatter.md +302 -0
  152. package/templates/skills/git/git-commit-helper.md +321 -0
  153. package/templates/skills/i18n/i18n-patterns.md +251 -0
  154. package/templates/skills/patterns/error-handling-patterns.md +242 -0
  155. package/templates/skills/patterns/tdd-methodology.md +342 -0
  156. package/templates/skills/qa/qa-criteria-validator.md +383 -0
  157. package/templates/skills/qa/web-app-testing.md +398 -0
  158. package/templates/skills/react/react-hook-form-patterns.md +359 -0
  159. package/templates/skills/state/redux-toolkit-patterns.md +272 -0
  160. package/templates/skills/state/tanstack-query-patterns.md +299 -0
  161. package/templates/skills/state/zustand-patterns.md +301 -0
  162. package/templates/skills/tech/mermaid-diagram-specialist.md +195 -0
  163. package/templates/skills/tech/shadcn-specialist.md +252 -0
  164. package/templates/skills/tech/vercel-specialist.md +297 -0
  165. package/templates/skills/testing/api-app-testing.md +254 -0
  166. package/templates/skills/testing/performance-testing.md +275 -0
  167. package/templates/skills/testing/security-testing.md +348 -0
  168. package/templates/skills/utils/add-memory.md +295 -0
  169. package/templates/skills/utils/json-data-auditor.md +283 -0
  170. package/templates/skills/utils/pdf-creator-editor.md +342 -0
  171. package/templates/tools/format-markdown.sh +185 -0
@@ -0,0 +1,604 @@
1
+ # System Maintenance Guide
2
+
3
+ ## Overview
4
+
5
+ This guide explains how to maintain the workflow system, including adding new tools, updating documentation, archiving learnings, and performing routine maintenance tasks.
6
+
7
+ **Target Audience**: Developers, Tech Leads, DevOps Engineers
8
+
9
+ **Maintenance Frequency:**
10
+
11
+ - **Daily**: Check health status
12
+ - **Weekly**: Archive old learnings, update metrics
13
+ - **Monthly**: Review and optimize system
14
+ - **Quarterly**: Major audits and improvements
15
+
16
+ ---
17
+
18
+ ## Table of Contents
19
+
20
+ 1. [Daily Maintenance](#daily-maintenance)
21
+ 2. [Adding New Tools](#adding-new-tools)
22
+ 3. [Updating Documentation](#updating-documentation)
23
+ 4. [Archiving Learnings](#archiving-learnings)
24
+ 5. [Managing Planning Sessions](#managing-planning-sessions)
25
+ 6. [System Health Monitoring](#system-health-monitoring)
26
+ 7. [Troubleshooting](#troubleshooting)
27
+
28
+ ---
29
+
30
+ ## Daily Maintenance
31
+
32
+ ### Morning Checklist
33
+
34
+ ```bash
35
+ # 1. Pull latest changes
36
+ git pull origin main
37
+
38
+ # 2. Run health check
39
+ pnpm health-check
40
+
41
+ # 3. Check active planning sessions
42
+ find .claude/sessions/planning -name ".checkpoint.json" -exec jq '{session: input_filename, task: .currentTask, progress: .tasksCompleted, total: .totalSteps}' {} \;
43
+
44
+ # 4. Review recent commits
45
+ git log --oneline -10
46
+ ```
47
+
48
+ **Expected Output:**
49
+
50
+ ```
51
+ ✅ Health check PASSED - System is healthy!
52
+ 📋 Active sessions: 1
53
+ P-004-workflow-optimization: PF004-29 (29/37 - 78%)
54
+ ```
55
+
56
+ ### Quick Validation
57
+
58
+ ```bash
59
+ # Validate documentation structure
60
+ pnpm claude:validate:docs
61
+
62
+ # Validate schemas
63
+ pnpm claude:validate:schemas
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Adding New Tools
69
+
70
+ ### 1. Adding a New Agent
71
+
72
+ **Location**: `.claude/agents/{category}/{agent-name}.md`
73
+
74
+ **Steps:**
75
+
76
+ 1. **Create agent file:**
77
+
78
+ ```bash
79
+ # Choose category: engineering/, specialized/, management/
80
+ touch .claude/agents/specialized/new-agent.md
81
+ ```
82
+
83
+ 2. **Use template:**
84
+
85
+ ```markdown
86
+ # Agent Name
87
+
88
+ ## Role
89
+ Brief description
90
+
91
+ ## Responsibilities
92
+ - Responsibility 1
93
+ - Responsibility 2
94
+
95
+ ## Skills Required
96
+ - Skill 1
97
+ - Skill 2
98
+
99
+ ## When to Invoke
100
+ Specific scenarios
101
+
102
+ ## Output Format
103
+ What to deliver
104
+
105
+ ## Examples
106
+ Usage examples
107
+ ```
108
+
109
+ 3. **Update README:**
110
+
111
+ ```bash
112
+ # Edit .claude/agents/README.md
113
+ # Add to appropriate category
114
+ # Update count (13 → 14)
115
+ ```
116
+
117
+ 4. **Update CLAUDE.md:**
118
+
119
+ ```bash
120
+ # Edit CLAUDE.md
121
+ # Add to Subagents section
122
+ # Update count in Quick Reference
123
+ ```
124
+
125
+ 5. **Run validation:**
126
+
127
+ ```bash
128
+ pnpm health-check
129
+ # Should show: Agents: 14 (expected: 14) ✅
130
+ ```
131
+
132
+ 6. **Commit:**
133
+
134
+ ```bash
135
+ git add .claude/agents/specialized/new-agent.md .claude/agents/README.md CLAUDE.md
136
+ git commit -m "feat(agents): add new-agent specialist"
137
+ ```
138
+
139
+ ### 2. Adding a New Command
140
+
141
+ **Location**: `.claude/commands/{category}/{command-name}.md`
142
+
143
+ **Steps:**
144
+
145
+ 1. **Create command file:**
146
+
147
+ ```bash
148
+ # Choose category: audit/, formatting/, git/, meta/
149
+ touch .claude/commands/audit/new-command.md
150
+ ```
151
+
152
+ 2. **Define command:**
153
+
154
+ ```markdown
155
+ # Command: /new-command
156
+
157
+ ## Description
158
+ What the command does
159
+
160
+ ## Usage
161
+ /new-command [arguments]
162
+
163
+ ## Parameters
164
+ - param1: description
165
+ - param2: description
166
+
167
+ ## Examples
168
+ /new-command example
169
+
170
+ ## Output
171
+ Expected result
172
+ ```
173
+
174
+ 3. **Update README:**
175
+
176
+ ```bash
177
+ # Edit .claude/commands/README.md
178
+ # Add to category
179
+ # Update count (18 → 19)
180
+ ```
181
+
182
+ 4. **Test command:**
183
+
184
+ ```bash
185
+ # In Claude Code
186
+ /new-command
187
+ ```
188
+
189
+ 5. **Commit:**
190
+
191
+ ```bash
192
+ git add .claude/commands/audit/new-command.md .claude/commands/README.md
193
+ git commit -m "feat(commands): add /new-command for X"
194
+ ```
195
+
196
+ ### 3. Adding a New Skill
197
+
198
+ **Location**: `.claude/skills/{category}/{skill-name}.md`
199
+
200
+ **Steps:**
201
+
202
+ 1. **Create skill file:**
203
+
204
+ ```bash
205
+ # Choose category: brand/, git/, patterns/, tech/, testing/, utils/
206
+ touch .claude/skills/tech/new-skill.md
207
+ ```
208
+
209
+ 2. **Define skill:**
210
+
211
+ ```markdown
212
+ # Skill Name
213
+
214
+ ## Purpose
215
+ What this skill does
216
+
217
+ ## Capabilities
218
+ - Capability 1
219
+ - Capability 2
220
+
221
+ ## Usage
222
+ How to use this skill
223
+
224
+ ## Examples
225
+ Practical examples
226
+ ```
227
+
228
+ 3. **Update README:**
229
+
230
+ ```bash
231
+ # Edit .claude/skills/README.md
232
+ # Add to category
233
+ # Update count (16 → 17)
234
+ ```
235
+
236
+ 4. **Commit:**
237
+
238
+ ```bash
239
+ git add .claude/skills/tech/new-skill.md .claude/skills/README.md
240
+ git commit -m "feat(skills): add new-skill capability"
241
+ ```
242
+
243
+ ---
244
+
245
+ ## Updating Documentation
246
+
247
+ ### Main Documentation Files
248
+
249
+ | File | When to Update | How Often |
250
+ |------|----------------|-----------|
251
+ | `CLAUDE.md` | Major system changes | As needed |
252
+ | `.claude/docs/INDEX.md` | New sections added | Monthly |
253
+ | `.claude/docs/quick-start.md` | Onboarding changes | Quarterly |
254
+ | `README.md` | Project changes | As needed |
255
+
256
+ ### Documentation Update Process
257
+
258
+ 1. **Make changes:**
259
+
260
+ ```bash
261
+ # Edit documentation
262
+ vim .claude/docs/workflows/new-workflow.md
263
+ ```
264
+
265
+ 2. **Format markdown:**
266
+
267
+ ```bash
268
+ # Auto-format
269
+ pnpm format:md:claude
270
+
271
+ # Check linting
272
+ pnpm lint:md .claude/**/*.md
273
+ ```
274
+
275
+ 3. **Validate links:**
276
+
277
+ ```bash
278
+ # Run health check (includes link validation)
279
+ pnpm health-check
280
+ ```
281
+
282
+ 4. **Update INDEX:**
283
+
284
+ ```bash
285
+ # If new file, add to INDEX.md
286
+ vim .claude/docs/INDEX.md
287
+ ```
288
+
289
+ 5. **Commit with proper message:**
290
+
291
+ ```bash
292
+ git add .
293
+ git commit -m "docs: update workflow documentation"
294
+ ```
295
+
296
+ ---
297
+
298
+ ## Archiving Learnings
299
+
300
+ ### When to Archive
301
+
302
+ Archive a learning from CLAUDE.md "Recent Learnings" section when:
303
+
304
+ - More than 10 learnings exist
305
+ - Learning is > 30 days old
306
+ - Learning is no longer frequently referenced
307
+
308
+ ### Archive Process
309
+
310
+ 1. **Create learning file:**
311
+
312
+ ```bash
313
+ # Create file in learnings directory
314
+ touch .claude/docs/learnings/new-learning.md
315
+ ```
316
+
317
+ 2. **Move content:**
318
+
319
+ ```markdown
320
+ # Learning Title
321
+
322
+ **Date:** YYYY-MM-DD
323
+ **Category:** Category / Subcategory
324
+
325
+ ## Problem
326
+ What went wrong
327
+
328
+ ## Solution
329
+ How it was fixed
330
+
331
+ ## Impact
332
+ - Severity: High/Medium/Low
333
+ - Frequency: Common/Occasional/Rare
334
+ - Scope: All developers / Specific role
335
+ - Prevention: How to avoid
336
+
337
+ ## Related
338
+ - Links to docs
339
+ - Related learnings
340
+ ```
341
+
342
+ 3. **Update CLAUDE.md:**
343
+
344
+ ```markdown
345
+ ## 9. Archived Learnings
346
+
347
+ ### Category
348
+ - [New Learning](.claude/docs/learnings/new-learning.md) - Brief description
349
+ ```
350
+
351
+ 4. **Update learnings/README.md:**
352
+
353
+ ```markdown
354
+ ### Category (X)
355
+
356
+ **[new-learning.md]** - Brief description
357
+ ```
358
+
359
+ 5. **Commit:**
360
+
361
+ ```bash
362
+ git add .claude/docs/learnings/new-learning.md CLAUDE.md .claude/docs/learnings/README.md
363
+ git commit -m "docs(learnings): archive new-learning to structured file"
364
+ ```
365
+
366
+ ---
367
+
368
+ ## Managing Planning Sessions
369
+
370
+ ### Active Session Maintenance
371
+
372
+ 1. **Update checkpoints after each task:**
373
+
374
+ ```json
375
+ {
376
+ "currentTask": "PF004-30",
377
+ "previousTaskCompleted": "PF004-29",
378
+ "tasksCompleted": 30,
379
+ "lastUpdated": "2025-10-31T17:00:00.000Z"
380
+ }
381
+ ```
382
+
383
+ 2. **Commit checkpoints:**
384
+
385
+ ```bash
386
+ git add .claude/sessions/planning/P-004/.checkpoint.json
387
+ git commit -m "chore(planning): update checkpoint to PF004-30"
388
+ ```
389
+
390
+ ### Closing Completed Sessions
391
+
392
+ 1. **Mark session complete:**
393
+
394
+ ```bash
395
+ # Update checkpoint
396
+ jq '.currentPhase = 4 | .currentTask = "COMPLETE"' .checkpoint.json > temp.json
397
+ mv temp.json .checkpoint.json
398
+ ```
399
+
400
+ 2. **Create summary:**
401
+
402
+ ```bash
403
+ # Create SUMMARY.md in session folder
404
+ touch .claude/sessions/planning/P-004/SUMMARY.md
405
+ ```
406
+
407
+ 3. **Archive if old:**
408
+
409
+ ```bash
410
+ # Move to archive if > 6 months old
411
+ mkdir -p .claude/sessions/archive/2025
412
+ mv .claude/sessions/planning/P-001 .claude/sessions/archive/2025/
413
+ ```
414
+
415
+ ### Sync to GitHub Issues
416
+
417
+ ```bash
418
+ # Sync planning session to GitHub
419
+ pnpm planning:sync .claude/sessions/planning/P-004-workflow-optimization/
420
+ ```
421
+
422
+ ---
423
+
424
+ ## System Health Monitoring
425
+
426
+ ### Health Check Command
427
+
428
+ ```bash
429
+ # Run comprehensive health check
430
+ pnpm health-check
431
+ ```
432
+
433
+ **Checks performed:**
434
+
435
+ 1. File counts (agents, commands, skills, learnings, workflows, diagrams)
436
+ 2. Code registry validation
437
+ 3. Git hooks configuration
438
+ 4. Core documentation files
439
+ 5. Recent learnings count
440
+ 6. Validation scripts
441
+ 7. Active planning sessions
442
+
443
+ ### Monitoring Metrics
444
+
445
+ Track these metrics monthly:
446
+
447
+ ```bash
448
+ # Agent count
449
+ find .claude/agents -name "*.md" ! -name "README.md" | wc -l
450
+
451
+ # Command count
452
+ find .claude/commands -name "*.md" ! -name "README.md" | wc -l
453
+
454
+ # Skill count
455
+ find .claude/skills -name "*.md" ! -name "README.md" | wc -l
456
+
457
+ # Total documentation size
458
+ du -sh .claude/docs
459
+
460
+ # Active sessions
461
+ find .claude/sessions/planning -name ".checkpoint.json" | wc -l
462
+ ```
463
+
464
+ ### CI/CD Monitoring
465
+
466
+ Check GitHub Actions status:
467
+
468
+ ```bash
469
+ # Visit
470
+ https://github.com/qazuor/your-repo/actions
471
+ ```
472
+
473
+ Expected: ✅ Documentation Validation passing
474
+
475
+ ---
476
+
477
+ ## Troubleshooting
478
+
479
+ ### Health Check Failures
480
+
481
+ **Problem**: File count mismatch
482
+
483
+ **Solution:**
484
+
485
+ ```bash
486
+ # Find actual count
487
+ find .claude/agents -name "*.md" ! -name "README.md"
488
+
489
+ # Update expected count in health-check.sh if correct
490
+ vim .claude/scripts/health-check.sh
491
+ ```
492
+
493
+ **Problem**: Broken links detected
494
+
495
+ **Solution:**
496
+
497
+ ```bash
498
+ # Find broken links
499
+ grep -r "](\.\./" .claude/docs/ | grep -v ".git"
500
+
501
+ # Fix paths in affected files
502
+ vim [file-with-broken-link]
503
+ ```
504
+
505
+ ### Git Hook Issues
506
+
507
+ **Problem**: Pre-commit hook fails
508
+
509
+ **Solution:**
510
+
511
+ ```bash
512
+ # Skip hook temporarily
513
+ git commit --no-verify -m "message"
514
+
515
+ # Fix hook
516
+ vim .husky/pre-commit
517
+ chmod +x .husky/pre-commit
518
+ ```
519
+
520
+ ### Markdown Formatting Errors
521
+
522
+ **Problem**: markdownlint failures
523
+
524
+ **Solution:**
525
+
526
+ ```bash
527
+ # Auto-fix
528
+ pnpm format:md:claude
529
+
530
+ # Check specific file
531
+ pnpm markdownlint-cli2 .claude/docs/INDEX.md --fix
532
+ ```
533
+
534
+ ---
535
+
536
+ ## Best Practices
537
+
538
+ ### DO ✅
539
+
540
+ - **Update checkpoints** after every task completion
541
+ - **Run health check** before committing major changes
542
+ - **Archive learnings** when > 10 in Recent Learnings
543
+ - **Validate links** after adding new documentation
544
+ - **Test commands** before committing
545
+ - **Keep README files updated** when adding new tools
546
+ - **Use conventional commits** for all documentation changes
547
+ - **Sync planning to GitHub** for team visibility
548
+
549
+ ### DON'T ❌
550
+
551
+ - **Skip validation** before committing docs
552
+ - **Leave broken links** in documentation
553
+ - **Forget to update counts** in README files
554
+ - **Commit without formatting** markdown files
555
+ - **Archive all learnings** - keep recent ones visible
556
+ - **Create orphaned files** - always link in INDEX.md
557
+ - **Skip CI checks** - they catch real issues
558
+ - **Manually edit code registry** - use sync script
559
+
560
+ ---
561
+
562
+ ## Maintenance Calendar
563
+
564
+ ### Daily
565
+
566
+ - [ ] Run `pnpm health-check`
567
+ - [ ] Check active planning sessions
568
+ - [ ] Review CI/CD status
569
+
570
+ ### Weekly
571
+
572
+ - [ ] Archive old learnings (if > 10)
573
+ - [ ] Review and clean up TODOs
574
+ - [ ] Update planning checkpoints
575
+ - [ ] Check documentation completeness
576
+
577
+ ### Monthly
578
+
579
+ - [ ] Audit all documentation links
580
+ - [ ] Review and optimize workflows
581
+ - [ ] Update metrics in dashboards
582
+ - [ ] Archive completed planning sessions (> 1 month old)
583
+
584
+ ### Quarterly
585
+
586
+ - [ ] Major system audit
587
+ - [ ] Review and update all READMEs
588
+ - [ ] Optimize scripts and tools
589
+ - [ ] Conduct team retrospective on workflow effectiveness
590
+
591
+ ---
592
+
593
+ ## Related Documentation
594
+
595
+ - **Health Check**: `.claude/scripts/health-check.sh`
596
+ - **Doc Sync**: `.claude/docs/doc-sync.md`
597
+ - **Git Hooks**: `.claude/docs/RECOMMENDED-HOOKS.md`
598
+ - **Workflows**: `.claude/docs/workflows/`
599
+
600
+ ---
601
+
602
+ **Last updated**: 2025-10-31
603
+ **Version**: 1.0.0
604
+ **Maintained by**: DevOps & Tech Lead team