omgkit 2.11.0 → 2.13.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 +48 -1
- package/package.json +1 -1
- package/plugin/templates/autonomous/archetypes/ai-model-building.yaml +443 -0
- package/plugin/templates/autonomous/archetypes/ai-powered-app.yaml +420 -0
- package/plugin/templates/autonomous/archetypes/desktop-app.yaml +371 -0
- package/plugin/templates/autonomous/archetypes/event-driven-app.yaml +460 -0
- package/plugin/templates/autonomous/archetypes/game-app.yaml +428 -0
- package/plugin/templates/autonomous/archetypes/iot-app.yaml +415 -0
- package/plugin/templates/autonomous/archetypes/microservices-app.yaml +431 -0
- package/plugin/templates/autonomous/archetypes/mobile-app.yaml +356 -0
- package/plugin/templates/autonomous/archetypes/simulation-app.yaml +428 -0
- package/plugin/templates/autonomous/artifacts-schema.yaml +465 -0
- package/plugin/templates/autonomous/state-schema.yaml +105 -1
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
name: "AI-Powered Application"
|
|
2
|
+
id: ai-powered-app
|
|
3
|
+
description: "LLM-based application with AI capabilities, RAG, function calling, and intelligent features"
|
|
4
|
+
estimated_duration: "3-5 weeks"
|
|
5
|
+
icon: "microchip"
|
|
6
|
+
|
|
7
|
+
# Default technology recommendations
|
|
8
|
+
defaults:
|
|
9
|
+
ai_provider: anthropic
|
|
10
|
+
framework: nextjs
|
|
11
|
+
vector_db: pinecone
|
|
12
|
+
embedding: openai_embedding
|
|
13
|
+
orchestration: langchain
|
|
14
|
+
streaming: true
|
|
15
|
+
cache: redis
|
|
16
|
+
|
|
17
|
+
# Alternative technology stacks
|
|
18
|
+
alternatives:
|
|
19
|
+
ai_provider:
|
|
20
|
+
- id: anthropic
|
|
21
|
+
name: "Anthropic Claude"
|
|
22
|
+
description: "Best for complex reasoning and safety"
|
|
23
|
+
- id: openai
|
|
24
|
+
name: "OpenAI GPT"
|
|
25
|
+
description: "Wide adoption, strong ecosystem"
|
|
26
|
+
- id: google
|
|
27
|
+
name: "Google Gemini"
|
|
28
|
+
description: "Multimodal capabilities"
|
|
29
|
+
- id: multi_provider
|
|
30
|
+
name: "Multi-Provider"
|
|
31
|
+
description: "Use multiple providers with fallbacks"
|
|
32
|
+
|
|
33
|
+
vector_db:
|
|
34
|
+
- id: pinecone
|
|
35
|
+
name: "Pinecone"
|
|
36
|
+
description: "Managed, scalable vector database"
|
|
37
|
+
- id: weaviate
|
|
38
|
+
name: "Weaviate"
|
|
39
|
+
description: "Open-source with hybrid search"
|
|
40
|
+
- id: qdrant
|
|
41
|
+
name: "Qdrant"
|
|
42
|
+
description: "High-performance, self-hosted option"
|
|
43
|
+
- id: supabase_pgvector
|
|
44
|
+
name: "Supabase pgvector"
|
|
45
|
+
description: "PostgreSQL-based, integrated with Supabase"
|
|
46
|
+
|
|
47
|
+
orchestration:
|
|
48
|
+
- id: langchain
|
|
49
|
+
name: "LangChain"
|
|
50
|
+
description: "Most popular, extensive tooling"
|
|
51
|
+
- id: llamaindex
|
|
52
|
+
name: "LlamaIndex"
|
|
53
|
+
description: "Best for RAG applications"
|
|
54
|
+
- id: custom
|
|
55
|
+
name: "Custom Implementation"
|
|
56
|
+
description: "Direct API calls, full control"
|
|
57
|
+
|
|
58
|
+
# Phases of development
|
|
59
|
+
phases:
|
|
60
|
+
- id: discovery
|
|
61
|
+
name: "AI Use Case Discovery"
|
|
62
|
+
description: "Define AI capabilities, model selection, and data requirements"
|
|
63
|
+
order: 1
|
|
64
|
+
checkpoint: true
|
|
65
|
+
checkpoint_message: |
|
|
66
|
+
AI discovery complete. Please review:
|
|
67
|
+
- AI use case and expected outcomes
|
|
68
|
+
- Model selection and cost estimates
|
|
69
|
+
- Data requirements and sources
|
|
70
|
+
- RAG requirements (if applicable)
|
|
71
|
+
|
|
72
|
+
Approve to proceed with architecture.
|
|
73
|
+
|
|
74
|
+
steps:
|
|
75
|
+
- id: use_case
|
|
76
|
+
name: "Use Case Definition"
|
|
77
|
+
agent: planner
|
|
78
|
+
description: "Define specific AI capabilities needed"
|
|
79
|
+
|
|
80
|
+
- id: model_selection
|
|
81
|
+
name: "Model Selection"
|
|
82
|
+
agent: architect
|
|
83
|
+
description: "Select AI models based on requirements"
|
|
84
|
+
|
|
85
|
+
- id: cost_estimation
|
|
86
|
+
name: "Cost Estimation"
|
|
87
|
+
agent: planner
|
|
88
|
+
description: "Estimate token usage and API costs"
|
|
89
|
+
|
|
90
|
+
- id: data_requirements
|
|
91
|
+
name: "Data Requirements"
|
|
92
|
+
agent: planner
|
|
93
|
+
description: "Identify data sources for RAG/fine-tuning"
|
|
94
|
+
|
|
95
|
+
outputs:
|
|
96
|
+
- ".omgkit/generated/ai-use-case.md"
|
|
97
|
+
- ".omgkit/generated/model-selection.md"
|
|
98
|
+
- ".omgkit/generated/cost-estimate.md"
|
|
99
|
+
|
|
100
|
+
- id: planning
|
|
101
|
+
name: "AI Architecture Planning"
|
|
102
|
+
description: "Design prompt engineering, RAG architecture, and system design"
|
|
103
|
+
order: 2
|
|
104
|
+
checkpoint: true
|
|
105
|
+
checkpoint_message: |
|
|
106
|
+
AI architecture complete. Review:
|
|
107
|
+
- Prompt templates and strategies
|
|
108
|
+
- RAG pipeline design
|
|
109
|
+
- System architecture
|
|
110
|
+
|
|
111
|
+
Approve to begin implementation.
|
|
112
|
+
|
|
113
|
+
steps:
|
|
114
|
+
- id: prompt_engineering
|
|
115
|
+
name: "Prompt Engineering"
|
|
116
|
+
agent: planner
|
|
117
|
+
description: "Design prompt templates and strategies"
|
|
118
|
+
|
|
119
|
+
- id: rag_architecture
|
|
120
|
+
name: "RAG Architecture"
|
|
121
|
+
agent: architect
|
|
122
|
+
description: "Design retrieval-augmented generation pipeline"
|
|
123
|
+
|
|
124
|
+
- id: system_design
|
|
125
|
+
name: "System Design"
|
|
126
|
+
agent: architect
|
|
127
|
+
description: "Design overall system architecture"
|
|
128
|
+
|
|
129
|
+
- id: evaluation_plan
|
|
130
|
+
name: "Evaluation Plan"
|
|
131
|
+
agent: tester
|
|
132
|
+
description: "Define evaluation metrics and test cases"
|
|
133
|
+
|
|
134
|
+
outputs:
|
|
135
|
+
- ".omgkit/generated/prompt-templates.md"
|
|
136
|
+
- ".omgkit/generated/rag-architecture.md"
|
|
137
|
+
- ".omgkit/generated/ai-evaluation-plan.md"
|
|
138
|
+
|
|
139
|
+
- id: foundation
|
|
140
|
+
name: "AI Foundation"
|
|
141
|
+
description: "Set up AI SDK integration and vector database"
|
|
142
|
+
order: 3
|
|
143
|
+
checkpoint: false
|
|
144
|
+
|
|
145
|
+
steps:
|
|
146
|
+
- id: ai_sdk_setup
|
|
147
|
+
name: "AI SDK Integration"
|
|
148
|
+
agent: fullstack-developer
|
|
149
|
+
description: "Integrate AI provider SDKs"
|
|
150
|
+
|
|
151
|
+
- id: vector_db_setup
|
|
152
|
+
name: "Vector Database Setup"
|
|
153
|
+
agent: database-admin
|
|
154
|
+
description: "Set up and configure vector database"
|
|
155
|
+
|
|
156
|
+
- id: embedding_pipeline
|
|
157
|
+
name: "Embedding Pipeline"
|
|
158
|
+
agent: fullstack-developer
|
|
159
|
+
description: "Create document embedding pipeline"
|
|
160
|
+
|
|
161
|
+
- id: streaming_setup
|
|
162
|
+
name: "Streaming Setup"
|
|
163
|
+
agent: fullstack-developer
|
|
164
|
+
description: "Implement response streaming"
|
|
165
|
+
|
|
166
|
+
outputs:
|
|
167
|
+
- "src/lib/ai/"
|
|
168
|
+
- "src/lib/embeddings/"
|
|
169
|
+
- "src/lib/vector-store/"
|
|
170
|
+
|
|
171
|
+
- id: core_features
|
|
172
|
+
name: "Core AI Features"
|
|
173
|
+
description: "Implement chat interfaces, completions, and basic AI features"
|
|
174
|
+
order: 4
|
|
175
|
+
checkpoint: true
|
|
176
|
+
checkpoint_message: |
|
|
177
|
+
Core AI features implemented. Review:
|
|
178
|
+
- Chat/completion interfaces
|
|
179
|
+
- Response quality
|
|
180
|
+
- Error handling
|
|
181
|
+
|
|
182
|
+
Approve to add advanced features.
|
|
183
|
+
|
|
184
|
+
steps:
|
|
185
|
+
- id: chat_interface
|
|
186
|
+
name: "Chat Interface"
|
|
187
|
+
agent: fullstack-developer
|
|
188
|
+
description: "Build conversational AI interface"
|
|
189
|
+
|
|
190
|
+
- id: completion_api
|
|
191
|
+
name: "Completion API"
|
|
192
|
+
agent: fullstack-developer
|
|
193
|
+
description: "Create completion endpoints"
|
|
194
|
+
|
|
195
|
+
- id: context_management
|
|
196
|
+
name: "Context Management"
|
|
197
|
+
agent: fullstack-developer
|
|
198
|
+
description: "Implement conversation context handling"
|
|
199
|
+
|
|
200
|
+
- id: error_handling
|
|
201
|
+
name: "Error Handling"
|
|
202
|
+
agent: fullstack-developer
|
|
203
|
+
description: "Handle API errors, rate limits, fallbacks"
|
|
204
|
+
|
|
205
|
+
outputs:
|
|
206
|
+
- "src/app/api/chat/"
|
|
207
|
+
- "src/components/chat/"
|
|
208
|
+
|
|
209
|
+
- id: advanced_features
|
|
210
|
+
name: "Advanced AI Features"
|
|
211
|
+
description: "Implement RAG, function calling, and agents"
|
|
212
|
+
order: 5
|
|
213
|
+
checkpoint: true
|
|
214
|
+
checkpoint_message: |
|
|
215
|
+
Advanced AI features complete. Review:
|
|
216
|
+
- RAG pipeline quality
|
|
217
|
+
- Function calling accuracy
|
|
218
|
+
- Agent behavior
|
|
219
|
+
|
|
220
|
+
Approve to proceed with optimization.
|
|
221
|
+
|
|
222
|
+
steps:
|
|
223
|
+
- id: rag_implementation
|
|
224
|
+
name: "RAG Implementation"
|
|
225
|
+
agent: fullstack-developer
|
|
226
|
+
description: "Implement retrieval-augmented generation"
|
|
227
|
+
|
|
228
|
+
- id: function_calling
|
|
229
|
+
name: "Function Calling"
|
|
230
|
+
agent: fullstack-developer
|
|
231
|
+
description: "Implement tool use and function calling"
|
|
232
|
+
|
|
233
|
+
- id: agents
|
|
234
|
+
name: "AI Agents"
|
|
235
|
+
agent: fullstack-developer
|
|
236
|
+
description: "Build autonomous AI agents if needed"
|
|
237
|
+
|
|
238
|
+
- id: memory
|
|
239
|
+
name: "Long-term Memory"
|
|
240
|
+
agent: fullstack-developer
|
|
241
|
+
description: "Implement conversation memory"
|
|
242
|
+
|
|
243
|
+
outputs:
|
|
244
|
+
- "src/lib/rag/"
|
|
245
|
+
- "src/lib/tools/"
|
|
246
|
+
- "src/lib/agents/"
|
|
247
|
+
|
|
248
|
+
- id: optimization
|
|
249
|
+
name: "Optimization"
|
|
250
|
+
description: "Optimize for cost, latency, and reliability"
|
|
251
|
+
order: 6
|
|
252
|
+
checkpoint: false
|
|
253
|
+
|
|
254
|
+
steps:
|
|
255
|
+
- id: caching
|
|
256
|
+
name: "Response Caching"
|
|
257
|
+
agent: fullstack-developer
|
|
258
|
+
description: "Implement semantic caching"
|
|
259
|
+
|
|
260
|
+
- id: rate_limiting
|
|
261
|
+
name: "Rate Limiting"
|
|
262
|
+
agent: fullstack-developer
|
|
263
|
+
description: "Implement rate limiting and quotas"
|
|
264
|
+
|
|
265
|
+
- id: cost_optimization
|
|
266
|
+
name: "Cost Optimization"
|
|
267
|
+
agent: fullstack-developer
|
|
268
|
+
description: "Optimize token usage and API calls"
|
|
269
|
+
|
|
270
|
+
- id: latency
|
|
271
|
+
name: "Latency Optimization"
|
|
272
|
+
agent: fullstack-developer
|
|
273
|
+
description: "Reduce response latency"
|
|
274
|
+
|
|
275
|
+
outputs:
|
|
276
|
+
- "src/lib/cache/"
|
|
277
|
+
- "src/middleware/rate-limit.ts"
|
|
278
|
+
|
|
279
|
+
- id: safety
|
|
280
|
+
name: "Safety & Guardrails"
|
|
281
|
+
description: "Implement content moderation and safety measures"
|
|
282
|
+
order: 7
|
|
283
|
+
checkpoint: true
|
|
284
|
+
checkpoint_message: |
|
|
285
|
+
Safety measures implemented. Review:
|
|
286
|
+
- Content moderation
|
|
287
|
+
- Prompt injection defense
|
|
288
|
+
- Output validation
|
|
289
|
+
|
|
290
|
+
Approve for deployment.
|
|
291
|
+
|
|
292
|
+
steps:
|
|
293
|
+
- id: guardrails
|
|
294
|
+
name: "Guardrails"
|
|
295
|
+
agent: security-auditor
|
|
296
|
+
description: "Implement input/output guardrails"
|
|
297
|
+
|
|
298
|
+
- id: moderation
|
|
299
|
+
name: "Content Moderation"
|
|
300
|
+
agent: security-auditor
|
|
301
|
+
description: "Set up content moderation"
|
|
302
|
+
|
|
303
|
+
- id: injection_defense
|
|
304
|
+
name: "Injection Defense"
|
|
305
|
+
agent: security-auditor
|
|
306
|
+
description: "Protect against prompt injection"
|
|
307
|
+
|
|
308
|
+
- id: eval_suite
|
|
309
|
+
name: "Evaluation Suite"
|
|
310
|
+
agent: tester
|
|
311
|
+
description: "Build evaluation test suite"
|
|
312
|
+
|
|
313
|
+
outputs:
|
|
314
|
+
- "src/lib/guardrails/"
|
|
315
|
+
- "src/lib/moderation/"
|
|
316
|
+
- "evals/"
|
|
317
|
+
|
|
318
|
+
- id: deployment
|
|
319
|
+
name: "Deployment & Monitoring"
|
|
320
|
+
description: "Deploy with monitoring and A/B testing"
|
|
321
|
+
order: 8
|
|
322
|
+
checkpoint: true
|
|
323
|
+
checkpoint_message: |
|
|
324
|
+
Ready for production. Review:
|
|
325
|
+
- Monitoring setup
|
|
326
|
+
- Cost tracking
|
|
327
|
+
- A/B testing configuration
|
|
328
|
+
|
|
329
|
+
This is the final checkpoint.
|
|
330
|
+
|
|
331
|
+
steps:
|
|
332
|
+
- id: monitoring
|
|
333
|
+
name: "AI Monitoring"
|
|
334
|
+
agent: cicd-manager
|
|
335
|
+
description: "Set up AI-specific monitoring"
|
|
336
|
+
|
|
337
|
+
- id: cost_tracking
|
|
338
|
+
name: "Cost Tracking"
|
|
339
|
+
agent: fullstack-developer
|
|
340
|
+
description: "Implement cost tracking dashboard"
|
|
341
|
+
|
|
342
|
+
- id: ab_testing
|
|
343
|
+
name: "A/B Testing"
|
|
344
|
+
agent: fullstack-developer
|
|
345
|
+
description: "Set up prompt A/B testing"
|
|
346
|
+
|
|
347
|
+
- id: deploy
|
|
348
|
+
name: "Production Deploy"
|
|
349
|
+
agent: cicd-manager
|
|
350
|
+
description: "Deploy to production"
|
|
351
|
+
|
|
352
|
+
outputs:
|
|
353
|
+
- "src/lib/analytics/"
|
|
354
|
+
- ".env.production"
|
|
355
|
+
|
|
356
|
+
# Autonomy rules for this archetype
|
|
357
|
+
autonomy_rules:
|
|
358
|
+
- pattern: "**/prompts/**"
|
|
359
|
+
level: 3
|
|
360
|
+
reason: "Prompts significantly affect output quality"
|
|
361
|
+
- pattern: "**/guardrails/**"
|
|
362
|
+
level: 3
|
|
363
|
+
reason: "Safety measures need careful review"
|
|
364
|
+
- pattern: "**/tools/**"
|
|
365
|
+
level: 3
|
|
366
|
+
reason: "Function calling needs validation"
|
|
367
|
+
- pattern: "**/.env*"
|
|
368
|
+
level: 4
|
|
369
|
+
reason: "API keys are sensitive"
|
|
370
|
+
- pattern: "**/chat/**"
|
|
371
|
+
level: 2
|
|
372
|
+
reason: "Chat UI can be reviewed quickly"
|
|
373
|
+
- pattern: "**/embeddings/**"
|
|
374
|
+
level: 2
|
|
375
|
+
reason: "Embedding pipelines need review"
|
|
376
|
+
|
|
377
|
+
# Quality gates
|
|
378
|
+
quality_gates:
|
|
379
|
+
after_feature:
|
|
380
|
+
- "npm test"
|
|
381
|
+
- "npm run lint"
|
|
382
|
+
- "evals pass"
|
|
383
|
+
before_checkpoint:
|
|
384
|
+
- "npm run build"
|
|
385
|
+
- "eval accuracy >= 80%"
|
|
386
|
+
- "guardrails tests pass"
|
|
387
|
+
before_deploy:
|
|
388
|
+
- "security scan"
|
|
389
|
+
- "cost estimation review"
|
|
390
|
+
- "load testing"
|
|
391
|
+
|
|
392
|
+
# AI-specific discovery questions
|
|
393
|
+
discovery_additions:
|
|
394
|
+
- category: "AI Capabilities"
|
|
395
|
+
questions:
|
|
396
|
+
- "What AI capabilities do you need? (chat, completion, classification, etc.)"
|
|
397
|
+
- "Do you need RAG (Retrieval-Augmented Generation)?"
|
|
398
|
+
- "Will you use function calling/tool use?"
|
|
399
|
+
- "Do you need multi-modal capabilities (vision, audio)?"
|
|
400
|
+
- "Should the AI maintain conversation memory?"
|
|
401
|
+
|
|
402
|
+
- category: "Data & Knowledge"
|
|
403
|
+
questions:
|
|
404
|
+
- "What data sources will the AI use?"
|
|
405
|
+
- "How much data needs to be indexed? (documents, size)"
|
|
406
|
+
- "How often is the data updated?"
|
|
407
|
+
- "Are there privacy/compliance requirements for data?"
|
|
408
|
+
|
|
409
|
+
- category: "Performance & Cost"
|
|
410
|
+
questions:
|
|
411
|
+
- "Expected request volume? (per day/month)"
|
|
412
|
+
- "Acceptable response latency?"
|
|
413
|
+
- "Monthly budget for AI API costs?"
|
|
414
|
+
- "Do you need fallback models?"
|
|
415
|
+
|
|
416
|
+
- category: "Safety & Compliance"
|
|
417
|
+
questions:
|
|
418
|
+
- "Content moderation requirements?"
|
|
419
|
+
- "Do you need to log/audit AI interactions?"
|
|
420
|
+
- "Industry compliance requirements? (HIPAA, SOC2, etc.)"
|