claude-recall 0.5.1 → 0.6.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/.claude/skills/memory-management/SKILL.md +54 -8
- package/.claude/skills/memory-management/references/devops/README.md +166 -0
- package/.claude/skills/memory-management/references/devops/architecture-patterns.md +253 -0
- package/.claude/skills/memory-management/references/devops/build-deploy-patterns.md +340 -0
- package/.claude/skills/memory-management/references/devops/git-patterns.md +135 -0
- package/.claude/skills/memory-management/references/devops/project-identity.md +69 -0
- package/.claude/skills/memory-management/references/devops/testing-patterns.md +198 -0
- package/.claude/skills/memory-management/references/devops/workflow-patterns.md +273 -0
- package/.claude/skills/memory-management/references/privacy.md +246 -0
- package/dist/cli/claude-recall-cli.js +65 -0
- package/dist/mcp/tools/memory-tools.js +53 -3
- package/package.json +1 -1
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
name: "claude-recall-memory-management"
|
|
3
3
|
description: "Automatic memory capture and retrieval for Claude Recall MCP - ensures you never repeat yourself"
|
|
4
4
|
allowed-tools: "mcp__claude-recall__*"
|
|
5
|
-
version: "0.
|
|
5
|
+
version: "0.6.0"
|
|
6
6
|
priority: "highest"
|
|
7
|
+
search-first: true
|
|
7
8
|
license: "MIT"
|
|
8
9
|
---
|
|
9
10
|
|
|
@@ -34,14 +35,23 @@ This Skill teaches Claude Code how to use Claude Recall's persistent memory syst
|
|
|
34
35
|
- Successful implementations to repeat
|
|
35
36
|
- Failed approaches to avoid
|
|
36
37
|
|
|
37
|
-
##
|
|
38
|
+
## Phase 1: Search Memories (REQUIRED FIRST STEP)
|
|
38
39
|
|
|
39
|
-
**CRITICAL**: Before file operations, decisions, or implementations,
|
|
40
|
+
**CRITICAL - ALWAYS SEARCH FIRST**: Before file operations, decisions, or implementations, search memories to find existing context:
|
|
40
41
|
|
|
41
42
|
```
|
|
42
43
|
mcp__claude-recall__search("[task keywords] devops preferences success failure correction")
|
|
43
44
|
```
|
|
44
45
|
|
|
46
|
+
**Search-First Benefits** (from MCP code execution article):
|
|
47
|
+
- ✅ **Context efficiency**: Only load what you need (not all reference files)
|
|
48
|
+
- ✅ **Token savings**: Search results use fewer tokens than loading all patterns
|
|
49
|
+
- ✅ **Progressive disclosure**: Discover tools/patterns on-demand, not upfront
|
|
50
|
+
|
|
51
|
+
**When to load references:**
|
|
52
|
+
- ✅ If search found relevant memories → **Skip references**, use memories instead
|
|
53
|
+
- ✅ If search found nothing → Load appropriate reference file from `references/`
|
|
54
|
+
|
|
45
55
|
### Search Examples:
|
|
46
56
|
|
|
47
57
|
**Before creating authentication:**
|
|
@@ -120,6 +130,36 @@ mcp__claude-recall__store_memory({
|
|
|
120
130
|
})
|
|
121
131
|
```
|
|
122
132
|
|
|
133
|
+
## Privacy & Security: What NOT to Store
|
|
134
|
+
|
|
135
|
+
**NEVER store sensitive data in memories:**
|
|
136
|
+
|
|
137
|
+
❌ **Secrets**:
|
|
138
|
+
- API keys, access tokens, passwords
|
|
139
|
+
- Environment variables with `API_KEY`, `SECRET`, `PASSWORD`, `TOKEN`
|
|
140
|
+
- Private keys, certificates, credentials
|
|
141
|
+
|
|
142
|
+
❌ **Personal Identifiable Information (PII)**:
|
|
143
|
+
- Email addresses (personal or customer)
|
|
144
|
+
- Phone numbers
|
|
145
|
+
- Social Security Numbers, Tax IDs
|
|
146
|
+
- Credit card numbers, payment info
|
|
147
|
+
|
|
148
|
+
❌ **Sensitive Configuration**:
|
|
149
|
+
- Production database connection strings with passwords
|
|
150
|
+
- OAuth client secrets
|
|
151
|
+
- Webhook secrets, signing keys
|
|
152
|
+
|
|
153
|
+
✅ **Safe to store**:
|
|
154
|
+
- General architecture patterns ("We use JWT for auth")
|
|
155
|
+
- Tool choices ("We prefer PostgreSQL")
|
|
156
|
+
- Workflow rules ("Always run tests before commit")
|
|
157
|
+
- Non-sensitive configuration ("API base URL: https://api.example.com")
|
|
158
|
+
|
|
159
|
+
**Why this matters**: Memories are stored locally but could be exported or synced. Following privacy-by-default prevents accidental leaks.
|
|
160
|
+
|
|
161
|
+
**See** `references/privacy.md` for detailed examples and automatic filtering patterns.
|
|
162
|
+
|
|
123
163
|
## Check What's Captured
|
|
124
164
|
|
|
125
165
|
To see what memories have been automatically captured:
|
|
@@ -198,11 +238,17 @@ User doesn't have to repeat preferences! ✓
|
|
|
198
238
|
1. Use manual storage for that specific item
|
|
199
239
|
2. The pattern may not have matched - broader trigger words help
|
|
200
240
|
|
|
201
|
-
**For more examples:**
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
-
|
|
241
|
+
**For more examples (ONLY if search didn't help):**
|
|
242
|
+
- **Search first**, then load references only if needed
|
|
243
|
+
- `references/devops/` - Topic-specific DevOps patterns (git, testing, architecture, etc.)
|
|
244
|
+
- `references/capture-examples.md` - Manual storage templates
|
|
245
|
+
- `references/troubleshooting.md` - Common issues
|
|
246
|
+
- `references/privacy.md` - What NOT to store (secrets, PII)
|
|
205
247
|
|
|
206
248
|
---
|
|
207
249
|
|
|
208
|
-
**Remember**:
|
|
250
|
+
**Remember**:
|
|
251
|
+
1. **ALWAYS search first** - Most efficient use of context
|
|
252
|
+
2. **Skip references if search succeeded** - Memories are more relevant than examples
|
|
253
|
+
3. **Trust automatic capture** - Handles most patterns
|
|
254
|
+
4. **The learning loop works best when you search before every task**
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# DevOps Patterns - Topic Index
|
|
2
|
+
|
|
3
|
+
This directory contains **topic-specific** DevOps memory pattern examples. Load only the files you need for your current task.
|
|
4
|
+
|
|
5
|
+
## Progressive Disclosure: Load Only What You Need
|
|
6
|
+
|
|
7
|
+
**DON'T load all files** - This defeats the purpose of progressive disclosure!
|
|
8
|
+
|
|
9
|
+
**DO search memories first:**
|
|
10
|
+
```
|
|
11
|
+
mcp__claude-recall__search("git workflow testing deployment")
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**ONLY load specific files if search didn't help:**
|
|
15
|
+
|
|
16
|
+
## Available Topics
|
|
17
|
+
|
|
18
|
+
### 1. Project Identity (`project-identity.md`)
|
|
19
|
+
Load when working on:
|
|
20
|
+
- Understanding what the project is
|
|
21
|
+
- Tech stack questions
|
|
22
|
+
- Dependency requirements
|
|
23
|
+
|
|
24
|
+
**Contains:**
|
|
25
|
+
- Project purpose patterns
|
|
26
|
+
- Tech stack examples
|
|
27
|
+
- Dependency declarations
|
|
28
|
+
|
|
29
|
+
### 2. Git Workflows (`git-patterns.md`)
|
|
30
|
+
Load when working on:
|
|
31
|
+
- Git branching strategies
|
|
32
|
+
- Commit message conventions
|
|
33
|
+
- PR/review workflows
|
|
34
|
+
|
|
35
|
+
**Contains:**
|
|
36
|
+
- Branching strategies (GitFlow, trunk-based, etc.)
|
|
37
|
+
- Commit conventions (conventional commits, etc.)
|
|
38
|
+
- PR and review processes
|
|
39
|
+
|
|
40
|
+
### 3. Testing Strategies (`testing-patterns.md`)
|
|
41
|
+
Load when working on:
|
|
42
|
+
- Test organization
|
|
43
|
+
- Testing frameworks
|
|
44
|
+
- Coverage requirements
|
|
45
|
+
|
|
46
|
+
**Contains:**
|
|
47
|
+
- TDD, BDD methodologies
|
|
48
|
+
- Test framework choices
|
|
49
|
+
- Coverage rules
|
|
50
|
+
- Test organization
|
|
51
|
+
|
|
52
|
+
### 4. Architecture (`architecture-patterns.md`)
|
|
53
|
+
Load when working on:
|
|
54
|
+
- System design decisions
|
|
55
|
+
- Design patterns
|
|
56
|
+
- Integration patterns
|
|
57
|
+
|
|
58
|
+
**Contains:**
|
|
59
|
+
- Architecture styles (microservices, monolith, etc.)
|
|
60
|
+
- Design patterns (repository, factory, etc.)
|
|
61
|
+
- Communication patterns (REST, GraphQL, events)
|
|
62
|
+
- Scalability and resilience patterns
|
|
63
|
+
|
|
64
|
+
### 5. Workflow & Environment (`workflow-patterns.md`)
|
|
65
|
+
Load when working on:
|
|
66
|
+
- Development environment setup
|
|
67
|
+
- Team workflow rules
|
|
68
|
+
- Code quality standards
|
|
69
|
+
|
|
70
|
+
**Contains:**
|
|
71
|
+
- Workflow rules (pre-commit hooks, etc.)
|
|
72
|
+
- Dev environment setup
|
|
73
|
+
- Code quality tools
|
|
74
|
+
- Team conventions
|
|
75
|
+
|
|
76
|
+
### 6. Build & Deploy (`build-deploy-patterns.md`)
|
|
77
|
+
Load when working on:
|
|
78
|
+
- Build processes
|
|
79
|
+
- CI/CD pipelines
|
|
80
|
+
- Deployment strategies
|
|
81
|
+
|
|
82
|
+
**Contains:**
|
|
83
|
+
- Build tools and processes
|
|
84
|
+
- CI/CD configurations
|
|
85
|
+
- Deployment strategies
|
|
86
|
+
- Infrastructure as code
|
|
87
|
+
|
|
88
|
+
## Usage Examples
|
|
89
|
+
|
|
90
|
+
### Example 1: Git Task
|
|
91
|
+
```
|
|
92
|
+
User: "Create a feature branch for the new API"
|
|
93
|
+
|
|
94
|
+
Step 1: Search memories
|
|
95
|
+
mcp__claude-recall__search("git branch workflow feature")
|
|
96
|
+
|
|
97
|
+
Step 2a: If search found results → Use memories (SKIP loading git-patterns.md)
|
|
98
|
+
Step 2b: If search found nothing → Load git-patterns.md for examples
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Example 2: Testing Task
|
|
102
|
+
```
|
|
103
|
+
User: "Add tests for the user service"
|
|
104
|
+
|
|
105
|
+
Step 1: Search memories
|
|
106
|
+
mcp__claude-recall__search("testing tdd location framework")
|
|
107
|
+
|
|
108
|
+
Step 2a: If search found results → Use memories (SKIP loading testing-patterns.md)
|
|
109
|
+
Step 2b: If search found nothing → Load testing-patterns.md for examples
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Example 3: Deployment Task
|
|
113
|
+
```
|
|
114
|
+
User: "Deploy to staging"
|
|
115
|
+
|
|
116
|
+
Step 1: Search memories
|
|
117
|
+
mcp__claude-recall__search("deploy staging ci cd workflow")
|
|
118
|
+
|
|
119
|
+
Step 2a: If search found results → Use memories (SKIP loading build-deploy-patterns.md)
|
|
120
|
+
Step 2b: If search found nothing → Load build-deploy-patterns.md for examples
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Token Efficiency
|
|
124
|
+
|
|
125
|
+
**Loading all files: ~8,000 tokens**
|
|
126
|
+
**Loading one file: ~1,500 tokens**
|
|
127
|
+
**Search results: ~500 tokens**
|
|
128
|
+
|
|
129
|
+
**Best practice: Search first, load only if needed!**
|
|
130
|
+
|
|
131
|
+
## When to Load Multiple Files
|
|
132
|
+
|
|
133
|
+
Only load multiple files when working on cross-cutting concerns:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
Task: "Set up new project from scratch"
|
|
137
|
+
Relevant files:
|
|
138
|
+
- project-identity.md (tech stack)
|
|
139
|
+
- workflow-patterns.md (dev environment)
|
|
140
|
+
- git-patterns.md (git setup)
|
|
141
|
+
- testing-patterns.md (test framework)
|
|
142
|
+
|
|
143
|
+
BUT: Still search first! Existing memories might cover everything.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## File Selection Guide
|
|
147
|
+
|
|
148
|
+
| Your Task | Search Query | If No Results → Load |
|
|
149
|
+
|-----------|--------------|---------------------|
|
|
150
|
+
| Create feature branch | `git branch feature workflow` | `git-patterns.md` |
|
|
151
|
+
| Add tests | `testing tdd location framework` | `testing-patterns.md` |
|
|
152
|
+
| Deploy to production | `deploy production ci cd` | `build-deploy-patterns.md` |
|
|
153
|
+
| Design new service | `architecture microservices api` | `architecture-patterns.md` |
|
|
154
|
+
| Set up dev environment | `dev environment docker local` | `workflow-patterns.md` |
|
|
155
|
+
| Understand project | `project purpose tech stack` | `project-identity.md` |
|
|
156
|
+
|
|
157
|
+
## Remember
|
|
158
|
+
|
|
159
|
+
1. **Search memories FIRST** - Most efficient
|
|
160
|
+
2. **Load specific file if search failed** - Progressive disclosure
|
|
161
|
+
3. **Don't load all files** - Wastes tokens
|
|
162
|
+
4. **One file at a time** - Unless cross-cutting concern
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
**See parent `SKILL.md` for complete learning loop workflow.**
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Architecture Patterns
|
|
2
|
+
|
|
3
|
+
Patterns for capturing system architecture, design patterns, and structural decisions.
|
|
4
|
+
|
|
5
|
+
## Architecture Style Examples
|
|
6
|
+
|
|
7
|
+
**Automatically Captured:**
|
|
8
|
+
- "Uses microservices architecture"
|
|
9
|
+
- "Follows event-driven pattern"
|
|
10
|
+
- "We use MVC design pattern"
|
|
11
|
+
- "Built with serverless architecture"
|
|
12
|
+
- "Monolithic architecture with modular design"
|
|
13
|
+
- "Service-oriented architecture (SOA)"
|
|
14
|
+
|
|
15
|
+
**Stored As:**
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"type": "devops",
|
|
19
|
+
"category": "architecture",
|
|
20
|
+
"value": "microservices architecture",
|
|
21
|
+
"confidence": 0.85
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Design Pattern Examples
|
|
26
|
+
|
|
27
|
+
**Automatically Captured:**
|
|
28
|
+
- "Repository pattern for data access"
|
|
29
|
+
- "Factory pattern for object creation"
|
|
30
|
+
- "Observer pattern for event handling"
|
|
31
|
+
- "Singleton for configuration"
|
|
32
|
+
- "Dependency injection throughout"
|
|
33
|
+
|
|
34
|
+
**Examples:**
|
|
35
|
+
```
|
|
36
|
+
✅ "Use repository pattern for database access"
|
|
37
|
+
✅ "Dependency injection via constructor"
|
|
38
|
+
✅ "Factory pattern for creating services"
|
|
39
|
+
✅ "Strategy pattern for payment processors"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Layered Architecture
|
|
43
|
+
|
|
44
|
+
**Automatically Captured:**
|
|
45
|
+
- "Three-tier architecture (UI, business, data)"
|
|
46
|
+
- "Clean architecture with domain at center"
|
|
47
|
+
- "Hexagonal architecture (ports and adapters)"
|
|
48
|
+
- "Onion architecture pattern"
|
|
49
|
+
|
|
50
|
+
**Examples:**
|
|
51
|
+
```
|
|
52
|
+
✅ "Controllers → Services → Repositories"
|
|
53
|
+
✅ "Presentation, domain, infrastructure layers"
|
|
54
|
+
✅ "Core business logic isolated from frameworks"
|
|
55
|
+
✅ "Domain entities never depend on infrastructure"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Communication Patterns
|
|
59
|
+
|
|
60
|
+
**Automatically Captured:**
|
|
61
|
+
- "Event-driven with message queues"
|
|
62
|
+
- "REST API for client-server communication"
|
|
63
|
+
- "GraphQL for flexible data fetching"
|
|
64
|
+
- "gRPC for service-to-service calls"
|
|
65
|
+
- "WebSockets for real-time updates"
|
|
66
|
+
|
|
67
|
+
**Examples:**
|
|
68
|
+
```
|
|
69
|
+
✅ "REST API for public endpoints"
|
|
70
|
+
✅ "Internal services use gRPC"
|
|
71
|
+
✅ "Event bus for async communication"
|
|
72
|
+
✅ "WebSocket for live notifications"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Data Architecture
|
|
76
|
+
|
|
77
|
+
**Automatically Captured:**
|
|
78
|
+
- "CQRS (Command Query Responsibility Segregation)"
|
|
79
|
+
- "Event sourcing for audit trail"
|
|
80
|
+
- "Database per microservice"
|
|
81
|
+
- "Shared database with separate schemas"
|
|
82
|
+
- "Read replicas for scaling"
|
|
83
|
+
|
|
84
|
+
**Examples:**
|
|
85
|
+
```
|
|
86
|
+
✅ "Separate read and write models (CQRS)"
|
|
87
|
+
✅ "Event sourcing for orders"
|
|
88
|
+
✅ "Each service owns its database"
|
|
89
|
+
✅ "Redis for caching layer"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Scalability Patterns
|
|
93
|
+
|
|
94
|
+
**Automatically Captured:**
|
|
95
|
+
- "Horizontal scaling with load balancer"
|
|
96
|
+
- "Auto-scaling based on CPU usage"
|
|
97
|
+
- "Stateless services for easy scaling"
|
|
98
|
+
- "CDN for static asset delivery"
|
|
99
|
+
- "Database sharding by tenant ID"
|
|
100
|
+
|
|
101
|
+
**Examples:**
|
|
102
|
+
```
|
|
103
|
+
✅ "Horizontal pod autoscaling in Kubernetes"
|
|
104
|
+
✅ "Stateless API servers"
|
|
105
|
+
✅ "CloudFront for asset delivery"
|
|
106
|
+
✅ "Database sharded by region"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Resilience Patterns
|
|
110
|
+
|
|
111
|
+
**Automatically Captured:**
|
|
112
|
+
- "Circuit breaker for external services"
|
|
113
|
+
- "Retry with exponential backoff"
|
|
114
|
+
- "Bulkhead pattern for isolation"
|
|
115
|
+
- "Fallback to cached data"
|
|
116
|
+
- "Health checks for all services"
|
|
117
|
+
|
|
118
|
+
**Examples:**
|
|
119
|
+
```
|
|
120
|
+
✅ "Circuit breaker on payment gateway calls"
|
|
121
|
+
✅ "Retry failed requests up to 3 times"
|
|
122
|
+
✅ "Graceful degradation when service unavailable"
|
|
123
|
+
✅ "/health endpoint for monitoring"
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Security Architecture
|
|
127
|
+
|
|
128
|
+
**Automatically Captured:**
|
|
129
|
+
- "Zero-trust security model"
|
|
130
|
+
- "API gateway for authentication"
|
|
131
|
+
- "OAuth2 for authorization"
|
|
132
|
+
- "Encryption at rest and in transit"
|
|
133
|
+
- "Defense in depth strategy"
|
|
134
|
+
|
|
135
|
+
**Examples:**
|
|
136
|
+
```
|
|
137
|
+
✅ "API gateway handles auth"
|
|
138
|
+
✅ "JWT tokens for authentication"
|
|
139
|
+
✅ "TLS 1.3 for all connections"
|
|
140
|
+
✅ "Principle of least privilege"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Complex Architecture Example
|
|
144
|
+
|
|
145
|
+
**User States:**
|
|
146
|
+
```
|
|
147
|
+
"Our microservices architecture:
|
|
148
|
+
- API Gateway (authentication, rate limiting)
|
|
149
|
+
- User Service (PostgreSQL database)
|
|
150
|
+
- Order Service (PostgreSQL + Redis cache)
|
|
151
|
+
- Payment Service (external Stripe integration)
|
|
152
|
+
- Notification Service (sends emails/SMS)
|
|
153
|
+
- Event Bus (RabbitMQ) connects all services
|
|
154
|
+
- Each service is independently deployable
|
|
155
|
+
- Services communicate via events (async) or REST (sync)"
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Store Manually for Complex Systems:**
|
|
159
|
+
```javascript
|
|
160
|
+
mcp__claude-recall__store_memory({
|
|
161
|
+
content: `Microservices architecture:
|
|
162
|
+
- API Gateway (auth + rate limiting)
|
|
163
|
+
- User Service (PostgreSQL)
|
|
164
|
+
- Order Service (PostgreSQL + Redis)
|
|
165
|
+
- Payment Service (Stripe integration)
|
|
166
|
+
- Notification Service (email/SMS)
|
|
167
|
+
- RabbitMQ event bus
|
|
168
|
+
- Independent deployment
|
|
169
|
+
- Communication: events (async) + REST (sync)`,
|
|
170
|
+
metadata: {
|
|
171
|
+
type: "devops",
|
|
172
|
+
category: "architecture",
|
|
173
|
+
style: "microservices",
|
|
174
|
+
services: 5
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Integration Patterns
|
|
180
|
+
|
|
181
|
+
**Automatically Captured:**
|
|
182
|
+
- "API-first design"
|
|
183
|
+
- "Webhook callbacks for async operations"
|
|
184
|
+
- "Polling for legacy systems"
|
|
185
|
+
- "Adapter pattern for third-party APIs"
|
|
186
|
+
|
|
187
|
+
**Examples:**
|
|
188
|
+
```
|
|
189
|
+
✅ "OpenAPI spec drives implementation"
|
|
190
|
+
✅ "Webhooks for payment notifications"
|
|
191
|
+
✅ "Adapter layer for legacy SOAP services"
|
|
192
|
+
✅ "Anti-corruption layer for external APIs"
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Deployment Architecture
|
|
196
|
+
|
|
197
|
+
**Automatically Captured:**
|
|
198
|
+
- "Blue-green deployments"
|
|
199
|
+
- "Canary releases for gradual rollout"
|
|
200
|
+
- "Rolling updates in Kubernetes"
|
|
201
|
+
- "Immutable infrastructure"
|
|
202
|
+
|
|
203
|
+
**Examples:**
|
|
204
|
+
```
|
|
205
|
+
✅ "Blue-green deployment for zero downtime"
|
|
206
|
+
✅ "Canary 10% of traffic to new version"
|
|
207
|
+
✅ "Immutable Docker containers"
|
|
208
|
+
✅ "Infrastructure as code with Terraform"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Confidence Boosters
|
|
212
|
+
|
|
213
|
+
These keywords increase confidence for architecture patterns:
|
|
214
|
+
|
|
215
|
+
- **Strong**: "architecture", "pattern", "design"
|
|
216
|
+
- **Specific**: "microservices", "MVC", "CQRS", "event-driven"
|
|
217
|
+
- **Structural**: "layer", "tier", "module", "service"
|
|
218
|
+
- **Principles**: "separation of concerns", "loose coupling"
|
|
219
|
+
|
|
220
|
+
**Example:**
|
|
221
|
+
- "use microservices" → 70% confidence
|
|
222
|
+
- "microservices architecture" → 85% confidence
|
|
223
|
+
- "follows microservices architecture pattern" → 92% confidence
|
|
224
|
+
- "our system uses microservices with event-driven communication" → 95% confidence
|
|
225
|
+
|
|
226
|
+
## What Won't Be Captured
|
|
227
|
+
|
|
228
|
+
❌ "Maybe try microservices" (uncertain)
|
|
229
|
+
❌ "Should we use MVC?" (question)
|
|
230
|
+
❌ "Consider event-driven" (vague)
|
|
231
|
+
❌ "Microservices could work" (possibility)
|
|
232
|
+
|
|
233
|
+
**Make it explicit:**
|
|
234
|
+
✅ "Microservices architecture"
|
|
235
|
+
✅ "Use MVC pattern"
|
|
236
|
+
✅ "Event-driven design"
|
|
237
|
+
✅ "CQRS for read/write separation"
|
|
238
|
+
|
|
239
|
+
## Architecture Anti-Patterns to Store
|
|
240
|
+
|
|
241
|
+
**Automatically Captured:**
|
|
242
|
+
- "Avoid god objects"
|
|
243
|
+
- "Don't couple services tightly"
|
|
244
|
+
- "No circular dependencies"
|
|
245
|
+
- "Avoid shared database across services"
|
|
246
|
+
|
|
247
|
+
**Examples:**
|
|
248
|
+
```
|
|
249
|
+
✅ "Never create god classes"
|
|
250
|
+
✅ "Services must be loosely coupled"
|
|
251
|
+
✅ "No bidirectional dependencies"
|
|
252
|
+
✅ "Each service owns its data"
|
|
253
|
+
```
|