@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,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: format-markdown
|
|
3
|
+
description: Automatically detect and fix markdown formatting violations
|
|
4
|
+
type: formatting
|
|
5
|
+
category: quality
|
|
6
|
+
config_required:
|
|
7
|
+
- rules_enabled: "Define which markdown rules to enforce"
|
|
8
|
+
- file_patterns: "Specify which files to format"
|
|
9
|
+
- formatting_options: "Configure formatting preferences"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Markdown Format Command
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
Automatically detect and fix markdown formatting violations in documentation files using comprehensive linting rules and context-aware corrections.
|
|
17
|
+
|
|
18
|
+
## ⚙️ Configuration
|
|
19
|
+
|
|
20
|
+
| Setting | Description | Example |
|
|
21
|
+
|---------|-------------|---------|
|
|
22
|
+
| `rules_enabled` | Active markdown rules | `MD007, MD012, MD022, MD040, etc.` |
|
|
23
|
+
| `file_patterns.include` | Files to format | `**/*.md` |
|
|
24
|
+
| `file_patterns.exclude` | Files to skip | `node_modules/**, dist/**` |
|
|
25
|
+
| `list_indentation` | Nested list spacing | `2` |
|
|
26
|
+
| `max_blank_lines` | Consecutive blanks | `1` |
|
|
27
|
+
| `code_language_default` | Fallback language | `text` |
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
/format-markdown [options]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Options
|
|
36
|
+
|
|
37
|
+
- `--file <path>`: Format specific file
|
|
38
|
+
- `--validate-only`: Check without changes
|
|
39
|
+
- `--rules <list>`: Apply specific rules only
|
|
40
|
+
- `--report`: Show detailed report
|
|
41
|
+
|
|
42
|
+
### Examples
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
/format-markdown
|
|
46
|
+
/format-markdown --file path/to/file.md
|
|
47
|
+
/format-markdown --validate-only
|
|
48
|
+
/format-markdown --rules MD040,MD022
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Supported Rules
|
|
52
|
+
|
|
53
|
+
| Rule | Fix | Description |
|
|
54
|
+
|------|-----|-------------|
|
|
55
|
+
| MD007 | Indentation | Normalize list indentation |
|
|
56
|
+
| MD012 | Blank lines | Remove multiple consecutive blanks |
|
|
57
|
+
| MD022 | Spacing | Add blank lines around headings |
|
|
58
|
+
| MD024 | Duplicates | Resolve duplicate headings |
|
|
59
|
+
| MD026 | Punctuation | Remove trailing punctuation in headings |
|
|
60
|
+
| MD031 | Spacing | Add blank lines around code blocks |
|
|
61
|
+
| MD032 | Spacing | Add blank lines around lists |
|
|
62
|
+
| MD040 | Language | Add language to code blocks |
|
|
63
|
+
| MD051 | Links | Fix link fragments |
|
|
64
|
+
| MD058 | Spacing | Add blank lines around tables |
|
|
65
|
+
|
|
66
|
+
## Processing Phases
|
|
67
|
+
|
|
68
|
+
### Phase 1: Analysis
|
|
69
|
+
|
|
70
|
+
- Scan target files
|
|
71
|
+
- Parse markdown AST
|
|
72
|
+
- Apply rule checkers
|
|
73
|
+
- Collect violations
|
|
74
|
+
- Generate fix recommendations
|
|
75
|
+
|
|
76
|
+
### Phase 2: Planning
|
|
77
|
+
|
|
78
|
+
- Determine fix strategy
|
|
79
|
+
- Check for conflicts
|
|
80
|
+
- Prioritize by severity
|
|
81
|
+
- Generate atomic operations
|
|
82
|
+
|
|
83
|
+
### Phase 3: Execution
|
|
84
|
+
|
|
85
|
+
- Create backups
|
|
86
|
+
- Apply fixes in order
|
|
87
|
+
- Validate success
|
|
88
|
+
- Verify no regressions
|
|
89
|
+
|
|
90
|
+
### Phase 4: Validation
|
|
91
|
+
|
|
92
|
+
- Re-scan for violations
|
|
93
|
+
- Confirm semantic preservation
|
|
94
|
+
- Generate report
|
|
95
|
+
- Clean up temporary files
|
|
96
|
+
|
|
97
|
+
## Context-Aware Features
|
|
98
|
+
|
|
99
|
+
### Language Detection
|
|
100
|
+
|
|
101
|
+
**Algorithm**:
|
|
102
|
+
|
|
103
|
+
- Analyze preceding content for language hints
|
|
104
|
+
- Check file extension context
|
|
105
|
+
- Apply language mapping
|
|
106
|
+
- Default to configured fallback
|
|
107
|
+
|
|
108
|
+
**Mappings**:
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
*.ts → typescript
|
|
112
|
+
*.js → javascript
|
|
113
|
+
*.py → python
|
|
114
|
+
*.sql → sql
|
|
115
|
+
*.yml, *.yaml → yaml
|
|
116
|
+
*.json → json
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Duplicate Heading Resolution
|
|
120
|
+
|
|
121
|
+
**Strategies**:
|
|
122
|
+
|
|
123
|
+
1. Contextual prefixes
|
|
124
|
+
2. Numbered suffixes
|
|
125
|
+
3. Semantic alternatives
|
|
126
|
+
4. Manual review flags
|
|
127
|
+
|
|
128
|
+
## Safety Guarantees
|
|
129
|
+
|
|
130
|
+
### Content Preservation
|
|
131
|
+
|
|
132
|
+
- Automatic backup creation
|
|
133
|
+
- Atomic operations
|
|
134
|
+
- Rollback support
|
|
135
|
+
- Encoding safety (UTF-8)
|
|
136
|
+
|
|
137
|
+
### Validation
|
|
138
|
+
|
|
139
|
+
- Semantic verification
|
|
140
|
+
- Link integrity
|
|
141
|
+
- Structure preservation
|
|
142
|
+
- Performance monitoring
|
|
143
|
+
|
|
144
|
+
## Output Format
|
|
145
|
+
|
|
146
|
+
### Summary Report
|
|
147
|
+
|
|
148
|
+
```text
|
|
149
|
+
📊 Markdown Formatting Report
|
|
150
|
+
Files Processed: {count}
|
|
151
|
+
Rules Applied: {count}
|
|
152
|
+
Violations Fixed: {count}
|
|
153
|
+
Processing Time: {time}
|
|
154
|
+
|
|
155
|
+
✅ Successfully formatted: {count}
|
|
156
|
+
⚠️ Warnings: {count}
|
|
157
|
+
❌ Errors: {count}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Detailed Report
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
📝 File-by-File Report
|
|
164
|
+
✅ {filename}
|
|
165
|
+
- MD040: Added {count} language specifications
|
|
166
|
+
- MD022: Added {count} heading blank lines
|
|
167
|
+
- MD031: Added {count} code block blank lines
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Best Practices
|
|
171
|
+
|
|
172
|
+
### Usage
|
|
173
|
+
|
|
174
|
+
1. Run on committed changes
|
|
175
|
+
2. Review critical document changes
|
|
176
|
+
3. Start with specific rules
|
|
177
|
+
4. Ensure team alignment
|
|
178
|
+
5. Integrate into workflow
|
|
179
|
+
|
|
180
|
+
### Maintenance
|
|
181
|
+
|
|
182
|
+
- Regular rule effectiveness review
|
|
183
|
+
- Performance monitoring
|
|
184
|
+
- User feedback incorporation
|
|
185
|
+
- Documentation synchronization
|
|
186
|
+
|
|
187
|
+
## Related Commands
|
|
188
|
+
|
|
189
|
+
- `/quality-check` - Includes markdown validation
|
|
190
|
+
- `/update-docs` - Documentation maintenance
|
|
191
|
+
|
|
192
|
+
## When to Use
|
|
193
|
+
|
|
194
|
+
- Before committing documentation
|
|
195
|
+
- Regular maintenance
|
|
196
|
+
- Before releases
|
|
197
|
+
- CI/CD quality gates
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: commit
|
|
3
|
+
description: Generate conventional commit messages following project standards
|
|
4
|
+
type: git
|
|
5
|
+
category: version-control
|
|
6
|
+
config_required:
|
|
7
|
+
- commit_types: "Define allowed commit types (feat, fix, etc.)"
|
|
8
|
+
- scopes: "Configure project-specific scopes"
|
|
9
|
+
- message_format: "Specify commit message structure"
|
|
10
|
+
- max_lengths: "Define character limits for subject/body"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Commit Command
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
Generate conventional commit messages following project standards, analyze changed files, group changes logically, and provide copy-paste ready git commands.
|
|
18
|
+
|
|
19
|
+
## ⚙️ Configuration
|
|
20
|
+
|
|
21
|
+
| Setting | Description | Example |
|
|
22
|
+
|---------|-------------|---------|
|
|
23
|
+
| `commit_types` | Allowed commit types | `feat, fix, refactor, docs, style, test, build, ci, chore` |
|
|
24
|
+
| `scopes.backend` | Backend scopes | `api, db, services, auth` |
|
|
25
|
+
| `scopes.frontend` | Frontend scopes | `web, admin, components, hooks` |
|
|
26
|
+
| `scopes.shared` | Shared scopes | `types, schemas, config, deps` |
|
|
27
|
+
| `subject_max_length` | Subject line limit | `72` |
|
|
28
|
+
| `body_wrap_length` | Body line wrap | `72` |
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
/commit
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Execution Flow
|
|
37
|
+
|
|
38
|
+
### Step 1: Analyze Git Status
|
|
39
|
+
|
|
40
|
+
**Actions**:
|
|
41
|
+
|
|
42
|
+
- Run `git status` for changed files
|
|
43
|
+
- Run `git diff` for unstaged changes
|
|
44
|
+
- Run `git diff --staged` for staged changes
|
|
45
|
+
- Run `git log` for recent commit style
|
|
46
|
+
|
|
47
|
+
### Step 2: Invoke Commit Helper
|
|
48
|
+
|
|
49
|
+
**Process**:
|
|
50
|
+
|
|
51
|
+
- Analyze changed files
|
|
52
|
+
- Group by logical units
|
|
53
|
+
- Identify commit types and scopes
|
|
54
|
+
- Generate conventional messages
|
|
55
|
+
- Format git commands
|
|
56
|
+
|
|
57
|
+
### Step 3: Present Commit Strategy
|
|
58
|
+
|
|
59
|
+
**Analysis**:
|
|
60
|
+
|
|
61
|
+
1. Changed areas identification
|
|
62
|
+
2. Commit grouping strategy
|
|
63
|
+
3. Conventional format application
|
|
64
|
+
|
|
65
|
+
### Step 4: Generate Commands
|
|
66
|
+
|
|
67
|
+
**Output**: Copy-paste ready git commands
|
|
68
|
+
|
|
69
|
+
## Commit Standards
|
|
70
|
+
|
|
71
|
+
### Format
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
{type}({scope}): {subject}
|
|
75
|
+
|
|
76
|
+
{body}
|
|
77
|
+
|
|
78
|
+
{footer}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Types
|
|
82
|
+
|
|
83
|
+
| Type | Description |
|
|
84
|
+
|------|-------------|
|
|
85
|
+
| `feat` | New feature |
|
|
86
|
+
| `fix` | Bug fix |
|
|
87
|
+
| `refactor` | Code refactoring |
|
|
88
|
+
| `docs` | Documentation |
|
|
89
|
+
| `style` | Code style (no logic change) |
|
|
90
|
+
| `test` | Tests |
|
|
91
|
+
| `build` | Build system |
|
|
92
|
+
| `ci` | CI/CD |
|
|
93
|
+
| `chore` | Other changes |
|
|
94
|
+
|
|
95
|
+
### Scopes
|
|
96
|
+
|
|
97
|
+
Configure based on project structure:
|
|
98
|
+
|
|
99
|
+
- Backend: API, database, services
|
|
100
|
+
- Frontend: Apps, components, pages
|
|
101
|
+
- Shared: Types, config, dependencies
|
|
102
|
+
|
|
103
|
+
## Examples
|
|
104
|
+
|
|
105
|
+
### Single Feature
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
git add {files}
|
|
109
|
+
git commit -m "feat({scope}): {subject}
|
|
110
|
+
|
|
111
|
+
{body}
|
|
112
|
+
|
|
113
|
+
Closes #{issue}"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Multi-Layer Feature
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Commit 1: Schema
|
|
120
|
+
git add {schema_files}
|
|
121
|
+
git commit -m "feat(schemas): add {entity} schemas"
|
|
122
|
+
|
|
123
|
+
# Commit 2: Database
|
|
124
|
+
git add {db_files}
|
|
125
|
+
git commit -m "feat(db): implement {entity} model"
|
|
126
|
+
|
|
127
|
+
# Commit 3: Service
|
|
128
|
+
git add {service_files}
|
|
129
|
+
git commit -m "feat(services): implement {entity} service"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Best Practices
|
|
133
|
+
|
|
134
|
+
### Subject Line
|
|
135
|
+
|
|
136
|
+
**DO**:
|
|
137
|
+
|
|
138
|
+
- Use imperative mood
|
|
139
|
+
- Keep under configured max length
|
|
140
|
+
- Be specific and descriptive
|
|
141
|
+
- Use lowercase for type/scope
|
|
142
|
+
|
|
143
|
+
**DON'T**:
|
|
144
|
+
|
|
145
|
+
- Use past tense
|
|
146
|
+
- Capitalize first letter
|
|
147
|
+
- End with period
|
|
148
|
+
- Be vague
|
|
149
|
+
|
|
150
|
+
### Body
|
|
151
|
+
|
|
152
|
+
**DO**:
|
|
153
|
+
|
|
154
|
+
- Explain why, not what
|
|
155
|
+
- Use bullet points
|
|
156
|
+
- Wrap at configured length
|
|
157
|
+
- Include context
|
|
158
|
+
|
|
159
|
+
**DON'T**:
|
|
160
|
+
|
|
161
|
+
- Describe code (code shows that)
|
|
162
|
+
- Skip for complex changes
|
|
163
|
+
- Mix unrelated changes
|
|
164
|
+
|
|
165
|
+
### Footer
|
|
166
|
+
|
|
167
|
+
**Use for**:
|
|
168
|
+
|
|
169
|
+
- Breaking changes
|
|
170
|
+
- Issue references
|
|
171
|
+
- PR references
|
|
172
|
+
|
|
173
|
+
## Commit Strategy
|
|
174
|
+
|
|
175
|
+
### Decision Tree
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
1. One logical unit?
|
|
179
|
+
YES → Single commit
|
|
180
|
+
NO → Multiple commits
|
|
181
|
+
|
|
182
|
+
2. Group by:
|
|
183
|
+
- Layer (if cross-layer)
|
|
184
|
+
- Feature (if independent)
|
|
185
|
+
- Type (if mixed types)
|
|
186
|
+
|
|
187
|
+
3. Commit order:
|
|
188
|
+
1. Schemas
|
|
189
|
+
2. Database
|
|
190
|
+
3. Services
|
|
191
|
+
4. API
|
|
192
|
+
5. Frontend
|
|
193
|
+
6. Documentation
|
|
194
|
+
7. Configuration
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Output Deliverables
|
|
198
|
+
|
|
199
|
+
1. Git status analysis
|
|
200
|
+
2. Changed files grouped
|
|
201
|
+
3. Commit strategy
|
|
202
|
+
4. Conventional messages
|
|
203
|
+
5. Copy-paste commands
|
|
204
|
+
6. Issue references
|
|
205
|
+
|
|
206
|
+
## Important Notes
|
|
207
|
+
|
|
208
|
+
### Execution
|
|
209
|
+
|
|
210
|
+
**CRITICAL**: Command generates suggestions but DOES NOT execute `git add` automatically.
|
|
211
|
+
|
|
212
|
+
**User must**:
|
|
213
|
+
|
|
214
|
+
1. Review suggestions
|
|
215
|
+
2. Stage files with `git add`
|
|
216
|
+
3. Execute `git commit` commands
|
|
217
|
+
4. Verify with `git log`
|
|
218
|
+
|
|
219
|
+
### When to Run
|
|
220
|
+
|
|
221
|
+
- After feature completion
|
|
222
|
+
- After bugfixes
|
|
223
|
+
- Before pull requests
|
|
224
|
+
- As part of quality workflow
|
|
225
|
+
|
|
226
|
+
## Related Commands
|
|
227
|
+
|
|
228
|
+
- `/quality-check` - Pre-commit validation
|
|
229
|
+
- `/code-check` - Lint/typecheck before commit
|
|
230
|
+
- `/run-tests` - Verify tests pass
|
|
231
|
+
|
|
232
|
+
## Error Prevention
|
|
233
|
+
|
|
234
|
+
### Avoid Committing
|
|
235
|
+
|
|
236
|
+
- Unrelated changes together
|
|
237
|
+
- Debug statements
|
|
238
|
+
- Broken code
|
|
239
|
+
- Secrets/credentials
|
|
240
|
+
- Commented-out code
|
|
241
|
+
|
|
242
|
+
### Always
|
|
243
|
+
|
|
244
|
+
- Run quality checks first
|
|
245
|
+
- Group related changes
|
|
246
|
+
- Write descriptive messages
|
|
247
|
+
- Reference issues
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-agent
|
|
3
|
+
type: meta
|
|
4
|
+
category: system
|
|
5
|
+
description: Interactive wizard to create specialized AI agents
|
|
6
|
+
config_required:
|
|
7
|
+
- agent_categories: "Define available agent categories"
|
|
8
|
+
- model_options: "Configure model preferences (sonnet, opus, haiku)"
|
|
9
|
+
- tool_sets: "Define standard tool combinations"
|
|
10
|
+
- template_types: "Specify agent template types"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Create Agent Command
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
Interactive wizard for creating specialized AI agents following project standards. Ensures proper integration with workflow system and comprehensive documentation.
|
|
18
|
+
|
|
19
|
+
## ⚙️ Configuration
|
|
20
|
+
|
|
21
|
+
| Setting | Description | Example |
|
|
22
|
+
|---------|-------------|---------|
|
|
23
|
+
| `agent_categories` | Available categories | `product, engineering, quality, design, specialized` |
|
|
24
|
+
| `model_options` | Available models | `sonnet, opus, haiku, inherit` |
|
|
25
|
+
| `tool_sets.basic` | Basic tool set | `Read, Write, Edit` |
|
|
26
|
+
| `tool_sets.advanced` | Advanced tool set | `Read, Write, Edit, Bash, Task, Skill` |
|
|
27
|
+
| `template_types` | Agent templates | `technical, product, quality, design` |
|
|
28
|
+
| `base_path` | Agent directory | `.claude/agents/` |
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
/create-agent [options]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Options
|
|
37
|
+
|
|
38
|
+
- `--name <kebab-case>`: Agent name
|
|
39
|
+
- `--category <category>`: Category
|
|
40
|
+
- `--interactive`: Full interactive mode (default)
|
|
41
|
+
- `--template <type>`: Use template
|
|
42
|
+
|
|
43
|
+
## When to Use
|
|
44
|
+
|
|
45
|
+
- New specialized role needed
|
|
46
|
+
- Responsibility gaps identified
|
|
47
|
+
- Separation of concerns required
|
|
48
|
+
- Team expansion
|
|
49
|
+
|
|
50
|
+
## Agent Creation Process
|
|
51
|
+
|
|
52
|
+
### Step 1: Discovery & Planning
|
|
53
|
+
|
|
54
|
+
**Wizard Questions**:
|
|
55
|
+
|
|
56
|
+
1. Agent Name (kebab-case)
|
|
57
|
+
2. Category selection
|
|
58
|
+
3. Primary responsibilities (3-5)
|
|
59
|
+
4. Phase involvement
|
|
60
|
+
5. Required tools
|
|
61
|
+
6. Model preference
|
|
62
|
+
7. Related agents
|
|
63
|
+
|
|
64
|
+
### Step 2: File Generation
|
|
65
|
+
|
|
66
|
+
**File Created**: `{base_path}/{category}/{agent-name}.md`
|
|
67
|
+
|
|
68
|
+
**YAML Frontmatter**:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
---
|
|
72
|
+
name: {agent-name}
|
|
73
|
+
description: {description}
|
|
74
|
+
tools: {tools}
|
|
75
|
+
model: {model}
|
|
76
|
+
responsibilities:
|
|
77
|
+
- {responsibility}
|
|
78
|
+
---
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Structure Sections**:
|
|
82
|
+
|
|
83
|
+
1. Role & Identity
|
|
84
|
+
2. Core Responsibilities
|
|
85
|
+
3. Working Context
|
|
86
|
+
4. Best Practices
|
|
87
|
+
5. Workflow Integration
|
|
88
|
+
6. Quality Standards
|
|
89
|
+
7. Tools & Resources
|
|
90
|
+
8. Examples
|
|
91
|
+
|
|
92
|
+
### Step 3: Integration & Documentation
|
|
93
|
+
|
|
94
|
+
**Updates Required**:
|
|
95
|
+
|
|
96
|
+
- Agent README
|
|
97
|
+
- Main documentation
|
|
98
|
+
- Glossary (if new pattern)
|
|
99
|
+
- Template files (if applicable)
|
|
100
|
+
|
|
101
|
+
### Step 4: Validation
|
|
102
|
+
|
|
103
|
+
**Checks**:
|
|
104
|
+
|
|
105
|
+
- Name follows conventions
|
|
106
|
+
- YAML valid
|
|
107
|
+
- All sections complete
|
|
108
|
+
- Responsibilities clear
|
|
109
|
+
- Tools appropriate
|
|
110
|
+
- No overlap with existing
|
|
111
|
+
- Documentation updated
|
|
112
|
+
|
|
113
|
+
**Test Invocation**: Verify agent loads and functions
|
|
114
|
+
|
|
115
|
+
### Step 5: Commit
|
|
116
|
+
|
|
117
|
+
**Format**:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
feat(agents): add {agent-name} agent
|
|
121
|
+
|
|
122
|
+
- Core responsibilities: {list}
|
|
123
|
+
- Integrates with: {agents}
|
|
124
|
+
- Tools: {tools}
|
|
125
|
+
- Model: {model}
|
|
126
|
+
|
|
127
|
+
Updates:
|
|
128
|
+
- {agent_file} (new)
|
|
129
|
+
- README.md (updated)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Interactive Wizard Flow
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
🤖 Create New Agent Wizard
|
|
136
|
+
|
|
137
|
+
📝 Step 1: Agent Identity
|
|
138
|
+
Agent Name: {input}
|
|
139
|
+
Category: {selection}
|
|
140
|
+
Description: {input}
|
|
141
|
+
|
|
142
|
+
📋 Step 2: Responsibilities
|
|
143
|
+
Enter 3-5 primary responsibilities
|
|
144
|
+
|
|
145
|
+
🔧 Step 3: Configuration
|
|
146
|
+
Tools needed: {selection}
|
|
147
|
+
Model preference: {selection}
|
|
148
|
+
Phase involvement: {selection}
|
|
149
|
+
|
|
150
|
+
🔗 Step 4: Relationships
|
|
151
|
+
Related agents: {input}
|
|
152
|
+
|
|
153
|
+
📝 Step 5: Review & Confirm
|
|
154
|
+
{summary}
|
|
155
|
+
Proceed? (y/n)
|
|
156
|
+
|
|
157
|
+
✨ Creating Agent
|
|
158
|
+
✓ Generated agent file
|
|
159
|
+
✓ Updated documentation
|
|
160
|
+
✓ Validation passed
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Agent Templates
|
|
164
|
+
|
|
165
|
+
### Technical Agent
|
|
166
|
+
|
|
167
|
+
```markdown
|
|
168
|
+
---
|
|
169
|
+
name: {agent-name}
|
|
170
|
+
description: {description}
|
|
171
|
+
tools: Read, Write, Edit, Bash
|
|
172
|
+
model: sonnet
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
# {Agent Name}
|
|
176
|
+
|
|
177
|
+
## Role & Identity
|
|
178
|
+
{role_definition}
|
|
179
|
+
|
|
180
|
+
## Core Responsibilities
|
|
181
|
+
{responsibilities}
|
|
182
|
+
|
|
183
|
+
## Working Context
|
|
184
|
+
{context}
|
|
185
|
+
|
|
186
|
+
## Best Practices
|
|
187
|
+
{practices}
|
|
188
|
+
|
|
189
|
+
[Additional sections...]
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Validation Rules
|
|
193
|
+
|
|
194
|
+
### Agent Name
|
|
195
|
+
|
|
196
|
+
- Format: kebab-case
|
|
197
|
+
- Length: 3-30 characters
|
|
198
|
+
- Pattern: `^[a-z][a-z0-9-]*[a-z0-9]$`
|
|
199
|
+
- Must be unique
|
|
200
|
+
|
|
201
|
+
### YAML Frontmatter
|
|
202
|
+
|
|
203
|
+
**Required**: name, description, tools, model, responsibilities
|
|
204
|
+
|
|
205
|
+
**Valid Tools**: Read, Write, Edit, Glob, Grep, Bash, Task, Skill, mcp__*
|
|
206
|
+
|
|
207
|
+
**Valid Models**: sonnet, opus, haiku, inherit
|
|
208
|
+
|
|
209
|
+
### Directory Structure
|
|
210
|
+
|
|
211
|
+
```text
|
|
212
|
+
{base_path}/
|
|
213
|
+
├── product/
|
|
214
|
+
├── engineering/
|
|
215
|
+
├── quality/
|
|
216
|
+
├── design/
|
|
217
|
+
└── specialized/
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Best Practices
|
|
221
|
+
|
|
222
|
+
### Design
|
|
223
|
+
|
|
224
|
+
- Clear scope definition
|
|
225
|
+
- No overlap with existing
|
|
226
|
+
- Focused responsibilities
|
|
227
|
+
- Comprehensive documentation
|
|
228
|
+
- Multiple examples
|
|
229
|
+
- Actionable checklists
|
|
230
|
+
|
|
231
|
+
### Integration
|
|
232
|
+
|
|
233
|
+
- Clear workflow integration
|
|
234
|
+
- Defined collaboration patterns
|
|
235
|
+
- Explicit input/output protocols
|
|
236
|
+
|
|
237
|
+
## Common Patterns
|
|
238
|
+
|
|
239
|
+
| Type | Category | Tools | Model | Phases |
|
|
240
|
+
|------|----------|-------|-------|--------|
|
|
241
|
+
| Backend | engineering | Read, Write, Edit, Bash | sonnet | Phase 2 |
|
|
242
|
+
| QA | quality | Read, Bash, Skill | sonnet | Phase 3, All |
|
|
243
|
+
| Product | product | Read, Write, Edit | sonnet | Phase 1 |
|
|
244
|
+
|
|
245
|
+
## Related Commands
|
|
246
|
+
|
|
247
|
+
- `/create-command` - Create new command
|
|
248
|
+
- `/create-skill` - Create new skill
|
|
249
|
+
- `/help` - System help
|
|
250
|
+
|
|
251
|
+
## Notes
|
|
252
|
+
|
|
253
|
+
- Consider consolidation before creating new
|
|
254
|
+
- Prefer specialized for deep expertise
|
|
255
|
+
- Only grant needed tools
|
|
256
|
+
- Use sonnet for most cases
|
|
257
|
+
- Test before committing
|