@qazuor/claude-code-config 0.4.0 → 0.6.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 (64) hide show
  1. package/README.md +395 -50
  2. package/dist/bin.cjs +3207 -165
  3. package/dist/bin.cjs.map +1 -1
  4. package/dist/bin.js +3207 -165
  5. package/dist/bin.js.map +1 -1
  6. package/dist/index.cjs +75 -58
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +284 -1
  9. package/dist/index.d.ts +284 -1
  10. package/dist/index.js +75 -58
  11. package/dist/index.js.map +1 -1
  12. package/package.json +24 -24
  13. package/templates/CLAUDE.md.template +60 -5
  14. package/templates/agents/README.md +58 -39
  15. package/templates/agents/_registry.json +43 -202
  16. package/templates/agents/engineering/{hono-engineer.md → api-engineer.md} +61 -70
  17. package/templates/agents/engineering/database-engineer.md +253 -0
  18. package/templates/agents/engineering/frontend-engineer.md +302 -0
  19. package/templates/docs/_registry.json +54 -0
  20. package/templates/docs/standards/code-standards.md +20 -0
  21. package/templates/docs/standards/design-standards.md +13 -0
  22. package/templates/docs/standards/documentation-standards.md +13 -0
  23. package/templates/docs/standards/performance-standards.md +524 -0
  24. package/templates/docs/standards/security-standards.md +496 -0
  25. package/templates/docs/standards/testing-standards.md +15 -0
  26. package/templates/hooks/on-notification.sh +0 -0
  27. package/templates/scripts/add-changelogs.sh +0 -0
  28. package/templates/scripts/generate-code-registry.ts +0 -0
  29. package/templates/scripts/health-check.sh +0 -0
  30. package/templates/scripts/sync-registry.sh +0 -0
  31. package/templates/scripts/telemetry-report.ts +0 -0
  32. package/templates/scripts/validate-docs.sh +0 -0
  33. package/templates/scripts/validate-registry.sh +0 -0
  34. package/templates/scripts/validate-structure.sh +0 -0
  35. package/templates/scripts/worktree-cleanup.sh +0 -0
  36. package/templates/scripts/worktree-create.sh +0 -0
  37. package/templates/skills/README.md +99 -90
  38. package/templates/skills/_registry.json +323 -16
  39. package/templates/skills/api-frameworks/express-patterns.md +411 -0
  40. package/templates/skills/api-frameworks/fastify-patterns.md +419 -0
  41. package/templates/skills/api-frameworks/hono-patterns.md +388 -0
  42. package/templates/skills/api-frameworks/nestjs-patterns.md +497 -0
  43. package/templates/skills/database/drizzle-patterns.md +449 -0
  44. package/templates/skills/database/mongoose-patterns.md +503 -0
  45. package/templates/skills/database/prisma-patterns.md +487 -0
  46. package/templates/skills/frontend-frameworks/astro-patterns.md +415 -0
  47. package/templates/skills/frontend-frameworks/nextjs-patterns.md +470 -0
  48. package/templates/skills/frontend-frameworks/react-patterns.md +516 -0
  49. package/templates/skills/frontend-frameworks/tanstack-start-patterns.md +469 -0
  50. package/templates/skills/patterns/atdd-methodology.md +364 -0
  51. package/templates/skills/patterns/bdd-methodology.md +281 -0
  52. package/templates/skills/patterns/clean-architecture.md +444 -0
  53. package/templates/skills/patterns/hexagonal-architecture.md +567 -0
  54. package/templates/skills/patterns/vertical-slice-architecture.md +502 -0
  55. package/templates/agents/engineering/astro-engineer.md +0 -293
  56. package/templates/agents/engineering/db-drizzle-engineer.md +0 -360
  57. package/templates/agents/engineering/express-engineer.md +0 -316
  58. package/templates/agents/engineering/fastify-engineer.md +0 -399
  59. package/templates/agents/engineering/mongoose-engineer.md +0 -473
  60. package/templates/agents/engineering/nestjs-engineer.md +0 -429
  61. package/templates/agents/engineering/nextjs-engineer.md +0 -451
  62. package/templates/agents/engineering/prisma-engineer.md +0 -432
  63. package/templates/agents/engineering/react-senior-dev.md +0 -394
  64. package/templates/agents/engineering/tanstack-start-engineer.md +0 -447
package/README.md CHANGED
@@ -16,6 +16,7 @@ A comprehensive CLI tool to install and manage Claude Code configurations in you
16
16
  - [Commands](#commands)
17
17
  - [init](#init-path)
18
18
  - [configure](#configure)
19
+ - [standards](#standards)
19
20
  - [list](#list-type)
20
21
  - [add](#add-module)
21
22
  - [remove](#remove-module)
@@ -26,8 +27,11 @@ A comprehensive CLI tool to install and manage Claude Code configurations in you
26
27
  - [Agents](#agents-23-available)
27
28
  - [Skills](#skills-25-available)
28
29
  - [Commands](#commands-23-available)
29
- - [Documentation](#documentation-18-available)
30
+ - [Documentation](#documentation-21-available)
30
31
  - [Template Configuration](#template-configuration)
32
+ - [Standards Configuration](#standards-configuration)
33
+ - [Pre-commit Hooks](#pre-commit-hooks)
34
+ - [Response Style](#response-style)
31
35
  - [MCP Servers](#mcp-servers)
32
36
  - [Permissions](#permissions)
33
37
  - [Code Style](#code-style)
@@ -51,6 +55,9 @@ A comprehensive CLI tool to install and manage Claude Code configurations in you
51
55
  - **23 Bundles**: Pre-grouped module sets organized by category (stacks, testing, quality, etc.)
52
56
  - **Bundle Categories**: Stack bundles (React+TanStack, Astro, Next.js), API bundles (Hono, Express), testing, quality, and more
53
57
  - **Template Configuration**: Interactive setup for `{{PLACEHOLDER}}` values with smart defaults
58
+ - **Standards Wizard**: Configure code, testing, documentation, design, security, and performance standards
59
+ - **Pre-commit Hooks**: Configurable git hooks with lint, typecheck, tests, and custom commands
60
+ - **Response Style**: Configure Claude's tone, verbosity, and communication preferences
54
61
  - **MCP Server Integration**: Configure Model Context Protocol servers
55
62
  - **Permissions System**: Fine-grained control over Claude's capabilities
56
63
  - **Code Style Tools**: EditorConfig, Biome, Prettier, and Commitlint configuration
@@ -61,12 +68,28 @@ A comprehensive CLI tool to install and manage Claude Code configurations in you
61
68
 
62
69
  | Category | Count | Description |
63
70
  |----------|-------|-------------|
64
- | **Agents** | 23 | Specialized AI agents for different roles |
65
- | **Skills** | 25 | Reusable capabilities and knowledge |
71
+ | **Agents** | 15 | Specialized AI agents for different roles (generic + specialized) |
72
+ | **Skills** | 41 | Reusable capabilities including framework-specific patterns |
66
73
  | **Commands** | 23 | Slash commands for workflows |
67
- | **Docs** | 18 | Reference documentation and guides |
74
+ | **Docs** | 21 | Reference documentation and guides |
68
75
  | **MCP Servers** | 27 | External tool integrations |
69
76
  | **Bundles** | 23 | Pre-grouped module sets |
77
+ | **Standards** | 6 | Configurable project standards (code, testing, docs, design, security, performance) |
78
+
79
+ ### Framework-Agnostic Design
80
+
81
+ Agents are designed to be **framework-agnostic** and use **related skills** for framework-specific patterns:
82
+
83
+ - **api-engineer** + `hono-patterns` / `express-patterns` / `fastify-patterns` / `nestjs-patterns`
84
+ - **database-engineer** + `drizzle-patterns` / `prisma-patterns` / `mongoose-patterns`
85
+ - **frontend-engineer** + `react-patterns` / `nextjs-patterns` / `astro-patterns` / `tanstack-start-patterns`
86
+
87
+ ### Intelligent Skill Selection
88
+
89
+ The wizard includes an **intelligent mutual exclusivity system** that:
90
+ - Detects conflicting skills (e.g., TDD vs BDD vs ATDD)
91
+ - Automatically disables incompatible options
92
+ - Allows combining compatible methodologies (e.g., TDD + Clean Architecture)
70
93
 
71
94
  ### Smart Defaults
72
95
 
@@ -83,15 +106,20 @@ After running `qazuor-claude-config init`, your project will have:
83
106
  ```
84
107
  .claude/
85
108
  ├── config.json # Configuration storage
109
+ ├── settings.json # Claude Code settings (model, permissions)
86
110
  ├── settings.local.json # Local permissions & MCP
87
- ├── agents/ # 23 specialized AI agents
88
- │ ├── engineering/ # Backend, frontend, DB engineers
111
+ ├── agents/ # 15 specialized AI agents
112
+ │ ├── engineering/ # Generic engineers (API, Database, Frontend)
89
113
  │ ├── product/ # Product functional & technical
90
114
  │ ├── quality/ # QA, debugger
91
115
  │ ├── design/ # UX/UI designer
92
116
  │ └── specialized/ # SEO, i18n, content, tech writer
93
- ├── skills/ # 25 development skills
117
+ ├── skills/ # 41 development skills
94
118
  │ ├── testing/ # TDD, security, performance, QA
119
+ │ ├── patterns/ # Architecture patterns (Clean, Hexagonal, etc.)
120
+ │ ├── api-frameworks/ # Hono, Express, Fastify, NestJS patterns
121
+ │ ├── database/ # Drizzle, Prisma, Mongoose patterns
122
+ │ ├── frontend-frameworks/ # React, Next.js, Astro, TanStack patterns
95
123
  │ ├── development/ # Git, Vercel, Shadcn, diagrams
96
124
  │ └── design/ # Brand, errors, markdown, PDF
97
125
  ├── commands/ # 23 slash commands
@@ -100,7 +128,7 @@ After running `qazuor-claude-config init`, your project will have:
100
128
  │ ├── git/ # Commit helper
101
129
  │ ├── meta/ # Create agent/command/skill, help
102
130
  │ └── formatting/ # Markdown formatter
103
- ├── docs/ # 18 documentation files
131
+ ├── docs/ # 21 documentation files
104
132
  │ ├── workflows/ # Decision tree, phases, protocols
105
133
  │ ├── standards/ # Code, testing, docs standards
106
134
  │ └── templates/ # PDR, tech analysis, TODOs
@@ -163,12 +191,15 @@ The wizard will guide you through:
163
191
  1. **Project Information** - Name, description, organization, entity types
164
192
  2. **Preferences** - Language, co-author settings
165
193
  3. **Scaffold Options** - Claude-only or full project structure
166
- 4. **Module Selection** - Choose bundles or custom modules
194
+ 4. **Module Selection** - Choose bundles or custom modules (with smart skill selection)
167
195
  5. **Hook Configuration** - Desktop/audio notifications
168
196
  6. **MCP Servers** - External tool integrations
169
197
  7. **Permissions** - What Claude can do
170
198
  8. **Code Style** - EditorConfig, Biome, Prettier, Commitlint
171
- 9. **Template Configuration** - Auto-detected command/path/target values
199
+ 9. **CI/CD** - GitHub Actions workflows
200
+ 10. **Folder Preferences** - Test, planning, docs locations
201
+ 11. **Template Configuration** - Auto-detected command/path/target values
202
+ 12. **Claude Settings** - Model, API choice, permissions, behavior
172
203
 
173
204
  > **Tip**: You can go back to any previous step using the "← Back" option to modify your choices.
174
205
 
@@ -276,6 +307,58 @@ qazuor-claude-config configure --preview
276
307
  qazuor-claude-config configure --show-defaults
277
308
  ```
278
309
 
310
+ ### `standards`
311
+
312
+ Configure project standards interactively. This wizard helps you define code style, testing, documentation, design, security, and performance standards for your project.
313
+
314
+ ```bash
315
+ qazuor-claude-config standards [options] [path]
316
+ ```
317
+
318
+ #### Options
319
+
320
+ | Option | Description |
321
+ |--------|-------------|
322
+ | `--scan` | Scan for unconfigured standard placeholders only |
323
+ | `-c, --category <name>` | Configure specific category: `code`, `testing`, `documentation`, `design`, `security`, `performance` |
324
+ | `--preview` | Preview changes without applying |
325
+ | `--update-templates` | Update/sync templates from package to project (for existing installations) |
326
+ | `-y, --yes` | Accept defaults without prompts |
327
+ | `-v, --verbose` | Show detailed output |
328
+
329
+ #### Categories
330
+
331
+ | Category | Configures |
332
+ |----------|------------|
333
+ | `code` | Indent style, quotes, semicolons, max lines, TypeScript rules |
334
+ | `testing` | Coverage target, TDD, test patterns, test location |
335
+ | `documentation` | JSDoc level, examples, changelog format, comments |
336
+ | `design` | CSS framework, component library, accessibility, dark mode |
337
+ | `security` | Auth pattern, validation library, CSRF, rate limiting |
338
+ | `performance` | Core Web Vitals (LCP, FID, CLS), bundle size, API response time |
339
+
340
+ #### Examples
341
+
342
+ ```bash
343
+ # Full interactive standards wizard
344
+ qazuor-claude-config standards
345
+
346
+ # Configure only code standards
347
+ qazuor-claude-config standards --category code
348
+
349
+ # Scan for unconfigured placeholders
350
+ qazuor-claude-config standards --scan
351
+
352
+ # Preview changes without applying
353
+ qazuor-claude-config standards --preview
354
+
355
+ # Update templates from package (for existing installations)
356
+ qazuor-claude-config standards --update-templates
357
+
358
+ # Accept all defaults
359
+ qazuor-claude-config standards --yes
360
+ ```
361
+
279
362
  ### `list [type]`
280
363
 
281
364
  List available modules, bundles, or MCP servers.
@@ -288,10 +371,10 @@ qazuor-claude-config list [options] [type]
288
371
 
289
372
  | Type | Description |
290
373
  |------|-------------|
291
- | `agents` | List all 23 available agents |
292
- | `skills` | List all 25 available skills |
374
+ | `agents` | List all 15 available agents |
375
+ | `skills` | List all 41 available skills |
293
376
  | `commands` | List all 23 available commands |
294
- | `docs` | List all 18 documentation modules |
377
+ | `docs` | List all 21 documentation modules |
295
378
  | `bundles` | List all 23 module bundles |
296
379
  | `mcp` | List all 27 MCP servers |
297
380
  | *(none)* | List summary of all modules |
@@ -340,10 +423,11 @@ Categories: agent, skill, command, doc
340
423
  ```bash
341
424
  # Add an agent
342
425
  qazuor-claude-config add agent:tech-lead
343
- qazuor-claude-config add agent:prisma-engineer
426
+ qazuor-claude-config add agent:api-engineer
344
427
 
345
428
  # Add a skill
346
429
  qazuor-claude-config add skill:tdd-methodology
430
+ qazuor-claude-config add skill:hono-patterns
347
431
 
348
432
  # Add a command
349
433
  qazuor-claude-config add command:security-audit
@@ -439,29 +523,29 @@ Complete technology stacks for different project types.
439
523
 
440
524
  | Bundle | Description | Includes |
441
525
  |--------|-------------|----------|
442
- | `drizzle-database` | Drizzle ORM patterns | db-drizzle-engineer, json-data-auditor |
443
- | `prisma-database` | Prisma ORM patterns | prisma-engineer, json-data-auditor |
444
- | `mongoose-database` | MongoDB + Mongoose | mongoose-engineer, json-data-auditor |
526
+ | `drizzle-database` | Drizzle ORM patterns | database-engineer, drizzle-patterns, json-data-auditor |
527
+ | `prisma-database` | Prisma ORM patterns | database-engineer, prisma-patterns, json-data-auditor |
528
+ | `mongoose-database` | MongoDB + Mongoose | database-engineer, mongoose-patterns, json-data-auditor |
445
529
 
446
530
  ### API Bundles
447
531
 
448
532
  | Bundle | Description | Includes |
449
533
  |--------|-------------|----------|
450
- | `hono-api` | Hono framework | hono-engineer, api-app-testing, error-handling-patterns |
451
- | `express-api` | Express.js framework | express-engineer, api-app-testing, error-handling-patterns |
452
- | `fastify-api` | Fastify framework | fastify-engineer, api-app-testing, error-handling-patterns |
453
- | `nestjs-api` | NestJS framework | nestjs-engineer, api-app-testing, error-handling-patterns |
534
+ | `hono-api` | Hono framework | api-engineer, hono-patterns, api-app-testing, error-handling-patterns |
535
+ | `express-api` | Express.js framework | api-engineer, express-patterns, api-app-testing, error-handling-patterns |
536
+ | `fastify-api` | Fastify framework | api-engineer, fastify-patterns, api-app-testing, error-handling-patterns |
537
+ | `nestjs-api` | NestJS framework | api-engineer, nestjs-patterns, api-app-testing, error-handling-patterns |
454
538
 
455
539
  ### Frontend Bundles
456
540
 
457
541
  | Bundle | Description | Includes |
458
542
  |--------|-------------|----------|
459
- | `react-ui` | React + Shadcn UI | react-senior-dev, ux-ui-designer, shadcn-specialist, brand-guidelines, accessibility-audit |
460
- | `react-forms` | React Hook Form + Zod | react-senior-dev, react-hook-form-patterns, shadcn-specialist |
461
- | `react-state-zustand` | Zustand state management | react-senior-dev, zustand-patterns, tanstack-query-patterns |
462
- | `react-state-redux` | Redux Toolkit | react-senior-dev, redux-toolkit-patterns |
463
- | `nextjs-auth` | NextAuth.js authentication | nextjs-engineer, nextauth-patterns, security-testing |
464
- | `nextjs-i18n` | Next.js internationalization | nextjs-engineer, i18n-specialist, i18n-patterns |
543
+ | `react-ui` | React + Shadcn UI | frontend-engineer, react-patterns, ux-ui-designer, shadcn-specialist, brand-guidelines, accessibility-audit |
544
+ | `react-forms` | React Hook Form + Zod | frontend-engineer, react-patterns, react-hook-form-patterns, shadcn-specialist |
545
+ | `react-state-zustand` | Zustand state management | frontend-engineer, react-patterns, zustand-patterns, tanstack-query-patterns |
546
+ | `react-state-redux` | Redux Toolkit | frontend-engineer, react-patterns, redux-toolkit-patterns |
547
+ | `nextjs-auth` | NextAuth.js authentication | frontend-engineer, nextjs-patterns, nextauth-patterns, security-testing |
548
+ | `nextjs-i18n` | Next.js internationalization | frontend-engineer, nextjs-patterns, i18n-specialist, i18n-patterns |
465
549
 
466
550
  ### Workflow Bundles
467
551
 
@@ -474,25 +558,19 @@ Complete technology stacks for different project types.
474
558
 
475
559
  ## Modules
476
560
 
477
- ### Agents (23 Available)
561
+ ### Agents (15 Available)
478
562
 
479
- Specialized AI agents for different development roles.
563
+ Specialized AI agents for different development roles. Engineering agents are **framework-agnostic** and use **related skills** for framework-specific patterns.
480
564
 
481
565
  #### Engineering Agents
482
566
 
483
- | ID | Name | Description |
484
- |----|------|-------------|
485
- | `tech-lead` | Tech Lead | Architecture, coordination, code review |
486
- | `hono-engineer` | Hono Engineer | Hono API development |
487
- | `express-engineer` | Express Engineer | Express.js API development |
488
- | `fastify-engineer` | Fastify Engineer | Fastify API development |
489
- | `nestjs-engineer` | NestJS Engineer | NestJS framework development |
490
- | `db-drizzle-engineer` | Drizzle Engineer | Database with Drizzle ORM |
491
- | `prisma-engineer` | Prisma Engineer | Database with Prisma ORM |
492
- | `node-typescript-engineer` | Node/TS Engineer | Node.js/TypeScript development |
493
- | `astro-engineer` | Astro Engineer | Astro framework development |
494
- | `tanstack-start-engineer` | TanStack Engineer | TanStack Router/Query |
495
- | `react-senior-dev` | React Developer | React component development |
567
+ | ID | Name | Description | Related Skills |
568
+ |----|------|-------------|----------------|
569
+ | `tech-lead` | Tech Lead | Architecture, coordination, code review | - |
570
+ | `api-engineer` | API Engineer | Generic backend API development | hono, express, fastify, nestjs patterns |
571
+ | `database-engineer` | Database Engineer | Generic database design and development | drizzle, prisma, mongoose patterns |
572
+ | `frontend-engineer` | Frontend Engineer | Generic frontend development | react, nextjs, astro, tanstack patterns |
573
+ | `node-typescript-engineer` | Node/TS Engineer | Node.js/TypeScript development | - |
496
574
 
497
575
  #### Product Agents
498
576
 
@@ -524,15 +602,62 @@ Specialized AI agents for different development roles.
524
602
  | `content-writer` | Content Writer | Web copywriting |
525
603
  | `enrichment-agent` | Enrichment Agent | Data enrichment and planning context |
526
604
 
527
- ### Skills (25 Available)
605
+ ### Skills (41 Available)
606
+
607
+ Reusable capabilities that can be invoked by agents. Skills are organized by category and some have **mutual exclusivity** constraints.
608
+
609
+ #### Framework-Specific Skills
610
+
611
+ **API Frameworks** (use with api-engineer):
612
+
613
+ | ID | Name | Description |
614
+ |----|------|-------------|
615
+ | `hono-patterns` | Hono Patterns | Hono framework patterns and best practices |
616
+ | `express-patterns` | Express Patterns | Express.js patterns and middleware |
617
+ | `fastify-patterns` | Fastify Patterns | Fastify plugins and hooks |
618
+ | `nestjs-patterns` | NestJS Patterns | NestJS modules, controllers, providers |
619
+
620
+ **Database ORMs** (use with database-engineer):
621
+
622
+ | ID | Name | Description |
623
+ |----|------|-------------|
624
+ | `drizzle-patterns` | Drizzle Patterns | Drizzle ORM schemas and queries |
625
+ | `prisma-patterns` | Prisma Patterns | Prisma client and migrations |
626
+ | `mongoose-patterns` | Mongoose Patterns | Mongoose schemas and models |
627
+
628
+ **Frontend Frameworks** (use with frontend-engineer):
629
+
630
+ | ID | Name | Description |
631
+ |----|------|-------------|
632
+ | `react-patterns` | React Patterns | React hooks, components, state |
633
+ | `nextjs-patterns` | Next.js Patterns | Next.js App Router, SSR, SSG |
634
+ | `astro-patterns` | Astro Patterns | Astro islands, content collections |
635
+ | `tanstack-start-patterns` | TanStack Start | TanStack Router and Query patterns |
636
+
637
+ #### Methodology Skills
638
+
639
+ **Development Methodologies** (mutually exclusive - pick one):
640
+
641
+ | ID | Name | Description |
642
+ |----|------|-------------|
643
+ | `tdd-methodology` | TDD Methodology | Test-driven development (Red-Green-Refactor) |
644
+ | `bdd-methodology` | BDD Methodology | Behavior-driven development with Gherkin |
645
+ | `atdd-methodology` | ATDD Methodology | Acceptance test-driven development |
528
646
 
529
- Reusable capabilities that can be invoked by agents.
647
+ **Architectural Methodologies** (can combine with development methodologies):
648
+
649
+ | ID | Name | Description |
650
+ |----|------|-------------|
651
+ | `clean-architecture` | Clean Architecture | Concentric layers with dependency inversion |
652
+ | `hexagonal-architecture` | Hexagonal Architecture | Ports and Adapters pattern |
653
+ | `vertical-slice-architecture` | Vertical Slice | Feature-based code organization |
654
+
655
+ > **Note:** Clean and Hexagonal are alternatives (similar approaches). Vertical Slice is an alternative to both layered architectures.
530
656
 
531
657
  #### Testing Skills
532
658
 
533
659
  | ID | Name | Description |
534
660
  |----|------|-------------|
535
- | `tdd-methodology` | TDD Methodology | Test-driven development |
536
661
  | `security-testing` | Security Testing | Security vulnerability testing |
537
662
  | `performance-testing` | Performance Testing | Performance optimization |
538
663
  | `api-app-testing` | API Testing | API testing strategies |
@@ -621,7 +746,7 @@ Slash commands for common workflows.
621
746
  |---------|-------------|
622
747
  | `/format-markdown` | Format markdown files |
623
748
 
624
- ### Documentation (18 Available)
749
+ ### Documentation (20 Available)
625
750
 
626
751
  Reference documentation and workflow guides.
627
752
 
@@ -635,9 +760,12 @@ Reference documentation and workflow guides.
635
760
  | `phase-2-implementation` | Implementation guide |
636
761
  | `phase-3-validation` | Validation guide |
637
762
  | `phase-4-finalization` | Finalization guide |
638
- | `code-standards` | Coding standards |
639
- | `testing-standards` | Testing guidelines |
640
- | `documentation-standards` | Documentation guidelines |
763
+ | `code-standards` | Coding standards (configurable) |
764
+ | `testing-standards` | Testing guidelines (configurable) |
765
+ | `documentation-standards` | Documentation guidelines (configurable) |
766
+ | `design-standards` | Design system standards (configurable) |
767
+ | `security-standards` | Security standards (configurable) |
768
+ | `performance-standards` | Performance standards (configurable) |
641
769
  | `architecture-patterns` | Architecture patterns |
642
770
  | `pdr-template` | Product Definition Report template |
643
771
  | `tech-analysis-template` | Technical analysis template |
@@ -685,6 +813,223 @@ qazuor-claude-config configure --show-defaults
685
813
 
686
814
  Defaults are stored in `~/.claude/defaults.json`.
687
815
 
816
+ ## Standards Configuration
817
+
818
+ The standards wizard (`qazuor-claude-config standards`) allows you to configure project-wide standards that are automatically applied to documentation templates.
819
+
820
+ ### Standard Categories
821
+
822
+ #### Code Standards
823
+
824
+ | Setting | Options | Default |
825
+ |---------|---------|---------|
826
+ | Indent Style | `space`, `tab` | `space` |
827
+ | Indent Size | `2`, `4` | `2` |
828
+ | Max Line Length | `80`, `100`, `120` | `100` |
829
+ | Max File Lines | `300`, `500`, `800`, `1000` | `500` |
830
+ | Quote Style | `single`, `double` | `single` |
831
+ | Semicolons | `true`, `false` | `true` |
832
+ | Trailing Commas | `all`, `es5`, `none` | `all` |
833
+ | Allow `any` Type | `true`, `false` | `false` |
834
+ | Named Exports Only | `true`, `false` | `true` |
835
+ | RO-RO Pattern | `true`, `false` | `true` |
836
+ | JSDoc Required | `true`, `false` | `true` |
837
+
838
+ #### Testing Standards
839
+
840
+ | Setting | Options | Default |
841
+ |---------|---------|---------|
842
+ | Coverage Target | `60%`, `70%`, `80%`, `90%`, `95%` | `90%` |
843
+ | TDD Required | `true`, `false` | `true` |
844
+ | Test Pattern | `aaa` (Arrange-Act-Assert), `gwt` (Given-When-Then) | `aaa` |
845
+ | Test Location | `separate` (test/ folder), `colocated` (__tests__) | `separate` |
846
+ | Unit Test Max | `50ms`, `100ms`, `200ms` | `100ms` |
847
+ | Integration Test Max | `500ms`, `1000ms`, `2000ms` | `1000ms` |
848
+
849
+ #### Documentation Standards
850
+
851
+ | Setting | Options | Default |
852
+ |---------|---------|---------|
853
+ | JSDoc Level | `minimal`, `standard`, `comprehensive` | `standard` |
854
+ | Require Examples | `true`, `false` | `true` |
855
+ | Changelog Format | `conventional`, `keepachangelog` | `conventional` |
856
+ | Inline Comment Policy | `why-not-what`, `minimal`, `extensive` | `why-not-what` |
857
+
858
+ #### Design Standards
859
+
860
+ | Setting | Options | Default |
861
+ |---------|---------|---------|
862
+ | CSS Framework | `tailwind`, `css-modules`, `styled-components`, `vanilla` | `tailwind` |
863
+ | Component Library | `shadcn`, `radix`, `headless`, `none` | `shadcn` |
864
+ | Accessibility Level | `A`, `AA`, `AAA` | `AA` |
865
+ | Dark Mode Support | `true`, `false` | `true` |
866
+
867
+ #### Security Standards
868
+
869
+ | Setting | Options | Default |
870
+ |---------|---------|---------|
871
+ | Auth Pattern | `jwt`, `session`, `oauth`, `none` | `jwt` |
872
+ | Input Validation | `zod`, `yup`, `joi`, `manual` | `zod` |
873
+ | CSRF Protection | `true`, `false` | `true` |
874
+ | Rate Limiting | `true`, `false` | `true` |
875
+
876
+ #### Performance Standards
877
+
878
+ | Setting | Options | Default |
879
+ |---------|---------|---------|
880
+ | LCP Target | `1500ms`, `2000ms`, `2500ms`, `4000ms` | `2500ms` |
881
+ | FID Target | `50ms`, `100ms`, `200ms`, `300ms` | `100ms` |
882
+ | CLS Target | `0.05`, `0.1`, `0.15`, `0.25` | `0.1` |
883
+ | Bundle Size Target | `100KB`, `150KB`, `250KB`, `500KB` | `250KB` |
884
+ | API Response Target | `100ms`, `200ms`, `300ms`, `500ms` | `200ms` |
885
+
886
+ ### Presets
887
+
888
+ | Preset | Description |
889
+ |--------|-------------|
890
+ | `strict` | High coverage (95%), strict TypeScript, comprehensive docs |
891
+ | `balanced` | Standard settings for most projects (default) |
892
+ | `relaxed` | Lower coverage (70%), more flexible rules |
893
+ | `startup` | Fast iteration, minimal overhead |
894
+ | `enterprise` | Maximum standards, full documentation |
895
+
896
+ ## Pre-commit Hooks
897
+
898
+ Configurable pre-commit hooks powered by Husky. The wizard generates sophisticated bash scripts based on your configuration.
899
+
900
+ ### Configuration Options
901
+
902
+ | Option | Description | Default |
903
+ |--------|-------------|---------|
904
+ | `enabled` | Enable/disable pre-commit hook | `true` |
905
+ | `lint.enabled` | Run linting | `true` |
906
+ | `lint.stagedOnly` | Only lint staged files | `true` |
907
+ | `lint.tool` | Linting tool (`biome`, `eslint`, `custom`) | `biome` |
908
+ | `typecheck.enabled` | Run TypeScript type checking | `true` |
909
+ | `tests.enabled` | Run tests | `true` |
910
+ | `tests.mode` | Test mode (`none`, `affected`, `all`) | `affected` |
911
+ | `tests.coverageThreshold` | Minimum coverage (0 = disabled) | `0` |
912
+ | `formatCheck.enabled` | Check formatting | `false` |
913
+ | `formatCheck.tool` | Format tool (`biome`, `prettier`, `custom`) | `biome` |
914
+ | `showTiming` | Show execution time for each step | `true` |
915
+ | `continueOnFailure` | Run all checks even if one fails | `false` |
916
+
917
+ ### Custom Commands
918
+
919
+ Add custom validation commands:
920
+
921
+ ```json
922
+ {
923
+ "customCommands": [
924
+ {
925
+ "name": "Security Scan",
926
+ "command": "pnpm audit --audit-level=high",
927
+ "allowFailure": true,
928
+ "order": 50
929
+ }
930
+ ]
931
+ }
932
+ ```
933
+
934
+ ### Presets
935
+
936
+ | Preset | Description |
937
+ |--------|-------------|
938
+ | `minimal` | Lint only (staged files) |
939
+ | `standard` | Lint + typecheck (default) |
940
+ | `strict` | Lint + typecheck + affected tests |
941
+
942
+ ### Generated Hook Example
943
+
944
+ ```bash
945
+ #!/usr/bin/env sh
946
+ . "$(dirname -- "$0")/_/husky.sh"
947
+
948
+ # Pre-commit hook - Generated by @qazuor/claude-code-config
949
+ echo "🔍 Running pre-commit checks..."
950
+
951
+ # Linting
952
+ echo ""
953
+ echo "📝 Linting..."
954
+ step_start
955
+ pnpm biome check --staged --no-errors-on-unmatched || { echo " ❌ Lint failed"; exit 1; }
956
+ echo " ✅ Lint passed"
957
+ step_end
958
+
959
+ # Type checking
960
+ echo ""
961
+ echo "🔷 Type checking..."
962
+ step_start
963
+ pnpm typecheck || { echo " ❌ Type check failed"; exit 1; }
964
+ echo " ✅ Types OK"
965
+ step_end
966
+
967
+ echo ""
968
+ echo "✨ All checks passed!"
969
+ ```
970
+
971
+ ## Response Style
972
+
973
+ Configure Claude's communication style and tone for your project.
974
+
975
+ ### Configuration Options
976
+
977
+ | Option | Description | Options |
978
+ |--------|-------------|---------|
979
+ | `tone` | Overall response tone | `friendly`, `professional`, `formal`, `strict`, `mentor` |
980
+ | `verbosity` | Level of detail in responses | `concise`, `balanced`, `detailed` |
981
+ | `responseLanguage` | Language for responses (code always in English) | `en`, `es`, `auto` |
982
+ | `useEmojis` | Use emojis in responses | `true`, `false` |
983
+ | `errorStyle` | How to report errors | `supportive`, `neutral`, `direct` |
984
+ | `explainReasoning` | Include explanation of "why" | `true`, `false` |
985
+ | `offerAlternatives` | Suggest multiple solutions | `true`, `false` |
986
+ | `proactivity` | Level of unsolicited suggestions | `minimal`, `moderate`, `high` |
987
+ | `confirmBeforeBigChanges` | Ask before major changes | `true`, `false` |
988
+
989
+ ### Tone Options
990
+
991
+ | Tone | Description |
992
+ |------|-------------|
993
+ | `friendly` | Casual, approachable, occasional emojis |
994
+ | `professional` | Professional but accessible |
995
+ | `formal` | Formal, technical language |
996
+ | `strict` | Direct, no-nonsense, to the point |
997
+ | `mentor` | Educational, explains the "why" |
998
+
999
+ ### Presets
1000
+
1001
+ | Preset | Tone | Verbosity | Emojis | Error Style |
1002
+ |--------|------|-----------|--------|-------------|
1003
+ | `friendly` | friendly | balanced | ✓ | supportive |
1004
+ | `professional` | professional | balanced | ✗ | neutral |
1005
+ | `strict` | strict | concise | ✗ | direct |
1006
+ | `mentor` | mentor | detailed | ✗ | supportive |
1007
+
1008
+ ### Generated Guidelines
1009
+
1010
+ The configuration generates guidelines in CLAUDE.md:
1011
+
1012
+ ```markdown
1013
+ ## Response Style
1014
+
1015
+ **Tone:** Professional
1016
+ **Verbosity:** Balanced
1017
+ **Language:** Spanish (code in English)
1018
+ **Emojis:** No
1019
+ **Error Style:** Neutral
1020
+ **Explain Reasoning:** Yes
1021
+ **Offer Alternatives:** Yes
1022
+ **Proactivity:** Moderate
1023
+ **Confirm Big Changes:** Yes
1024
+
1025
+ ### Guidelines
1026
+ - Respond in Spanish, write code/comments in English
1027
+ - Be professional but accessible
1028
+ - Explain the "why" behind decisions
1029
+ - Present alternatives when multiple valid approaches exist
1030
+ - Ask for confirmation before architectural changes
1031
+ ```
1032
+
688
1033
  ## MCP Servers
689
1034
 
690
1035
  Model Context Protocol servers extend Claude's capabilities. All 27 servers are verified npm packages.
@@ -1082,7 +1427,7 @@ import type {
1082
1427
 
1083
1428
  ## Configuration File
1084
1429
 
1085
- The main configuration is stored in `.claude/config.json`.
1430
+ The main configuration is stored in `.claude/qazuor-claude-config.json`.
1086
1431
 
1087
1432
  ```json
1088
1433
  {