AgentSkillsCN

aibuilder-create-saas

完成从创意发现到任务拆解的 SaaS 从概念到落地全流程。

SKILL.md
--- frontmatter
name: aibuilder-create-saas
description: Complete SaaS ideation to implementation workflow - from idea discovery to task breakdown
argument-hint: "[project-name]"
<objective> Guide users through the complete SaaS creation journey: from discovering the right idea, through validation and PRD creation, to technical architecture and actionable tasks.

This workflow responds in the user's language while prompts are in English. It's designed for solo developers learning Next.js with Prisma and Better-Auth who want to build a monetizable SaaS in less than 2 weeks. </objective>

<quick_start> Start a new SaaS project (interactive discovery):

bash
/create-saas

With custom project name:

bash
/create-saas my-awesome-saas

Continue existing project:

bash
/create-saas -c my-awesome-saas

What it does:

  1. Discovery: Ask questions to understand your background
  2. Brainstorm: Generate 3-6 validated SaaS ideas
  3. Validate: Challenge and refine your chosen idea
  4. PRD: Create Product Requirements Document
  5. Architecture: Design technical stack (Next.js + Prisma + Better-Auth)
  6. Tasks: Break down into actionable implementation tasks

Outputs saved to ~/.claude/output/saas/{project-id}/ </quick_start>

<parameters> **Arguments:** - `[project-name]` - Optional project name (auto-generated if not provided)

Flags:

  • -a / -A - Auto mode: skip confirmations (default: false)
  • -s / -S - Save mode: save outputs to files (default: true)
  • -c <project-id> - Continue mode: reload existing project and resume where you left off </parameters>

<state_variables> Core Variables (persist throughout all steps):

VariableTypeDescription
{project_name}stringSaaS project name
{project_id}stringKebab-case identifier for folders
{auto_mode}booleanSkip confirmations
{save_mode}booleanSave outputs to files
{output_dir}stringPath to output folder
{user_language}stringUser's preferred language

Accumulated State (grows across steps):

VariableSet InDescription
{discovery_answers}Step 1User's answers to discovery questions
{has_previous_project}Step 1Whether user built a project before
{ideas}Step 2List of 3-6 brainstormed ideas
{selected_idea}Step 2User's chosen idea
{validated_idea}Step 3Fully developed and validated idea
{prd_content}Step 4Product Requirements Document
{architecture}Step 5Technical architecture decisions
{tasks}Step 6List of implementation tasks

</state_variables>

<entry_point> Load steps/step-00-init.md </entry_point>

<step_files>

StepFileDescription
0steps/step-00-init.mdInitialize: parse flags, create output folder
1steps/step-01-discovery.mdDiscovery: ask questions to find the right idea
2steps/step-02-brainstorm.mdBrainstorm: generate 3-6 ideas, user chooses one
3steps/step-03-validate.mdValidate: research, challenge, develop the idea
4steps/step-04-prd.mdPRD: create Product Requirements Document
5steps/step-05-architecture.mdArchitecture: design technical stack
6steps/step-06-tasks.mdTasks: split into actionable implementation tasks
</step_files>

<workflow_diagram>

code
┌──────────────┐     ┌───────────────┐     ┌───────────────┐
│  Step 0      │────►│   Step 1      │────►│   Step 2      │
│  Initialize  │     │  Discovery    │     │  Brainstorm   │
└──────────────┘     └───────────────┘     └───────┬───────┘
                                                    │
                           ┌────────────────────────┘
                           │         ▲
                           ▼         │ (if not validated)
                     ┌───────────────┴─┐
                     │    Step 3       │
                     │   Validate      │
                     └────────┬────────┘
                              │ (if validated)
                              ▼
                     ┌───────────────┐     ┌───────────────┐
                     │   Step 4      │────►│   Step 5      │
                     │    PRD        │     │ Architecture  │
                     └───────────────┘     └───────┬───────┘
                                                    │
                                                    ▼
                                           ┌───────────────┐
                                           │   Step 6      │
                                           │    Tasks      │
                                           └───────────────┘

</workflow_diagram>

<output_structure> When {save_mode} = true, creates:

code
~/.claude/output/saas/{project_id}/
├── discovery.md     # Discovery answers and insights
├── idea.md          # Validated idea with all details
├── prd.md           # Product Requirements Document
├── archi.md         # Technical Architecture
├── marketing.md     # Marketing strategy notes
└── tasks/           # Implementation tasks
    ├── 01-setup.md
    ├── 02-auth.md
    ├── ...

</output_structure>

<success_criteria>

  • Discovery questions answered and insights captured
  • 3-6 validated SaaS ideas generated
  • One idea selected and validated against market
  • PRD created with clear problem, solution, and user stories
  • Technical architecture defined (Next.js + Prisma + Better-Auth)
  • Implementation tasks broken down and prioritized
  • All outputs saved to ~/.claude/output/saas/{project-id}/
  • Project ready to start implementation </success_criteria>
<references> **Local References (in `references/` folder):** - `discovery-framework.md` - Mom Test + JTBD for idea discovery - `challenge-framework.md` - Smart validation for indie hackers - `prd-template.md` - Amazon + Lenny PRD frameworks - `architecture-template.md` - Architecture patterns - `tools.md` - Recommended tech stack - `task-template.md` - Task file structure

Scripts:

  • scripts/setup.sh <project_id> - Creates output folder structure
  • scripts/rename-project.sh <old> <new> - Renames project and updates all project_id references

Base Project:

  • NOW.TS boilerplate - User provides path during step-07 setup </references>