@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
package/README.md ADDED
@@ -0,0 +1,1248 @@
1
+ # @qazuor/claude-code-config
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@qazuor/claude-code-config.svg)](https://www.npmjs.com/package/@qazuor/claude-code-config)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Node.js Version](https://img.shields.io/node/v/@qazuor/claude-code-config.svg)](https://nodejs.org)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)
7
+
8
+ A comprehensive CLI tool to install and manage Claude Code configurations in your projects. Configure AI agents, skills, commands, MCP servers, permissions, and template placeholders with an interactive wizard or bundle-based setup.
9
+
10
+ ## Table of Contents
11
+
12
+ - [Features](#features)
13
+ - [What's Included](#whats-included)
14
+ - [Installation](#installation)
15
+ - [Quick Start](#quick-start)
16
+ - [Commands](#commands)
17
+ - [init](#init-path)
18
+ - [configure](#configure)
19
+ - [list](#list-type)
20
+ - [add](#add-module)
21
+ - [remove](#remove-module)
22
+ - [status](#status)
23
+ - [update](#update)
24
+ - [Bundles](#bundles)
25
+ - [Modules](#modules)
26
+ - [Agents](#agents-23-available)
27
+ - [Skills](#skills-25-available)
28
+ - [Commands](#commands-23-available)
29
+ - [Documentation](#documentation-18-available)
30
+ - [Template Configuration](#template-configuration)
31
+ - [MCP Servers](#mcp-servers)
32
+ - [Permissions](#permissions)
33
+ - [Code Style](#code-style)
34
+ - [Hooks](#hooks)
35
+ - [Project Structure](#project-structure)
36
+ - [Placeholders](#placeholders)
37
+ - [Programmatic API](#programmatic-api)
38
+ - [Configuration File](#configuration-file)
39
+ - [Custom Templates](#custom-templates)
40
+ - [Requirements](#requirements)
41
+ - [Contributing](#contributing)
42
+ - [License](#license)
43
+
44
+ ## Features
45
+
46
+ ### Core Capabilities
47
+
48
+ - **Interactive Wizard**: Step-by-step configuration with intelligent defaults
49
+ - **Auto-Detection**: Automatically detects project type, package manager, and tech stack
50
+ - **23 Bundles**: Pre-grouped module sets organized by category (stacks, testing, quality, etc.)
51
+ - **Bundle Categories**: Stack bundles (React+TanStack, Astro, Next.js), API bundles (Hono, Express), testing, quality, and more
52
+ - **Template Configuration**: Interactive setup for `{{PLACEHOLDER}}` values with smart defaults
53
+ - **MCP Server Integration**: Configure Model Context Protocol servers
54
+ - **Permissions System**: Fine-grained control over Claude's capabilities
55
+ - **Code Style Tools**: EditorConfig, Biome, Prettier, and Commitlint configuration
56
+ - **Hooks System**: Notifications when Claude finishes tasks
57
+ - **Bilingual Support**: Spanish and English interfaces
58
+
59
+ ### Modular Architecture
60
+
61
+ | Category | Count | Description |
62
+ |----------|-------|-------------|
63
+ | **Agents** | 23 | Specialized AI agents for different roles |
64
+ | **Skills** | 25 | Reusable capabilities and knowledge |
65
+ | **Commands** | 23 | Slash commands for workflows |
66
+ | **Docs** | 18 | Reference documentation and guides |
67
+ | **MCP Servers** | 9 | External tool integrations |
68
+ | **Bundles** | 23 | Pre-grouped module sets |
69
+
70
+ ### Smart Defaults
71
+
72
+ - **Package Manager Detection**: Automatically detects pnpm, yarn, npm, or bun
73
+ - **Script Detection**: Reads package.json scripts for command defaults
74
+ - **Dependency Detection**: Identifies frameworks and libraries (React, Drizzle, Zod, etc.)
75
+ - **Git Detection**: Checks for git repository and GitHub remotes
76
+ - **Global Defaults**: Save preferences for future projects in `~/.claude/defaults.json`
77
+
78
+ ## What's Included
79
+
80
+ After running `qazuor-claude-config init`, your project will have:
81
+
82
+ ```
83
+ .claude/
84
+ ├── config.json # Configuration storage
85
+ ├── settings.local.json # Local permissions & MCP
86
+ ├── agents/ # 23 specialized AI agents
87
+ │ ├── engineering/ # Backend, frontend, DB engineers
88
+ │ ├── product/ # Product functional & technical
89
+ │ ├── quality/ # QA, debugger
90
+ │ ├── design/ # UX/UI designer
91
+ │ └── specialized/ # SEO, i18n, content, tech writer
92
+ ├── skills/ # 25 development skills
93
+ │ ├── testing/ # TDD, security, performance, QA
94
+ │ ├── development/ # Git, Vercel, Shadcn, diagrams
95
+ │ └── design/ # Brand, errors, markdown, PDF
96
+ ├── commands/ # 23 slash commands
97
+ │ ├── audit/ # Security, performance, accessibility
98
+ │ ├── planning/ # Feature planning, sync, cleanup
99
+ │ ├── git/ # Commit helper
100
+ │ ├── meta/ # Create agent/command/skill, help
101
+ │ └── formatting/ # Markdown formatter
102
+ ├── docs/ # 18 documentation files
103
+ │ ├── workflows/ # Decision tree, phases, protocols
104
+ │ ├── standards/ # Code, testing, docs standards
105
+ │ └── templates/ # PDR, tech analysis, TODOs
106
+ ├── schemas/ # JSON schemas (optional)
107
+ ├── scripts/ # Utility scripts (optional)
108
+ ├── hooks/ # Notification hooks (optional)
109
+ └── sessions/ # Planning sessions (optional)
110
+ └── planning/
111
+ CLAUDE.md # Main Claude instructions
112
+ ```
113
+
114
+ ## Installation
115
+
116
+ ### Global Installation (Recommended)
117
+
118
+ ```bash
119
+ # Using pnpm (recommended)
120
+ pnpm add -g @qazuor/claude-code-config
121
+
122
+ # Using npm
123
+ npm install -g @qazuor/claude-code-config
124
+
125
+ # Using yarn
126
+ yarn global add @qazuor/claude-code-config
127
+
128
+ # Using bun
129
+ bun add -g @qazuor/claude-code-config
130
+ ```
131
+
132
+ ### Using npx (No Installation)
133
+
134
+ ```bash
135
+ npx @qazuor/claude-code-config init
136
+ ```
137
+
138
+ ### Local Development
139
+
140
+ ```bash
141
+ git clone https://github.com/qazuor/claude-code-config.git
142
+ cd claude-code-config
143
+ pnpm install
144
+ pnpm build
145
+ pnpm link --global
146
+ ```
147
+
148
+ ## Quick Start
149
+
150
+ ### Interactive Setup (Recommended)
151
+
152
+ ```bash
153
+ # Initialize in current directory
154
+ qazuor-claude-config init
155
+
156
+ # Initialize in specific directory
157
+ qazuor-claude-config init ./my-project
158
+ ```
159
+
160
+ The wizard will guide you through:
161
+
162
+ 1. **Project Information** - Name, description, organization, entity types
163
+ 2. **Preferences** - Language, co-author settings
164
+ 3. **Scaffold Options** - Claude-only or full project structure
165
+ 4. **Module Selection** - Choose bundles or custom modules
166
+ 5. **Hook Configuration** - Desktop/audio notifications
167
+ 6. **MCP Servers** - External tool integrations
168
+ 7. **Permissions** - What Claude can do
169
+ 8. **Code Style** - EditorConfig, Biome, Prettier, Commitlint
170
+ 9. **Template Configuration** - Auto-detected command/path/target values
171
+
172
+ ### Bundle-based Setup
173
+
174
+ ```bash
175
+ # Quick setup with specific bundles
176
+ qazuor-claude-config init --bundles react-tanstack-stack,testing-complete
177
+
178
+ # Skip all prompts with defaults
179
+ qazuor-claude-config init --bundles hono-drizzle-stack --yes
180
+
181
+ # Preview what would be created
182
+ qazuor-claude-config init --bundles astro-react-stack --dry-run
183
+ ```
184
+
185
+ ### Post-Installation Configuration
186
+
187
+ ```bash
188
+ # Reconfigure template placeholders
189
+ qazuor-claude-config configure
190
+
191
+ # Scan for unconfigured placeholders
192
+ qazuor-claude-config configure --scan
193
+
194
+ # Preview changes without applying
195
+ qazuor-claude-config configure --preview
196
+ ```
197
+
198
+ ## Commands
199
+
200
+ ### `init [path]`
201
+
202
+ Initialize Claude configuration in a project.
203
+
204
+ ```bash
205
+ qazuor-claude-config init [options] [path]
206
+ ```
207
+
208
+ #### Options
209
+
210
+ | Option | Description |
211
+ |--------|-------------|
212
+ | `-b, --bundles <ids>` | Comma-separated bundle IDs (e.g., `react-tanstack-stack,testing-complete`) |
213
+ | `-t, --template <url>` | Remote git repository URL for custom templates |
214
+ | `--branch <name>` | Branch or tag for remote template (default: `main`) |
215
+ | `-y, --yes` | Accept all defaults, skip interactive prompts |
216
+ | `-f, --force` | Overwrite existing configuration |
217
+ | `--dry-run` | Show what would be created without making changes |
218
+ | `--claude-only` | Only create Claude config, skip project scaffolding |
219
+ | `--no-placeholders` | Skip placeholder replacement |
220
+ | `--no-mcp` | Skip MCP server configuration |
221
+ | `-v, --verbose` | Show detailed output |
222
+
223
+ #### Examples
224
+
225
+ ```bash
226
+ # Full interactive setup
227
+ qazuor-claude-config init
228
+
229
+ # Quick setup with bundles
230
+ qazuor-claude-config init --bundles react-tanstack-stack,testing-complete --yes
231
+
232
+ # From custom template repository
233
+ qazuor-claude-config init --template https://github.com/your-org/claude-templates --branch v2.0
234
+
235
+ # Force overwrite existing
236
+ qazuor-claude-config init --bundles hono-drizzle-stack --force
237
+ ```
238
+
239
+ ### `configure`
240
+
241
+ Configure or reconfigure template placeholders interactively.
242
+
243
+ ```bash
244
+ qazuor-claude-config configure [options] [path]
245
+ ```
246
+
247
+ #### Options
248
+
249
+ | Option | Description |
250
+ |--------|-------------|
251
+ | `--scan` | Scan for unconfigured placeholders only |
252
+ | `-c, --category <name>` | Configure specific category: `commands`, `paths`, `targets`, `tracking`, `techStack`, `environment`, `brand` |
253
+ | `--preview` | Preview changes without applying |
254
+ | `--show-defaults` | Show global defaults stored in `~/.claude/defaults.json` |
255
+ | `-v, --verbose` | Show detailed output |
256
+
257
+ #### Examples
258
+
259
+ ```bash
260
+ # Interactive configuration
261
+ qazuor-claude-config configure
262
+
263
+ # Scan for unconfigured placeholders
264
+ qazuor-claude-config configure --scan
265
+
266
+ # Configure only commands
267
+ qazuor-claude-config configure --category commands
268
+
269
+ # Preview what would be replaced
270
+ qazuor-claude-config configure --preview
271
+
272
+ # Show global defaults
273
+ qazuor-claude-config configure --show-defaults
274
+ ```
275
+
276
+ ### `list [type]`
277
+
278
+ List available modules, bundles, or MCP servers.
279
+
280
+ ```bash
281
+ qazuor-claude-config list [options] [type]
282
+ ```
283
+
284
+ #### Types
285
+
286
+ | Type | Description |
287
+ |------|-------------|
288
+ | `agents` | List all 23 available agents |
289
+ | `skills` | List all 25 available skills |
290
+ | `commands` | List all 23 available commands |
291
+ | `docs` | List all 18 documentation modules |
292
+ | `bundles` | List all 23 module bundles |
293
+ | `mcp` | List all 9 MCP servers |
294
+ | *(none)* | List summary of all modules |
295
+
296
+ #### Options
297
+
298
+ | Option | Description |
299
+ |--------|-------------|
300
+ | `-v, --verbose` | Show detailed information |
301
+ | `-j, --json` | Output as JSON |
302
+
303
+ #### Examples
304
+
305
+ ```bash
306
+ # List all modules summary
307
+ qazuor-claude-config list
308
+
309
+ # List agents with details
310
+ qazuor-claude-config list agents --verbose
311
+
312
+ # List bundles
313
+ qazuor-claude-config list bundles
314
+
315
+ # Export as JSON
316
+ qazuor-claude-config list agents --json > agents.json
317
+ ```
318
+
319
+ ### `add <module>`
320
+
321
+ Add a module to the configuration.
322
+
323
+ ```bash
324
+ qazuor-claude-config add [options] <module>
325
+ ```
326
+
327
+ #### Module Format
328
+
329
+ ```
330
+ <category>:<module-id>
331
+
332
+ Categories: agent, skill, command, doc
333
+ ```
334
+
335
+ #### Examples
336
+
337
+ ```bash
338
+ # Add an agent
339
+ qazuor-claude-config add agent:tech-lead
340
+ qazuor-claude-config add agent:prisma-engineer
341
+
342
+ # Add a skill
343
+ qazuor-claude-config add skill:tdd-methodology
344
+
345
+ # Add a command
346
+ qazuor-claude-config add command:security-audit
347
+
348
+ # Force overwrite
349
+ qazuor-claude-config add agent:qa-engineer --force
350
+ ```
351
+
352
+ ### `remove <module>`
353
+
354
+ Remove a module from the configuration.
355
+
356
+ ```bash
357
+ qazuor-claude-config remove [options] <module>
358
+ ```
359
+
360
+ #### Examples
361
+
362
+ ```bash
363
+ # Remove an agent
364
+ qazuor-claude-config remove agent:tech-lead
365
+
366
+ # Remove without confirmation
367
+ qazuor-claude-config remove skill:tdd-methodology --force
368
+ ```
369
+
370
+ ### `status`
371
+
372
+ Show current Claude configuration status.
373
+
374
+ ```bash
375
+ qazuor-claude-config status [options]
376
+ ```
377
+
378
+ #### Options
379
+
380
+ | Option | Description |
381
+ |--------|-------------|
382
+ | `-v, --verbose` | Show detailed configuration |
383
+ | `-j, --json` | Output as JSON |
384
+ | `--path <path>` | Project path (default: current directory) |
385
+
386
+ ### `update`
387
+
388
+ Update configuration and modules.
389
+
390
+ ```bash
391
+ qazuor-claude-config update [options]
392
+ ```
393
+
394
+ #### Options
395
+
396
+ | Option | Description |
397
+ |--------|-------------|
398
+ | `--check` | Check for updates without applying |
399
+ | `--modules` | Update only modules |
400
+ | `--config` | Re-run configuration prompts |
401
+ | `--all` | Update everything |
402
+ | `-f, --force` | Overwrite local changes |
403
+ | `-i, --interactive` | Ask about each change |
404
+
405
+ ## Bundles
406
+
407
+ Bundles are pre-grouped modules for specific use cases. Select them during `init` with `--bundles` or add interactively. The CLI includes 23 bundles organized by category.
408
+
409
+ ### Stack Bundles
410
+
411
+ Complete technology stacks for different project types.
412
+
413
+ | Bundle | Description | Tech Stack |
414
+ |--------|-------------|------------|
415
+ | `react-tanstack-stack` | React + TanStack for SPAs/admin dashboards | React, TanStack Start/Router/Query, TypeScript |
416
+ | `astro-react-stack` | Astro + React for content sites | Astro, React, Tailwind CSS, MDX |
417
+ | `nextjs-prisma-stack` | Full-stack Next.js with Prisma | Next.js, React, Prisma, Tailwind CSS |
418
+ | `express-prisma-stack` | Express API with Prisma ORM | Express.js, Prisma, PostgreSQL, Zod |
419
+ | `hono-drizzle-stack` | Hono API with Drizzle ORM | Hono, Drizzle ORM, PostgreSQL, Zod |
420
+
421
+ ### Testing Bundles
422
+
423
+ | Bundle | Description | Includes |
424
+ |--------|-------------|----------|
425
+ | `testing-complete` | Full testing suite (TDD, E2E, performance, QA) | qa-engineer, tdd-methodology, web-app-testing, api-app-testing, performance-testing, qa-criteria-validator |
426
+ | `testing-minimal` | Essential testing tools | tdd-methodology, api-app-testing, run-tests |
427
+
428
+ ### Quality Bundles
429
+
430
+ | Bundle | Description | Includes |
431
+ |--------|-------------|----------|
432
+ | `quality-complete` | Full QA with security/performance/accessibility audits | qa-engineer, debugger, security-audit, performance-audit, accessibility-audit, review commands |
433
+ | `quality-minimal` | Essential quality checks | quality-check, code-check, review-code |
434
+
435
+ ### Database Bundles
436
+
437
+ | Bundle | Description | Includes |
438
+ |--------|-------------|----------|
439
+ | `drizzle-database` | Drizzle ORM patterns | db-drizzle-engineer, json-data-auditor |
440
+ | `prisma-database` | Prisma ORM patterns | prisma-engineer, json-data-auditor |
441
+ | `mongoose-database` | MongoDB + Mongoose | mongoose-engineer, json-data-auditor |
442
+
443
+ ### API Bundles
444
+
445
+ | Bundle | Description | Includes |
446
+ |--------|-------------|----------|
447
+ | `hono-api` | Hono framework | hono-engineer, api-app-testing, error-handling-patterns |
448
+ | `express-api` | Express.js framework | express-engineer, api-app-testing, error-handling-patterns |
449
+ | `fastify-api` | Fastify framework | fastify-engineer, api-app-testing, error-handling-patterns |
450
+ | `nestjs-api` | NestJS framework | nestjs-engineer, api-app-testing, error-handling-patterns |
451
+
452
+ ### Frontend Bundles
453
+
454
+ | Bundle | Description | Includes |
455
+ |--------|-------------|----------|
456
+ | `react-ui` | React + Shadcn UI | react-senior-dev, ux-ui-designer, shadcn-specialist, brand-guidelines, accessibility-audit |
457
+ | `react-forms` | React Hook Form + Zod | react-senior-dev, react-hook-form-patterns, shadcn-specialist |
458
+ | `react-state-zustand` | Zustand state management | react-senior-dev, zustand-patterns, tanstack-query-patterns |
459
+ | `react-state-redux` | Redux Toolkit | react-senior-dev, redux-toolkit-patterns |
460
+ | `nextjs-auth` | NextAuth.js authentication | nextjs-engineer, nextauth-patterns, security-testing |
461
+ | `nextjs-i18n` | Next.js internationalization | nextjs-engineer, i18n-specialist, i18n-patterns |
462
+
463
+ ### Workflow Bundles
464
+
465
+ | Bundle | Description | Includes |
466
+ |--------|-------------|----------|
467
+ | `planning-complete` | Full planning workflow (PDR, tech analysis, tasks) | product-functional, product-technical, tech-lead, planning commands, templates |
468
+ | `documentation-complete` | Documentation tools | tech-writer, mermaid-diagram-specialist, update-docs, documentation-standards |
469
+ | `git-workflow` | Git commit conventions | git-commit-helper, commit command |
470
+ | `cicd-github-actions` | GitHub Actions CI/CD | github-actions-specialist, cicd-workflows |
471
+
472
+ ## Modules
473
+
474
+ ### Agents (23 Available)
475
+
476
+ Specialized AI agents for different development roles.
477
+
478
+ #### Engineering Agents
479
+
480
+ | ID | Name | Description |
481
+ |----|------|-------------|
482
+ | `tech-lead` | Tech Lead | Architecture, coordination, code review |
483
+ | `hono-engineer` | Hono Engineer | Hono API development |
484
+ | `express-engineer` | Express Engineer | Express.js API development |
485
+ | `fastify-engineer` | Fastify Engineer | Fastify API development |
486
+ | `nestjs-engineer` | NestJS Engineer | NestJS framework development |
487
+ | `db-drizzle-engineer` | Drizzle Engineer | Database with Drizzle ORM |
488
+ | `prisma-engineer` | Prisma Engineer | Database with Prisma ORM |
489
+ | `node-typescript-engineer` | Node/TS Engineer | Node.js/TypeScript development |
490
+ | `astro-engineer` | Astro Engineer | Astro framework development |
491
+ | `tanstack-start-engineer` | TanStack Engineer | TanStack Router/Query |
492
+ | `react-senior-dev` | React Developer | React component development |
493
+
494
+ #### Product Agents
495
+
496
+ | ID | Name | Description |
497
+ |----|------|-------------|
498
+ | `product-functional` | Product Functional | PDR and user requirements |
499
+ | `product-technical` | Product Technical | Technical analysis and task breakdown |
500
+
501
+ #### Quality Agents
502
+
503
+ | ID | Name | Description |
504
+ |----|------|-------------|
505
+ | `qa-engineer` | QA Engineer | Testing and quality assurance |
506
+ | `debugger` | Debugger | Bug investigation and fixing |
507
+
508
+ #### Design Agents
509
+
510
+ | ID | Name | Description |
511
+ |----|------|-------------|
512
+ | `ux-ui-designer` | UX/UI Designer | UI/UX design and implementation |
513
+
514
+ #### Specialized Agents
515
+
516
+ | ID | Name | Description |
517
+ |----|------|-------------|
518
+ | `tech-writer` | Tech Writer | Technical documentation |
519
+ | `seo-ai-specialist` | SEO Specialist | SEO optimization |
520
+ | `i18n-specialist` | i18n Specialist | Internationalization |
521
+ | `content-writer` | Content Writer | Web copywriting |
522
+ | `enrichment-agent` | Enrichment Agent | Data enrichment and planning context |
523
+
524
+ ### Skills (25 Available)
525
+
526
+ Reusable capabilities that can be invoked by agents.
527
+
528
+ #### Testing Skills
529
+
530
+ | ID | Name | Description |
531
+ |----|------|-------------|
532
+ | `tdd-methodology` | TDD Methodology | Test-driven development |
533
+ | `security-testing` | Security Testing | Security vulnerability testing |
534
+ | `performance-testing` | Performance Testing | Performance optimization |
535
+ | `api-app-testing` | API Testing | API testing strategies |
536
+ | `web-app-testing` | Web App Testing | Web application testing |
537
+ | `qa-criteria-validator` | QA Validator | Quality criteria validation |
538
+
539
+ #### Development Skills
540
+
541
+ | ID | Name | Description |
542
+ |----|------|-------------|
543
+ | `git-commit-helper` | Git Commit | Commit message formatting |
544
+ | `vercel-specialist` | Vercel | Vercel deployment |
545
+ | `shadcn-specialist` | Shadcn | Shadcn UI components |
546
+ | `mermaid-diagram-specialist` | Mermaid | Diagram generation |
547
+ | `add-memory` | Add Memory | Context memory |
548
+
549
+ #### Design Skills
550
+
551
+ | ID | Name | Description |
552
+ |----|------|-------------|
553
+ | `brand-guidelines` | Brand Guidelines | Brand consistency |
554
+ | `error-handling-patterns` | Error Handling | Error patterns |
555
+ | `markdown-formatter` | Markdown | Markdown formatting |
556
+ | `pdf-creator-editor` | PDF Editor | PDF manipulation |
557
+ | `json-data-auditor` | JSON Auditor | JSON validation |
558
+
559
+ ### Commands (23 Available)
560
+
561
+ Slash commands for common workflows.
562
+
563
+ #### Quality Commands
564
+
565
+ | Command | Description |
566
+ |---------|-------------|
567
+ | `/quality-check` | Comprehensive quality validation |
568
+ | `/code-check` | Lint + typecheck |
569
+ | `/run-tests` | Execute test suites |
570
+
571
+ #### Audit Commands
572
+
573
+ | Command | Description |
574
+ |---------|-------------|
575
+ | `/security-audit` | OWASP security audit |
576
+ | `/performance-audit` | Performance analysis |
577
+ | `/accessibility-audit` | WCAG compliance audit |
578
+
579
+ #### Planning Commands
580
+
581
+ | Command | Description |
582
+ |---------|-------------|
583
+ | `/start-feature-plan` | Initialize feature planning |
584
+ | `/start-refactor-plan` | Plan refactoring |
585
+ | `/sync-planning` | Sync to issue tracker |
586
+ | `/sync-planning-github` | Sync to GitHub Issues |
587
+ | `/sync-todos-github` | Sync TODOs to GitHub |
588
+ | `/check-completed-tasks` | Auto-detect completed tasks |
589
+ | `/planning-cleanup` | Clean up planning artifacts |
590
+ | `/cleanup-issues` | Clean up stale issues |
591
+
592
+ #### Development Commands
593
+
594
+ | Command | Description |
595
+ |---------|-------------|
596
+ | `/add-new-entity` | Scaffold new entity |
597
+ | `/update-docs` | Update documentation |
598
+ | `/five-why` | Root cause analysis |
599
+
600
+ #### Git Commands
601
+
602
+ | Command | Description |
603
+ |---------|-------------|
604
+ | `/commit` | Generate atomic commit |
605
+
606
+ #### Meta Commands
607
+
608
+ | Command | Description |
609
+ |---------|-------------|
610
+ | `/create-agent` | Create new agent |
611
+ | `/create-command` | Create new command |
612
+ | `/create-skill` | Create new skill |
613
+ | `/help` | Show help information |
614
+
615
+ #### Formatting Commands
616
+
617
+ | Command | Description |
618
+ |---------|-------------|
619
+ | `/format-markdown` | Format markdown files |
620
+
621
+ ### Documentation (18 Available)
622
+
623
+ Reference documentation and workflow guides.
624
+
625
+ | ID | Description |
626
+ |----|-------------|
627
+ | `quick-start` | Quick start guide |
628
+ | `decision-tree` | Workflow decision guide |
629
+ | `quick-fix-protocol` | Level 1 quick fix workflow |
630
+ | `atomic-task-protocol` | Level 2 atomic task workflow |
631
+ | `phase-1-planning` | Planning phase guide |
632
+ | `phase-2-implementation` | Implementation guide |
633
+ | `phase-3-validation` | Validation guide |
634
+ | `phase-4-finalization` | Finalization guide |
635
+ | `code-standards` | Coding standards |
636
+ | `testing-standards` | Testing guidelines |
637
+ | `documentation-standards` | Documentation guidelines |
638
+ | `architecture-patterns` | Architecture patterns |
639
+ | `pdr-template` | Product Definition Report template |
640
+ | `tech-analysis-template` | Technical analysis template |
641
+ | `todos-template` | Task breakdown template |
642
+ | `workflow-diagrams` | Mermaid diagrams |
643
+ | `glossary` | Project terminology |
644
+ | `mcp-servers` | MCP documentation |
645
+
646
+ ## Template Configuration
647
+
648
+ The CLI can auto-configure `{{PLACEHOLDER}}` values in templates by detecting your project setup.
649
+
650
+ ### Configuration Categories
651
+
652
+ | Category | Examples |
653
+ |----------|----------|
654
+ | **Commands** | `{{TYPECHECK_COMMAND}}`, `{{LINT_COMMAND}}`, `{{TEST_COMMAND}}`, `{{COVERAGE_COMMAND}}` |
655
+ | **Paths** | `{{PLANNING_PATH}}`, `{{ARCHIVE_PATH}}`, `{{SCHEMAS_PATH}}` |
656
+ | **Targets** | `{{COVERAGE_TARGET}}`, `{{BUNDLE_SIZE_TARGET}}`, `{{LCP_TARGET}}` |
657
+ | **Tracking** | `{{ISSUE_TRACKER}}`, `{{TRACKING_FILE}}`, `{{TASK_CODE_PATTERN}}` |
658
+ | **Tech Stack** | `{{FRONTEND_FRAMEWORK}}`, `{{DATABASE_ORM}}`, `{{VALIDATION_LIBRARY}}` |
659
+ | **Environment** | `{{GITHUB_TOKEN_ENV}}`, `{{GITHUB_OWNER_ENV}}` |
660
+ | **Brand** | `{{BRAND_NAME}}`, `{{PRIMARY_COLOR}}`, `{{TONE_OF_VOICE}}` |
661
+
662
+ ### Auto-Detection
663
+
664
+ The CLI automatically detects values from:
665
+
666
+ - **package.json scripts**: `typecheck`, `lint`, `test`, `coverage`, `build`
667
+ - **Dependencies**: React, Next.js, Drizzle, Prisma, Zod, Vitest, Jest
668
+ - **Lock files**: pnpm-lock.yaml, yarn.lock, package-lock.json, bun.lockb
669
+ - **Config files**: tsconfig.json, .git directory
670
+
671
+ ### Global Defaults
672
+
673
+ Save configuration as defaults for future projects:
674
+
675
+ ```bash
676
+ # During init, you'll be asked:
677
+ # "Save these values as global defaults for future projects?"
678
+
679
+ # View saved defaults
680
+ qazuor-claude-config configure --show-defaults
681
+ ```
682
+
683
+ Defaults are stored in `~/.claude/defaults.json`.
684
+
685
+ ## MCP Servers
686
+
687
+ Model Context Protocol servers extend Claude's capabilities.
688
+
689
+ | ID | Name | Category | Requires Config |
690
+ |----|------|----------|-----------------|
691
+ | `context7` | Context7 | Documentation | No |
692
+ | `github` | GitHub | Version Control | Yes (`GITHUB_TOKEN`) |
693
+ | `postgres` | PostgreSQL | Database | Yes (`DATABASE_URL`) |
694
+ | `neon` | Neon | Database | Yes (`NEON_API_KEY`) |
695
+ | `vercel` | Vercel | Deployment | Yes (`VERCEL_TOKEN`) |
696
+ | `docker` | Docker | Infrastructure | No |
697
+ | `linear` | Linear | Project Mgmt | Yes (`LINEAR_API_KEY`) |
698
+ | `sentry` | Sentry | Monitoring | Yes (`SENTRY_AUTH_TOKEN`) |
699
+ | `filesystem` | Filesystem | Infrastructure | No |
700
+
701
+ ### Configuration Levels
702
+
703
+ - **User level**: `~/.claude/settings.json` - Available in all projects
704
+ - **Project level**: `.claude/settings.local.json` - Project-specific
705
+
706
+ ```json
707
+ {
708
+ "mcpServers": {
709
+ "context7": {
710
+ "command": "npx",
711
+ "args": ["-y", "@anthropic/context7-mcp"]
712
+ },
713
+ "github": {
714
+ "command": "npx",
715
+ "args": ["-y", "@modelcontextprotocol/server-github"],
716
+ "env": {
717
+ "GITHUB_TOKEN": "${GITHUB_TOKEN}"
718
+ }
719
+ }
720
+ }
721
+ }
722
+ ```
723
+
724
+ ## Permissions
725
+
726
+ Control what Claude can do in your project.
727
+
728
+ ### Presets
729
+
730
+ | Preset | Description |
731
+ |--------|-------------|
732
+ | `default` | Safe defaults - read all, write code/config, no git push |
733
+ | `trust` | Full trust - all operations allowed except push |
734
+ | `restrictive` | Read-only mode - minimal write permissions |
735
+
736
+ ### Permission Categories
737
+
738
+ #### File Operations
739
+
740
+ | Permission | Default | Trust | Restrictive |
741
+ |------------|---------|-------|-------------|
742
+ | Read any file | ✓ | ✓ | ✓ |
743
+ | Write code (.ts, .js, .tsx) | ✓ | ✓ | ✗ |
744
+ | Write config (.json, .yaml) | ✓ | ✓ | ✗ |
745
+ | Write markdown (.md) | ✓ | ✓ | ✗ |
746
+ | Write other files | ✗ | ✓ | ✗ |
747
+
748
+ #### Git Operations
749
+
750
+ | Permission | Default | Trust | Restrictive |
751
+ |------------|---------|-------|-------------|
752
+ | status, diff, log | ✓ | ✓ | ✓ |
753
+ | add (staging) | ✗ | ✓ | ✗ |
754
+ | commit | ✗ | ✓ | ✗ |
755
+ | push | ✗ | ✗ | ✗ |
756
+ | checkout, branch | ✗ | ✓ | ✗ |
757
+
758
+ #### Bash Operations
759
+
760
+ | Permission | Default | Trust | Restrictive |
761
+ |------------|---------|-------|-------------|
762
+ | Package manager | ✓ | ✓ | ✗ |
763
+ | Testing commands | ✓ | ✓ | ✗ |
764
+ | Build commands | ✓ | ✓ | ✗ |
765
+ | Docker commands | ✗ | ✓ | ✗ |
766
+ | Arbitrary commands | ✗ | ✓ | ✗ |
767
+
768
+ ## Code Style
769
+
770
+ Configure code style tools during initialization.
771
+
772
+ ### Available Tools
773
+
774
+ | Tool | Description |
775
+ |------|-------------|
776
+ | **EditorConfig** | Editor-agnostic formatting rules |
777
+ | **Biome** | Fast linter and formatter |
778
+ | **Prettier** | Opinionated code formatter |
779
+ | **Commitlint** | Commit message linting |
780
+
781
+ ### EditorConfig Options
782
+
783
+ - Indent style (tabs/spaces)
784
+ - Indent size
785
+ - Line endings (LF/CRLF)
786
+ - Final newline
787
+ - Trim trailing whitespace
788
+ - Max line length
789
+
790
+ ### Biome Options
791
+
792
+ - Formatter settings (indent, quotes, semicolons)
793
+ - Linter rules (recommended, correctness, security)
794
+ - Import organization
795
+ - Ignore patterns
796
+
797
+ ### Prettier Options
798
+
799
+ - Print width
800
+ - Tab width
801
+ - Semicolons
802
+ - Quote style
803
+ - Trailing commas
804
+ - Bracket spacing
805
+
806
+ ### Commitlint Options
807
+
808
+ - Commit types allowed
809
+ - Scope requirements
810
+ - Header max length
811
+ - Body requirements
812
+ - Husky integration
813
+
814
+ ## Hooks
815
+
816
+ Notification hooks alert you when Claude finishes tasks.
817
+
818
+ ### Available Hooks
819
+
820
+ | Hook | Trigger | Description |
821
+ |------|---------|-------------|
822
+ | `notification` | Task completion | Desktop/audio notifications |
823
+ | `stop` | Claude stops | Beep or custom sound |
824
+ | `subagentStop` | Subagent completes | Background task notifications |
825
+
826
+ ### Configuration
827
+
828
+ ```json
829
+ {
830
+ "hooks": {
831
+ "enabled": true,
832
+ "notification": {
833
+ "desktop": true,
834
+ "audio": true,
835
+ "customCommand": "notify-send 'Claude' '$MESSAGE'"
836
+ },
837
+ "stop": {
838
+ "beep": true,
839
+ "customSound": "/path/to/sound.wav"
840
+ }
841
+ }
842
+ }
843
+ ```
844
+
845
+ ### System Requirements
846
+
847
+ | Feature | Linux | macOS | Windows |
848
+ |---------|-------|-------|---------|
849
+ | Desktop notifications | `libnotify-bin` | Built-in | Built-in |
850
+ | Audio (TTS) | Piper TTS | `say` | SAPI |
851
+ | Audio (beep) | `aplay` | `afplay` | PowerShell |
852
+
853
+ ## Project Structure
854
+
855
+ ```
856
+ your-project/
857
+ ├── .claude/
858
+ │ ├── config.json # Claude Code Config settings
859
+ │ ├── settings.local.json # Local permissions & MCP
860
+ │ ├── agents/ # AI agent definitions
861
+ │ │ ├── engineering/
862
+ │ │ ├── product/
863
+ │ │ ├── quality/
864
+ │ │ ├── design/
865
+ │ │ └── specialized/
866
+ │ ├── skills/ # Skill definitions
867
+ │ │ ├── testing/
868
+ │ │ ├── development/
869
+ │ │ └── design/
870
+ │ ├── commands/ # Slash commands
871
+ │ │ ├── audit/
872
+ │ │ ├── planning/
873
+ │ │ ├── git/
874
+ │ │ ├── meta/
875
+ │ │ └── formatting/
876
+ │ ├── docs/ # Documentation
877
+ │ │ ├── workflows/
878
+ │ │ ├── standards/
879
+ │ │ └── templates/
880
+ │ ├── schemas/ # JSON schemas (optional)
881
+ │ ├── scripts/ # Utility scripts (optional)
882
+ │ ├── hooks/ # Hook scripts (optional)
883
+ │ └── sessions/ # Planning sessions (optional)
884
+ │ └── planning/
885
+ ├── CLAUDE.md # Main Claude instructions
886
+ └── .editorconfig # EditorConfig (optional)
887
+ ```
888
+
889
+ ## Placeholders
890
+
891
+ Templates use two types of placeholders:
892
+
893
+ ### Project Placeholders (Replaced During Init)
894
+
895
+ | Placeholder | Description |
896
+ |-------------|-------------|
897
+ | `[Project Name]` | Project name |
898
+ | `your-org` | GitHub organization |
899
+ | `your-repo` | Repository name |
900
+ | `example.com` | Project domain |
901
+ | `entity` | Primary entity type |
902
+
903
+ ### Template Placeholders (Configured via `configure`)
904
+
905
+ | Placeholder | Example Value |
906
+ |-------------|---------------|
907
+ | `{{TYPECHECK_COMMAND}}` | `pnpm typecheck` |
908
+ | `{{LINT_COMMAND}}` | `pnpm lint` |
909
+ | `{{TEST_COMMAND}}` | `pnpm test` |
910
+ | `{{COVERAGE_TARGET}}` | `90` |
911
+ | `{{ISSUE_TRACKER}}` | `github` |
912
+ | `{{DATABASE_ORM}}` | `Drizzle` |
913
+
914
+ ## Programmatic API
915
+
916
+ Use the library programmatically in Node.js applications.
917
+
918
+ ### Installation
919
+
920
+ ```bash
921
+ npm install @qazuor/claude-code-config
922
+ ```
923
+
924
+ ### Usage
925
+
926
+ ```typescript
927
+ import {
928
+ // Configuration
929
+ readConfig,
930
+ writeConfig,
931
+ hasConfig,
932
+ createDefaultConfig,
933
+
934
+ // Modules
935
+ loadRegistry,
936
+ resolveModules,
937
+ installModules,
938
+
939
+ // Detection
940
+ detectProject,
941
+
942
+ // Placeholders
943
+ replacePlaceholders,
944
+
945
+ // Templates
946
+ processTemplates,
947
+ buildTemplateContext,
948
+
949
+ // Bundles
950
+ resolveBundles,
951
+ resolveBundle,
952
+ mergeBundleSelection,
953
+ BUNDLES,
954
+ getAllBundles,
955
+ getBundleById,
956
+
957
+ // Constants
958
+ MCP_SERVERS,
959
+ DEPENDENCIES,
960
+ PLACEHOLDERS,
961
+ PERMISSION_PRESETS,
962
+ } from '@qazuor/claude-code-config';
963
+
964
+ // Detect project type
965
+ const detection = await detectProject('./my-project');
966
+ console.log(detection.projectType); // 'nextjs', 'astro', 'hono', etc.
967
+ console.log(detection.packageManager); // 'pnpm', 'npm', 'yarn', 'bun'
968
+
969
+ // Resolve bundles to module selections
970
+ const bundleResult = resolveBundles(['react-tanstack-stack', 'testing-complete']);
971
+ console.log(bundleResult.agents); // ['react-senior-dev', 'tanstack-start-engineer', ...]
972
+ console.log(bundleResult.skills); // ['web-app-testing', 'tdd-methodology', ...]
973
+
974
+ // Read/write configuration
975
+ const config = await readConfig('./my-project');
976
+ await writeConfig('./my-project', config);
977
+ ```
978
+
979
+ ### Types
980
+
981
+ ```typescript
982
+ import type {
983
+ // Configuration
984
+ ClaudeConfig,
985
+ ModuleSelection,
986
+ HookConfig,
987
+ TemplateSource,
988
+ Preferences,
989
+ ScaffoldConfig,
990
+ Customizations,
991
+
992
+ // Modules
993
+ ModuleRegistry,
994
+ ModuleDefinition,
995
+ ModuleCategory,
996
+ ResolvedModule,
997
+
998
+ // Bundles
999
+ BundleCategory,
1000
+ BundleDefinition,
1001
+ BundleSelectionResult,
1002
+ ResolvedBundle,
1003
+
1004
+ // Scaffold & Detection
1005
+ ScaffoldType,
1006
+ ProjectType,
1007
+ ScaffoldOptions,
1008
+ ScaffoldResult,
1009
+ ProjectDetectionResult,
1010
+
1011
+ // Templates
1012
+ TemplateContext,
1013
+ TemplateResult,
1014
+ TemplateProcessingReport,
1015
+
1016
+ // MCP & Permissions
1017
+ McpServerDefinition,
1018
+ McpCategory,
1019
+ McpConfigField,
1020
+ McpInstallation,
1021
+ PermissionPreset,
1022
+ PermissionsConfig,
1023
+ } from '@qazuor/claude-code-config';
1024
+ ```
1025
+
1026
+ ## Configuration File
1027
+
1028
+ The main configuration is stored in `.claude/config.json`.
1029
+
1030
+ ```json
1031
+ {
1032
+ "version": "0.1.0",
1033
+ "templateSource": {
1034
+ "type": "local",
1035
+ "installedAt": "2024-01-15T10:30:00.000Z"
1036
+ },
1037
+ "project": {
1038
+ "name": "my-project",
1039
+ "description": "My awesome project",
1040
+ "org": "myorg",
1041
+ "repo": "my-project",
1042
+ "entityType": "product",
1043
+ "entityTypePlural": "products"
1044
+ },
1045
+ "preferences": {
1046
+ "language": "en",
1047
+ "responseLanguage": "en",
1048
+ "includeCoAuthor": true
1049
+ },
1050
+ "mcp": {
1051
+ "level": "project",
1052
+ "servers": [
1053
+ { "serverId": "context7", "level": "project" }
1054
+ ]
1055
+ },
1056
+ "modules": {
1057
+ "agents": { "selected": ["tech-lead", "qa-engineer"], "excluded": [] },
1058
+ "skills": { "selected": ["tdd-methodology"], "excluded": [] },
1059
+ "commands": { "selected": ["quality-check", "commit"], "excluded": [] },
1060
+ "docs": { "selected": ["quick-start"], "excluded": [] }
1061
+ },
1062
+ "extras": {
1063
+ "schemas": true,
1064
+ "scripts": false,
1065
+ "hooks": { "enabled": true, "notification": { "desktop": true } },
1066
+ "sessions": true,
1067
+ "codeStyle": { "enabled": true, "biome": true }
1068
+ },
1069
+ "templateConfig": {
1070
+ "commands": {
1071
+ "typecheck": "pnpm typecheck",
1072
+ "lint": "pnpm lint",
1073
+ "test": "pnpm test"
1074
+ },
1075
+ "targets": {
1076
+ "coverageTarget": 90
1077
+ },
1078
+ "tracking": {
1079
+ "issueTracker": "github"
1080
+ },
1081
+ "techStack": {
1082
+ "frontendFramework": "React",
1083
+ "databaseOrm": "Drizzle",
1084
+ "validationLibrary": "Zod"
1085
+ }
1086
+ }
1087
+ }
1088
+ ```
1089
+
1090
+ ## Custom Templates
1091
+
1092
+ ### Using Remote Templates
1093
+
1094
+ ```bash
1095
+ # Use templates from custom repository
1096
+ qazuor-claude-config init --template https://github.com/your-org/claude-templates
1097
+
1098
+ # Specify branch or tag
1099
+ qazuor-claude-config init --template https://github.com/your-org/claude-templates --branch v2.0
1100
+ ```
1101
+
1102
+ ### Template Structure
1103
+
1104
+ ```
1105
+ your-templates/
1106
+ ├── agents/
1107
+ │ ├── _registry.json
1108
+ │ ├── engineering/
1109
+ │ │ └── *.md
1110
+ │ └── quality/
1111
+ │ └── *.md
1112
+ ├── skills/
1113
+ │ ├── _registry.json
1114
+ │ └── *.md
1115
+ ├── commands/
1116
+ │ ├── _registry.json
1117
+ │ └── *.md
1118
+ ├── docs/
1119
+ │ ├── _registry.json
1120
+ │ └── *.md
1121
+ ├── schemas/
1122
+ │ └── *.json
1123
+ ├── scripts/
1124
+ │ └── *.sh
1125
+ └── hooks/
1126
+ └── *.sh
1127
+ ```
1128
+
1129
+ ### Registry Format
1130
+
1131
+ ```json
1132
+ {
1133
+ "category": "agents",
1134
+ "modules": [
1135
+ {
1136
+ "id": "my-agent",
1137
+ "name": "My Agent",
1138
+ "description": "Description of my agent",
1139
+ "file": "engineering/my-agent.md",
1140
+ "tags": ["engineering", "custom"],
1141
+ "longDescription": "Extended description...",
1142
+ "whatItDoes": ["Action 1", "Action 2"],
1143
+ "whenToUse": "When to use this agent",
1144
+ "skillLevel": "intermediate",
1145
+ "relatedModules": ["other-agent"]
1146
+ }
1147
+ ]
1148
+ }
1149
+ ```
1150
+
1151
+ ## Requirements
1152
+
1153
+ - **Node.js**: >= 18.0.0
1154
+ - **Package Manager**: pnpm, npm, yarn, or bun
1155
+ - **Git**: For version control operations
1156
+
1157
+ ### Optional Dependencies
1158
+
1159
+ | Dependency | Purpose | Installation |
1160
+ |------------|---------|--------------|
1161
+ | `libnotify-bin` | Desktop notifications (Linux) | `apt install libnotify-bin` |
1162
+ | `piper-tts` | Audio notifications | `pip install piper-tts` |
1163
+ | `jq` | JSON processing in hooks | `apt install jq` |
1164
+
1165
+ ## Contributing
1166
+
1167
+ Contributions are welcome! Please follow these guidelines:
1168
+
1169
+ ### Development Setup
1170
+
1171
+ ```bash
1172
+ # Clone repository
1173
+ git clone https://github.com/qazuor/claude-code-config.git
1174
+ cd claude-code-config
1175
+
1176
+ # Install dependencies
1177
+ pnpm install
1178
+
1179
+ # Development mode (watch)
1180
+ pnpm dev
1181
+
1182
+ # Build
1183
+ pnpm build
1184
+
1185
+ # Run linter
1186
+ pnpm lint
1187
+
1188
+ # Fix linting issues
1189
+ pnpm lint:fix
1190
+
1191
+ # Type checking
1192
+ pnpm typecheck
1193
+
1194
+ # Run tests
1195
+ pnpm test
1196
+
1197
+ # Run tests with coverage
1198
+ pnpm test:coverage
1199
+ ```
1200
+
1201
+ ### Contribution Process
1202
+
1203
+ 1. Fork the repository
1204
+ 2. Create a feature branch: `git checkout -b feature/my-feature`
1205
+ 3. Make your changes
1206
+ 4. Run tests: `pnpm test`
1207
+ 5. Run linter: `pnpm lint`
1208
+ 6. Run typecheck: `pnpm typecheck`
1209
+ 7. Commit using conventional commits: `git commit -m 'feat: add my feature'`
1210
+ 8. Push: `git push origin feature/my-feature`
1211
+ 9. Open a Pull Request
1212
+
1213
+ ### Conventional Commits
1214
+
1215
+ Use conventional commit messages:
1216
+
1217
+ - `feat:` - New features
1218
+ - `fix:` - Bug fixes
1219
+ - `docs:` - Documentation changes
1220
+ - `refactor:` - Code refactoring
1221
+ - `test:` - Test additions/changes
1222
+ - `chore:` - Maintenance tasks
1223
+
1224
+ ### Adding New Modules
1225
+
1226
+ 1. Create the module file in the appropriate `templates/` directory
1227
+ 2. Add entry to `_registry.json` with full metadata
1228
+ 3. Update tests if needed
1229
+ 4. Update documentation
1230
+
1231
+ ## License
1232
+
1233
+ MIT License - see [LICENSE](LICENSE) for details.
1234
+
1235
+ ## Author
1236
+
1237
+ **Leandro Asrilevich**
1238
+ - Email: qazuor@gmail.com
1239
+ - GitHub: [@qazuor](https://github.com/qazuor)
1240
+
1241
+ ## Acknowledgments
1242
+
1243
+ - [Anthropic](https://www.anthropic.com/) for Claude
1244
+ - [Commander.js](https://github.com/tj/commander.js/) for CLI framework
1245
+ - [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/) for interactive prompts
1246
+ - [tsup](https://github.com/egoist/tsup) for TypeScript bundling
1247
+ - [Biome](https://biomejs.dev/) for linting and formatting
1248
+ - [Vitest](https://vitest.dev/) for testing