ultra-dex 1.7.3 → 1.8.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 (81) hide show
  1. package/README.md +16 -2
  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 +459 -31
  81. package/package.json +3 -3
@@ -0,0 +1,182 @@
1
+ # Ultra-Dex Tutorial
2
+
3
+ > From zero to complete implementation plan in 30 minutes
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ This tutorial walks you through using Ultra-Dex to create a production-ready implementation plan for your SaaS idea.
10
+
11
+ **Time:** 30 minutes
12
+ **Output:** A complete, actionable implementation plan
13
+
14
+ **Related:** [Build Auth in 30 Minutes](./BUILD-AUTH-30M.md)
15
+
16
+ ---
17
+
18
+ ## Step 1: Start with Quick Start (5 minutes)
19
+
20
+ Open [QUICK-START.md](../@%20Ultra%20DeX/Saas%20plan/01-QUICK-START.md) and fill in:
21
+
22
+ ### Your Idea
23
+ ```
24
+ What: A habit tracking app with streaks and social accountability
25
+ For whom: People who want to build consistent daily habits
26
+ ```
27
+
28
+ ### The Problem
29
+ ```
30
+ - Existing apps are either too simple (no accountability) or too complex (overwhelming)
31
+ - No social features to stay motivated
32
+ - No insights into habit patterns
33
+ ```
34
+
35
+ ### MVP Features
36
+ | Feature | Priority | Why MVP? |
37
+ |---------|----------|----------|
38
+ | User authentication | P0 | Core requirement |
39
+ | Create/track habits | P0 | Core value |
40
+ | Streak tracking | P0 | Key differentiator |
41
+ | Basic analytics | P1 | User retention |
42
+ | Social sharing | P2 | Growth feature |
43
+
44
+ ### Tech Stack
45
+ | Layer | Choice |
46
+ |-------|--------|
47
+ | Frontend | Next.js |
48
+ | Database | PostgreSQL |
49
+ | Auth | NextAuth |
50
+ | Payments | Stripe |
51
+ | Hosting | Vercel |
52
+
53
+ ---
54
+
55
+ ## Step 2: Review an Example (10 minutes)
56
+
57
+ Before filling the full template, study a complete example:
58
+
59
+ 1. Open [TaskFlow-Complete.md](../@%20Ultra%20DeX/Saas%20plan/Examples/TaskFlow-Complete.md)
60
+ 2. Scan these key sections:
61
+ - **Section 3: Database Schema** - How to structure your data
62
+ - **Section 4: API Design** - Endpoint patterns
63
+ - **Section 16: Task Breakdown** - How to break work into atomic tasks
64
+
65
+ Notice:
66
+ - No placeholders - everything is specific
67
+ - Real code examples
68
+ - Actual cost estimates
69
+ - Clear acceptance criteria
70
+
71
+ ---
72
+
73
+ ## Step 3: Fill the Full Template (15 minutes)
74
+
75
+ Open [04-Imp-Template.md](../@%20Ultra%20DeX/Saas%20plan/04-Imp-Template.md) and work through section by section.
76
+
77
+ ### Pro Tips:
78
+
79
+ **For Section 1 (Product Definition):**
80
+ - Be specific about your target user
81
+ - Quantify the problem ("users spend X hours doing Y")
82
+ - Define success metrics upfront
83
+
84
+ **For Section 3 (Database Schema):**
85
+ - Start with your core entities (User, Habit, HabitEntry)
86
+ - Define relationships clearly
87
+ - Add indexes for common queries
88
+
89
+ **For Section 4 (API Design):**
90
+ - Follow REST conventions
91
+ - Include request/response examples
92
+ - Define error codes
93
+
94
+ **For Section 16 (Task Breakdown):**
95
+ - Every task must be 4-9 hours
96
+ - Include clear acceptance criteria
97
+ - Map dependencies between tasks
98
+
99
+ ---
100
+
101
+ ## Step 4: Verify with 21-Step Framework
102
+
103
+ For each task you create, ensure it can pass the 21-step verification:
104
+
105
+ ```
106
+ PLANNING
107
+ [ ] 1. Requirements clearly defined
108
+ [ ] 2. Acceptance criteria written
109
+ [ ] 3. Dependencies identified
110
+ [ ] 4. Estimated hours realistic (4-9h)
111
+
112
+ IMPLEMENTATION
113
+ [ ] 5-9. Code quality checks
114
+
115
+ QUALITY
116
+ [ ] 10-14. Testing and edge cases
117
+
118
+ SECURITY
119
+ [ ] 15-17. Security checks
120
+
121
+ DOCUMENTATION
122
+ [ ] 18-20. Documentation complete
123
+
124
+ FINAL
125
+ [ ] 21. Works in production
126
+ ```
127
+
128
+ See [METHODOLOGY.md](../@%20Ultra%20DeX/Saas%20plan/03-METHODOLOGY.md) for the full checklist.
129
+
130
+ ---
131
+
132
+ ## Step 5: Start Building
133
+
134
+ Once your plan is complete:
135
+
136
+ 1. **Create your project repository**
137
+ 2. **Set up the dev environment** (first task)
138
+ 3. **Work through tasks sequentially**
139
+ 4. **Verify each task with 21 steps**
140
+ 5. **Ship to production**
141
+
142
+ ---
143
+
144
+ ## Common Questions
145
+
146
+ ### "The template is too long!"
147
+
148
+ Start with QUICK-START.md. Only fill the sections you need right now. The template is comprehensive so you never have to search for "what else should I consider."
149
+
150
+ ### "Can I skip sections?"
151
+
152
+ Yes, but read them first. You might realize you need them. For MVP, focus on sections 1-10 and 16.
153
+
154
+ ### "How do I use this with AI?"
155
+
156
+ See [agents/](../agents/) and [00-AGENT_INDEX.md](../agents/00-AGENT_INDEX.md). Copy the template + your idea + the agent prompt into Claude/GPT.
157
+
158
+ ### "What if my app isn't a SaaS?"
159
+
160
+ The template still works. Skip payment sections if not applicable. The methodology (atomic tasks, 21-step verification) works for any project.
161
+
162
+ ---
163
+
164
+ ## Next Steps
165
+
166
+ 1. **Fill QUICK-START.md** for your idea
167
+ 2. **Study TaskFlow example** for patterns
168
+ 3. **Complete relevant sections** of full template
169
+ 4. **Start building** with 21-step verification
170
+
171
+ ---
172
+
173
+ ## Resources
174
+
175
+ - [QUICK-START.md](../@%20Ultra%20DeX/Saas%20plan/01-QUICK-START.md) - 5-minute entry
176
+ - [METHODOLOGY.md](../@%20Ultra%20DeX/Saas%20plan/03-METHODOLOGY.md) - The system explained
177
+ - [TaskFlow Example](../@%20Ultra%20DeX/Saas%20plan/Examples/TaskFlow-Complete.md) - Fully filled
178
+ - [Full Template](../@%20Ultra%20DeX/Saas%20plan/04-Imp-Template.md) - All 34 sections
179
+
180
+ ---
181
+
182
+ *Happy building!*
@@ -0,0 +1,108 @@
1
+ # 21-Step Verification Checklist
2
+
3
+ > **Copy this checklist into your PR description or issue tracker**
4
+
5
+ ---
6
+
7
+ ## 🎯 Which Checklist Should I Use?
8
+
9
+ | Task Type | Use This | Why |
10
+ |-----------|----------|-----|
11
+ | **New feature** (4-9 hours) | Full 21-step | Production quality required |
12
+ | **Bug fix** (<2 hours) | Quick 5-step | Full version is overkill |
13
+ | **UI tweak** (no logic change) | Quick 5-step | Low risk change |
14
+ | **Database migration** | Full 21-step | High risk, needs all gates |
15
+ | **API change** (new/breaking) | Full 21-step | Affects other systems |
16
+ | **Security fix** | Full 21-step | Critical - no shortcuts |
17
+ | **Docs update** | Skip checklist | Not code |
18
+ | **Config change** | Quick 5-step | Low complexity |
19
+
20
+ ---
21
+
22
+ ## For Every Task (Copy & Paste)
23
+
24
+ ```markdown
25
+ ## 21-Step Verification
26
+
27
+ ### PLANNING (~20 min)
28
+ - [ ] 1. **UNDERSTAND** - Requirements clearly defined
29
+ - [ ] 2. **ASSUMPTIONS** - Assumptions documented
30
+ - [ ] 3. **ANALYZE** - Logic flow mapped
31
+ - [ ] 4. **DECOMPOSE** - Broken into subtasks
32
+ - [ ] 5. **PREPARE** - Dependencies identified
33
+
34
+ ### IMPLEMENTATION (~2-4 hrs)
35
+ - [ ] 6. **IMPLEMENT** - Core functionality complete
36
+ - [ ] 7. **DOCUMENT** - Inline comments added
37
+ - [ ] 8. **UNIT TEST** - Tests written (80%+ coverage)
38
+ - [ ] 9. **DEBUG** - Issues identified and fixed
39
+ - [ ] 10. **INTEGRATE** - Works with existing code
40
+
41
+ ### VALIDATION (~30 min)
42
+ - [ ] 11. **VALIDATE** - Meets acceptance criteria
43
+ - [ ] 12. **UX CHECK** - Usability verified
44
+ - [ ] 13. **OPTIMIZE** - Performance acceptable
45
+ - [ ] 14. **SECURE** - No vulnerabilities
46
+ - [ ] 15. **REFACTOR** - Code quality improved
47
+
48
+ ### DELIVERY (~20 min)
49
+ - [ ] 16. **ERROR HANDLE** - Edge cases covered
50
+ - [ ] 17. **DOCUMENT API** - API docs updated
51
+ - [ ] 18. **VERSION CONTROL** - Commit message clear
52
+ - [ ] 19. **BUILD** - Build passes
53
+ - [ ] 20. **DEPLOY READY** - Ready for staging
54
+ - [ ] 21. **FINAL VERIFY** - End-to-end verified
55
+
56
+ ---
57
+
58
+ **Task:** [Task name]
59
+ **Estimate:** [X hours]
60
+ **Actual:** [X hours]
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Quick Version (For Small Tasks)
66
+
67
+ ```markdown
68
+ ## Quick Verification (5-step)
69
+
70
+ - [ ] Code complete and tested
71
+ - [ ] No console.log or debug code
72
+ - [ ] Error handling added
73
+ - [ ] Docs/comments updated
74
+ - [ ] Build passes
75
+ ```
76
+
77
+ ---
78
+
79
+ ## PR Description Template
80
+
81
+ ```markdown
82
+ ## What
83
+ [Brief description of changes]
84
+
85
+ ## Why
86
+ [Reason for the change]
87
+
88
+ ## How
89
+ [Technical approach]
90
+
91
+ ## Testing
92
+ - [ ] Unit tests added/updated
93
+ - [ ] Manual testing completed
94
+ - [ ] Edge cases verified
95
+
96
+ ## 21-Step Status
97
+ - Planning: ✅
98
+ - Implementation: ✅
99
+ - Validation: ✅
100
+ - Delivery: ✅
101
+
102
+ ## Screenshots (if UI)
103
+ [Add screenshots]
104
+ ```
105
+
106
+ ---
107
+
108
+ > **Principle:** "Do it right the first time, verify it the 21st time."
@@ -0,0 +1,187 @@
1
+ # Ultra-Dex v2 Vision
2
+
3
+ > AI Orchestration Meta Layer for SaaS Development
4
+
5
+ ---
6
+
7
+ ## What Ultra-Dex Is
8
+
9
+ **Ultra-Dex is NOT:**
10
+ - A competitor to Cursor, Windsurf, or any IDE
11
+ - A competitor to Devin, OpenHands, or any AI agent
12
+ - A competitor to Bolt.new, Lovable, or any code generator
13
+ - A planning template that humans fill out manually
14
+
15
+ **Ultra-Dex IS:**
16
+ - An **AI Orchestration Layer** that sits above all AI tools
17
+ - A **Meta Layer** filling the gap between human ideas and AI execution
18
+ - A **Context Provider** that keeps AI agents aligned with the original vision
19
+ - A **Guardrail System** preventing scope creep and deviation
20
+
21
+ ---
22
+
23
+ ## The Problem We Solve
24
+
25
+ ```
26
+ Human Idea → [GAP] → AI Agents → [DEVIATION] → Wrong Product
27
+ ```
28
+
29
+ When users go directly to AI agents (Cursor, Devin, Bolt):
30
+ 1. AI starts building immediately without full context
31
+ 2. Each prompt adds new ideas, causing scope creep
32
+ 3. Original vision gets lost in implementation details
33
+ 4. User ends up with something different from what they wanted
34
+
35
+ ---
36
+
37
+ ## The Ultra-Dex Solution
38
+
39
+ ```
40
+ Human Idea → Ultra-Dex → AI-Generated Plan → AI Agents → Correct Product
41
+ ↓ ↑
42
+ [34-Section Context] ← [Continuous Alignment Check]
43
+ ```
44
+
45
+ ### How It Works
46
+
47
+ 1. **Human Input**: User provides a simple idea
48
+ - "I want a task management SaaS for teams"
49
+ - That's it. One sentence.
50
+
51
+ 2. **AI Generation**: Ultra-Dex uses AI to fill all 34 sections
52
+ - Product vision, MVP scope, tech stack
53
+ - Database schema, API design, auth flow
54
+ - Error handling, deployment, monitoring
55
+ - All generated from that one idea
56
+
57
+ 3. **Context Distribution**: The filled template becomes context for AI agents
58
+ - Cursor gets the full plan in its context window
59
+ - Devin gets structured requirements
60
+ - Any AI agent gets aligned context
61
+
62
+ 4. **Continuous Alignment**: Ultra-Dex keeps everything on track
63
+ - Audits generated code against the plan
64
+ - Flags deviations before they compound
65
+ - Maintains original vision throughout development
66
+
67
+ ---
68
+
69
+ ## The Meta Layer Concept
70
+
71
+ Ultra-Dex doesn't replace any tool. It **enhances** every tool.
72
+
73
+ | Tool | Without Ultra-Dex | With Ultra-Dex |
74
+ |------|-------------------|----------------|
75
+ | Cursor | Generates code from prompts | Generates code aligned with full plan |
76
+ | Devin | Builds features ad-hoc | Builds features per specification |
77
+ | Bolt.new | Creates scaffolds | Creates scaffolds matching architecture |
78
+ | Any AI | Works in isolation | Works with shared context |
79
+
80
+ ---
81
+
82
+ ## V2 Architecture
83
+
84
+ ### Core Components
85
+
86
+ ```
87
+ ┌─────────────────────────────────────────────────────────────┐
88
+ │ ULTRA-DEX V2 │
89
+ ├─────────────────────────────────────────────────────────────┤
90
+ │ │
91
+ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
92
+ │ │ GENERATE │ │ ORCHESTRATE │ │ AUDIT │ │
93
+ │ │ │ │ │ │ │ │
94
+ │ │ Idea → Plan │ │ Plan → Code │ │ Code → Plan │ │
95
+ │ └─────────────┘ └─────────────┘ └─────────────┘ │
96
+ │ ↓ ↓ ↓ │
97
+ │ ┌─────────────────────────────────────────────────────┐ │
98
+ │ │ 34-SECTION CONTEXT LAYER │ │
99
+ │ │ │ │
100
+ │ │ Product | Tech | Data | API | Auth | Deploy | ... │ │
101
+ │ └─────────────────────────────────────────────────────┘ │
102
+ │ ↓ │
103
+ │ ┌─────────────────────────────────────────────────────┐ │
104
+ │ │ AI AGENT INTERFACE LAYER │ │
105
+ │ │ │ │
106
+ │ │ Cursor | Devin | Claude | GPT | Gemini | Any AI │ │
107
+ │ └─────────────────────────────────────────────────────┘ │
108
+ │ │
109
+ └─────────────────────────────────────────────────────────────┘
110
+ ```
111
+
112
+ ### New CLI Commands
113
+
114
+ ```bash
115
+ # Generate full plan from idea (AI fills all 34 sections)
116
+ ultra-dex generate "A task management SaaS for remote teams"
117
+
118
+ # Start AI-assisted development with context
119
+ ultra-dex build --agent cursor
120
+
121
+ # Audit code against the plan
122
+ ultra-dex review
123
+
124
+ # Check alignment score
125
+ ultra-dex align
126
+ ```
127
+
128
+ ---
129
+
130
+ ## Key Differentiator
131
+
132
+ **Other tools ask:** "What code do you want?"
133
+
134
+ **Ultra-Dex asks:** "What product do you want?"
135
+
136
+ Then it:
137
+ 1. Generates the complete specification
138
+ 2. Provides context to any AI agent
139
+ 3. Keeps everything aligned with your vision
140
+ 4. Prevents the "that's not what I wanted" moment
141
+
142
+ ---
143
+
144
+ ## Target Users
145
+
146
+ 1. **Solo Founders**: Have an idea, want to build fast, but stay on track
147
+ 2. **Small Teams**: Need shared context across team members and AI tools
148
+ 3. **AI-First Developers**: Use multiple AI tools, need orchestration layer
149
+ 4. **Anyone building SaaS**: Want production-quality from day one
150
+
151
+ ---
152
+
153
+ ## Roadmap
154
+
155
+ ### Phase 1: Foundation (Current - v1.x)
156
+ - [x] 34-section template
157
+ - [x] 3 complete examples
158
+ - [x] 11 Cursor rules
159
+ - [x] CLI (init, audit, examples)
160
+ - [x] Documentation
161
+
162
+ ### Phase 2: AI Generation (v2.0)
163
+ - [ ] `ultra-dex generate` - AI fills all sections from idea
164
+ - [ ] Multiple AI provider support (Claude, GPT, Gemini)
165
+ - [ ] Intelligent section prioritization
166
+
167
+ ### Phase 3: Orchestration (v2.x)
168
+ - [ ] `ultra-dex build` - Orchestrate AI agents with context
169
+ - [ ] `ultra-dex review` - Continuous alignment checking
170
+ - [ ] Agent-specific context formatting
171
+
172
+ ### Phase 4: Integration (v3.x)
173
+ - [ ] IDE extensions (VS Code, Cursor)
174
+ - [ ] CI/CD integration
175
+ - [ ] Team collaboration features
176
+
177
+ ---
178
+
179
+ ## The Vision
180
+
181
+ > "From one sentence to production-ready SaaS, with AI doing the work and Ultra-Dex keeping it aligned."
182
+
183
+ Human provides the idea. AI does the rest. Ultra-Dex ensures it's right.
184
+
185
+ ---
186
+
187
+ *Ultra-Dex v2 - The AI Orchestration Meta Layer*