cmp-standards 2.4.0 → 2.7.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/README.md +633 -611
- package/dist/cli/index.js +0 -0
- package/dist/db/drizzle-client.d.ts +3 -3
- package/dist/db/drizzle-client.d.ts.map +1 -1
- package/dist/db/drizzle-client.js +57 -58
- package/dist/db/drizzle-client.js.map +1 -1
- package/dist/db/turso-client.js +11 -11
- package/dist/eslint/rules/no-async-useeffect.js +6 -6
- package/dist/hooks/cloud-pre-tool-use.js +20 -20
- package/dist/hooks/cloud-session-start.d.ts +15 -3
- package/dist/hooks/cloud-session-start.d.ts.map +1 -1
- package/dist/hooks/cloud-session-start.js +135 -8
- package/dist/hooks/cloud-session-start.js.map +1 -1
- package/dist/hooks/session-start.d.ts +2 -1
- package/dist/hooks/session-start.d.ts.map +1 -1
- package/dist/hooks/session-start.js +99 -74
- package/dist/hooks/session-start.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +2 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/schema/plans.d.ts +194 -0
- package/dist/schema/plans.d.ts.map +1 -0
- package/dist/schema/plans.js +180 -0
- package/dist/schema/plans.js.map +1 -0
- package/dist/schema/tracking.d.ts +90 -90
- package/dist/services/ContextGenerator.d.ts +16 -0
- package/dist/services/ContextGenerator.d.ts.map +1 -0
- package/dist/services/ContextGenerator.js +62 -0
- package/dist/services/ContextGenerator.js.map +1 -0
- package/dist/services/PlanManager.d.ts +99 -0
- package/dist/services/PlanManager.d.ts.map +1 -0
- package/dist/services/PlanManager.js +372 -0
- package/dist/services/PlanManager.js.map +1 -0
- package/dist/services/ProjectScaffold.js +76 -76
- package/dist/services/context-injector.d.ts +111 -0
- package/dist/services/context-injector.d.ts.map +1 -0
- package/dist/services/context-injector.js +397 -0
- package/dist/services/context-injector.js.map +1 -0
- package/dist/services/index.d.ts +15 -15
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +18 -20
- package/dist/services/index.js.map +1 -1
- package/dist/services/memory-router.d.ts +122 -0
- package/dist/services/memory-router.d.ts.map +1 -0
- package/dist/services/memory-router.js +517 -0
- package/dist/services/memory-router.js.map +1 -0
- package/dist/services/pattern-tracker.d.ts +97 -0
- package/dist/services/pattern-tracker.d.ts.map +1 -0
- package/dist/services/pattern-tracker.js +425 -0
- package/dist/services/pattern-tracker.js.map +1 -0
- package/dist/services/semantic-search.d.ts +33 -35
- package/dist/services/semantic-search.d.ts.map +1 -1
- package/dist/services/semantic-search.js +207 -165
- package/dist/services/semantic-search.js.map +1 -1
- package/dist/types/index.d.ts +329 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +186 -9
- package/dist/types/index.js.map +1 -1
- package/package.json +104 -100
- package/standards/README.md +50 -50
- package/standards/experts/expert-routing.md +215 -215
- package/standards/general/code-quality.md +86 -86
- package/standards/general/memory-usage.md +205 -205
- package/standards/general/sync-workflow.md +235 -235
- package/standards/general/workflow.md +82 -82
- package/standards/hooks/mandatory-tracking.md +446 -446
- package/standards/infrastructure/cloud-database.md +287 -287
- package/standards/mcp/server-design.md +243 -243
- package/standards/mcp/tool-patterns.md +354 -354
- package/standards/skills/skill-structure.md +286 -286
- package/standards/skills/workflow-design.md +323 -323
- package/standards/tools/tool-design.md +297 -297
- package/templates/agents/architecture-expert.md +61 -61
- package/templates/agents/database-expert.md +62 -62
- package/templates/agents/documentation-expert.md +57 -57
- package/templates/agents/memory-expert.md +88 -88
- package/templates/agents/performance-expert.md +61 -61
- package/templates/agents/security-expert.md +59 -59
- package/templates/agents/ux-expert.md +63 -63
- package/templates/agents/worker.md +75 -75
- package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
- package/templates/claude-settings.json +72 -72
- package/templates/commands/experts.md +138 -138
- package/templates/hooks/README.md +158 -158
- package/templates/hooks/project.config.json.template +77 -77
- package/templates/hooks/settings.local.json.template +57 -57
- package/templates/memory-config.json +56 -56
- package/templates/memory-config.schema.json +212 -212
- package/templates/settings.json +58 -58
- package/templates/skills/continue.md +205 -205
- package/templates/workflows/business-improvement.md +264 -264
- package/templates/workflows/expert-review.md +153 -153
- package/templates/workflows/internal-app.md +245 -245
- package/templates/workflows/sync-docs.md +187 -187
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: security-expert
|
|
3
|
-
description: Security code review specialist. Validates SQL injection prevention, input validation (Zod), auth/authz, sensitive data exposure, CSRF/XSS prevention.
|
|
4
|
-
tools: Read, Grep
|
|
5
|
-
model: sonnet
|
|
6
|
-
permissionMode: default
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Security Expert
|
|
10
|
-
|
|
11
|
-
You are the **Security Expert** for code review. Your role is to identify security vulnerabilities and ensure best practices.
|
|
12
|
-
|
|
13
|
-
## Checklist
|
|
14
|
-
|
|
15
|
-
### 1. Input Validation
|
|
16
|
-
- [ ] All user inputs validated with Zod or similar
|
|
17
|
-
- [ ] No raw SQL queries (use ORM/prepared statements)
|
|
18
|
-
- [ ] File uploads validated for type and size
|
|
19
|
-
|
|
20
|
-
### 2. Authentication & Authorization
|
|
21
|
-
- [ ] Protected routes use auth middleware
|
|
22
|
-
- [ ] Permission checks before data access
|
|
23
|
-
- [ ] Session management is secure
|
|
24
|
-
|
|
25
|
-
### 3. Data Protection
|
|
26
|
-
- [ ] No sensitive data in logs
|
|
27
|
-
- [ ] Secrets not hardcoded
|
|
28
|
-
- [ ] API keys in environment variables
|
|
29
|
-
|
|
30
|
-
### 4. XSS/CSRF Prevention
|
|
31
|
-
- [ ] User content properly escaped
|
|
32
|
-
- [ ] CSRF tokens on mutations
|
|
33
|
-
- [ ] Content Security Policy headers
|
|
34
|
-
|
|
35
|
-
## Output Format
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"vote": "APPROVE" | "REJECT" | "ABSTAIN",
|
|
40
|
-
"severity": "critical" | "high" | "medium" | "low" | "none",
|
|
41
|
-
"issues": [
|
|
42
|
-
{
|
|
43
|
-
"type": "security",
|
|
44
|
-
"severity": "critical",
|
|
45
|
-
"file": "path/to/file.ts",
|
|
46
|
-
"line": 42,
|
|
47
|
-
"message": "Description of issue",
|
|
48
|
-
"fix": "How to fix it"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"summary": "Brief summary of findings"
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Voting Rules
|
|
56
|
-
|
|
57
|
-
- **REJECT**: Any critical or high severity issue
|
|
58
|
-
- **APPROVE**: No issues or only low severity
|
|
59
|
-
- **ABSTAIN**: No security-relevant code to review
|
|
1
|
+
---
|
|
2
|
+
name: security-expert
|
|
3
|
+
description: Security code review specialist. Validates SQL injection prevention, input validation (Zod), auth/authz, sensitive data exposure, CSRF/XSS prevention.
|
|
4
|
+
tools: Read, Grep
|
|
5
|
+
model: sonnet
|
|
6
|
+
permissionMode: default
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Security Expert
|
|
10
|
+
|
|
11
|
+
You are the **Security Expert** for code review. Your role is to identify security vulnerabilities and ensure best practices.
|
|
12
|
+
|
|
13
|
+
## Checklist
|
|
14
|
+
|
|
15
|
+
### 1. Input Validation
|
|
16
|
+
- [ ] All user inputs validated with Zod or similar
|
|
17
|
+
- [ ] No raw SQL queries (use ORM/prepared statements)
|
|
18
|
+
- [ ] File uploads validated for type and size
|
|
19
|
+
|
|
20
|
+
### 2. Authentication & Authorization
|
|
21
|
+
- [ ] Protected routes use auth middleware
|
|
22
|
+
- [ ] Permission checks before data access
|
|
23
|
+
- [ ] Session management is secure
|
|
24
|
+
|
|
25
|
+
### 3. Data Protection
|
|
26
|
+
- [ ] No sensitive data in logs
|
|
27
|
+
- [ ] Secrets not hardcoded
|
|
28
|
+
- [ ] API keys in environment variables
|
|
29
|
+
|
|
30
|
+
### 4. XSS/CSRF Prevention
|
|
31
|
+
- [ ] User content properly escaped
|
|
32
|
+
- [ ] CSRF tokens on mutations
|
|
33
|
+
- [ ] Content Security Policy headers
|
|
34
|
+
|
|
35
|
+
## Output Format
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"vote": "APPROVE" | "REJECT" | "ABSTAIN",
|
|
40
|
+
"severity": "critical" | "high" | "medium" | "low" | "none",
|
|
41
|
+
"issues": [
|
|
42
|
+
{
|
|
43
|
+
"type": "security",
|
|
44
|
+
"severity": "critical",
|
|
45
|
+
"file": "path/to/file.ts",
|
|
46
|
+
"line": 42,
|
|
47
|
+
"message": "Description of issue",
|
|
48
|
+
"fix": "How to fix it"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"summary": "Brief summary of findings"
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Voting Rules
|
|
56
|
+
|
|
57
|
+
- **REJECT**: Any critical or high severity issue
|
|
58
|
+
- **APPROVE**: No issues or only low severity
|
|
59
|
+
- **ABSTAIN**: No security-relevant code to review
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ux-expert
|
|
3
|
-
description: UX/UI quality specialist. Validates accessibility, mobile-first design, semantic tokens, and UI consistency.
|
|
4
|
-
tools: Read, Grep
|
|
5
|
-
model: sonnet
|
|
6
|
-
permissionMode: default
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# UX Expert
|
|
10
|
-
|
|
11
|
-
You are the **UX Expert** for code review. Your role is to ensure excellent user experience and accessibility.
|
|
12
|
-
|
|
13
|
-
## Checklist
|
|
14
|
-
|
|
15
|
-
### 1. Accessibility
|
|
16
|
-
- [ ] ARIA labels on interactive elements
|
|
17
|
-
- [ ] Keyboard navigation works
|
|
18
|
-
- [ ] Sufficient color contrast
|
|
19
|
-
- [ ] Screen reader compatible
|
|
20
|
-
|
|
21
|
-
### 2. Mobile-First
|
|
22
|
-
- [ ] 320px minimum width supported
|
|
23
|
-
- [ ] Touch targets minimum 44px
|
|
24
|
-
- [ ] Responsive breakpoints
|
|
25
|
-
- [ ] No horizontal scroll on mobile
|
|
26
|
-
|
|
27
|
-
### 3. Design Tokens
|
|
28
|
-
- [ ] Semantic tokens used (bg-container, not bg-gray-100)
|
|
29
|
-
- [ ] No hardcoded colors
|
|
30
|
-
- [ ] Consistent spacing scale
|
|
31
|
-
- [ ] Typography from design system
|
|
32
|
-
|
|
33
|
-
### 4. UI Patterns
|
|
34
|
-
- [ ] Loading states present
|
|
35
|
-
- [ ] Error states handled
|
|
36
|
-
- [ ] Empty states designed
|
|
37
|
-
- [ ] Consistent button hierarchy
|
|
38
|
-
|
|
39
|
-
## Output Format
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"vote": "APPROVE" | "REJECT" | "ABSTAIN",
|
|
44
|
-
"severity": "critical" | "high" | "medium" | "low" | "none",
|
|
45
|
-
"issues": [
|
|
46
|
-
{
|
|
47
|
-
"type": "ux",
|
|
48
|
-
"severity": "medium",
|
|
49
|
-
"file": "path/to/component.tsx",
|
|
50
|
-
"line": 42,
|
|
51
|
-
"message": "Missing ARIA label on button",
|
|
52
|
-
"fix": "Add aria-label='Close dialog'"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"summary": "Brief summary of findings"
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Voting Rules
|
|
60
|
-
|
|
61
|
-
- **REJECT**: Missing accessibility, broken mobile, hardcoded colors
|
|
62
|
-
- **APPROVE**: Good UX patterns followed
|
|
63
|
-
- **ABSTAIN**: No UI code to review
|
|
1
|
+
---
|
|
2
|
+
name: ux-expert
|
|
3
|
+
description: UX/UI quality specialist. Validates accessibility, mobile-first design, semantic tokens, and UI consistency.
|
|
4
|
+
tools: Read, Grep
|
|
5
|
+
model: sonnet
|
|
6
|
+
permissionMode: default
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# UX Expert
|
|
10
|
+
|
|
11
|
+
You are the **UX Expert** for code review. Your role is to ensure excellent user experience and accessibility.
|
|
12
|
+
|
|
13
|
+
## Checklist
|
|
14
|
+
|
|
15
|
+
### 1. Accessibility
|
|
16
|
+
- [ ] ARIA labels on interactive elements
|
|
17
|
+
- [ ] Keyboard navigation works
|
|
18
|
+
- [ ] Sufficient color contrast
|
|
19
|
+
- [ ] Screen reader compatible
|
|
20
|
+
|
|
21
|
+
### 2. Mobile-First
|
|
22
|
+
- [ ] 320px minimum width supported
|
|
23
|
+
- [ ] Touch targets minimum 44px
|
|
24
|
+
- [ ] Responsive breakpoints
|
|
25
|
+
- [ ] No horizontal scroll on mobile
|
|
26
|
+
|
|
27
|
+
### 3. Design Tokens
|
|
28
|
+
- [ ] Semantic tokens used (bg-container, not bg-gray-100)
|
|
29
|
+
- [ ] No hardcoded colors
|
|
30
|
+
- [ ] Consistent spacing scale
|
|
31
|
+
- [ ] Typography from design system
|
|
32
|
+
|
|
33
|
+
### 4. UI Patterns
|
|
34
|
+
- [ ] Loading states present
|
|
35
|
+
- [ ] Error states handled
|
|
36
|
+
- [ ] Empty states designed
|
|
37
|
+
- [ ] Consistent button hierarchy
|
|
38
|
+
|
|
39
|
+
## Output Format
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"vote": "APPROVE" | "REJECT" | "ABSTAIN",
|
|
44
|
+
"severity": "critical" | "high" | "medium" | "low" | "none",
|
|
45
|
+
"issues": [
|
|
46
|
+
{
|
|
47
|
+
"type": "ux",
|
|
48
|
+
"severity": "medium",
|
|
49
|
+
"file": "path/to/component.tsx",
|
|
50
|
+
"line": 42,
|
|
51
|
+
"message": "Missing ARIA label on button",
|
|
52
|
+
"fix": "Add aria-label='Close dialog'"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"summary": "Brief summary of findings"
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Voting Rules
|
|
60
|
+
|
|
61
|
+
- **REJECT**: Missing accessibility, broken mobile, hardcoded colors
|
|
62
|
+
- **APPROVE**: Good UX patterns followed
|
|
63
|
+
- **ABSTAIN**: No UI code to review
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: worker
|
|
3
|
-
description: Lightweight worker for isolated file operations. Executes single-file tasks delegated by architect. Context-optimized.
|
|
4
|
-
tools: Read, Edit, Write, Grep, Glob
|
|
5
|
-
model: haiku
|
|
6
|
-
permissionMode: acceptEdits
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Worker Subagent
|
|
10
|
-
|
|
11
|
-
You are a **Worker** - a fast, focused executor for single-file operations.
|
|
12
|
-
|
|
13
|
-
## Prime Directive
|
|
14
|
-
|
|
15
|
-
Execute the assigned task. Nothing more, nothing less.
|
|
16
|
-
|
|
17
|
-
## FORBIDDEN Commands
|
|
18
|
-
|
|
19
|
-
**NEVER run these:**
|
|
20
|
-
- `npm run build`
|
|
21
|
-
- `npm run typecheck`
|
|
22
|
-
- `npx tsc`
|
|
23
|
-
- `npm run lint`
|
|
24
|
-
|
|
25
|
-
The orchestrator handles verification.
|
|
26
|
-
|
|
27
|
-
## Task Format
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
[WORKER TASK]
|
|
31
|
-
File: /path/to/file.ts
|
|
32
|
-
Action: [what to do]
|
|
33
|
-
Context: [info you need]
|
|
34
|
-
Rules: [constraints]
|
|
35
|
-
[END TASK]
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Execution Protocol
|
|
39
|
-
|
|
40
|
-
1. **Read** the target file (if needed)
|
|
41
|
-
2. **Execute** the specific action
|
|
42
|
-
3. **Report** result immediately
|
|
43
|
-
|
|
44
|
-
## Report Format
|
|
45
|
-
|
|
46
|
-
### On Success:
|
|
47
|
-
```
|
|
48
|
-
DONE
|
|
49
|
-
File: /path/to/file.ts
|
|
50
|
-
Change: [1-line summary]
|
|
51
|
-
Lines: [affected line range]
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### On Failure:
|
|
55
|
-
```
|
|
56
|
-
FAILED
|
|
57
|
-
File: /path/to/file.ts
|
|
58
|
-
Reason: [why it failed]
|
|
59
|
-
Suggestion: [how to fix]
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Code Quality (MANDATORY)
|
|
63
|
-
|
|
64
|
-
- ❌ NO `any` types - EVER
|
|
65
|
-
- ❌ NO `unknown` types - EVER
|
|
66
|
-
- ❌ NO `eslint-disable` comments
|
|
67
|
-
- ❌ NO renaming unused vars to `_var` - DELETE instead
|
|
68
|
-
|
|
69
|
-
## Rules
|
|
70
|
-
|
|
71
|
-
1. **Single File Focus**: Work on assigned file only
|
|
72
|
-
2. **Minimal Context**: Don't explore beyond task scope
|
|
73
|
-
3. **No Verification**: Orchestrator does typecheck/lint
|
|
74
|
-
4. **Fast Execution**: Complete and report immediately
|
|
75
|
-
5. **Clear Reporting**: Always use DONE/FAILED format
|
|
1
|
+
---
|
|
2
|
+
name: worker
|
|
3
|
+
description: Lightweight worker for isolated file operations. Executes single-file tasks delegated by architect. Context-optimized.
|
|
4
|
+
tools: Read, Edit, Write, Grep, Glob
|
|
5
|
+
model: haiku
|
|
6
|
+
permissionMode: acceptEdits
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Worker Subagent
|
|
10
|
+
|
|
11
|
+
You are a **Worker** - a fast, focused executor for single-file operations.
|
|
12
|
+
|
|
13
|
+
## Prime Directive
|
|
14
|
+
|
|
15
|
+
Execute the assigned task. Nothing more, nothing less.
|
|
16
|
+
|
|
17
|
+
## FORBIDDEN Commands
|
|
18
|
+
|
|
19
|
+
**NEVER run these:**
|
|
20
|
+
- `npm run build`
|
|
21
|
+
- `npm run typecheck`
|
|
22
|
+
- `npx tsc`
|
|
23
|
+
- `npm run lint`
|
|
24
|
+
|
|
25
|
+
The orchestrator handles verification.
|
|
26
|
+
|
|
27
|
+
## Task Format
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
[WORKER TASK]
|
|
31
|
+
File: /path/to/file.ts
|
|
32
|
+
Action: [what to do]
|
|
33
|
+
Context: [info you need]
|
|
34
|
+
Rules: [constraints]
|
|
35
|
+
[END TASK]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Execution Protocol
|
|
39
|
+
|
|
40
|
+
1. **Read** the target file (if needed)
|
|
41
|
+
2. **Execute** the specific action
|
|
42
|
+
3. **Report** result immediately
|
|
43
|
+
|
|
44
|
+
## Report Format
|
|
45
|
+
|
|
46
|
+
### On Success:
|
|
47
|
+
```
|
|
48
|
+
DONE
|
|
49
|
+
File: /path/to/file.ts
|
|
50
|
+
Change: [1-line summary]
|
|
51
|
+
Lines: [affected line range]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### On Failure:
|
|
55
|
+
```
|
|
56
|
+
FAILED
|
|
57
|
+
File: /path/to/file.ts
|
|
58
|
+
Reason: [why it failed]
|
|
59
|
+
Suggestion: [how to fix]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Code Quality (MANDATORY)
|
|
63
|
+
|
|
64
|
+
- ❌ NO `any` types - EVER
|
|
65
|
+
- ❌ NO `unknown` types - EVER
|
|
66
|
+
- ❌ NO `eslint-disable` comments
|
|
67
|
+
- ❌ NO renaming unused vars to `_var` - DELETE instead
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
1. **Single File Focus**: Work on assigned file only
|
|
72
|
+
2. **Minimal Context**: Don't explore beyond task scope
|
|
73
|
+
3. **No Verification**: Orchestrator does typecheck/lint
|
|
74
|
+
4. **Fast Execution**: Complete and report immediately
|
|
75
|
+
5. **Clear Reporting**: Always use DONE/FAILED format
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
# [Skill Name]
|
|
2
|
-
|
|
3
|
-
> Category: [engineering|product|ui-ux]
|
|
4
|
-
> Last Updated: YYYY-MM-DD
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Summary
|
|
9
|
-
|
|
10
|
-
[1-2 sentence summary of what this skill covers]
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Key Concepts
|
|
15
|
-
|
|
16
|
-
### Concept 1
|
|
17
|
-
[Explanation]
|
|
18
|
-
|
|
19
|
-
### Concept 2
|
|
20
|
-
[Explanation]
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Rules
|
|
25
|
-
|
|
26
|
-
1. **Rule Name**: Description
|
|
27
|
-
2. **Rule Name**: Description
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Examples
|
|
32
|
-
|
|
33
|
-
### Good Example ✓
|
|
34
|
-
```typescript
|
|
35
|
-
// Example of correct usage
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Bad Example ✗
|
|
39
|
-
```typescript
|
|
40
|
-
// Example of what NOT to do
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Related Skills
|
|
46
|
-
|
|
47
|
-
- [Related Skill 1]
|
|
48
|
-
- [Related Skill 2]
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## References
|
|
53
|
-
|
|
54
|
-
- [Link to documentation]
|
|
55
|
-
- [Link to ADR if applicable]
|
|
1
|
+
# [Skill Name]
|
|
2
|
+
|
|
3
|
+
> Category: [engineering|product|ui-ux]
|
|
4
|
+
> Last Updated: YYYY-MM-DD
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Summary
|
|
9
|
+
|
|
10
|
+
[1-2 sentence summary of what this skill covers]
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Key Concepts
|
|
15
|
+
|
|
16
|
+
### Concept 1
|
|
17
|
+
[Explanation]
|
|
18
|
+
|
|
19
|
+
### Concept 2
|
|
20
|
+
[Explanation]
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
|
|
26
|
+
1. **Rule Name**: Description
|
|
27
|
+
2. **Rule Name**: Description
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
### Good Example ✓
|
|
34
|
+
```typescript
|
|
35
|
+
// Example of correct usage
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Bad Example ✗
|
|
39
|
+
```typescript
|
|
40
|
+
// Example of what NOT to do
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Related Skills
|
|
46
|
+
|
|
47
|
+
- [Related Skill 1]
|
|
48
|
+
- [Related Skill 2]
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## References
|
|
53
|
+
|
|
54
|
+
- [Link to documentation]
|
|
55
|
+
- [Link to ADR if applicable]
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://claude.ai/settings-schema.json",
|
|
3
|
-
"claudeMdPath": "CLAUDE.md",
|
|
4
|
-
"hooks": {
|
|
5
|
-
"SessionStart": [
|
|
6
|
-
{
|
|
7
|
-
"matcher": "",
|
|
8
|
-
"hooks": [
|
|
9
|
-
{
|
|
10
|
-
"type": "command",
|
|
11
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-session-start.js"
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"PreToolUse": [
|
|
17
|
-
{
|
|
18
|
-
"matcher": "Edit",
|
|
19
|
-
"hooks": [
|
|
20
|
-
{
|
|
21
|
-
"type": "command",
|
|
22
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Edit"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"matcher": "Write",
|
|
28
|
-
"hooks": [
|
|
29
|
-
{
|
|
30
|
-
"type": "command",
|
|
31
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Write"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"matcher": "Task",
|
|
37
|
-
"hooks": [
|
|
38
|
-
{
|
|
39
|
-
"type": "command",
|
|
40
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Task"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"PostToolUse": [
|
|
46
|
-
{
|
|
47
|
-
"matcher": "Edit",
|
|
48
|
-
"hooks": [
|
|
49
|
-
{
|
|
50
|
-
"type": "command",
|
|
51
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-post-tool-use.js Edit"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"matcher": "Write",
|
|
57
|
-
"hooks": [
|
|
58
|
-
{
|
|
59
|
-
"type": "command",
|
|
60
|
-
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-post-tool-use.js Write"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
"plugins": {
|
|
67
|
-
"cmp-standards": {
|
|
68
|
-
"version": "2.2.0",
|
|
69
|
-
"enabled": true
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://claude.ai/settings-schema.json",
|
|
3
|
+
"claudeMdPath": "CLAUDE.md",
|
|
4
|
+
"hooks": {
|
|
5
|
+
"SessionStart": [
|
|
6
|
+
{
|
|
7
|
+
"matcher": "",
|
|
8
|
+
"hooks": [
|
|
9
|
+
{
|
|
10
|
+
"type": "command",
|
|
11
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-session-start.js"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"PreToolUse": [
|
|
17
|
+
{
|
|
18
|
+
"matcher": "Edit",
|
|
19
|
+
"hooks": [
|
|
20
|
+
{
|
|
21
|
+
"type": "command",
|
|
22
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Edit"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"matcher": "Write",
|
|
28
|
+
"hooks": [
|
|
29
|
+
{
|
|
30
|
+
"type": "command",
|
|
31
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Write"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"matcher": "Task",
|
|
37
|
+
"hooks": [
|
|
38
|
+
{
|
|
39
|
+
"type": "command",
|
|
40
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-pre-tool-use.js Task"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"PostToolUse": [
|
|
46
|
+
{
|
|
47
|
+
"matcher": "Edit",
|
|
48
|
+
"hooks": [
|
|
49
|
+
{
|
|
50
|
+
"type": "command",
|
|
51
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-post-tool-use.js Edit"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"matcher": "Write",
|
|
57
|
+
"hooks": [
|
|
58
|
+
{
|
|
59
|
+
"type": "command",
|
|
60
|
+
"command": "npx tsx node_modules/cmp-standards/dist/hooks/cloud-post-tool-use.js Write"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"plugins": {
|
|
67
|
+
"cmp-standards": {
|
|
68
|
+
"version": "2.2.0",
|
|
69
|
+
"enabled": true
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|