@shahmarasy/prodo 0.1.2 → 0.1.4
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/dist/agents.js +4 -2
- package/dist/artifacts.d.ts +1 -0
- package/dist/artifacts.js +265 -31
- package/dist/cli.js +80 -3
- package/dist/init-tui.d.ts +3 -0
- package/dist/init-tui.js +28 -1
- package/dist/init.d.ts +1 -0
- package/dist/init.js +9 -3
- package/dist/normalize.js +55 -7
- package/dist/providers/openai-provider.js +2 -1
- package/dist/settings.d.ts +1 -0
- package/dist/settings.js +2 -1
- package/dist/templates.d.ts +1 -1
- package/dist/templates.js +11 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +13 -0
- package/dist/validator.js +0 -4
- package/dist/workflow-commands.js +2 -1
- package/package.json +1 -1
- package/presets/fintech/preset.json +48 -1
- package/presets/fintech/prompts/prd.md +99 -2
- package/presets/marketplace/preset.json +51 -1
- package/presets/marketplace/prompts/prd.md +140 -2
- package/presets/saas/preset.json +53 -1
- package/presets/saas/prompts/prd.md +150 -2
- package/src/agents.ts +4 -2
- package/src/artifacts.ts +323 -28
- package/src/cli.ts +97 -6
- package/src/init-tui.ts +30 -1
- package/src/init.ts +11 -4
- package/src/normalize.ts +55 -7
- package/src/providers/openai-provider.ts +2 -1
- package/src/settings.ts +3 -2
- package/src/templates.ts +12 -0
- package/src/utils.ts +14 -0
- package/src/validator.ts +0 -4
- package/src/workflow-commands.ts +2 -1
- package/templates/commands/prodo-fix.md +46 -0
- package/templates/commands/prodo-normalize.md +116 -14
- package/templates/commands/prodo-prd.md +136 -12
- package/templates/commands/prodo-stories.md +151 -12
- package/templates/commands/prodo-techspec.md +165 -12
- package/templates/commands/prodo-validate.md +184 -23
- package/templates/commands/prodo-wireframe.md +186 -12
- package/templates/commands/prodo-workflow.md +198 -12
package/presets/saas/preset.json
CHANGED
|
@@ -1 +1,53 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "saas",
|
|
3
|
+
"display_name": "Software as a Service (SaaS)",
|
|
4
|
+
"description": "Comprehensive preset for SaaS products with subscription models, enterprise integration, scalability, customer success focus, and API-first architecture",
|
|
5
|
+
"category": "domain-specific",
|
|
6
|
+
"priority": 1,
|
|
7
|
+
"min_prodo_version": "0.1.0",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"metadata": {
|
|
10
|
+
"domain": "Software as a Service",
|
|
11
|
+
"industry_focus": ["Enterprise Software", "Business Tools", "Workflow Automation", "Analytics", "Vertical SaaS"],
|
|
12
|
+
"business_model": ["subscription", "per-seat", "usage-based", "hybrid"],
|
|
13
|
+
"deployment_model": ["multi-tenant", "single-tenant", "hybrid"],
|
|
14
|
+
"key_complexity": "enterprise scale, integration requirements, customer success"
|
|
15
|
+
},
|
|
16
|
+
"preset_features": {
|
|
17
|
+
"domain_expertise": [
|
|
18
|
+
"Subscription billing & recurring revenue",
|
|
19
|
+
"Enterprise integration (SSO, SAML, APIs)",
|
|
20
|
+
"Customer success & retention strategies",
|
|
21
|
+
"Scalability & multi-tenancy",
|
|
22
|
+
"API design & developer experience",
|
|
23
|
+
"Compliance & data governance (SOC 2, HIPAA, GDPR)",
|
|
24
|
+
"Usage analytics & metering",
|
|
25
|
+
"Self-serve onboarding & product-led growth"
|
|
26
|
+
],
|
|
27
|
+
"templates_included": ["prd"],
|
|
28
|
+
"context_enrichment": {
|
|
29
|
+
"user_personas": ["End User", "Admin/IT", "Finance Lead", "Customer Success Manager", "Developer"],
|
|
30
|
+
"success_metrics": ["Monthly Recurring Revenue (MRR)", "Customer Acquisition Cost (CAC)", "Lifetime Value (LTV)", "Churn rate", "NPS"],
|
|
31
|
+
"constraints": ["Uptime SLA", "Integration requirements", "Compliance standards", "Data residency", "Support tiers"]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"agent_requirements": {
|
|
35
|
+
"required_expertise": [
|
|
36
|
+
"SaaS business model understanding",
|
|
37
|
+
"Enterprise customer needs",
|
|
38
|
+
"Subscription economics",
|
|
39
|
+
"Integration architecture",
|
|
40
|
+
"Customer success strategies",
|
|
41
|
+
"Scalability planning"
|
|
42
|
+
],
|
|
43
|
+
"recommended_agents": ["SaaS PM", "Enterprise Architect", "Customer Success Lead", "DevOps/Infrastructure Lead"],
|
|
44
|
+
"critical_validation": ["Pricing model", "Uptime SLA", "Integration roadmap", "Churn prevention strategy"]
|
|
45
|
+
},
|
|
46
|
+
"prompt_configuration": {
|
|
47
|
+
"tone": "Professional, enterprise-focused, customer-success-oriented",
|
|
48
|
+
"pricing_strategy": "transparent-value-based",
|
|
49
|
+
"customer_journey": "onboarding → adoption → expansion → retention",
|
|
50
|
+
"integration_first": "API-first, extensibility-critical",
|
|
51
|
+
"documentation_level": "comprehensive (API docs, admin guides, playbooks)"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,3 +1,151 @@
|
|
|
1
|
-
Preset
|
|
1
|
+
# SaaS Preset - PRD Generation Context
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Preset Overview
|
|
4
|
+
**Domain**: Software as a Service (SaaS)
|
|
5
|
+
**Focus**: Subscription economics, customer success, enterprise integration, scalability, recurring revenue
|
|
6
|
+
**Target Models**: Enterprise Software, Business Tools, Vertical SaaS, Workflow Automation, Analytics
|
|
7
|
+
|
|
8
|
+
## Critical Requirements for SaaS Products
|
|
9
|
+
|
|
10
|
+
### 1. Subscription Business Model
|
|
11
|
+
- **Pricing Tiers**: Free/Freemium, Starter, Professional, Enterprise
|
|
12
|
+
- **Billing Cycle**: Monthly, annual, or usage-based
|
|
13
|
+
- **Per-Seat vs. Fixed**: User-based vs. flat-rate pricing
|
|
14
|
+
- **Feature Gating**: Which features per tier
|
|
15
|
+
- **Contract Terms**: Auto-renewal, cancellation terms, trial periods
|
|
16
|
+
|
|
17
|
+
### 2. Customer Onboarding & Adoption
|
|
18
|
+
- **Self-Serve Onboarding**: Guided setup, templates, presets
|
|
19
|
+
- **Product-Led Growth**: Feature discoverability, in-app education
|
|
20
|
+
- **User Training**: Tutorials, help center, webinars, documentation
|
|
21
|
+
- **Activation**: Time to first value, key engagement metrics
|
|
22
|
+
- **Expansion Path**: Upsell opportunities, feature education
|
|
23
|
+
|
|
24
|
+
### 3. Enterprise Integration
|
|
25
|
+
- **SSO/SAML**: Single sign-on for corporate users
|
|
26
|
+
- **APIs**: REST/GraphQL APIs for custom integrations
|
|
27
|
+
- **Webhooks**: Real-time event notifications
|
|
28
|
+
- **Data Export**: Export capabilities, compliance
|
|
29
|
+
- **Native Integrations**: Slack, Salesforce, HubSpot, Jira, etc.
|
|
30
|
+
|
|
31
|
+
### 4. Scalability & Multi-Tenancy
|
|
32
|
+
- **Tenant Isolation**: Data separation and security
|
|
33
|
+
- **Performance**: Sub-second response times
|
|
34
|
+
- **Availability**: 99.9% or 99.99% uptime SLA
|
|
35
|
+
- **Disaster Recovery**: Backup, replication, failover
|
|
36
|
+
- **Geographic Distribution**: Multi-region support
|
|
37
|
+
|
|
38
|
+
### 5. Customer Success & Retention
|
|
39
|
+
- **Onboarding Support**: Dedicated CSM for enterprise accounts
|
|
40
|
+
- **Health Scoring**: Identify at-risk customers proactively
|
|
41
|
+
- **Usage Analytics**: Monitor feature adoption and user behavior
|
|
42
|
+
- **Support Tiers**: Community, email, chat, phone, 24/7
|
|
43
|
+
- **Renewal Playbook**: Steps to improve retention
|
|
44
|
+
|
|
45
|
+
### 6. Compliance & Data Governance
|
|
46
|
+
- **SOC 2**: Security, availability, confidentiality standards
|
|
47
|
+
- **HIPAA**: For healthcare SaaS
|
|
48
|
+
- **GDPR/CCPA**: Data privacy and right to deletion
|
|
49
|
+
- **Data Residency**: Geographic data storage requirements
|
|
50
|
+
- **Audit Trails**: Logging for compliance audits
|
|
51
|
+
|
|
52
|
+
### 7. User Personas (SaaS Specific)
|
|
53
|
+
|
|
54
|
+
#### End User
|
|
55
|
+
- Goals: Solve their job efficiently, learn easily
|
|
56
|
+
- Pain Points: Complex workflows, context-switching, training
|
|
57
|
+
- Concerns: Time investment, productivity gain
|
|
58
|
+
|
|
59
|
+
#### Admin/IT
|
|
60
|
+
- Goals: Secure deployment, central management, compliance
|
|
61
|
+
- Pain Points: User management overhead, security config
|
|
62
|
+
- Concerns: Data security, compliance, integration complexity
|
|
63
|
+
|
|
64
|
+
#### Finance Lead
|
|
65
|
+
- Goals: ROI justification, cost optimization, budgeting
|
|
66
|
+
- Pain Points: License management, usage visibility
|
|
67
|
+
- Concerns: TCO, renewal negotiations, cost per user
|
|
68
|
+
|
|
69
|
+
#### Customer Success Manager
|
|
70
|
+
- Goals: Customer adoption, expansion, retention
|
|
71
|
+
- Pain Points: Health scoring accuracy, expansion opportunities
|
|
72
|
+
- Concerns: Churn prevention, engagement metrics, renewal success
|
|
73
|
+
|
|
74
|
+
#### Developer (if applicable)
|
|
75
|
+
- Goals: Easy integration, extensibility, good documentation
|
|
76
|
+
- Pain Points: API limitations, rate limits, debugging
|
|
77
|
+
- Concerns: Developer experience, SDK quality, support
|
|
78
|
+
|
|
79
|
+
### 8. Success Metrics (SaaS Specific)
|
|
80
|
+
- **Monthly Recurring Revenue (MRR)**: Predictable revenue base
|
|
81
|
+
- **Annual Recurring Revenue (ARR)**: Annualized MRR
|
|
82
|
+
- **Customer Acquisition Cost (CAC)**: Cost to acquire customer
|
|
83
|
+
- **Lifetime Value (LTV)**: Total revenue per customer
|
|
84
|
+
- **LTV:CAC Ratio**: Should be 3:1 or higher (industry standard)
|
|
85
|
+
- **Churn Rate**: Monthly % of customers leaving
|
|
86
|
+
- **Net Revenue Retention (NRR)**: Retention + expansion
|
|
87
|
+
- **Customer Health Score**: Predictive churn indicator
|
|
88
|
+
- **Net Promoter Score (NPS)**: Customer satisfaction
|
|
89
|
+
- **Time to Value (TTV)**: Days to first value realization
|
|
90
|
+
|
|
91
|
+
### 9. Key Constraints
|
|
92
|
+
- **Uptime SLA**: 99.9% minimum (often 99.99% expected)
|
|
93
|
+
- **Data Residency**: Specific geographic regions required
|
|
94
|
+
- **Integration Requirements**: Must support popular tools
|
|
95
|
+
- **Pricing Sensitivity**: Competitive pricing pressure
|
|
96
|
+
- **Contract Terms**: Annual vs. monthly, lock-in periods
|
|
97
|
+
- **Support Costs**: Scale with customer base and tier
|
|
98
|
+
- **Regulatory Requirements**: Compliance obligations
|
|
99
|
+
|
|
100
|
+
## PRD Generation Guidelines
|
|
101
|
+
|
|
102
|
+
### Subscription-First Thinking
|
|
103
|
+
- Every feature → How does it impact retention?
|
|
104
|
+
- Every feature → Expansion opportunity or anti-churn?
|
|
105
|
+
- Every feature → Which tier includes it?
|
|
106
|
+
- Pricing change → Impact on LTV and churn?
|
|
107
|
+
|
|
108
|
+
### Customer Success Playbook
|
|
109
|
+
- How do we onboard customers?
|
|
110
|
+
- How do we measure adoption?
|
|
111
|
+
- How do we identify expansion opportunities?
|
|
112
|
+
- How do we prevent churn?
|
|
113
|
+
- What's the health scoring model?
|
|
114
|
+
|
|
115
|
+
### Enterprise Requirements
|
|
116
|
+
- What integrations are table-stakes?
|
|
117
|
+
- What compliance is required?
|
|
118
|
+
- What's the uptime SLA?
|
|
119
|
+
- What's the support model?
|
|
120
|
+
- What's the pricing model for enterprise?
|
|
121
|
+
|
|
122
|
+
### API-First Design
|
|
123
|
+
- What's exposed via API?
|
|
124
|
+
- What data can be exported?
|
|
125
|
+
- What webhooks/events exist?
|
|
126
|
+
- Rate limiting strategy?
|
|
127
|
+
- Documentation quality?
|
|
128
|
+
|
|
129
|
+
### Scalability Considerations
|
|
130
|
+
- How does the system scale to 10k users?
|
|
131
|
+
- How does the system scale to 100k users?
|
|
132
|
+
- What's the performance baseline?
|
|
133
|
+
- What monitoring is needed?
|
|
134
|
+
- What's the disaster recovery plan?
|
|
135
|
+
|
|
136
|
+
## Validation Checklist
|
|
137
|
+
Before finalizing PRD, verify:
|
|
138
|
+
- ✅ Pricing model clearly defined (tiers, billing, trial)
|
|
139
|
+
- ✅ Onboarding flow documented (self-serve path)
|
|
140
|
+
- ✅ Key integrations listed
|
|
141
|
+
- ✅ SLA/uptime committed (99.9% minimum)
|
|
142
|
+
- ✅ Compliance requirements identified
|
|
143
|
+
- ✅ Customer success strategy outlined
|
|
144
|
+
- ✅ Health scoring model conceptualized
|
|
145
|
+
- ✅ Support tier structure defined
|
|
146
|
+
- ✅ Churn prevention strategy exists
|
|
147
|
+
- ✅ Expansion/upsell opportunities identified
|
|
148
|
+
- ✅ API strategy documented
|
|
149
|
+
- ✅ Multi-tenancy approach clear
|
|
150
|
+
- ✅ Disaster recovery plan outlined
|
|
151
|
+
- ✅ Geographic expansion strategy noted
|
package/src/agents.ts
CHANGED
|
@@ -41,7 +41,8 @@ export async function loadAgentCommandSet(_cwd: string, agent: AgentId): Promise
|
|
|
41
41
|
{ command: `${prefix}-wireframe`, purpose: "Generate wireframe artifact." },
|
|
42
42
|
{ command: `${prefix}-stories`, purpose: "Generate stories artifact." },
|
|
43
43
|
{ command: `${prefix}-techspec`, purpose: "Generate techspec artifact." },
|
|
44
|
-
{ command: `${prefix}-validate`, purpose: "Run validation report." }
|
|
44
|
+
{ command: `${prefix}-validate`, purpose: "Run validation report." },
|
|
45
|
+
{ command: `${prefix}-fix`, purpose: "Fix artifacts when validation fails." }
|
|
45
46
|
],
|
|
46
47
|
artifact_shortcuts: {
|
|
47
48
|
normalize: `${prefix}-normalize`,
|
|
@@ -50,7 +51,8 @@ export async function loadAgentCommandSet(_cwd: string, agent: AgentId): Promise
|
|
|
50
51
|
wireframe: `${prefix}-wireframe`,
|
|
51
52
|
stories: `${prefix}-stories`,
|
|
52
53
|
techspec: `${prefix}-techspec`,
|
|
53
|
-
validate: `${prefix}-validate
|
|
54
|
+
validate: `${prefix}-validate`,
|
|
55
|
+
fix: `${prefix}-fix`
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
}
|