@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.
- package/LICENSE +21 -0
- package/README.md +1248 -0
- package/dist/bin.cjs +11886 -0
- package/dist/bin.cjs.map +1 -0
- package/dist/bin.d.cts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +11869 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.cjs +3887 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1325 -0
- package/dist/index.d.ts +1325 -0
- package/dist/index.js +3835 -0
- package/dist/index.js.map +1 -0
- package/package.json +86 -0
- package/templates/.log/notifications.log +1775 -0
- package/templates/agents/README.md +164 -0
- package/templates/agents/_registry.json +443 -0
- package/templates/agents/design/content-writer.md +353 -0
- package/templates/agents/design/ux-ui-designer.md +382 -0
- package/templates/agents/engineering/astro-engineer.md +293 -0
- package/templates/agents/engineering/db-drizzle-engineer.md +360 -0
- package/templates/agents/engineering/express-engineer.md +316 -0
- package/templates/agents/engineering/fastify-engineer.md +399 -0
- package/templates/agents/engineering/hono-engineer.md +263 -0
- package/templates/agents/engineering/mongoose-engineer.md +473 -0
- package/templates/agents/engineering/nestjs-engineer.md +429 -0
- package/templates/agents/engineering/nextjs-engineer.md +451 -0
- package/templates/agents/engineering/node-typescript-engineer.md +347 -0
- package/templates/agents/engineering/prisma-engineer.md +432 -0
- package/templates/agents/engineering/react-senior-dev.md +394 -0
- package/templates/agents/engineering/tanstack-start-engineer.md +447 -0
- package/templates/agents/engineering/tech-lead.md +269 -0
- package/templates/agents/product/product-functional.md +329 -0
- package/templates/agents/product/product-technical.md +578 -0
- package/templates/agents/quality/debugger.md +514 -0
- package/templates/agents/quality/qa-engineer.md +390 -0
- package/templates/agents/specialized/enrichment-agent.md +277 -0
- package/templates/agents/specialized/i18n-specialist.md +322 -0
- package/templates/agents/specialized/seo-ai-specialist.md +387 -0
- package/templates/agents/specialized/tech-writer.md +300 -0
- package/templates/code-style/.editorconfig +27 -0
- package/templates/code-style/.prettierignore +25 -0
- package/templates/code-style/.prettierrc +12 -0
- package/templates/code-style/biome.json +78 -0
- package/templates/code-style/commitlint.config.js +44 -0
- package/templates/commands/README.md +175 -0
- package/templates/commands/_registry.json +420 -0
- package/templates/commands/add-new-entity.md +211 -0
- package/templates/commands/audit/accessibility-audit.md +360 -0
- package/templates/commands/audit/performance-audit.md +290 -0
- package/templates/commands/audit/security-audit.md +231 -0
- package/templates/commands/code-check.md +127 -0
- package/templates/commands/five-why.md +225 -0
- package/templates/commands/formatting/format-markdown.md +197 -0
- package/templates/commands/git/commit.md +247 -0
- package/templates/commands/meta/create-agent.md +257 -0
- package/templates/commands/meta/create-command.md +312 -0
- package/templates/commands/meta/create-skill.md +321 -0
- package/templates/commands/meta/help.md +318 -0
- package/templates/commands/planning/check-completed-tasks.md +224 -0
- package/templates/commands/planning/cleanup-issues.md +248 -0
- package/templates/commands/planning/planning-cleanup.md +251 -0
- package/templates/commands/planning/sync-planning-github.md +133 -0
- package/templates/commands/planning/sync-todos-github.md +203 -0
- package/templates/commands/quality-check.md +211 -0
- package/templates/commands/run-tests.md +159 -0
- package/templates/commands/start-feature-plan.md +232 -0
- package/templates/commands/start-refactor-plan.md +244 -0
- package/templates/commands/sync-planning.md +176 -0
- package/templates/commands/update-docs.md +242 -0
- package/templates/docs/CHECKPOINT-SYSTEM.md +504 -0
- package/templates/docs/INDEX.md +677 -0
- package/templates/docs/RECOMMENDED-HOOKS.md +415 -0
- package/templates/docs/_registry.json +329 -0
- package/templates/docs/diagrams/README.md +220 -0
- package/templates/docs/diagrams/agent-hierarchy.mmd +55 -0
- package/templates/docs/diagrams/documentation-map.mmd +61 -0
- package/templates/docs/diagrams/tools-relationship.mmd +55 -0
- package/templates/docs/diagrams/workflow-decision-tree.mmd +38 -0
- package/templates/docs/doc-sync.md +533 -0
- package/templates/docs/examples/end-to-end-workflow.md +1505 -0
- package/templates/docs/glossary.md +495 -0
- package/templates/docs/guides/mockup-prompt-engineering.md +644 -0
- package/templates/docs/guides/mockup-setup.md +737 -0
- package/templates/docs/learnings/README.md +250 -0
- package/templates/docs/learnings/common-architectural-patterns.md +123 -0
- package/templates/docs/learnings/common-mistakes-to-avoid.md +149 -0
- package/templates/docs/learnings/markdown-formatting-standards.md +104 -0
- package/templates/docs/learnings/monorepo-command-execution.md +64 -0
- package/templates/docs/learnings/optimization-tips.md +146 -0
- package/templates/docs/learnings/planning-linear-sync-workflow.md +70 -0
- package/templates/docs/learnings/shell-compatibility-fish.md +46 -0
- package/templates/docs/learnings/test-organization-structure.md +68 -0
- package/templates/docs/mcp-installation.md +613 -0
- package/templates/docs/mcp-servers.md +989 -0
- package/templates/docs/notification-installation.md +570 -0
- package/templates/docs/quick-start.md +354 -0
- package/templates/docs/standards/architecture-patterns.md +1064 -0
- package/templates/docs/standards/atomic-commits.md +513 -0
- package/templates/docs/standards/code-standards.md +993 -0
- package/templates/docs/standards/design-standards.md +656 -0
- package/templates/docs/standards/documentation-standards.md +1160 -0
- package/templates/docs/standards/testing-standards.md +969 -0
- package/templates/docs/system-maintenance.md +604 -0
- package/templates/docs/templates/PDR-template.md +561 -0
- package/templates/docs/templates/TODOs-template.md +534 -0
- package/templates/docs/templates/tech-analysis-template.md +800 -0
- package/templates/docs/workflows/README.md +519 -0
- package/templates/docs/workflows/atomic-task-protocol.md +955 -0
- package/templates/docs/workflows/decision-tree.md +482 -0
- package/templates/docs/workflows/edge-cases.md +856 -0
- package/templates/docs/workflows/phase-1-planning.md +957 -0
- package/templates/docs/workflows/phase-2-implementation.md +896 -0
- package/templates/docs/workflows/phase-3-validation.md +792 -0
- package/templates/docs/workflows/phase-4-finalization.md +927 -0
- package/templates/docs/workflows/quick-fix-protocol.md +505 -0
- package/templates/docs/workflows/task-atomization.md +537 -0
- package/templates/docs/workflows/task-completion-protocol.md +448 -0
- package/templates/hooks/on-notification.sh +28 -0
- package/templates/schemas/checkpoint.schema.json +97 -0
- package/templates/schemas/code-registry.schema.json +84 -0
- package/templates/schemas/pdr.schema.json +314 -0
- package/templates/schemas/problems.schema.json +55 -0
- package/templates/schemas/tech-analysis.schema.json +404 -0
- package/templates/schemas/telemetry.schema.json +298 -0
- package/templates/schemas/todos.schema.json +234 -0
- package/templates/schemas/workflows.schema.json +69 -0
- package/templates/scripts/add-changelogs.sh +105 -0
- package/templates/scripts/generate-code-registry.ts +270 -0
- package/templates/scripts/health-check.sh +343 -0
- package/templates/scripts/sync-registry.sh +40 -0
- package/templates/scripts/telemetry-report.ts +36 -0
- package/templates/scripts/validate-docs.sh +224 -0
- package/templates/scripts/validate-registry.sh +225 -0
- package/templates/scripts/validate-schemas.ts +283 -0
- package/templates/scripts/validate-structure.sh +165 -0
- package/templates/scripts/worktree-cleanup.sh +81 -0
- package/templates/scripts/worktree-create.sh +63 -0
- package/templates/sessions/planning/.gitkeep +0 -0
- package/templates/sessions/planning/archived/.gitkeep +0 -0
- package/templates/settings.json +202 -0
- package/templates/settings.local.json +138 -0
- package/templates/skills/README.md +197 -0
- package/templates/skills/_registry.json +473 -0
- package/templates/skills/audit/accessibility-audit.md +309 -0
- package/templates/skills/audit/performance-audit.md +257 -0
- package/templates/skills/audit/security-audit.md +217 -0
- package/templates/skills/auth/nextauth-patterns.md +308 -0
- package/templates/skills/brand-guidelines.md +240 -0
- package/templates/skills/documentation/markdown-formatter.md +302 -0
- package/templates/skills/git/git-commit-helper.md +321 -0
- package/templates/skills/i18n/i18n-patterns.md +251 -0
- package/templates/skills/patterns/error-handling-patterns.md +242 -0
- package/templates/skills/patterns/tdd-methodology.md +342 -0
- package/templates/skills/qa/qa-criteria-validator.md +383 -0
- package/templates/skills/qa/web-app-testing.md +398 -0
- package/templates/skills/react/react-hook-form-patterns.md +359 -0
- package/templates/skills/state/redux-toolkit-patterns.md +272 -0
- package/templates/skills/state/tanstack-query-patterns.md +299 -0
- package/templates/skills/state/zustand-patterns.md +301 -0
- package/templates/skills/tech/mermaid-diagram-specialist.md +195 -0
- package/templates/skills/tech/shadcn-specialist.md +252 -0
- package/templates/skills/tech/vercel-specialist.md +297 -0
- package/templates/skills/testing/api-app-testing.md +254 -0
- package/templates/skills/testing/performance-testing.md +275 -0
- package/templates/skills/testing/security-testing.md +348 -0
- package/templates/skills/utils/add-memory.md +295 -0
- package/templates/skills/utils/json-data-auditor.md +283 -0
- package/templates/skills/utils/pdf-creator-editor.md +342 -0
- 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,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)
|