@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,495 @@
1
+ # Glossary
2
+
3
+ Comprehensive terminology reference for the Claude Code workflow system.
4
+
5
+ ---
6
+
7
+ ## Core Concepts
8
+
9
+ ### Agent
10
+
11
+ A specialized AI assistant designed to perform specific tasks within the development workflow. Agents are defined in `.claude/agents/` and have expertise in particular domains (e.g., `product-functional`, `hono-engineer`, `qa-engineer`).
12
+
13
+ **Key characteristics:**
14
+
15
+ - Single responsibility principle
16
+ - Domain-specific expertise
17
+ - Can be invoked via Task tool
18
+ - Stateless (each invocation is independent)
19
+
20
+ **Example:** The `db-drizzle-engineer` agent specializes in Drizzle ORM schemas and database operations.
21
+
22
+ ### Command
23
+
24
+ A predefined workflow or action that can be executed via slash commands (e.g., `/start-feature-plan`, `/quality-check`). Commands are defined in `.claude/commands/` and provide standardized procedures for common tasks.
25
+
26
+ **Key characteristics:**
27
+
28
+ - User-invokable via `/command-name`
29
+ - Can orchestrate multiple agents
30
+ - Defined in markdown files
31
+ - Supports parameters and options
32
+
33
+ **Example:** `/quality-check` runs lint, typecheck, tests, and code review in sequence.
34
+
35
+ ### Skill
36
+
37
+ A reusable capability that can be invoked by agents to perform specialized operations. Skills are defined in `.claude/skills/` and provide focused functionality.
38
+
39
+ **Key characteristics:**
40
+
41
+ - Invoked via Skill tool
42
+ - Composable (can be combined)
43
+ - Task-specific expertise
44
+ - Stateless operations
45
+
46
+ **Example:** The `git-commit-helper` skill assists with generating conventional commit messages.
47
+
48
+ ### MCP (Model Context Protocol)
49
+
50
+ An integration protocol that allows Claude Code to interact with external services and tools. MCP servers provide access to databases, APIs, documentation, and other resources.
51
+
52
+ **Available MCP servers:**
53
+
54
+ - Context7 (library documentation)
55
+ - Neon (PostgreSQL database)
56
+ - Mercado Pago (payment processing)
57
+ - GitHub (version control)
58
+ - Vercel (deployment)
59
+
60
+ **Configuration:** Defined in `.claude/mcp.json`
61
+
62
+ ---
63
+
64
+ ## Planning & Organization
65
+
66
+ ### Planning Code
67
+
68
+ A unique identifier for planning sessions following the pattern `P-XXX` or `PF-XXX` for features, `PR-XXX` for refactors.
69
+
70
+ **Format:**
71
+
72
+ - `P-XXX`: Generic planning (e.g., `P-001`)
73
+ - `PF-XXX`: Feature planning (e.g., `PF-004`)
74
+ - `PR-XXX`: Refactor planning (e.g., `PR-002`)
75
+
76
+ **Example:** `PF-004-workflow-optimization`
77
+
78
+ ### Task Code
79
+
80
+ A unique identifier for individual tasks within a planning session following the pattern `PF004-X` or `PF004-X.Y` for subtasks.
81
+
82
+ **Format:**
83
+
84
+ - `PF004-1`: Main task
85
+ - `PF004-1.1`: Subtask
86
+ - `PF004-1.1.1`: Sub-subtask (if needed)
87
+
88
+ **Constraints:**
89
+
90
+ - Tasks must be atomized: 0.5-4 hours each
91
+ - Sequential numbering within planning session
92
+ - Hierarchical for subtasks
93
+
94
+ **Example:** `PF004-5.2` = Planning PF-004, Task 5, Subtask 2
95
+
96
+ ### PDR (Product Design Requirements)
97
+
98
+ A comprehensive document that defines user stories, mockups, acceptance criteria, and functional specifications for a feature or initiative.
99
+
100
+ **Location:** `.claude/sessions/planning/{session}/PDR.md`
101
+
102
+ **Key sections:**
103
+
104
+ - User stories (As a... I want... So that...)
105
+ - Mockups/wireframes
106
+ - Acceptance criteria
107
+ - Business rules
108
+ - Technical constraints
109
+
110
+ **Created by:** `product-functional` agent in Phase 1
111
+
112
+ ### Tech Analysis
113
+
114
+ A technical planning document that outlines architecture, implementation approach, risks, and task breakdown.
115
+
116
+ **Location:** `.claude/sessions/planning/{session}/tech-analysis.md`
117
+
118
+ **Key sections:**
119
+
120
+ - Architecture decisions
121
+ - Technology stack
122
+ - Implementation approach
123
+ - Task breakdown
124
+ - Risk assessment
125
+ - Testing strategy
126
+
127
+ **Created by:** `product-technical` agent in Phase 1
128
+
129
+ ### TODOs
130
+
131
+ The source of truth for task tracking within a planning session. Contains all tasks, priorities, dependencies, and status.
132
+
133
+ **Location:** `.claude/sessions/planning/{session}/TODOs.md`
134
+
135
+ **Format:**
136
+
137
+ ```markdown
138
+ ### PF004-1: Task Title
139
+
140
+ - [ ] **[2h]** Task description
141
+ - **Priority**: P0 (Critical)
142
+ - **Dependencies**: None
143
+ - **Assignee**: @agent-name
144
+ - **Status**: Not Started
145
+ ```
146
+
147
+ **Note:** The code registry (`.code-registry.json`) is computed from TODOs.md, not vice versa.
148
+
149
+ ---
150
+
151
+ ## Workflow System
152
+
153
+ ### Workflow Level
154
+
155
+ The complexity and formality level of a development workflow.
156
+
157
+ **Levels:**
158
+
159
+ 1. **Level 1 (Quick Fix)**: Simple, single-file changes (<1 hour)
160
+ 2. **Level 2 (Feature/Refactor)**: Standard 4-phase workflow (1-40 hours)
161
+ 3. **Level 3 (Major Initiative)**: Multi-session, coordinated effort (40+ hours)
162
+
163
+ **Selection criteria:** See `workflows/decision-tree.md`
164
+
165
+ ### Workflow Phase
166
+
167
+ A stage in the Level 2 (standard) workflow.
168
+
169
+ **Phases:**
170
+
171
+ 1. **Phase 1 - Planning**: PDR, tech analysis, task breakdown
172
+ 2. **Phase 2 - Implementation**: TDD, code, tests
173
+ 3. **Phase 3 - Validation**: QA, code review, security audit
174
+ 4. **Phase 4 - Finalization**: Documentation, commits, PRs
175
+
176
+ **Checkpoint:** `.checkpoint.json` tracks current phase and progress
177
+
178
+ ### Checkpoint
179
+
180
+ A JSON file that tracks workflow state across sessions, enabling cross-device continuity.
181
+
182
+ **Location:** `.claude/sessions/planning/{session}/.checkpoint.json`
183
+
184
+ **Key fields:**
185
+
186
+ - `currentPhase`: 1-4
187
+ - `currentTask`: Current task code (e.g., `PF004-5`)
188
+ - `tasksCompleted`: Number of completed tasks
189
+ - `lastUpdated`: ISO timestamp
190
+
191
+ **Purpose:** Resume work from any device
192
+
193
+ ---
194
+
195
+ ## Development Practices
196
+
197
+ ### TDD (Test-Driven Development)
198
+
199
+ A development methodology where tests are written before implementation code.
200
+
201
+ **Cycle:**
202
+
203
+ 1. **RED**: Write failing test
204
+ 2. **GREEN**: Implement minimum code to pass
205
+ 3. **REFACTOR**: Improve while tests remain green
206
+
207
+ **Requirements:**
208
+
209
+ - 90% minimum test coverage
210
+ - Unit + Integration + E2E tests
211
+ - AAA pattern (Arrange, Act, Assert)
212
+
213
+ ### Atomization
214
+
215
+ The practice of breaking tasks into small, well-defined units of 0.5-4 hours each.
216
+
217
+ **Benefits:**
218
+
219
+ - Better estimation accuracy
220
+ - Easier progress tracking
221
+ - Reduced context switching
222
+ - Clear completion criteria
223
+
224
+ **Validation:** Task hours are validated by `todos.schema.json`
225
+
226
+ ### RO-RO Pattern
227
+
228
+ "Receive Object, Return Object" - A function design pattern where functions accept a single object parameter and return a single object.
229
+
230
+ **Example:**
231
+
232
+ ```typescript
233
+ // Good: RO-RO
234
+ function createUser({ name, email }: CreateUserInput): CreateUserResult {
235
+ return { user, token };
236
+ }
237
+
238
+ // Bad: Multiple params and return
239
+ function createUser(name: string, email: string): [User, string] {
240
+ return [user, token];
241
+ }
242
+ ```
243
+
244
+ **Benefits:**
245
+
246
+ - Named parameters
247
+ - Easy to extend
248
+ - Type-safe
249
+ - Self-documenting
250
+
251
+ ---
252
+
253
+ ## Quality & Validation
254
+
255
+ ### Schema Validation
256
+
257
+ JSON Schema-based validation of planning documents and configuration files.
258
+
259
+ **Tool:** `validate-schemas.ts` using ajv
260
+
261
+ **Validated files:**
262
+
263
+ - PDR.md (frontmatter)
264
+ - tech-analysis.md (frontmatter)
265
+ - TODOs.md (frontmatter)
266
+ - .checkpoint.json
267
+ - .code-registry.json
268
+
269
+ **Usage:** `pnpm claude:validate:schemas`
270
+
271
+ ### Code Registry
272
+
273
+ A computed JSON file that aggregates all task codes from TODOs.md files across all planning sessions.
274
+
275
+ **Location:** `.claude/sessions/planning/.code-registry.json`
276
+
277
+ **Purpose:**
278
+
279
+ - Quick lookup of task codes
280
+ - Cross-session task tracking
281
+ - Validation and reporting
282
+
283
+ **Generation:** `sync-registry.sh` or `pnpm claude:sync:registry`
284
+
285
+ **Important:** This is NOT the source of truth. TODOs.md files are authoritative.
286
+
287
+ ### Quality Check
288
+
289
+ A comprehensive validation process that runs multiple checks in sequence.
290
+
291
+ **Checks:**
292
+
293
+ 1. Lint (Biome)
294
+ 2. Type check (TypeScript)
295
+ 3. Tests (Vitest)
296
+ 4. Code review (automated)
297
+ 5. Security audit
298
+ 6. Performance analysis
299
+
300
+ **Command:** `/quality-check`
301
+
302
+ **Exit behavior:** Stops on first failure
303
+
304
+ ---
305
+
306
+ ## Architecture Patterns
307
+
308
+ ### Base Model
309
+
310
+ A foundational class that all data models extend, providing common CRUD operations.
311
+
312
+ **Location:** `@repo/db/models/base.model.ts`
313
+
314
+ **Features:**
315
+
316
+ - Generic type parameter
317
+ - findById, findAll methods
318
+ - Database connection handling
319
+ - Error standardization
320
+
321
+ **Usage:** All models in `@repo/db/models/` extend `BaseModel<T>`
322
+
323
+ ### Base Service
324
+
325
+ A foundational class that all business logic services extend, providing standard CRUD operations.
326
+
327
+ **Location:** `@repo/service-core/base-crud.service.ts`
328
+
329
+ **Features:**
330
+
331
+ - create, read, update, delete methods
332
+ - Model integration
333
+ - Validation with Zod schemas
334
+ - Transaction support
335
+
336
+ **Usage:** All services in `@repo/service-core/` extend `BaseCrudService`
337
+
338
+ ### Factory Pattern
339
+
340
+ A pattern used for creating consistent API routes with shared configuration.
341
+
342
+ **Examples:**
343
+
344
+ - `createCRUDRoute`: Full CRUD endpoints
345
+ - `createListRoute`: List/search endpoints
346
+ - `createAuthRoute`: Authentication endpoints
347
+
348
+ **Benefits:**
349
+
350
+ - Consistent error handling
351
+ - Shared middleware
352
+ - Standardized responses
353
+ - Type safety
354
+
355
+ ---
356
+
357
+ ## Conventions
358
+
359
+ ### Naming Conventions
360
+
361
+ **Agents:** kebab-case, domain-descriptive (e.g., `hono-engineer`, `db-drizzle-engineer`)
362
+
363
+ **Commands:** kebab-case, action-verb (e.g., `/start-feature-plan`, `/quality-check`)
364
+
365
+ **Skills:** kebab-case, noun-phrase (e.g., `git-commit-helper`, `qa-criteria-validator`)
366
+
367
+ **Planning codes:** Uppercase with hyphens (e.g., `PF-004`, `PR-002`)
368
+
369
+ **Task codes:** Uppercase, no hyphens in task number (e.g., `PF004-5`, `PF004-5.2`)
370
+
371
+ ### File Organization
372
+
373
+ **Agents:** `.claude/agents/{category}/{agent-name}.md`
374
+
375
+ **Commands:** `.claude/commands/{category}/{command-name}.md`
376
+
377
+ **Skills:** `.claude/skills/{category}/{skill-name}.md`
378
+
379
+ **Docs:** `.claude/docs/{topic}.md` or `.claude/docs/{category}/{topic}.md`
380
+
381
+ **Schemas:** `.claude/schemas/{name}.schema.json`
382
+
383
+ **Scripts:** `.claude/scripts/{name}.{sh|ts|cjs}`
384
+
385
+ ### Language Policy
386
+
387
+ **Code/Comments/Docs:** English only
388
+
389
+ **Chat responses:** Spanish only (when interacting with Spanish-speaking users)
390
+
391
+ **Rationale:** Global collaboration, consistency, maintainability
392
+
393
+ ---
394
+
395
+ ## Tools & Scripts
396
+
397
+ ### validate-docs.sh
398
+
399
+ Shell script that validates documentation structure and consistency.
400
+
401
+ **Checks:**
402
+
403
+ - Agent/command/skill counts vs READMEs
404
+ - Broken internal links
405
+ - Required directory structure
406
+
407
+ **Usage:** `pnpm claude:validate:docs`
408
+
409
+ ### validate-schemas.ts
410
+
411
+ TypeScript script that validates JSON files and markdown frontmatter against JSON schemas.
412
+
413
+ **Features:**
414
+
415
+ - ajv-based validation
416
+ - Schema caching for performance
417
+ - Detailed error reporting
418
+
419
+ **Usage:** `pnpm claude:validate:schemas`
420
+
421
+ ### sync-registry.sh
422
+
423
+ Shell script that regenerates the code registry from all TODOs.md files.
424
+
425
+ **Purpose:** Keep `.code-registry.json` in sync with source of truth
426
+
427
+ **Usage:** `pnpm claude:sync:registry`
428
+
429
+ ### generate-code-registry.ts
430
+
431
+ TypeScript script that parses TODOs.md files and generates `.code-registry.json`.
432
+
433
+ **Features:**
434
+
435
+ - Parses task codes, titles, status
436
+ - Extracts estimated hours
437
+ - Sorts tasks alphabetically
438
+ - Generates metadata
439
+
440
+ **Invoked by:** `sync-registry.sh`
441
+
442
+ ---
443
+
444
+ ## Git & Version Control
445
+
446
+ ### Conventional Commits
447
+
448
+ A commit message format that provides semantic meaning to changes.
449
+
450
+ **Format:** `<type>(<scope>): <description>`
451
+
452
+ **Types:**
453
+
454
+ - `feat`: New feature
455
+ - `fix`: Bug fix
456
+ - `docs`: Documentation changes
457
+ - `refactor`: Code refactoring
458
+ - `test`: Test additions/changes
459
+ - `chore`: Maintenance tasks
460
+
461
+ **Example:** `feat(planning): implement code registry system`
462
+
463
+ ### GitHub Issues Sync
464
+
465
+ The process of syncing planning sessions to GitHub Issues for tracking.
466
+
467
+ **Mapping:**
468
+
469
+ - Planning session → Parent issue
470
+ - Tasks → Sub-issues
471
+ - Subtasks → Checklist items
472
+
473
+ **File:** `.claude/sessions/planning/{session}/issues-sync.json`
474
+
475
+ **Tool:** `planning-sync` package
476
+
477
+ ---
478
+
479
+ ## External References
480
+
481
+ **Claude Code Docs:** <https://docs.claude.com/claude-code>
482
+
483
+ **TurboRepo:** <https://turbo.build/repo/docs>
484
+
485
+ **Drizzle ORM:** <https://orm.drizzle.team/docs>
486
+
487
+ **Hono:** <https://hono.dev/>
488
+
489
+ **TanStack:** <https://tanstack.com/>
490
+
491
+ **Astro:** <https://astro.build/>
492
+
493
+ ---
494
+
495
+ Last updated: 2025-10-31