ultra-dex 1.7.3 → 2.2.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.
Files changed (119) hide show
  1. package/README.md +160 -127
  2. package/assets/agents/0-orchestration/orchestrator.md +225 -0
  3. package/assets/agents/00-AGENT_INDEX.md +138 -0
  4. package/assets/agents/1-leadership/cto.md +186 -0
  5. package/assets/agents/1-leadership/planner.md +205 -0
  6. package/assets/agents/1-leadership/research.md +285 -0
  7. package/assets/agents/2-development/backend.md +472 -0
  8. package/assets/agents/2-development/database.md +516 -0
  9. package/assets/agents/2-development/frontend.md +144 -0
  10. package/assets/agents/3-security/auth.md +168 -0
  11. package/assets/agents/3-security/security.md +335 -0
  12. package/assets/agents/4-devops/devops.md +587 -0
  13. package/assets/agents/5-quality/debugger.md +188 -0
  14. package/assets/agents/5-quality/documentation.md +167 -0
  15. package/assets/agents/5-quality/reviewer.md +213 -0
  16. package/assets/agents/5-quality/testing.md +280 -0
  17. package/assets/agents/6-specialist/performance.md +323 -0
  18. package/assets/agents/6-specialist/refactoring.md +343 -0
  19. package/assets/agents/AGENT-INSTRUCTIONS.md +315 -0
  20. package/assets/agents/README.md +232 -0
  21. package/assets/cursor-rules/00-ultra-dex-core.mdc +48 -0
  22. package/assets/cursor-rules/01-database.mdc +50 -0
  23. package/assets/cursor-rules/02-api.mdc +81 -0
  24. package/assets/cursor-rules/03-auth.mdc +70 -0
  25. package/assets/cursor-rules/04-frontend.mdc +92 -0
  26. package/assets/cursor-rules/05-payments.mdc +88 -0
  27. package/assets/cursor-rules/06-testing.mdc +104 -0
  28. package/assets/cursor-rules/07-security.mdc +94 -0
  29. package/assets/cursor-rules/08-deployment.mdc +92 -0
  30. package/assets/cursor-rules/09-error-handling.mdc +137 -0
  31. package/assets/cursor-rules/10-performance.mdc +123 -0
  32. package/assets/cursor-rules/11-nextjs-v15.mdc +307 -0
  33. package/assets/cursor-rules/12-multi-tenancy.mdc +282 -0
  34. package/assets/cursor-rules/README.md +78 -0
  35. package/assets/cursor-rules/load.ps1 +108 -0
  36. package/assets/cursor-rules/load.sh +102 -0
  37. package/assets/docs/BUILD-AUTH-30M.md +113 -0
  38. package/assets/docs/CHECKLIST-21-STEP.md +86 -0
  39. package/assets/docs/CODEMAP.md +229 -0
  40. package/assets/docs/CUSTOMIZATION.md +127 -0
  41. package/assets/docs/LAUNCH-POSTS.md +238 -0
  42. package/assets/docs/QUICK-REFERENCE.md +338 -0
  43. package/assets/docs/README.md +21 -0
  44. package/assets/docs/ROADMAP.md +480 -0
  45. package/assets/docs/TROUBLESHOOTING.md +148 -0
  46. package/assets/docs/TUTORIAL.md +182 -0
  47. package/assets/docs/VERIFICATION.md +108 -0
  48. package/assets/docs/VISION-V2.md +187 -0
  49. package/assets/docs/WORKFLOW-DIAGRAMS.md +463 -0
  50. package/assets/docs/index.html +550 -0
  51. package/assets/live-templates/next15-prisma-clerk/.env.example +3 -0
  52. package/assets/live-templates/next15-prisma-clerk/README.md +10 -0
  53. package/assets/live-templates/next15-prisma-clerk/app/layout.tsx +7 -0
  54. package/assets/live-templates/next15-prisma-clerk/app/page.tsx +8 -0
  55. package/assets/live-templates/next15-prisma-clerk/next.config.js +6 -0
  56. package/assets/live-templates/next15-prisma-clerk/package.json +22 -0
  57. package/assets/live-templates/next15-prisma-clerk/prisma/schema.prisma +34 -0
  58. package/assets/live-templates/remix-supabase/.env.example +2 -0
  59. package/assets/live-templates/remix-supabase/README.md +9 -0
  60. package/assets/live-templates/remix-supabase/app/root.tsx +19 -0
  61. package/assets/live-templates/remix-supabase/app/routes/_index.tsx +8 -0
  62. package/assets/live-templates/remix-supabase/app/utils/supabase.server.ts +6 -0
  63. package/assets/live-templates/remix-supabase/package.json +20 -0
  64. package/assets/live-templates/remix-supabase/remix.config.js +6 -0
  65. package/assets/live-templates/sveltekit-drizzle/.env.example +1 -0
  66. package/assets/live-templates/sveltekit-drizzle/README.md +9 -0
  67. package/assets/live-templates/sveltekit-drizzle/drizzle/schema.ts +7 -0
  68. package/assets/live-templates/sveltekit-drizzle/drizzle.config.ts +5 -0
  69. package/assets/live-templates/sveltekit-drizzle/package.json +21 -0
  70. package/assets/live-templates/sveltekit-drizzle/src/lib/db.ts +5 -0
  71. package/assets/live-templates/sveltekit-drizzle/src/routes/+page.svelte +2 -0
  72. package/assets/live-templates/sveltekit-drizzle/svelte.config.js +5 -0
  73. package/assets/live-templates/sveltekit-drizzle/vite.config.js +5 -0
  74. package/assets/saas-plan/04-Imp-Template.md +5546 -0
  75. package/assets/templates/CASE-STUDY-TEMPLATE.md +139 -0
  76. package/assets/templates/MASTER-PLAN-TEMPLATE.md +647 -0
  77. package/assets/templates/ORDER-TRACKER-TEMPLATE.md +731 -0
  78. package/assets/templates/PHASE-TRACKER-TEMPLATE.md +577 -0
  79. package/assets/templates/README.md +419 -0
  80. package/bin/ultra-dex.js +1078 -422
  81. package/lib/commands/agents.js +154 -0
  82. package/lib/commands/audit.js +135 -0
  83. package/lib/commands/banner.js +21 -0
  84. package/lib/commands/build.js +214 -0
  85. package/lib/commands/examples.js +34 -0
  86. package/lib/commands/fetch.js +186 -0
  87. package/lib/commands/generate.js +217 -0
  88. package/lib/commands/hooks.js +105 -0
  89. package/lib/commands/init.js +337 -0
  90. package/lib/commands/placeholders.js +11 -0
  91. package/lib/commands/review.js +287 -0
  92. package/lib/commands/serve.js +56 -0
  93. package/lib/commands/suggest.js +126 -0
  94. package/lib/commands/validate.js +140 -0
  95. package/lib/commands/workflows.js +185 -0
  96. package/lib/config/paths.js +9 -0
  97. package/lib/config/urls.js +16 -0
  98. package/lib/providers/base.js +82 -0
  99. package/lib/providers/claude.js +177 -0
  100. package/lib/providers/gemini.js +170 -0
  101. package/lib/providers/index.js +93 -0
  102. package/lib/providers/openai.js +163 -0
  103. package/lib/templates/context.js +26 -0
  104. package/lib/templates/embedded.js +141 -0
  105. package/lib/templates/prompts/generate-plan.js +147 -0
  106. package/lib/templates/prompts/review-code.js +57 -0
  107. package/lib/templates/prompts/section-prompts.js +275 -0
  108. package/lib/templates/prompts/system-prompt.md +58 -0
  109. package/lib/templates/quick-start.js +43 -0
  110. package/lib/utils/build-helpers.js +257 -0
  111. package/lib/utils/fallback.js +36 -0
  112. package/lib/utils/files.js +67 -0
  113. package/lib/utils/network.js +18 -0
  114. package/lib/utils/output.js +20 -0
  115. package/lib/utils/parser.js +155 -0
  116. package/lib/utils/prompt-builder.js +93 -0
  117. package/lib/utils/review-helpers.js +334 -0
  118. package/lib/utils/validation.js +34 -0
  119. package/package.json +19 -5
@@ -0,0 +1,419 @@
1
+ # Ultra-Dex Templates
2
+
3
+ Project planning and tracking templates for AI-driven SaaS development.
4
+
5
+ ---
6
+
7
+ ## 📄 Available Templates
8
+
9
+ ### [MASTER-PLAN-TEMPLATE.md](./MASTER-PLAN-TEMPLATE.md)
10
+
11
+ **Purpose:** Single-file project overview for AI agents
12
+
13
+ **What it includes:**
14
+ - Project vision and goals
15
+ - Tech stack decisions (frontend, backend, database, deployment)
16
+ - Database schema planning
17
+ - API endpoint listing
18
+ - Feature roadmap
19
+ - Deployment plan
20
+ - Quarterly milestones
21
+
22
+ **Best for:**
23
+ - New projects that need a comprehensive overview
24
+ - Giving AI agents complete context in one file
25
+ - Teams that want a "single source of truth"
26
+
27
+ **How to use:**
28
+ 1. Copy MASTER-PLAN-TEMPLATE.md to your project root as `MASTER-PLAN.md`
29
+ 2. Fill in the sections (use AI agents like @CTO, @Planner to help)
30
+ 3. Keep it updated as decisions are made
31
+ 4. Reference it when working with AI agents
32
+
33
+ **Example AI prompt:**
34
+ ```
35
+ Read MASTER-PLAN.md to understand the project context.
36
+
37
+ Act as @Backend agent and implement the user authentication endpoints
38
+ listed in Section 4 (API Endpoints).
39
+ ```
40
+
41
+ **Size:** 800 lines | 14 KB
42
+
43
+ ---
44
+
45
+ ### [PHASE-TRACKER-TEMPLATE.md](./PHASE-TRACKER-TEMPLATE.md)
46
+
47
+ **Purpose:** Track implementation progress across 5 phases
48
+
49
+ **What it includes:**
50
+ - 5 development phases (Planning → Testing & QA)
51
+ - 40 example tasks with agent assignments
52
+ - Status tracking (⏳ Pending → 🔄 In Progress → ✅ Completed)
53
+ - Dependencies and blockers section
54
+ - Weekly progress snapshots
55
+
56
+ **Best for:**
57
+ - Breaking down large projects into manageable phases
58
+ - Tracking what's done vs what remains
59
+ - Coordinating multiple AI agents on different tasks
60
+ - Visualizing project progress
61
+
62
+ **How to use:**
63
+ 1. Copy PHASE-TRACKER-TEMPLATE.md to your project as `PHASE-TRACKER.md`
64
+ 2. Customize phases and tasks for your project
65
+ 3. Update task status as you complete work
66
+ 4. Use with AI agents for focused work
67
+
68
+ **Example workflow:**
69
+ ```
70
+ Week 1: Focus on Phase 1 (Planning & Architecture)
71
+ - Work with @CTO on tech stack
72
+ - Work with @Database on schema design
73
+ - Update status to ✅ when complete
74
+
75
+ Week 2: Move to Phase 2 (Database & Backend)
76
+ - Work with @Backend on API endpoints
77
+ - Work with @Testing on unit tests
78
+ - Track progress in PHASE-TRACKER.md
79
+ ```
80
+
81
+ **Size:** 329 lines | 11 KB
82
+
83
+ ---
84
+
85
+ ### [ORDER-TRACKER-TEMPLATE.md](./ORDER-TRACKER-TEMPLATE.md)
86
+
87
+ **Purpose:** Step-by-step execution guide with copy-paste prompts
88
+
89
+ **What it includes:**
90
+ - Numbered "orders" (1, 2, 3...) with exact prompts to paste
91
+ - Pre-written AI commands for each step
92
+ - Result documentation sections
93
+ - Execution log for tracking progress
94
+ - Blocker tracking
95
+
96
+ **Best for:**
97
+ - Users who want a scripted, guided experience
98
+ - Following exact sequences without deviating
99
+ - Learning the agent workflow (great for beginners)
100
+ - Projects where order of operations matters
101
+
102
+ **How to use:**
103
+ 1. Copy ORDER-TRACKER-TEMPLATE.md to your project as `ORDERS.md`
104
+ 2. Follow orders in sequence (Order #1, then #2, etc.)
105
+ 3. Copy the prompt from each order into your AI tool
106
+ 4. Paste the result back into the Result section
107
+ 5. Move to next order when complete
108
+
109
+ **Example:**
110
+ ```
111
+ Order #3: Database Schema
112
+
113
+ Prompt (copy this):
114
+ Read agents/2-development/database.md and continue as that agent.
115
+ Task: Create the User and Post tables with relationships.
116
+ [... full prompt ...]
117
+
118
+ Result:
119
+ [Paste @Database output here]
120
+ Migration: npx prisma migrate dev --name init
121
+ Status: ✅ Complete
122
+ ```
123
+
124
+ **When to use ORDER-TRACKER vs PHASE-TRACKER:**
125
+ - **ORDER-TRACKER:** You want exact prompts, step-by-step guidance, more scripted
126
+ - **PHASE-TRACKER:** You want flexible task tracking, status overview, more freestyle
127
+
128
+ **Size:** 400+ lines | 15 KB
129
+
130
+ ---
131
+
132
+ ### [CASE-STUDY-TEMPLATE.md](./CASE-STUDY-TEMPLATE.md)
133
+
134
+ **Purpose:** Document real projects built with Ultra-Dex
135
+
136
+ **What it includes:**
137
+ - Project overview and metrics
138
+ - Tech stack decisions with reasoning
139
+ - Ultra-Dex agent usage breakdown
140
+ - Time savings and quality metrics
141
+ - Learnings and recommendations
142
+ - Screenshots and links
143
+
144
+ **Best for:**
145
+ - Sharing your success story
146
+ - Contributing to the Ultra-Dex community
147
+ - Documenting what worked (and what didn't)
148
+ - Building credibility for your portfolio
149
+
150
+ **How to use:**
151
+ 1. Copy CASE-STUDY-TEMPLATE.md after shipping your project
152
+ 2. Fill in the sections with real metrics
153
+ 3. Submit via GitHub issue or PR
154
+ 4. Get featured on the Ultra-Dex showcase (coming soon)
155
+
156
+ **Example submission:**
157
+ ```
158
+ Title: Built a SaaS in 6 weeks with Ultra-Dex
159
+ Time saved: 40% vs previous projects
160
+ Key win: @Database agent designed perfect schema first try
161
+ ```
162
+
163
+ **Size:** 150 lines | 4 KB
164
+
165
+ ---
166
+
167
+ ## 🎯 Which Template to Use?
168
+
169
+ ### Use MASTER-PLAN when:
170
+ - ✅ Starting a new project from scratch
171
+ - ✅ Need to give AI complete project context
172
+ - ✅ Want a single-file overview of vision + tech + features
173
+ - ✅ Working alone or with 1-2 people
174
+
175
+ ### Use PHASE-TRACKER when:
176
+ - ✅ Project is already defined (have tech stack, features)
177
+ - ✅ Need to track implementation progress
178
+ - ✅ Working with multiple AI agents on different tasks
179
+ - ✅ Team of 2+ people (need coordination)
180
+
181
+ ### Use BOTH when:
182
+ - ✅ Large project (3+ months)
183
+ - ✅ MASTER-PLAN for vision/architecture
184
+ - ✅ PHASE-TRACKER for day-to-day task tracking
185
+
186
+ ---
187
+
188
+ ## 🚀 Getting Started
189
+
190
+ ### Quick Setup (2 minutes)
191
+
192
+ **For new projects:**
193
+ ```bash
194
+ # Copy both templates to your project
195
+ cp templates/MASTER-PLAN-TEMPLATE.md ./MASTER-PLAN.md
196
+ cp templates/PHASE-TRACKER-TEMPLATE.md ./PHASE-TRACKER.md
197
+
198
+ # Fill in the basics (use @Planner or @CTO agents)
199
+ # 1. Fill MASTER-PLAN.md Sections 1-3 (Vision, Tech Stack)
200
+ # 2. Fill PHASE-TRACKER.md Phase 1 tasks
201
+ ```
202
+
203
+ **For existing projects:**
204
+ ```bash
205
+ # If you already have vision/architecture:
206
+ cp templates/PHASE-TRACKER-TEMPLATE.md ./PHASE-TRACKER.md
207
+
208
+ # Break down your remaining work into phases
209
+ # Assign agents to each task
210
+ ```
211
+
212
+ ---
213
+
214
+ ## 💡 How to Use with AI Agents
215
+
216
+ ### Pattern 1: Context Loading
217
+ AI agents work best when they have full project context.
218
+
219
+ **Before asking AI to code:**
220
+ ```
221
+ # Load context first
222
+ Read MASTER-PLAN.md (Sections 1-4) to understand:
223
+ - Project vision
224
+ - Tech stack
225
+ - Database schema
226
+ - API endpoints
227
+
228
+ # Then give task
229
+ Act as @Backend agent and implement user signup endpoint.
230
+ ```
231
+
232
+ ### Pattern 2: Agent Assignment
233
+ Assign specific agents to tasks in PHASE-TRACKER.
234
+
235
+ **Example from PHASE-TRACKER.md:**
236
+ ```markdown
237
+ ### Phase 2: Database & Backend
238
+ | Task | Status | Agent | Notes |
239
+ |------|--------|-------|-------|
240
+ | Design User schema | ✅ | @Database | Completed |
241
+ | Build auth API | 🔄 | @Backend | In progress |
242
+ | Write API tests | ⏳ | @Testing | Waiting |
243
+ ```
244
+
245
+ **To work on the in-progress task:**
246
+ ```
247
+ Load agents/2-development/backend.md
248
+
249
+ Read MASTER-PLAN.md Section 4 (API Endpoints) for specs.
250
+ Read PHASE-TRACKER.md Phase 2 to see current status.
251
+
252
+ Build the auth API endpoints (signup, login, logout).
253
+ ```
254
+
255
+ ### Pattern 3: Handoff Protocol
256
+ When completing a task, document for next agent.
257
+
258
+ **Example:**
259
+ ```markdown
260
+ ## Handoff from @Backend to @Testing
261
+
262
+ **Status:**
263
+ - ✅ Complete: Auth API (signup, login, logout, me)
264
+ - ✅ Complete: Password hashing (bcrypt)
265
+ - ⏳ Remaining: Rate limiting
266
+
267
+ **Deliverables:**
268
+ - POST /api/auth/signup - Creates user, returns JWT
269
+ - POST /api/auth/login - Validates credentials
270
+ - GET /api/auth/me - Returns current user
271
+
272
+ **Context for @Testing:**
273
+ - All endpoints need unit tests
274
+ - Use Jest for testing
275
+ - Coverage target: 80%+
276
+ - Test file: tests/auth.test.ts
277
+
278
+ **Next Action:**
279
+ Write unit tests for auth API endpoints. See PHASE-TRACKER.md Phase 2, Task 8.
280
+ ```
281
+
282
+ ---
283
+
284
+ ## 📋 Template Customization
285
+
286
+ Both templates are **fully customizable**. Common modifications:
287
+
288
+ ### MASTER-PLAN Customizations
289
+
290
+ **Add sections for:**
291
+ - Figma designs / wireframes
292
+ - Third-party integrations (Stripe, SendGrid)
293
+ - Environment variables reference
294
+ - Team roles and responsibilities
295
+
296
+ **Remove sections:**
297
+ - Quarterly roadmap (if solo project)
298
+ - Team section (if solo)
299
+ - Cost breakdown (if not needed yet)
300
+
301
+ ### PHASE-TRACKER Customizations
302
+
303
+ **Add phases:**
304
+ - Phase 0: Research & Prototyping
305
+ - Phase 6: Beta Testing
306
+ - Phase 7: Launch & Marketing
307
+
308
+ **Modify task structure:**
309
+ - Add priority column (P0, P1, P2)
310
+ - Add time estimates
311
+ - Add links to PRs/issues
312
+ - Add blockers column
313
+
314
+ **Example customized task:**
315
+ ```markdown
316
+ | Task | Priority | Status | Agent | Time | PR | Notes |
317
+ |------|----------|--------|-------|------|----|----|
318
+ | Build auth API | P0 | ✅ | @Backend | 4h | #23 | Ready |
319
+ ```
320
+
321
+ ---
322
+
323
+ ## 🔄 Workflow Examples
324
+
325
+ ### Example 1: Solo Developer, New SaaS
326
+
327
+ **Week 1:**
328
+ 1. Fill MASTER-PLAN.md Sections 1-3 (vision, tech, schema)
329
+ 2. Use @CTO agent to review architecture
330
+ 3. Create PHASE-TRACKER.md with 5 phases
331
+
332
+ **Week 2-8:**
333
+ 1. Work through Phase 1-5 in PHASE-TRACKER.md
334
+ 2. Update status after each task
335
+ 3. Use assigned agents (@Backend, @Frontend, etc.)
336
+
337
+ **Result:** Structured progress, clear priorities
338
+
339
+ ---
340
+
341
+ ### Example 2: Team of 3, Existing Project
342
+
343
+ **Setup:**
344
+ 1. Create PHASE-TRACKER.md
345
+ 2. Break remaining work into phases
346
+ 3. Assign team members + AI agents to tasks
347
+
348
+ **Daily workflow:**
349
+ 1. Check PHASE-TRACKER.md for current phase
350
+ 2. Pick a ⏳ Pending task, mark 🔄 In Progress
351
+ 3. Work with assigned AI agent
352
+ 4. Update to ✅ when complete
353
+
354
+ **Result:** Clear coordination, no duplicate work
355
+
356
+ ---
357
+
358
+ ## 📊 Template Statistics
359
+
360
+ | Template | Lines | Size | Sections | Best For |
361
+ |----------|-------|------|----------|----------|
362
+ | MASTER-PLAN | 800 | 14 KB | 12 | Project overview & context |
363
+ | PHASE-TRACKER | 329 | 11 KB | 5 phases | Task tracking & progress |
364
+ | ORDER-TRACKER | 400 | 15 KB | 10 orders | Step-by-step execution |
365
+ | CASE-STUDY | 150 | 4 KB | 12 | Documenting success stories |
366
+ | **Total** | **1,679** | **44 KB** | **39** | **Complete project management** |
367
+
368
+ ---
369
+
370
+ ## 🔗 Related Resources
371
+
372
+ **Guides:**
373
+ - [Project Orchestration Guide](../guides/PROJECT-ORCHESTRATION.md) - Multi-agent workflows
374
+ - [Advanced Workflows](../guides/ADVANCED-WORKFLOWS.md) - Real-world examples
375
+
376
+ **Agent Prompts:**
377
+ - [Agent Index](../agents/00-AGENT_INDEX.md) - Quick reference for all 15 agents
378
+ - [Agents Directory](../agents/) - Full agent prompt library
379
+
380
+ **Core Framework:**
381
+ - [34-Section Template](../@%20Ultra%20DeX/Saas%20plan/04-Imp-Template.md) - Complete implementation template
382
+ - [Main README](../README.md) - Project overview
383
+
384
+ ---
385
+
386
+ ## 💬 Common Questions
387
+
388
+ **Q: Do I need both templates?**
389
+ A: No. For small projects (<3 months), PHASE-TRACKER alone is enough. For large projects, use both.
390
+
391
+ **Q: Can I use these without AI agents?**
392
+ A: Yes! These are standard project management templates. The agent assignments are optional.
393
+
394
+ **Q: How often should I update these?**
395
+ A: Update MASTER-PLAN when architecture/tech changes. Update PHASE-TRACKER daily/weekly as tasks complete.
396
+
397
+ **Q: Can I integrate with Jira/Linear/GitHub Projects?**
398
+ A: Yes! Export tasks to your project management tool. Use templates as the "source of truth" for AI agents.
399
+
400
+ **Q: Are these in markdown on purpose?**
401
+ A: Yes! Markdown is:
402
+ - Easy for AI to read and understand
403
+ - Git-friendly (track changes over time)
404
+ - Human-readable (no special tools needed)
405
+ - Portable (works anywhere)
406
+
407
+ ---
408
+
409
+ ## 📝 Contributing
410
+
411
+ Found a better template structure? Want to add examples?
412
+
413
+ 1. **Report issues:** [GitHub Issues](https://github.com/Srujan0798/Ultra-Dex/issues)
414
+ 2. **Suggest improvements:** Open a discussion
415
+ 3. **Submit templates:** Pull requests welcome
416
+
417
+ ---
418
+
419
+ *Ultra-Dex v1.7.1 - Structured project management for AI-driven development*