-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpatterns.yaml
More file actions
275 lines (249 loc) · 9.7 KB
/
patterns.yaml
File metadata and controls
275 lines (249 loc) · 9.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
version: "1.0"
base_url: "https://github.com/PaulDuvall/ai-development-patterns?tab=readme-ov-file"
patterns:
# Foundation (6 patterns)
- id: readiness-assessment
name: Readiness Assessment
category: foundation
maturity: beginner
anchor: "#readiness-assessment"
automatable: false
description: >
Systematic evaluation of codebase and team readiness for AI integration.
related: [codified-rules, issue-generation]
- id: codified-rules
name: Codified Rules
category: foundation
maturity: beginner
anchor: "#codified-rules"
automatable: true
description: >
Version and maintain AI coding standards as explicit configuration files.
related: [readiness-assessment, security-sandbox, context-persistence, progressive-disclosure, event-automation, guided-refactoring]
- id: security-sandbox
name: Security Sandbox
category: foundation
maturity: beginner
anchor: "#security-sandbox"
automatable: true
description: >
Run AI tools in isolated environments without access to secrets or sensitive data.
related: [codified-rules, security-orchestration, policy-generation, event-automation]
- id: developer-lifecycle
name: Developer Lifecycle
category: foundation
maturity: intermediate
anchor: "#developer-lifecycle"
automatable: false
description: >
Structured 9-stage process from problem definition through deployment with AI assistance.
related: [codified-rules, security-sandbox, spec-driven-development, observable-development, automated-traceability, tool-integration]
- id: tool-integration
name: Tool Integration
category: foundation
maturity: intermediate
anchor: "#tool-integration"
automatable: true
description: >
Connect AI systems to external data sources, APIs, and tools for enhanced capabilities beyond prompt-only interactions.
related: [security-sandbox, developer-lifecycle]
- id: issue-generation
name: Issue Generation
category: foundation
maturity: intermediate
anchor: "#issue-generation"
automatable: true
description: >
Generate Kanban-optimized work items from requirements using AI to ensure continuous flow with clear acceptance criteria and dependencies.
related: [readiness-assessment]
# Development (17 patterns)
- id: spec-driven-development
name: Spec-Driven Development
category: development
maturity: intermediate
anchor: "#spec-driven-development"
automatable: true
description: >
Use executable specifications to guide AI code generation with clear acceptance criteria before implementation.
related: [developer-lifecycle, custom-commands, image-spec, atomic-decomposition]
- id: planned-implementation
name: Planned Implementation
category: development
maturity: beginner
anchor: "#planned-implementation"
automatable: true
description: >
Generate explicit implementation plans before writing code to improve quality, reduce iterations, and enable better collaboration.
related: [progressive-enhancement]
- id: progressive-enhancement
name: Progressive Enhancement
category: development
maturity: beginner
anchor: "#progressive-enhancement"
automatable: true
description: >
Build complex features through small, deployable iterations rather than big-bang generation.
related: [planned-implementation, atomic-decomposition, image-spec, choice-generation]
- id: context-persistence
name: Context Persistence
category: development
maturity: intermediate
anchor: "#context-persistence"
automatable: true
description: >
Manage AI context as a finite resource through structured memory schemas, prompt pattern capture, and session continuity protocols.
related: [codified-rules, progressive-disclosure]
- id: event-automation
name: Event Automation
category: development
maturity: intermediate
anchor: "#event-automation"
automatable: true
description: >
Execute custom commands automatically at assistant lifecycle events to enforce policies and automate workflows.
related: [codified-rules, security-sandbox, custom-commands]
- id: custom-commands
name: Custom Commands
category: development
maturity: intermediate
anchor: "#custom-commands"
automatable: true
description: >
Discover and use built-in command vocabularies, then extend them with custom commands that encode domain expertise and sophisticated workflows.
related: [event-automation, spec-driven-development, codified-rules]
- id: progressive-disclosure
name: Progressive Disclosure
category: development
maturity: intermediate
anchor: "#progressive-disclosure"
automatable: true
description: >
Load AI assistant rules incrementally based on task context to prevent instruction saturation and context bloat.
related: [codified-rules, context-persistence, centralized-rules]
- id: constrained-generation
name: Constrained Generation
category: development
maturity: beginner
anchor: "#constrained-generation"
automatable: true
description: >
Give AI specific constraints to prevent over-engineering and ensure focused solutions.
related: []
- id: atomic-decomposition
name: Atomic Decomposition
category: development
maturity: intermediate
anchor: "#atomic-decomposition"
automatable: true
description: >
Break complex features into atomic, independently implementable tasks for parallel AI agent execution.
related: [progressive-enhancement, parallel-agents]
- id: automated-traceability
name: Automated Traceability
category: development
maturity: intermediate
anchor: "#automated-traceability"
automatable: true
description: >
Maintain automated links between requirements, specifications, tests, implementation, and documentation using AI.
related: [developer-lifecycle]
- id: guided-architecture
name: Guided Architecture
category: development
maturity: intermediate
anchor: "#guided-architecture"
automatable: true
description: >
Apply architectural frameworks (DDD, Well-Architected, 12-Factor) using AI to ensure sound system design.
related: [developer-lifecycle, codified-rules]
- id: guided-refactoring
name: Guided Refactoring
category: development
maturity: intermediate
anchor: "#guided-refactoring"
automatable: true
description: >
Systematic code improvement using AI to detect and resolve code smells with measurable quality metrics.
related: [codified-rules]
- id: observable-development
name: Observable Development
category: development
maturity: intermediate
anchor: "#observable-development"
automatable: false
description: >
Strategic logging and debugging that makes system behavior visible to AI.
related: [developer-lifecycle]
- id: image-spec
name: Image Spec
category: development
maturity: intermediate
anchor: "#image-spec"
automatable: true
description: >
Upload images (diagrams, mockups, flows) as primary specifications for AI coding tools to build accurate implementations from visual context.
related: [spec-driven-development, progressive-enhancement]
- id: choice-generation
name: Choice Generation
category: development
maturity: intermediate
anchor: "#choice-generation"
automatable: false
description: >
Generate multiple implementation options for exploration and comparison rather than accepting first AI solution.
related: [progressive-enhancement]
- id: parallel-agents
name: Parallel Agents
category: development
maturity: advanced
anchor: "#parallel-agents"
automatable: false
description: >
Run multiple AI agents concurrently on isolated tasks or environments to maximize development speed and exploration.
related: [atomic-decomposition]
- id: error-resolution
name: Error Resolution
category: development
maturity: intermediate
anchor: "#error-resolution"
automatable: false
description: >
Automatically collect error context from logs, system state, and git history, then use AI to diagnose root causes and generate validated fixes.
related: [developer-lifecycle, observable-development, tool-integration]
# Operations (4 patterns)
- id: security-orchestration
name: Security Orchestration
category: operations
maturity: intermediate
anchor: "#security-orchestration"
automatable: true
description: >
Aggregate multiple security tools and use AI to summarize findings for actionable insights.
related: [security-sandbox, centralized-rules]
- id: centralized-rules
name: Centralized Rules
category: operations
maturity: advanced
anchor: "#centralized-rules"
automatable: true
description: >
Enforce organization-wide AI rules through a central Git repository that syncs to standard AI assistant configuration files with automatic language and framework detection.
related: [codified-rules, progressive-disclosure, security-orchestration]
- id: policy-generation
name: Policy Generation
category: operations
maturity: advanced
anchor: "#policy-generation"
automatable: false
description: >
Transform compliance requirements into executable Cedar/OPA policy files with AI assistance.
related: [security-sandbox]
- id: baseline-management
name: Baseline Management
category: operations
maturity: advanced
anchor: "#baseline-management"
automatable: false
description: >
Establish intelligent performance baselines and configure monitoring thresholds automatically.
related: [tool-integration]