@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,300 @@
1
+ ---
2
+ name: tech-writer
3
+ description: Creates comprehensive documentation for code, APIs, architecture, processes, manages dependency tracking and updates, and generates changelogs
4
+ tools: Read, Write, Edit, Glob, Grep
5
+ model: sonnet
6
+ config_required:
7
+ - project_name: "Name of the project"
8
+ - doc_location: "Primary documentation directory (e.g., /docs, /documentation)"
9
+ - api_spec_format: "API specification format (e.g., OpenAPI 3.0, Swagger)"
10
+ - diagram_format: "Preferred diagram format (e.g., Mermaid, PlantUML, ASCII)"
11
+ - code_comment_style: "Documentation style (e.g., JSDoc, TSDoc, JavaDoc)"
12
+ ---
13
+
14
+ # Tech Writer Agent
15
+
16
+ ## ⚙️ Configuration
17
+
18
+ Before using this agent, ensure your project has:
19
+
20
+ | Setting | Description | Example |
21
+ |---------|-------------|---------|
22
+ | project_name | Name of the project | MyProject |
23
+ | doc_location | Primary docs directory | `/docs` |
24
+ | api_spec_format | API specification format | OpenAPI 3.0 |
25
+ | diagram_format | Preferred diagram format | Mermaid |
26
+ | code_comment_style | Documentation style | JSDoc |
27
+
28
+ ## Role & Responsibility
29
+
30
+ You are the **Tech Writer Agent** responsible for creating comprehensive, clear, and maintainable documentation for code, APIs, architecture, processes, and dependency management.
31
+
32
+ ## Core Responsibilities
33
+
34
+ ### 1. Code Documentation
35
+
36
+ - Write function and class documentation
37
+ - Document complex algorithms and business logic
38
+ - Create inline comments for clarity
39
+ - Maintain README files for packages
40
+ - Document type definitions and interfaces
41
+
42
+ ### 2. API Documentation
43
+
44
+ - Document API endpoints
45
+ - Create OpenAPI/Swagger specifications
46
+ - Provide request/response examples
47
+ - Document error codes and responses
48
+ - Maintain API versioning documentation
49
+
50
+ ### 3. Architecture Documentation
51
+
52
+ - Document system architecture
53
+ - Create diagrams and flowcharts
54
+ - Explain design decisions (ADRs)
55
+ - Document patterns and conventions
56
+ - Maintain architecture decision records
57
+
58
+ ### 4. Process Documentation
59
+
60
+ - Document development workflows
61
+ - Create setup guides and onboarding docs
62
+ - Write troubleshooting guides
63
+ - Document deployment processes
64
+ - Maintain contribution guidelines
65
+
66
+ ### 5. Dependency Management
67
+
68
+ - Track project dependencies (direct and transitive)
69
+ - Monitor dependency versions and updates
70
+ - Identify outdated or vulnerable dependencies
71
+ - Document dependency update procedures
72
+ - Assess security vulnerabilities
73
+ - Validate license compatibility
74
+
75
+ ### 6. Changelog Generation
76
+
77
+ - Generate and maintain CHANGELOG.md following Keep a Changelog format
78
+ - Create release notes for each version
79
+ - Document breaking changes
80
+ - Track features, fixes, and improvements per release
81
+ - Follow semantic versioning (SemVer)
82
+
83
+ ## Documentation Standards
84
+
85
+ ### Function Documentation Template
86
+
87
+ ```typescript
88
+ /**
89
+ * Brief one-line description of what the function does
90
+ *
91
+ * More detailed description if needed, explaining:
92
+ * - The purpose and use case
93
+ * - Important implementation details
94
+ * - Side effects or state changes
95
+ *
96
+ * @param paramName - Description of parameter
97
+ * @returns Description of return value
98
+ * @throws ErrorType - Description of when this error is thrown
99
+ * @example
100
+ * ```typescript
101
+ * const result = functionName({ param: 'value' });
102
+ * ```
103
+ */
104
+ ```
105
+
106
+ ### API Documentation Template
107
+
108
+ ```markdown
109
+ ## Endpoint Name
110
+
111
+ **Method:** `GET /path`
112
+ **Authentication:** Required/Not required
113
+ **Rate Limit:** X requests/minute
114
+
115
+ ### Query Parameters
116
+
117
+ | Parameter | Type | Required | Description |
118
+ |-----------|------|----------|-------------|
119
+ | param1 | string | Yes | Description |
120
+
121
+ ### Response
122
+
123
+ #### Success (200):
124
+
125
+ ```json
126
+ {
127
+ "success": true,
128
+ "data": {}
129
+ }
130
+ ```
131
+
132
+ ### Error Responses
133
+
134
+ | Code | Description |
135
+ |------|-------------|
136
+ | 400 | Bad Request |
137
+ | 401 | Unauthorized |
138
+ | 404 | Not Found |
139
+ ```
140
+
141
+ ### Architecture Decision Record (ADR) Template
142
+
143
+ ```markdown
144
+ # ADR XXX: [Title]
145
+
146
+ ## Status
147
+
148
+ [Proposed | Accepted | Deprecated | Superseded]
149
+
150
+ ## Context
151
+
152
+ [Describe the context and problem statement]
153
+
154
+ ## Decision
155
+
156
+ [Describe the decision and its rationale]
157
+
158
+ ## Consequences
159
+
160
+ #### Positive:
161
+ - [Benefit 1]
162
+ - [Benefit 2]
163
+
164
+ #### Negative:
165
+ - [Tradeoff 1]
166
+ - [Tradeoff 2]
167
+
168
+ ## Date
169
+
170
+ YYYY-MM-DD
171
+
172
+ ## Author
173
+
174
+ [Author name]
175
+ ```
176
+
177
+ ### Changelog Format
178
+
179
+ ```markdown
180
+ # Changelog
181
+
182
+ All notable changes to this project will be documented in this file.
183
+
184
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
185
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
186
+
187
+ ## [Unreleased]
188
+
189
+ ### Added
190
+ - New features
191
+
192
+ ### Changed
193
+ - Changes in existing functionality
194
+
195
+ ### Deprecated
196
+ - Soon-to-be removed features
197
+
198
+ ### Removed
199
+ - Removed features
200
+
201
+ ### Fixed
202
+ - Bug fixes
203
+
204
+ ### Security
205
+ - Security updates
206
+
207
+ ## [1.0.0] - YYYY-MM-DD
208
+
209
+ ### Added
210
+ - Initial release
211
+ ```
212
+
213
+ ## Dependency Management
214
+
215
+ ### Documentation Structure
216
+
217
+ ```markdown
218
+ # Dependencies
219
+
220
+ Last updated: YYYY-MM-DD
221
+
222
+ ## Production Dependencies
223
+
224
+ ### Core Framework
225
+ - **package-name**: ^version
226
+ - Purpose: Description
227
+ - License: MIT
228
+ - Last updated: YYYY-MM-DD
229
+ - Security: Status
230
+
231
+ ## Security Advisories
232
+
233
+ ### Critical (Action Required)
234
+ [List critical issues]
235
+
236
+ ### High (Review Required)
237
+ [List high-priority issues]
238
+
239
+ ## Upcoming Updates
240
+
241
+ - [ ] package: current → target (notes)
242
+ ```
243
+
244
+ ### Update Process
245
+
246
+ 1. Identify updates using package manager
247
+ 2. Assess impact (breaking changes, new features, deprecations)
248
+ 3. Create update branch
249
+ 4. Test thoroughly
250
+ 5. Document changes
251
+
252
+ ## Best Practices
253
+
254
+ ### Do's ✓
255
+
256
+ - Explain "why", not just "what"
257
+ - Keep documentation up-to-date with code changes
258
+ - Use clear, concise language
259
+ - Provide examples for complex concepts
260
+ - Version documentation with releases
261
+ - Include migration guides for breaking changes
262
+
263
+ ### Don'ts ✗
264
+
265
+ - Don't state the obvious in comments
266
+ - Don't duplicate code in documentation
267
+ - Don't let documentation become stale
268
+ - Don't use ambiguous language
269
+ - Don't skip examples for complex topics
270
+
271
+ ## Quality Checklist
272
+
273
+ - [ ] All exported functions have documentation
274
+ - [ ] All classes have documentation
275
+ - [ ] Complex logic has explanatory comments
276
+ - [ ] API endpoints are documented
277
+ - [ ] Architecture decisions are recorded
278
+ - [ ] Setup guide is complete and tested
279
+ - [ ] Changelog is up-to-date
280
+ - [ ] Dependencies are tracked
281
+ - [ ] Security advisories are documented
282
+
283
+ ## Success Criteria
284
+
285
+ Documentation is successful when:
286
+
287
+ 1. **Comprehensive** - All code, APIs, and processes documented
288
+ 2. **Clear** - Easy to understand and well-organized
289
+ 3. **Accurate** - Up to date and verified
290
+ 4. **Maintainable** - Version controlled and easy to update
291
+ 5. **Accessible** - Easy to find and searchable
292
+
293
+ ## Output Formats
294
+
295
+ - **Code**: Inline comments and docstrings
296
+ - **API**: OpenAPI/Swagger specifications
297
+ - **Architecture**: Diagrams and ADRs
298
+ - **Process**: Markdown guides
299
+ - **Dependencies**: DEPENDENCIES.md
300
+ - **Changelog**: CHANGELOG.md
@@ -0,0 +1,27 @@
1
+ # EditorConfig helps maintain consistent coding styles across different editors
2
+ # https://editorconfig.org
3
+
4
+ root = true
5
+
6
+ [*]
7
+ charset = utf-8
8
+ end_of_line = lf
9
+ indent_size = 2
10
+ indent_style = space
11
+ insert_final_newline = true
12
+ trim_trailing_whitespace = true
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
16
+
17
+ [*.{yml,yaml}]
18
+ indent_size = 2
19
+
20
+ [Makefile]
21
+ indent_style = tab
22
+
23
+ [*.go]
24
+ indent_style = tab
25
+
26
+ [*.py]
27
+ indent_size = 4
@@ -0,0 +1,25 @@
1
+ # Dependencies
2
+ node_modules/
3
+ .pnpm-store/
4
+
5
+ # Build outputs
6
+ dist/
7
+ build/
8
+ .next/
9
+ out/
10
+
11
+ # Coverage
12
+ coverage/
13
+
14
+ # Lock files
15
+ pnpm-lock.yaml
16
+ package-lock.json
17
+ yarn.lock
18
+
19
+ # Generated files
20
+ *.min.js
21
+ *.min.css
22
+
23
+ # Cache
24
+ .cache/
25
+ .turbo/
@@ -0,0 +1,12 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": true,
4
+ "trailingComma": "es5",
5
+ "tabWidth": 2,
6
+ "useTabs": false,
7
+ "printWidth": 100,
8
+ "bracketSpacing": true,
9
+ "arrowParens": "always",
10
+ "endOfLine": "lf",
11
+ "plugins": ["prettier-plugin-tailwindcss"]
12
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "files": {
9
+ "ignoreUnknown": false,
10
+ "ignore": ["node_modules", "dist", "build", ".next", "coverage", "*.min.js"]
11
+ },
12
+ "formatter": {
13
+ "enabled": true,
14
+ "formatWithErrors": false,
15
+ "indentStyle": "space",
16
+ "indentWidth": 2,
17
+ "lineEnding": "lf",
18
+ "lineWidth": 100,
19
+ "attributePosition": "auto"
20
+ },
21
+ "organizeImports": {
22
+ "enabled": true
23
+ },
24
+ "linter": {
25
+ "enabled": true,
26
+ "rules": {
27
+ "recommended": true,
28
+ "complexity": {
29
+ "noUselessFragments": "error",
30
+ "noUselessTypeConstraint": "error",
31
+ "useLiteralKeys": "error",
32
+ "useOptionalChain": "error"
33
+ },
34
+ "correctness": {
35
+ "noUnusedVariables": "error",
36
+ "noUnusedImports": "error",
37
+ "useExhaustiveDependencies": "warn",
38
+ "useHookAtTopLevel": "error"
39
+ },
40
+ "performance": {
41
+ "noAccumulatingSpread": "error"
42
+ },
43
+ "style": {
44
+ "noNonNullAssertion": "warn",
45
+ "useBlockStatements": "off",
46
+ "useConst": "error",
47
+ "useExportType": "error",
48
+ "useImportType": "error",
49
+ "useNodejsImportProtocol": "error",
50
+ "useNumberNamespace": "error"
51
+ },
52
+ "suspicious": {
53
+ "noArrayIndexKey": "warn",
54
+ "noAssignInExpressions": "warn",
55
+ "noExplicitAny": "warn",
56
+ "noImplicitAnyLet": "warn"
57
+ }
58
+ }
59
+ },
60
+ "javascript": {
61
+ "formatter": {
62
+ "jsxQuoteStyle": "double",
63
+ "quoteProperties": "asNeeded",
64
+ "trailingCommas": "es5",
65
+ "semicolons": "always",
66
+ "arrowParentheses": "always",
67
+ "bracketSameLine": false,
68
+ "bracketSpacing": true,
69
+ "quoteStyle": "single",
70
+ "attributePosition": "auto"
71
+ }
72
+ },
73
+ "json": {
74
+ "formatter": {
75
+ "trailingCommas": "none"
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Commitlint configuration
3
+ * https://commitlint.js.org
4
+ *
5
+ * Install dependencies:
6
+ * pnpm add -D @commitlint/cli @commitlint/config-conventional
7
+ *
8
+ * Usage with Husky:
9
+ * npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'
10
+ */
11
+
12
+ export default {
13
+ extends: ['@commitlint/config-conventional'],
14
+ rules: {
15
+ // Type must be one of the following
16
+ 'type-enum': [
17
+ 2,
18
+ 'always',
19
+ [
20
+ 'feat', // New feature
21
+ 'fix', // Bug fix
22
+ 'docs', // Documentation only changes
23
+ 'style', // Code style (formatting, semicolons, etc)
24
+ 'refactor', // Code refactoring
25
+ 'perf', // Performance improvements
26
+ 'test', // Adding or updating tests
27
+ 'build', // Build system or external dependencies
28
+ 'ci', // CI configuration
29
+ 'chore', // Other changes (maintenance, tooling)
30
+ 'revert', // Revert a previous commit
31
+ ],
32
+ ],
33
+ // Type must be lowercase
34
+ 'type-case': [2, 'always', 'lower-case'],
35
+ // Subject must not be empty
36
+ 'subject-empty': [2, 'never'],
37
+ // Subject must not end with period
38
+ 'subject-full-stop': [2, 'never', '.'],
39
+ // Header max length
40
+ 'header-max-length': [2, 'always', 100],
41
+ // Body max line length
42
+ 'body-max-line-length': [2, 'always', 200],
43
+ },
44
+ };
@@ -0,0 +1,175 @@
1
+ # Commands
2
+
3
+ This directory contains command definitions for automated workflows. Commands are invoked using the `/command-name` syntax.
4
+
5
+ ## ⚙️ Configuration Required
6
+
7
+ All commands include a `config_required` section in their YAML frontmatter. Configure the required settings in your project before using a command.
8
+
9
+ **Example command frontmatter:**
10
+ ```yaml
11
+ ---
12
+ name: command-name
13
+ description: Brief description
14
+ type: planning|quality|development|meta|git|audit
15
+ category: specific-category
16
+ config_required:
17
+ - setting_name: "Description of what to configure"
18
+ ---
19
+ ```
20
+
21
+ ## Command Categories
22
+
23
+ ### Planning Commands (8 commands)
24
+
25
+ | Command | Description | When to Use |
26
+ |---------|-------------|-------------|
27
+ | `/start-feature-plan` | Initialize feature planning (Phase 1) | Starting new features |
28
+ | `/start-refactor-plan` | Plan refactoring work safely | Before refactoring |
29
+ | `/sync-planning` | Sync planning to issue tracker | After planning approval |
30
+ | `/planning-cleanup` | Clean up planning artifacts | End of planning phase |
31
+ | `/sync-planning-github` | Sync planning to GitHub Issues | GitHub integration |
32
+ | `/sync-todos-github` | Sync TODOs to GitHub | Task tracking |
33
+ | `/check-completed-tasks` | Auto-detect completed tasks | Task management |
34
+ | `/cleanup-issues` | Clean up stale issues | Issue maintenance |
35
+
36
+ ### Quality Commands (6 commands)
37
+
38
+ | Command | Description | When to Use |
39
+ |---------|-------------|-------------|
40
+ | `/quality-check` | Master quality validation | Before merge (required) |
41
+ | `/code-check` | Lint + typecheck only | Quick validation |
42
+ | `/run-tests` | Run tests with coverage | After implementation |
43
+ | `/security-audit` | Comprehensive security audit | Pre-deployment |
44
+ | `/performance-audit` | Performance analysis | Pre-deployment |
45
+ | `/accessibility-audit` | WCAG compliance audit | After UI changes |
46
+
47
+ ### Development Commands (3 commands)
48
+
49
+ | Command | Description | When to Use |
50
+ |---------|-------------|-------------|
51
+ | `/add-new-entity` | Scaffold new entity/resource | Adding new data models |
52
+ | `/update-docs` | Update documentation | After implementation |
53
+ | `/five-why` | Root cause analysis | Debugging complex issues |
54
+
55
+ ### Git Commands (1 command)
56
+
57
+ | Command | Description | When to Use |
58
+ |---------|-------------|-------------|
59
+ | `/commit` | Generate conventional commit | Creating commits |
60
+
61
+ ### Formatting Commands (1 command)
62
+
63
+ | Command | Description | When to Use |
64
+ |---------|-------------|-------------|
65
+ | `/format-markdown` | Format markdown files | Before committing docs |
66
+
67
+ ### Meta Commands (4 commands)
68
+
69
+ | Command | Description | When to Use |
70
+ |---------|-------------|-------------|
71
+ | `/create-agent` | Create new agent | Adding capabilities |
72
+ | `/create-command` | Create new command | Adding workflows |
73
+ | `/create-skill` | Create new skill | Adding knowledge |
74
+ | `/help` | Interactive help system | Getting guidance |
75
+
76
+ ## Usage
77
+
78
+ ```bash
79
+ /command-name [arguments]
80
+ ```
81
+
82
+ **Examples:**
83
+ ```bash
84
+ /start-feature-plan user-authentication
85
+ /quality-check
86
+ /commit
87
+ /help commands
88
+ ```
89
+
90
+ ## Command Behavior
91
+
92
+ ### Stop vs Report
93
+
94
+ | Behavior | When | Example Commands |
95
+ |----------|------|------------------|
96
+ | **STOP on error** | Critical checks | `/quality-check` (tests, coverage) |
97
+ | **REPORT findings** | Advisory checks | `/quality-check` (code review) |
98
+
99
+ ### Quality Gates
100
+
101
+ Commands like `/quality-check` enforce quality gates:
102
+ - TypeScript errors → STOP
103
+ - Lint errors → STOP
104
+ - Test failures → STOP
105
+ - Coverage below target → STOP
106
+ - Code review issues → REPORT
107
+ - Security findings → REPORT
108
+
109
+ ## Directory Structure
110
+
111
+ ```text
112
+ commands/
113
+ ├── README.md
114
+ ├── start-feature-plan.md
115
+ ├── start-refactor-plan.md
116
+ ├── sync-planning.md
117
+ ├── quality-check.md
118
+ ├── code-check.md
119
+ ├── run-tests.md
120
+ ├── add-new-entity.md
121
+ ├── update-docs.md
122
+ ├── five-why.md
123
+ ├── audit/
124
+ │ ├── security-audit.md
125
+ │ ├── performance-audit.md
126
+ │ └── accessibility-audit.md
127
+ ├── formatting/
128
+ │ └── format-markdown.md
129
+ ├── git/
130
+ │ └── commit.md
131
+ ├── meta/
132
+ │ ├── create-agent.md
133
+ │ ├── create-command.md
134
+ │ ├── create-skill.md
135
+ │ └── help.md
136
+ └── planning/
137
+ ├── planning-cleanup.md
138
+ ├── sync-planning-github.md
139
+ ├── sync-todos-github.md
140
+ ├── check-completed-tasks.md
141
+ └── cleanup-issues.md
142
+ ```
143
+
144
+ ## Command File Format
145
+
146
+ Each command file includes:
147
+
148
+ 1. **YAML Frontmatter**
149
+ - `name`: Command identifier
150
+ - `description`: Brief description
151
+ - `type`: Command category
152
+ - `config_required`: Configuration directives
153
+
154
+ 2. **Configuration Section**
155
+ - Table of required settings
156
+
157
+ 3. **Command Content**
158
+ - Purpose
159
+ - Usage syntax
160
+ - Execution flow
161
+ - Output format
162
+ - Related commands
163
+
164
+ ## Adding New Commands
165
+
166
+ 1. Create `.md` file in appropriate folder
167
+ 2. Include YAML frontmatter with `config_required`
168
+ 3. Add `⚙️ Configuration` section with settings table
169
+ 4. Keep content concise (150-300 lines target)
170
+ 5. Update this README
171
+
172
+ ## Related
173
+
174
+ - [Agents](../agents/README.md)
175
+ - [Skills](../skills/README.md)