start-vibing 3.0.6 → 3.0.8
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 +64 -51
- package/package.json +1 -1
- package/template/.claude/CLAUDE.md +702 -229
- package/template/.claude/agents/claude-md-compactor.md +2 -14
- package/template/.claude/agents/documenter.md +0 -7
- package/template/.claude/agents/domain-updater.md +2 -7
- package/template/.claude/config/README.md +10 -8
- package/template/.claude/config/domain-mapping.json +1 -1
- package/template/.claude/settings.json +0 -129
- package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -145
- package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +51 -416
- package/template/.claude/skills/codebase-knowledge/domains/mcp-integration.md +37 -204
- package/template/.claude/skills/docs-tracker/SKILL.md +239 -239
- package/template/.claude/skills/final-check/SKILL.md +284 -284
- package/template/.claude/skills/quality-gate/SKILL.md +294 -294
- package/template/.claude/skills/security-scan/SKILL.md +222 -222
- package/template/.claude/skills/ui-ux-audit/SKILL.md +254 -254
- package/template/CLAUDE.md +65 -701
- package/template/.claude/agents/_archive/13-debugging/build-error-fixer.md +0 -207
- package/template/.claude/agents/_archive/13-debugging/debugger.md +0 -149
- package/template/.claude/agents/_archive/13-debugging/error-stack-analyzer.md +0 -141
- package/template/.claude/agents/_archive/13-debugging/network-debugger.md +0 -208
- package/template/.claude/agents/_archive/13-debugging/runtime-error-fixer.md +0 -181
- package/template/.claude/agents/_archive/13-debugging/type-error-resolver.md +0 -185
- package/template/.claude/agents/_archive/14-validation/final-validator.md +0 -93
- package/template/.claude/commands/feature.md +0 -48
- package/template/.claude/commands/fix.md +0 -80
- package/template/.claude/commands/research.md +0 -107
- package/template/.claude/commands/validate.md +0 -72
- package/template/.claude/config/mcp-config.json +0 -344
- package/template/.claude/hooks/SETUP.md +0 -126
- package/template/.claude/hooks/run-hook.cmd +0 -46
- package/template/.claude/hooks/run-hook.sh +0 -43
- package/template/.claude/hooks/run-hook.ts +0 -230
- package/template/.claude/hooks/security-check.js +0 -202
- package/template/.claude/hooks/stop-validator.ts +0 -1667
- package/template/.claude/hooks/user-prompt-submit.ts +0 -104
- package/template/.claude/scripts/mcp-quick-install.ts +0 -151
- package/template/.claude/scripts/setup-mcps.ts +0 -651
- package/template/.claude/skills/hook-development/SKILL.md +0 -343
- package/template/.claude/skills/mongoose-patterns/SKILL.md +0 -499
- package/template/.claude/skills/playwright-automation/SKILL.md +0 -438
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: claude-md-compactor
|
|
3
|
-
description: "AUTOMATICALLY invoke when CLAUDE.md exceeds 40k chars. Triggers:
|
|
3
|
+
description: "AUTOMATICALLY invoke when CLAUDE.md exceeds 40k chars. Triggers: 'compact CLAUDE.md', file size check. Compacts while preserving critical knowledge per Anthropic best practices."
|
|
4
4
|
model: sonnet
|
|
5
5
|
color: orange
|
|
6
6
|
tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
|
|
@@ -200,16 +200,4 @@ After compaction:
|
|
|
200
200
|
1. Show before/after character count
|
|
201
201
|
2. List removed sections
|
|
202
202
|
3. Confirm all critical sections preserved
|
|
203
|
-
4. Verify file
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Integration
|
|
208
|
-
|
|
209
|
-
The stop hook will:
|
|
210
|
-
|
|
211
|
-
1. Detect CLAUDE.md > 40k chars
|
|
212
|
-
2. Block with message suggesting this agent
|
|
213
|
-
3. Agent compacts file
|
|
214
|
-
4. Stop hook re-validates
|
|
215
|
-
5. Task completes if under limit
|
|
203
|
+
4. Verify file is under 40k chars
|
|
@@ -146,13 +146,6 @@ Examples:
|
|
|
146
146
|
- claude-system.md
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
## Integration with Stop Hook
|
|
150
|
-
|
|
151
|
-
The Stop hook will BLOCK if:
|
|
152
|
-
1. Source files modified but no domain updated
|
|
153
|
-
2. Domain file missing required sections
|
|
154
|
-
3. Recent commit not recorded
|
|
155
|
-
|
|
156
149
|
## Example Session
|
|
157
150
|
|
|
158
151
|
```
|
|
@@ -108,19 +108,14 @@ Map files to domains using `.claude/config/domain-mapping.json`
|
|
|
108
108
|
```markdown
|
|
109
109
|
## Problems & Solutions
|
|
110
110
|
|
|
111
|
-
### 2025-01-05 -
|
|
111
|
+
### 2025-01-05 - CLAUDE.md Validation Scope
|
|
112
112
|
|
|
113
|
-
**Problem:**
|
|
114
|
-
|
|
115
|
-
**Root Cause:** Validation only checked source files (.ts, .tsx), not all file types.
|
|
113
|
+
**Problem:** CLAUDE.md validation only checked source files (.ts, .tsx), not all file types.
|
|
116
114
|
|
|
117
115
|
**Solution:** Changed to check ALL files with EXEMPT_PATTERNS for auto-generated files.
|
|
118
116
|
|
|
119
117
|
**Prevention:** When adding file validation, consider ALL file types, not just source code.
|
|
120
118
|
|
|
121
|
-
**Files Modified:**
|
|
122
|
-
- `.claude/hooks/stop-validator.ts`
|
|
123
|
-
|
|
124
119
|
---
|
|
125
120
|
|
|
126
121
|
## Attention Points
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project Configuration
|
|
2
2
|
|
|
3
|
-
This directory contains project-specific configuration files that agents read to adapt their behavior to your project.
|
|
3
|
+
This directory contains project-specific configuration files that agents and skills read to adapt their behavior to your project.
|
|
4
4
|
|
|
5
5
|
## Files
|
|
6
6
|
|
|
@@ -12,13 +12,15 @@ This directory contains project-specific configuration files that agents read to
|
|
|
12
12
|
| `testing-config.json` | Testing framework and conventions |
|
|
13
13
|
| `security-rules.json` | Security audit rules |
|
|
14
14
|
|
|
15
|
-
## How Agents Use These
|
|
15
|
+
## How Agents and Skills Use These
|
|
16
16
|
|
|
17
|
-
1. **
|
|
18
|
-
2. **
|
|
19
|
-
3. **
|
|
20
|
-
4. **
|
|
21
|
-
5. **
|
|
17
|
+
1. **domain-updater** agent - Reads `domain-mapping.json` for file-to-domain mapping
|
|
18
|
+
2. **documenter** agent - Reads `domain-mapping.json` and `project-config.json`
|
|
19
|
+
3. **tester-unit** agent - Reads `testing-config.json` for frameworks and conventions
|
|
20
|
+
4. **commit-manager** agent - Reads `project-config.json` for commit conventions
|
|
21
|
+
5. **quality-gate** skill - Reads `quality-gates.json` for commands
|
|
22
|
+
6. **security-scan** skill - Reads `security-rules.json` for security patterns
|
|
23
|
+
7. **codebase-knowledge** skill - Reads `domain-mapping.json` for domain structure
|
|
22
24
|
|
|
23
25
|
## Customizing for Your Project
|
|
24
26
|
|
|
@@ -27,4 +29,4 @@ This directory contains project-specific configuration files that agents read to
|
|
|
27
29
|
3. Update `testing-config.json` with your test conventions
|
|
28
30
|
4. Update `security-rules.json` with your auth framework
|
|
29
31
|
|
|
30
|
-
The agents will automatically adapt to your configuration.
|
|
32
|
+
The agents and skills will automatically adapt to your configuration.
|
|
@@ -27,13 +27,6 @@
|
|
|
27
27
|
"frontend-design@claude-plugins-official": true
|
|
28
28
|
},
|
|
29
29
|
|
|
30
|
-
"context": {
|
|
31
|
-
"compaction_threshold": 0.85,
|
|
32
|
-
"enable_compaction": true,
|
|
33
|
-
"enable_semantic_search": true,
|
|
34
|
-
"memory_files": [".claude/CLAUDE.md", "claude.md"]
|
|
35
|
-
},
|
|
36
|
-
|
|
37
30
|
"permissions": {
|
|
38
31
|
"mode": "strict",
|
|
39
32
|
"allowed_tools": [
|
|
@@ -70,130 +63,8 @@
|
|
|
70
63
|
"Bash(bun run typecheck:*)",
|
|
71
64
|
"Bash(git add:*)",
|
|
72
65
|
"Bash(git commit:*)",
|
|
73
|
-
"Bash(python .claude/hooks/*)",
|
|
74
|
-
"Bash(bun .claude/hooks/*)",
|
|
75
66
|
"Bash(bun .claude/scripts/*)",
|
|
76
67
|
"Bash(claude mcp:*)"
|
|
77
68
|
]
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
"hooks": {
|
|
81
|
-
"UserPromptSubmit": [
|
|
82
|
-
{
|
|
83
|
-
"matcher": "",
|
|
84
|
-
"hooks": [
|
|
85
|
-
{
|
|
86
|
-
"type": "command",
|
|
87
|
-
"command": "npx tsx .claude/hooks/run-hook.ts user-prompt-submit",
|
|
88
|
-
"timeout": 10
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"Stop": [
|
|
94
|
-
{
|
|
95
|
-
"hooks": [
|
|
96
|
-
{
|
|
97
|
-
"type": "command",
|
|
98
|
-
"command": "npx tsx .claude/hooks/run-hook.ts stop-validator",
|
|
99
|
-
"timeout": 30
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
"agents": {
|
|
107
|
-
"research-web": {
|
|
108
|
-
"description": "Researches best practices and recent solutions (2024-2026) before implementation"
|
|
109
|
-
},
|
|
110
|
-
"documenter": {
|
|
111
|
-
"description": "Creates and maintains documentation for modified files"
|
|
112
|
-
},
|
|
113
|
-
"domain-updater": {
|
|
114
|
-
"description": "Updates domain docs with session learnings. Runs before commit"
|
|
115
|
-
},
|
|
116
|
-
"commit-manager": {
|
|
117
|
-
"description": "Manages commits and workflow state tracking"
|
|
118
|
-
},
|
|
119
|
-
"claude-md-compactor": {
|
|
120
|
-
"description": "Compacts CLAUDE.md when it exceeds 40k chars"
|
|
121
|
-
},
|
|
122
|
-
"tester-unit": {
|
|
123
|
-
"description": "Creates unit tests with Vitest for new functions and utilities"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
"workflow": {
|
|
128
|
-
"default_flow": [
|
|
129
|
-
"research-web",
|
|
130
|
-
"tester-unit",
|
|
131
|
-
"documenter",
|
|
132
|
-
"domain-updater",
|
|
133
|
-
"commit-manager"
|
|
134
|
-
],
|
|
135
|
-
"config_flow": ["domain-updater", "commit-manager"]
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
"rules": {
|
|
139
|
-
"research": {
|
|
140
|
-
"required_before_implementation": true,
|
|
141
|
-
"sources_must_be_recent": "2024-2025",
|
|
142
|
-
"must_document_findings": true,
|
|
143
|
-
"must_cite_sources": true
|
|
144
|
-
},
|
|
145
|
-
"typescript": {
|
|
146
|
-
"strict": true,
|
|
147
|
-
"no_any": true,
|
|
148
|
-
"explicit_return_types": true
|
|
149
|
-
},
|
|
150
|
-
"security": {
|
|
151
|
-
"user_id_from_session_only": true,
|
|
152
|
-
"sanitize_all_responses": true,
|
|
153
|
-
"zod_validation_required": true,
|
|
154
|
-
"explicit_select_required": true,
|
|
155
|
-
"owasp_validation_required": true,
|
|
156
|
-
"cve_check_required": true
|
|
157
|
-
},
|
|
158
|
-
"ux": {
|
|
159
|
-
"skeleton_required_for_async": true,
|
|
160
|
-
"touch_friendly_min_size": "44px",
|
|
161
|
-
"competitor_research_required": true,
|
|
162
|
-
"wcag_compliance_required": true
|
|
163
|
-
},
|
|
164
|
-
"testing": {
|
|
165
|
-
"unit_tests_required": true,
|
|
166
|
-
"playwright_mcp_for_browser_tests": true,
|
|
167
|
-
"data_testid_required": true,
|
|
168
|
-
"edge_cases_research_required": true
|
|
169
|
-
},
|
|
170
|
-
"documentation": {
|
|
171
|
-
"flow_docs_required": true,
|
|
172
|
-
"competitor_research_for_ui": true,
|
|
173
|
-
"research_must_be_documented": true
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
"quality_gates": {
|
|
178
|
-
"typecheck": {
|
|
179
|
-
"command": "bun run typecheck",
|
|
180
|
-
"required": true,
|
|
181
|
-
"blocking": true
|
|
182
|
-
},
|
|
183
|
-
"lint": {
|
|
184
|
-
"command": "bun run lint",
|
|
185
|
-
"required": true,
|
|
186
|
-
"blocking": true
|
|
187
|
-
},
|
|
188
|
-
"test": {
|
|
189
|
-
"command": "bun run test",
|
|
190
|
-
"required": true,
|
|
191
|
-
"blocking": true
|
|
192
|
-
},
|
|
193
|
-
"build": {
|
|
194
|
-
"command": "bun run build",
|
|
195
|
-
"required": true,
|
|
196
|
-
"blocking": true
|
|
197
|
-
}
|
|
198
69
|
}
|
|
199
70
|
}
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: codebase-knowledge
|
|
3
|
-
description: "ALWAYS invoke BEFORE implementing any feature. Maps files by domain, tracks connections. Do NOT write code without checking affected areas first."
|
|
4
|
-
allowed-tools: Read, Glob, Grep
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Codebase Knowledge - Domain Mapping System
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
This skill provides cached knowledge about project domains:
|
|
12
|
-
|
|
13
|
-
- **Maps** files by domain/feature area
|
|
14
|
-
- **Tracks** connections between components
|
|
15
|
-
- **Records** recent commits per area
|
|
16
|
-
- **Caches** architecture decisions
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## How It Works
|
|
21
|
-
|
|
22
|
-
### Domain Files Location
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
.claude/skills/codebase-knowledge/domains/
|
|
26
|
-
├── [domain-name].md # One file per domain
|
|
27
|
-
└── ...
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Domain File Template
|
|
31
|
-
|
|
32
|
-
```markdown
|
|
33
|
-
# [Domain Name]
|
|
34
|
-
|
|
35
|
-
## Last Update
|
|
36
|
-
|
|
37
|
-
- **Date:** YYYY-MM-DD
|
|
38
|
-
- **Commit:** [hash]
|
|
39
|
-
|
|
40
|
-
## Files
|
|
41
|
-
|
|
42
|
-
### Frontend
|
|
43
|
-
|
|
44
|
-
- `app/[path]/page.tsx` - Description
|
|
45
|
-
- `components/[path]/*.tsx` - Description
|
|
46
|
-
|
|
47
|
-
### Backend
|
|
48
|
-
|
|
49
|
-
- `server/trpc/routers/[name].router.ts` - Router
|
|
50
|
-
- `server/db/models/[name].model.ts` - Model
|
|
51
|
-
|
|
52
|
-
### Types/Schemas
|
|
53
|
-
|
|
54
|
-
- `lib/validators/[name].ts` - Zod schemas
|
|
55
|
-
|
|
56
|
-
## Connections
|
|
57
|
-
|
|
58
|
-
- **[other-domain]:** How they connect
|
|
59
|
-
|
|
60
|
-
## Recent Commits
|
|
61
|
-
|
|
62
|
-
| Hash | Date | Description |
|
|
63
|
-
| ------ | ---------- | ----------------- |
|
|
64
|
-
| abc123 | YYYY-MM-DD | feat: description |
|
|
65
|
-
|
|
66
|
-
## Attention Points
|
|
67
|
-
|
|
68
|
-
- [Special rules, gotchas, etc]
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## Workflow
|
|
74
|
-
|
|
75
|
-
### BEFORE Implementation
|
|
76
|
-
|
|
77
|
-
1. **Identify** which domain is affected
|
|
78
|
-
2. **Read** `domains/[domain].md` file
|
|
79
|
-
3. **Check** affected files listed
|
|
80
|
-
4. **Verify** recent commits for context
|
|
81
|
-
5. **Note** connections with other domains
|
|
82
|
-
|
|
83
|
-
### AFTER Implementation
|
|
84
|
-
|
|
85
|
-
1. **Update** the domain file
|
|
86
|
-
2. **Add** new commit to "Recent Commits"
|
|
87
|
-
3. **Add/remove** files if changed
|
|
88
|
-
4. **Update** connections if affected
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Commands
|
|
93
|
-
|
|
94
|
-
### Check Recent Commits by Domain
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
git log --oneline -10 -- [list of domain files]
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Check Uncommitted Changes
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
git diff --name-status main..HEAD
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Create New Domain File
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
# Copy template
|
|
110
|
-
cp .claude/skills/codebase-knowledge/TEMPLATE.md .claude/skills/codebase-knowledge/domains/[name].md
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Rules
|
|
116
|
-
|
|
117
|
-
### MANDATORY
|
|
118
|
-
|
|
119
|
-
1. **READ domain before implementing** - Always check cached knowledge
|
|
120
|
-
2. **UPDATE after implementing** - Keep cache current
|
|
121
|
-
3. **VERIFY connections** - Changes may affect other domains
|
|
122
|
-
4. **RECORD commits** - Maintain history
|
|
123
|
-
|
|
124
|
-
### FORBIDDEN
|
|
125
|
-
|
|
126
|
-
1. **Ignore cached knowledge** - It exists to accelerate development
|
|
127
|
-
2. **Leave outdated** - Old docs are worse than none
|
|
128
|
-
3. **Modify without recording** - Every commit should be noted
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## Integration with Agents
|
|
133
|
-
|
|
134
|
-
The **analyzer** agent MUST use this skill:
|
|
135
|
-
|
|
136
|
-
1. Check which domain is affected
|
|
137
|
-
2. Read domain file for context
|
|
138
|
-
3. Report affected files and connections
|
|
139
|
-
4. Update domain after implementation
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## Version
|
|
144
|
-
|
|
145
|
-
- **v2.0.0** - Generic template (no project-specific domains)
|
|
1
|
+
---
|
|
2
|
+
name: codebase-knowledge
|
|
3
|
+
description: "ALWAYS invoke BEFORE implementing any feature. Maps files by domain, tracks connections. Do NOT write code without checking affected areas first."
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Codebase Knowledge - Domain Mapping System
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
This skill provides cached knowledge about project domains:
|
|
12
|
+
|
|
13
|
+
- **Maps** files by domain/feature area
|
|
14
|
+
- **Tracks** connections between components
|
|
15
|
+
- **Records** recent commits per area
|
|
16
|
+
- **Caches** architecture decisions
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## How It Works
|
|
21
|
+
|
|
22
|
+
### Domain Files Location
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
.claude/skills/codebase-knowledge/domains/
|
|
26
|
+
├── [domain-name].md # One file per domain
|
|
27
|
+
└── ...
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Domain File Template
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# [Domain Name]
|
|
34
|
+
|
|
35
|
+
## Last Update
|
|
36
|
+
|
|
37
|
+
- **Date:** YYYY-MM-DD
|
|
38
|
+
- **Commit:** [hash]
|
|
39
|
+
|
|
40
|
+
## Files
|
|
41
|
+
|
|
42
|
+
### Frontend
|
|
43
|
+
|
|
44
|
+
- `app/[path]/page.tsx` - Description
|
|
45
|
+
- `components/[path]/*.tsx` - Description
|
|
46
|
+
|
|
47
|
+
### Backend
|
|
48
|
+
|
|
49
|
+
- `server/trpc/routers/[name].router.ts` - Router
|
|
50
|
+
- `server/db/models/[name].model.ts` - Model
|
|
51
|
+
|
|
52
|
+
### Types/Schemas
|
|
53
|
+
|
|
54
|
+
- `lib/validators/[name].ts` - Zod schemas
|
|
55
|
+
|
|
56
|
+
## Connections
|
|
57
|
+
|
|
58
|
+
- **[other-domain]:** How they connect
|
|
59
|
+
|
|
60
|
+
## Recent Commits
|
|
61
|
+
|
|
62
|
+
| Hash | Date | Description |
|
|
63
|
+
| ------ | ---------- | ----------------- |
|
|
64
|
+
| abc123 | YYYY-MM-DD | feat: description |
|
|
65
|
+
|
|
66
|
+
## Attention Points
|
|
67
|
+
|
|
68
|
+
- [Special rules, gotchas, etc]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Workflow
|
|
74
|
+
|
|
75
|
+
### BEFORE Implementation
|
|
76
|
+
|
|
77
|
+
1. **Identify** which domain is affected
|
|
78
|
+
2. **Read** `domains/[domain].md` file
|
|
79
|
+
3. **Check** affected files listed
|
|
80
|
+
4. **Verify** recent commits for context
|
|
81
|
+
5. **Note** connections with other domains
|
|
82
|
+
|
|
83
|
+
### AFTER Implementation
|
|
84
|
+
|
|
85
|
+
1. **Update** the domain file
|
|
86
|
+
2. **Add** new commit to "Recent Commits"
|
|
87
|
+
3. **Add/remove** files if changed
|
|
88
|
+
4. **Update** connections if affected
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Commands
|
|
93
|
+
|
|
94
|
+
### Check Recent Commits by Domain
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
git log --oneline -10 -- [list of domain files]
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Check Uncommitted Changes
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
git diff --name-status main..HEAD
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Create New Domain File
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Copy template
|
|
110
|
+
cp .claude/skills/codebase-knowledge/TEMPLATE.md .claude/skills/codebase-knowledge/domains/[name].md
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Rules
|
|
116
|
+
|
|
117
|
+
### MANDATORY
|
|
118
|
+
|
|
119
|
+
1. **READ domain before implementing** - Always check cached knowledge
|
|
120
|
+
2. **UPDATE after implementing** - Keep cache current
|
|
121
|
+
3. **VERIFY connections** - Changes may affect other domains
|
|
122
|
+
4. **RECORD commits** - Maintain history
|
|
123
|
+
|
|
124
|
+
### FORBIDDEN
|
|
125
|
+
|
|
126
|
+
1. **Ignore cached knowledge** - It exists to accelerate development
|
|
127
|
+
2. **Leave outdated** - Old docs are worse than none
|
|
128
|
+
3. **Modify without recording** - Every commit should be noted
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Integration with Agents
|
|
133
|
+
|
|
134
|
+
The **analyzer** agent MUST use this skill:
|
|
135
|
+
|
|
136
|
+
1. Check which domain is affected
|
|
137
|
+
2. Read domain file for context
|
|
138
|
+
3. Report affected files and connections
|
|
139
|
+
4. Update domain after implementation
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Version
|
|
144
|
+
|
|
145
|
+
- **v2.0.0** - Generic template (no project-specific domains)
|