|
| 1 | +# SaaS Agent System |
| 2 | + |
| 3 | +A comprehensive collection of specialized AI agent personas designed for rapid SaaS development. Each agent provides detailed, actionable guidance including code patterns, tool recommendations, workflows, and best practices. |
| 4 | + |
| 5 | +## What This Is |
| 6 | + |
| 7 | +This is a library of AI agent "personalities" you can use in Cursor or other AI-powered IDEs. Each agent is a markdown file containing: |
| 8 | + |
| 9 | +- **Role definition** - What the agent specializes in |
| 10 | +- **SaaS-specific patterns** - Reusable architectures and code |
| 11 | +- **Tool recommendations** - Specific tools for each domain |
| 12 | +- **Rapid workflows** - Step-by-step processes |
| 13 | +- **Code examples** - Production-ready snippets |
| 14 | +- **Best practices** - What works in real SaaS products |
| 15 | +- **Pitfalls to avoid** - Common mistakes |
| 16 | + |
| 17 | +## Quick Start |
| 18 | + |
| 19 | +1. Open the agent file for your current task |
| 20 | +2. Copy the content or reference it in your conversation |
| 21 | +3. Use it as context for AI-assisted development |
| 22 | +4. Switch agents as you move between tasks |
| 23 | + |
| 24 | +## The SaaS Stack This System Assumes |
| 25 | + |
| 26 | +``` |
| 27 | +Frontend: Next.js 14+ (App Router) + Tailwind + shadcn/ui |
| 28 | +Auth: Clerk or Supabase Auth |
| 29 | +Database: Supabase (Postgres) or PlanetScale |
| 30 | +Payments: Stripe |
| 31 | +Email: Resend |
| 32 | +Hosting: Vercel |
| 33 | +Analytics: Mixpanel, PostHog, or Vercel Analytics |
| 34 | +``` |
| 35 | + |
| 36 | +## Agents by Department |
| 37 | + |
| 38 | +### Engineering (Build the Product) |
| 39 | + |
| 40 | +| Agent | Use When | |
| 41 | +|-------|----------| |
| 42 | +| [frontend-developer](engineering/frontend-developer.md) | Building dashboards, data tables, forms, auth flows | |
| 43 | +| [backend-architect](engineering/backend-architect.md) | Designing APIs, database schemas, multi-tenancy | |
| 44 | +| [fullstack-developer](engineering/fullstack-developer.md) | Building complete features end-to-end | |
| 45 | +| [api-developer](engineering/api-developer.md) | Designing REST/GraphQL APIs, versioning, rate limiting | |
| 46 | +| [integration-engineer](engineering/integration-engineer.md) | OAuth, webhooks, third-party integrations, Zapier | |
| 47 | +| [mobile-app-builder](engineering/mobile-app-builder.md) | Building React Native/Flutter apps, in-app purchases | |
| 48 | +| [ai-engineer](engineering/ai-engineer.md) | Adding LLM features, RAG, chatbots, AI search | |
| 49 | +| [devops-automator](engineering/devops-automator.md) | CI/CD, deployment, monitoring, infrastructure | |
| 50 | +| [rapid-prototyper](engineering/rapid-prototyper.md) | MVPs, weekend projects, quick validation | |
| 51 | + |
| 52 | +### Security (Protect the Product) |
| 53 | + |
| 54 | +| Agent | Use When | |
| 55 | +|-------|----------| |
| 56 | +| [security-architect](security/security-architect.md) | Security architecture, threat modeling, OWASP | |
| 57 | +| [penetration-tester](security/penetration-tester.md) | Vulnerability testing, attack surface analysis | |
| 58 | +| [authentication-specialist](security/authentication-specialist.md) | OAuth, SSO, MFA, session management | |
| 59 | +| [incident-responder](security/incident-responder.md) | Security incidents, breach response, forensics | |
| 60 | + |
| 61 | +### Data (Manage the Data) |
| 62 | + |
| 63 | +| Agent | Use When | |
| 64 | +|-------|----------| |
| 65 | +| [database-engineer](data/database-engineer.md) | Schema design, query optimization, migrations | |
| 66 | +| [data-pipeline-engineer](data/data-pipeline-engineer.md) | ETL, event streaming, data warehousing | |
| 67 | +| [data-analyst](data/data-analyst.md) | SQL, dashboards, cohort analysis, SaaS metrics | |
| 68 | + |
| 69 | +### Strategy (Plan the Business) |
| 70 | + |
| 71 | +| Agent | Use When | |
| 72 | +|-------|----------| |
| 73 | +| [competitive-intelligence](strategy/competitive-intelligence.md) | Competitor analysis, positioning, market landscape | |
| 74 | +| [pricing-strategist](strategy/pricing-strategist.md) | Pricing models, packaging, monetization | |
| 75 | +| [market-researcher](strategy/market-researcher.md) | TAM/SAM/SOM, market sizing, opportunity analysis | |
| 76 | +| [business-model-analyst](strategy/business-model-analyst.md) | Unit economics, LTV/CAC, financial modeling | |
| 77 | + |
| 78 | +### Customer Success (Keep the Users) |
| 79 | + |
| 80 | +| Agent | Use When | |
| 81 | +|-------|----------| |
| 82 | +| [onboarding-specialist](customer-success/onboarding-specialist.md) | Activation flows, time-to-value, user adoption | |
| 83 | +| [churn-analyst](customer-success/churn-analyst.md) | Churn prediction, retention, health scoring | |
| 84 | +| [customer-success-manager](customer-success/customer-success-manager.md) | Renewals, expansion, customer playbooks | |
| 85 | + |
| 86 | +### Product (Decide What to Build) |
| 87 | + |
| 88 | +| Agent | Use When | |
| 89 | +|-------|----------| |
| 90 | +| [trend-researcher](product/trend-researcher.md) | Market research, competitor analysis, validation | |
| 91 | +| [feedback-synthesizer](product/feedback-synthesizer.md) | Analyzing user feedback, support tickets, reviews | |
| 92 | +| [sprint-prioritizer](product/sprint-prioritizer.md) | Prioritizing features, planning sprints, roadmaps | |
| 93 | + |
| 94 | +### Design (Make it Beautiful & Usable) |
| 95 | + |
| 96 | +| Agent | Use When | |
| 97 | +|-------|----------| |
| 98 | +| [ui-designer](design/ui-designer.md) | Dashboard layouts, component systems, design tokens | |
| 99 | +| [ux-researcher](design/ux-researcher.md) | User interviews, usability testing, personas | |
| 100 | +| [brand-guardian](design/brand-guardian.md) | Brand guidelines, voice & tone, visual identity | |
| 101 | +| [visual-storyteller](design/visual-storyteller.md) | Product demos, presentations, data visualization | |
| 102 | +| [whimsy-injector](design/whimsy-injector.md) | Micro-interactions, celebrations, empty states | |
| 103 | +| [accessibility-specialist](design/accessibility-specialist.md) | WCAG compliance, screen readers, inclusive design | |
| 104 | +| [design-system-architect](design/design-system-architect.md) | Component libraries, design tokens, documentation | |
| 105 | + |
| 106 | +### Marketing (Get Users) |
| 107 | + |
| 108 | +| Agent | Use When | |
| 109 | +|-------|----------| |
| 110 | +| [tiktok-strategist](marketing/tiktok-strategist.md) | TikTok content, hooks, trend participation | |
| 111 | +| [instagram-curator](marketing/instagram-curator.md) | Instagram posts, carousels, Reels, Stories | |
| 112 | +| [twitter-engager](marketing/twitter-engager.md) | Twitter threads, building in public, engagement | |
| 113 | +| [reddit-community-builder](marketing/reddit-community-builder.md) | Reddit engagement, community building | |
| 114 | +| [app-store-optimizer](marketing/app-store-optimizer.md) | ASO, keywords, screenshots, app store listings | |
| 115 | +| [content-creator](marketing/content-creator.md) | Blog posts, SEO content, landing page copy | |
| 116 | +| [growth-hacker](marketing/growth-hacker.md) | Growth experiments, viral mechanics, PLG | |
| 117 | +| [seo-specialist](marketing/seo-specialist.md) | Technical SEO, programmatic pages, content optimization | |
| 118 | +| [email-marketer](marketing/email-marketer.md) | Email sequences, automation, deliverability | |
| 119 | +| [launch-coordinator](marketing/launch-coordinator.md) | Product Hunt, beta launches, go-to-market | |
| 120 | + |
| 121 | +### Documentation (Explain the Product) |
| 122 | + |
| 123 | +| Agent | Use When | |
| 124 | +|-------|----------| |
| 125 | +| [technical-writer](documentation/technical-writer.md) | API docs, integration guides, tutorials | |
| 126 | +| [knowledge-base-curator](documentation/knowledge-base-curator.md) | Help center, FAQs, troubleshooting guides | |
| 127 | + |
| 128 | +### Project Management (Ship It) |
| 129 | + |
| 130 | +| Agent | Use When | |
| 131 | +|-------|----------| |
| 132 | +| [experiment-tracker](project-management/experiment-tracker.md) | A/B tests, experiment design, statistical analysis | |
| 133 | +| [project-shipper](project-management/project-shipper.md) | Launch planning, feature flags, rollout strategies | |
| 134 | +| [studio-producer](project-management/studio-producer.md) | Content production, creative workflows | |
| 135 | + |
| 136 | +### Studio Operations (Keep it Running) |
| 137 | + |
| 138 | +| Agent | Use When | |
| 139 | +|-------|----------| |
| 140 | +| [support-responder](studio-operations/support-responder.md) | Support tickets, help docs, customer communication | |
| 141 | +| [analytics-reporter](studio-operations/analytics-reporter.md) | MRR tracking, dashboards, SaaS metrics | |
| 142 | +| [infrastructure-maintainer](studio-operations/infrastructure-maintainer.md) | Monitoring, incidents, cost optimization | |
| 143 | +| [legal-compliance-checker](studio-operations/legal-compliance-checker.md) | GDPR, privacy policies, terms of service | |
| 144 | +| [finance-tracker](studio-operations/finance-tracker.md) | Unit economics, financial reports, forecasting | |
| 145 | + |
| 146 | +### Testing (Make it Work) |
| 147 | + |
| 148 | +| Agent | Use When | |
| 149 | +|-------|----------| |
| 150 | +| [tool-evaluator](testing/tool-evaluator.md) | Evaluating auth, database, payment tools | |
| 151 | +| [api-tester](testing/api-tester.md) | API testing, webhook testing, integration tests | |
| 152 | +| [workflow-optimizer](testing/workflow-optimizer.md) | CI/CD optimization, development workflows | |
| 153 | +| [performance-benchmarker](testing/performance-benchmarker.md) | Load testing, web vitals, database performance | |
| 154 | +| [test-results-analyzer](testing/test-results-analyzer.md) | Test analysis, flaky tests, quality metrics | |
| 155 | +| [security-tester](testing/security-tester.md) | Security scanning, SAST/DAST, vulnerability detection | |
| 156 | +| [e2e-tester](testing/e2e-tester.md) | Playwright/Cypress, user flow testing, visual regression | |
| 157 | + |
| 158 | +## Common Workflows |
| 159 | + |
| 160 | +### Building an MVP (Weekend Project) |
| 161 | + |
| 162 | +1. Start with `rapid-prototyper` - Get the stack and shortcuts |
| 163 | +2. Use `backend-architect` - Design minimal schema |
| 164 | +3. Use `frontend-developer` - Build the dashboard |
| 165 | +4. Use `devops-automator` - Deploy to Vercel |
| 166 | + |
| 167 | +### Adding a New Feature |
| 168 | + |
| 169 | +1. Use `sprint-prioritizer` - Decide if it's worth building |
| 170 | +2. Use `frontend-developer` or `backend-architect` - Build it |
| 171 | +3. Use `project-shipper` - Plan the rollout |
| 172 | +4. Use `experiment-tracker` - Measure impact |
| 173 | + |
| 174 | +### Building Secure SaaS |
| 175 | + |
| 176 | +1. Use `security-architect` - Design security architecture |
| 177 | +2. Use `authentication-specialist` - Implement auth properly |
| 178 | +3. Use `security-tester` - Add automated security scans |
| 179 | +4. Use `penetration-tester` - Validate before launch |
| 180 | + |
| 181 | +### Setting Up Analytics & Data |
| 182 | + |
| 183 | +1. Use `data-analyst` - Define key metrics |
| 184 | +2. Use `database-engineer` - Optimize queries |
| 185 | +3. Use `data-pipeline-engineer` - Set up event tracking |
| 186 | +4. Use `analytics-reporter` - Build dashboards |
| 187 | + |
| 188 | +### Launching a Product |
| 189 | + |
| 190 | +1. Use `content-creator` - Write landing page |
| 191 | +2. Use `seo-specialist` - Optimize for search |
| 192 | +3. Use `launch-coordinator` - Plan Product Hunt launch |
| 193 | +4. Use `email-marketer` - Set up sequences |
| 194 | +5. Use `twitter-engager` / `reddit-community-builder` - Announce |
| 195 | + |
| 196 | +### Handling Growth |
| 197 | + |
| 198 | +1. Use `analytics-reporter` - Track metrics |
| 199 | +2. Use `feedback-synthesizer` - Understand users |
| 200 | +3. Use `churn-analyst` - Identify at-risk customers |
| 201 | +4. Use `customer-success-manager` - Improve retention |
| 202 | +5. Use `infrastructure-maintainer` - Scale infrastructure |
| 203 | +6. Use `performance-benchmarker` - Optimize bottlenecks |
| 204 | + |
| 205 | +### Expanding to Enterprise |
| 206 | + |
| 207 | +1. Use `security-architect` - SOC 2 preparation |
| 208 | +2. Use `authentication-specialist` - Add SSO/SAML |
| 209 | +3. Use `pricing-strategist` - Design enterprise pricing |
| 210 | +4. Use `legal-compliance-checker` - Review compliance |
| 211 | + |
| 212 | +## Agent File Structure |
| 213 | + |
| 214 | +Each agent follows this structure: |
| 215 | + |
| 216 | +```markdown |
| 217 | +# [Agent Name] |
| 218 | + |
| 219 | +## Role |
| 220 | +What this agent specializes in |
| 221 | + |
| 222 | +## Context |
| 223 | +When to use this agent |
| 224 | + |
| 225 | +## Core Responsibilities |
| 226 | +Key tasks this agent handles |
| 227 | + |
| 228 | +## [Domain-Specific Patterns] |
| 229 | +Detailed patterns, architectures, code examples |
| 230 | + |
| 231 | +## Tool Recommendations |
| 232 | +Specific tools for this domain |
| 233 | + |
| 234 | +## Rapid Development Workflows |
| 235 | +Step-by-step processes |
| 236 | + |
| 237 | +## Best Practices |
| 238 | +What works |
| 239 | + |
| 240 | +## Pitfalls to Avoid |
| 241 | +Common mistakes |
| 242 | + |
| 243 | +## Output Format |
| 244 | +What the agent produces |
| 245 | +``` |
| 246 | + |
| 247 | +## Creating Custom Agents |
| 248 | + |
| 249 | +Use [TEMPLATE.md](TEMPLATE.md) as a starting point: |
| 250 | + |
| 251 | +1. Copy the template |
| 252 | +2. Define the role and context |
| 253 | +3. Add domain-specific patterns |
| 254 | +4. Include code examples |
| 255 | +5. List recommended tools |
| 256 | +6. Document workflows and best practices |
| 257 | + |
| 258 | +## Tips for Best Results |
| 259 | + |
| 260 | +1. **Be specific** - Tell the AI which agent context you want to use |
| 261 | +2. **Combine agents** - Some tasks benefit from multiple perspectives |
| 262 | +3. **Reference code patterns** - The examples are production-ready |
| 263 | +4. **Follow the workflows** - They're optimized for speed |
| 264 | +5. **Check tool recommendations** - They're curated for SaaS |
| 265 | + |
| 266 | +## Philosophy |
| 267 | + |
| 268 | +These agents are designed for: |
| 269 | + |
| 270 | +- **Speed** - Ship in days, not months |
| 271 | +- **Pragmatism** - Use proven tools and patterns |
| 272 | +- **Quality** - Production-ready code and practices |
| 273 | +- **Learning** - Understand why, not just how |
| 274 | + |
| 275 | +They're not designed for: |
| 276 | + |
| 277 | +- Over-engineering |
| 278 | +- Theoretical perfection |
| 279 | +- Enterprise complexity (unless needed) |
| 280 | +- Analysis paralysis |
0 commit comments