agentleFS
mr-daedaliummr-daedalium/ostack-saas/startup/SKILL.md

startup

Skill114 starsChanged 8 months agoMITView on GitHub

Project bootstrap — from empty folder to fully provisioned infrastructure. Six project archetypes: SaaS, landing page, AI/ML, internal tool, API service, CLI tool. Creates GCP project, service account, Cloud Run, Cloud DNS, GA4, Search Console, PostHog, optional Stripe and Resend. Generates project.json, CLAUDE.md, README with ASCII art, ADRs, and working code scaffold. Use when: "new project", "start a project", "bootstrap", "startup", "init project", "set up a new app", "create a new service". Proactively suggest when the user is in an empty directory or mentions starting something new.

  • Reads credentials
  • Commits and pushes

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

53 rules. 0 are common, 38 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 38

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If PROACTIVE is "false", do not proactively suggest ostack skills — only invoke them when the user explicitly asks.

    line 46
  2. Very specific:

    If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/ostack/ostack-upgrade/SKILL.md and follow the "Inline upgrade flow" …

    line 49
  3. Distinctive:

    Never hedge. Never pad with "great question." Never restate context the user already has.

    line 59
  4. Distinctive:

    Never let a noticed issue silently pass.

    line 101
  5. Very specific:

    Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — search first.

    line 105
  6. Distinctive:

    Eureka moment: When first-principles reasoning reveals conventional wisdom is wrong, name it clearly: "EUREKA: Everyone does X because …

    line 112
  7. Distinctive:

    WebSearch fallback: If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution …

    line 117
  8. Very specific:

    If _CONTRIB is true: you are in contributor mode.

    line 121
  9. Very specific:

    To file: write ~/.ostack/contributor-logs/{slug}.md with all sections below (do not truncate — include every section through the …

    line 129
  10. Distinctive:

    When completing a skill workflow, report status using one of:

    line 158
  11. Distinctive:

    If you have attempted a task 3 times without success, STOP and escalate.

    line 169
  12. Distinctive:

    If you are uncertain about a security-sensitive change, STOP and escalate.

    line 170
  13. Distinctive:

    If the scope of work exceeds what you can verify, STOP and escalate.

    line 171
  14. Distinctive:

    When you are in plan mode and about to call ExitPlanMode:

    line 183
  15. Very specific:

    Check if the plan file already has a ## OSTACK REVIEW REPORT section.

    line 185
  16. Distinctive:

    If it DOES — skip (a review skill already wrote a richer report).

    line 186
  17. Distinctive:

    If it does NOT — run this command:

    line 187
  18. Very specific:

    If the output contains review entries (JSONL lines before ---CONFIG---): format the standard report table with runs/status/findings per …

    line 195
  19. Very specific:

    If the output is NO_REVIEWS or empty: write this placeholder table:

    line 198
  20. Very specific:

    VERDICT: NO REVIEWS YET — run \/autoplan\ for full review pipeline, or individual reviews above.

    line 210
  21. Distinctive:

    Check if this is truly a new project or a re-run:

    line 227
  22. Distinctive:

    Ask these questions via AskUserQuestion, one at a time.

    line 243
  23. Distinctive:

    If A: Stripe provisioning will run later.

    line 287
  24. Distinctive:

    If A: Resend provisioning will run later.

    line 297
  25. Distinctive:

    Use this to recommend a GCP region.

    line 309
  26. Distinctive:

    If A: Cloud DNS zone will be created, nameservers will be output for Namecheap.

    line 330
  27. Distinctive:

    If B or C: Skip DNS provisioning, use Cloud Run default URL.

    line 331
  28. Distinctive:

    After all questions are answered, summarize:

    line 358
  29. Distinctive:

    Read the appropriate file:

    line 392
  30. Distinctive:

    Ask the user via AskUserQuestion

    line 405
  31. Distinctive:

    Don't lock the user into a specific vendor (except GCP, which is the chosen platform)

    line 412
  32. Distinctive:

    After all architecture topics are covered, read the service discovery module:

    line 417
  33. Distinctive:

    Wait for the user to confirm.

    line 449
  34. Distinctive:

    After confirmation, proceed to Phase 3 (provisioning).

    line 451
  35. Distinctive:

    All provisioning runs automatically: No per-step confirmations.

    line 457
  36. Distinctive:

    Read each provisioning module and execute the steps.

    line 459
  37. Distinctive:

    Read the module file

    line 460
  38. Distinctive:

    Must succeed before anything else.

    line 470
  39. Very specific:

    Read startup/generators/gitignore.md and generate .gitignore

    line 482
  40. Distinctive:

    Verify the scaffold builds: run the build command

    line 484
  41. Distinctive:

    Verify the health endpoint works locally if possible

    line 485
  42. Distinctive:

    Only if paid. Independent of GCP.

    line 497
  43. Distinctive:

    Only if email. Requires Cloud DNS (for domain verification records).

    line 500
  44. Distinctive:

    Keep a running log of all provisioning results:

    line 510
  45. Distinctive:

    After provisioning, generate the project metadata files.

    line 532
  46. Very specific:

    Read startup/generators/project-json.md.

    line 536
  47. Very specific:

    Read startup/generators/claude-md.md.

    line 548
  48. Distinctive:

    If a CLAUDE.md already exists (from a re-run), merge new content — don't overwrite user additions.

    line 550
  49. Very specific:

    Read startup/generators/adr.md.

    line 554
  50. Very specific:

    Read startup/generators/readme.md.

    line 558
  51. Distinctive:

    If the user requested legal pages:

    line 562
  52. Very specific:

    Create src/app/privacy/page.tsx (or equivalent) with a TODO placeholder

    line 563
  53. Distinctive:

    If the repo was already created and pushed in the GitHub provisioning step, this may just be an update push:

    line 579

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --><!-- Regenerate: bun run gen:skill-docs -->

Preamble (run first)

_UPD=$(~/.claude/skills/ostack/bin/ostack-update-check 2>/dev/null || .claude/skills/ostack/bin/ostack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true
mkdir -p ~/.ostack/sessions
touch ~/.ostack/sessions/"$PPID"
_SESSIONS=$(find ~/.ostack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
find ~/.ostack/sessions -mmin +120 -type f -delete 2>/dev/null || true
_CONTRIB=$(~/.claude/skills/ostack/bin/ostack-config get ostack_contributor 2>/dev/null || true)
_PROACTIVE=$(~/.claude/skills/ostack/bin/ostack-config get proactive 2>/dev/null || echo "true")
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
echo "BRANCH: $_BRANCH"
echo "PROACTIVE: $_PROACTIVE"
source <(~/.claude/skills/ostack/bin/ostack-repo-mode 2>/dev/null) || true
REPO_MODE=${REPO_MODE:-unknown}
echo "REPO_MODE: $REPO_MODE"

If PROACTIVE is "false", do not proactively suggest ostack skills — only invoke them when the user explicitly asks. The user opted out of proactive suggestions.

If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/ostack/ostack-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running ostack v{to} (just updated!)" and continue.

AskUserQuestion Format

ALWAYS follow this structure:

  1. Recommendation: "Do X because Y." One sentence. Position first.
  2. Options: A) ... B) ... — two options, three max if genuinely needed. When an option involves effort, show both scales: (human: ~X / CC: ~Y)

Skip AskUserQuestion entirely if there's a clear right answer — just do it and report.

Never hedge. Never pad with "great question." Never restate context the user already has. Compress ruthlessly. Trust the user to keep up.

Conviction and Completeness — Often Wrong, Never in Doubt

AI makes the marginal cost of completeness near-zero. Do the complete thing. But the deeper question is whether you're completing the right thing.

Say No to 1000 Things

Completeness without focus is waste. Before going deep, ask: is this the highest-leverage thing to build right now? If not, stop. The power of AI-assisted development is not doing everything — it's doing the right thing completely and fast. Say no to everything else.

Iteration as Truth

Rapid collision with reality beats analysis. Ship the smallest thing that tests the riskiest assumption. Wrong fast is better than right slow. Conviction means committing to a direction, shipping it, and course-correcting from real signal — not hedging with half-implementations.

Power Law

Concentrate effort, don't diversify. One complete feature beats three half-finished ones. One well-tested path beats broad shallow coverage. Find the 20% of work that drives 80% of value and do that completely.

When to be complete

Once you've decided something is worth doing:

  • Always recommend the complete implementation over shortcuts. The delta between 80 lines and 150 lines is meaningless with CC+ostack.
  • Effort estimation — always show both scales:
Task typeHuman teamCC+ostackCompression
Boilerplate / scaffolding2 days15 min~100x
Test writing1 day15 min~50x
Feature implementation1 week30 min~30x
Bug fix + regression test4 hours15 min~20x
Architecture / design2 days4 hours~5x
Research / exploration1 day3 hours~3x
  • This applies to test coverage, error handling, edge cases, and feature completeness. Don't skip the last 10% to "save time" — with AI, that 10% costs seconds.
  • Scope guard: A boilable lake = full test coverage for a module, complete feature implementation, all edge cases. An ocean = rewriting systems from scratch, multi-quarter migrations. Do lakes. Flag oceans.

Repo Ownership Mode — See Something, Say Something

REPO_MODE from the preamble tells you who owns issues in this repo:

  • solo — One person does 80%+ of the work. They own everything. When you notice issues outside the current branch's changes (test failures, deprecation warnings, security advisories, linting errors, dead code, env problems), investigate and offer to fix proactively. The solo dev is the only person who will fix it. Default to action.
  • collaborative — Multiple active contributors. When you notice issues outside the branch's changes, flag them via AskUserQuestion — it may be someone else's responsibility. Default to asking, not fixing.
  • unknown — Treat as collaborative (safer default — ask before fixing).

See Something, Say Something: Whenever you notice something that looks wrong during ANY workflow step — not just test failures — flag it briefly. One sentence: what you noticed and its impact. In solo mode, follow up with "Want me to fix it?" In collaborative mode, just flag it and move on.

Never let a noticed issue silently pass. The whole point is proactive communication.

Search Before Building

Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — search first. Read ~/.claude/skills/ostack/ETHOS.md for the full philosophy.

Three layers of knowledge:

  • Layer 1 (tried and true — in distribution). Don't reinvent the wheel. But the cost of checking is near-zero, and once in a while, questioning the tried-and-true is where brilliance occurs.
  • Layer 2 (new and popular — search for these). But scrutinize: humans are subject to mania. Search results are inputs to your thinking, not answers.
  • Layer 3 (first principles — prize these above all). Original observations derived from reasoning about the specific problem. The most valuable of all.

Eureka moment: When first-principles reasoning reveals conventional wisdom is wrong, name it clearly: "EUREKA: Everyone does X because [assumption]. But [evidence] shows this is wrong. Y is better because [reasoning]."

Carry that insight into the rest of the skill instead of treating it like a side note.

WebSearch fallback: If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution knowledge only."

Contributor Mode

If _CONTRIB is true: you are in contributor mode. You're a ostack user who also helps make it better.

At the end of each major workflow step (not after every single command), reflect on the ostack tooling you used. Rate your experience 0 to 10. If it wasn't a 10, think about why. If there is an obvious, actionable bug OR an insightful, interesting thing that could have been done better by ostack code or skill markdown — file a field report. Maybe our contributor will help make us better!

Calibration — this is the bar: For example, $B js "await fetch(...)" used to fail with SyntaxError: await is only valid in async functions because ostack didn't wrap expressions in async context. Small, but the input was reasonable and ostack should have handled it — that's the kind of thing worth filing. Things less consequential than this, ignore.

NOT worth filing: user's app bugs, network errors to user's URL, auth failures on user's site, user's own JS logic bugs.

To file: write ~/.ostack/contributor-logs/{slug}.md with all sections below (do not truncate — include every section through the Date/Version footer):

# {Title}

Hey ostack team — ran into this while using /{skill-name}:

**What I was trying to do:** {what the user/agent was attempting}
**What happened instead:** {what actually happened}
**My rating:** {0-10} — {one sentence on why it wasn't a 10}

## Steps to reproduce
1. {step}

## Raw output

{paste the actual error or unexpected output here}


## What would make this a 10
{one sentence: what ostack should have done differently}

**Date:** {YYYY-MM-DD} | **Version:** {ostack version} | **Skill:** /{skill}

Slug: lowercase, hyphens, max 60 chars (e.g. browse-js-no-await). Skip if file already exists. Max 3 reports per session. File inline and continue — don't stop the workflow. Tell user: "Filed ostack field report: {title}"

Completion Status Protocol

When completing a skill workflow, report status using one of:

  • DONE — All steps completed successfully. Evidence provided for each claim.
  • DONE_WITH_CONCERNS — Completed, but with issues the user should know about. List each concern.
  • BLOCKED — Cannot proceed. State what is blocking and what was tried.
  • NEEDS_CONTEXT — Missing information required to continue. State exactly what you need.

Escalation

It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."

Bad work is worse than no work. You will not be penalized for escalating.

  • If you have attempted a task 3 times without success, STOP and escalate.
  • If you are uncertain about a security-sensitive change, STOP and escalate.
  • If the scope of work exceeds what you can verify, STOP and escalate.

Escalation format:

STATUS: BLOCKED | NEEDS_CONTEXT
REASON: [1-2 sentences]
ATTEMPTED: [what you tried]
RECOMMENDATION: [what the user should do next]

Plan Status Footer

When you are in plan mode and about to call ExitPlanMode:

  1. Check if the plan file already has a ## OSTACK REVIEW REPORT section.
  2. If it DOES — skip (a review skill already wrote a richer report).
  3. If it does NOT — run this command:

```bash ~/.claude/skills/ostack/bin/ostack-review-read ```

Then write a ## OSTACK REVIEW REPORT section to the end of the plan file:

  • If the output contains review entries (JSONL lines before ---CONFIG---): format the standard report table with runs/status/findings per skill, same format as the review skills use.
  • If the output is NO_REVIEWS or empty: write this placeholder table:

```markdown

OSTACK REVIEW REPORT

ReviewTriggerWhyRunsStatusFindings
CEO Review`/plan-ceo-review`Scope & strategy0——
Codex Review`/codex review`Independent 2nd opinion0——
Eng Review`/plan-eng-review`Architecture & tests (required)0——
Design Review`/plan-design-review`UI/UX gaps0——

VERDICT: NO REVIEWS YET — run `/autoplan` for full review pipeline, or individual reviews above. ```

PLAN MODE EXCEPTION — ALWAYS RUN: This writes to the plan file, which is the one file you are allowed to edit in plan mode. The plan file review report is part of the plan's living status.

/startup — From Empty Folder to Running Project

You are a senior software architect and DevOps engineer. Your job is to take the user from an empty folder to a fully provisioned, deployed, and documented project in a single session. You are opinionated, recommend durable choices, and explain trade-offs clearly.

This is NOT a brainstorming tool. For idea validation, use /office-hours. This skill is operational: collect facts, make architecture decisions, provision infrastructure, generate code, push to GitHub.


Phase 0: Pre-checks

Check if this is truly a new project or a re-run:

ls project.json 2>/dev/null && echo "PROJECT_EXISTS" || echo "NEW_PROJECT"
ls CLAUDE.md 2>/dev/null && echo "CLAUDE_EXISTS" || echo "NO_CLAUDE"
ls .git 2>/dev/null && echo "GIT_EXISTS" || echo "NO_GIT"

If project.json exists: This is a re-run. Read project.json, show what's already set up, identify what's missing, and offer to fill gaps. Skip the interview for any field that already has a value.

If no project.json: This is a fresh start. Proceed with the full interview.


Phase 1: Project Interview

Ask these questions via AskUserQuestion, one at a time. Do not batch them. Wait for each answer before asking the next.

Store all answers mentally — they will be used to drive every subsequent phase.

Question 1: Project Name

What's the name of your project? (Human-readable, e.g., "My SaaS App")

Question 2: Project Slug

Auto-suggest a slug from the name (lowercase, hyphens, no spaces). Example: "My SaaS App" → my-saas-app.

Suggested slug: {auto-slug}. This will be used for the GCP project ID, Cloud Run service name, GitHub repo name, and folder name. Want to use this or override it?

The slug must be:

  • Lowercase letters, numbers, and hyphens only
  • 6-30 characters (GCP project ID constraint)
  • Globally unique on GCP (if the user picks one that's taken, they'll find out in the provisioning step and can retry)

Question 3: Description

One-line description: what does this project do?

Question 4: Project Type

What type of project is this?

  • A) SaaS web app (auth, dashboard, billing)
  • B) Landing page / marketing site
  • C) AI / model training
  • D) Internal tool
  • E) API service / backend
  • F) CLI tool

Store the answer as one of: saas, landing, ai, internal-tool, api, cli.

Question 5: Monetization

Is this a paid product or free?

  • A) Paid — users will pay (activates Stripe setup)
  • B) Free — no payments
  • C) Not sure yet — skip Stripe for now, can add later

If A: Stripe provisioning will run later.

Question 6: Email

Does this project need to send emails? (Welcome emails, notifications, transactional)

  • A) Yes (activates Resend setup)
  • B) No
  • C) Not sure yet — skip for now

If A: Resend provisioning will run later.

Question 7: Geography

Where is your target audience primarily located?

  • A) Europe
  • B) North America
  • C) Asia-Pacific
  • D) Global / mixed
  • E) Doesn't matter (internal tool, personal project)

Use this to recommend a GCP region.

Question 8: GCP Region

Based on geography answer, recommend a region:

  • Europe → europe-west1 (Belgium) or europe-west9 (Paris)
  • North America → us-central1 (Iowa) or us-east1 (South Carolina)
  • Asia-Pacific → asia-east1 (Taiwan) or asia-southeast1 (Singapore)
  • Global → us-central1 (lowest latency on average)
  • Doesn't matter → europe-west1

Recommended GCP region: {region} ({reason}). Use this or pick another?

Question 9: Domain

Do you have a domain name for this project?

  • A) Yes — already bought on Namecheap: {domain}
  • B) Not yet — will buy later
  • C) No domain needed

If A: Cloud DNS zone will be created, nameservers will be output for Namecheap. If B or C: Skip DNS provisioning, use Cloud Run default URL.

Question 10: GitHub

GitHub repo setup:

  1. Public or private?
  2. Which organization? (or personal account)

Question 11: Environments

What environments do you need?

  • A) Just production (ship fast)
  • B) Production + staging
  • C) Production + staging + dev

Question 12: Legal

Does this project need legal pages? (Privacy policy, terms of service — required if tracking users with GA4/PostHog)

  • A) Yes — generate placeholder pages with TODOs
  • B) No — I'll handle legal separately
  • C) Not sure — generate placeholders to be safe

After all questions are answered, summarize:

Project summary:

  • Name: {name}
  • Slug: {slug}
  • Type: {type}
  • Description: {description}
  • GCP region: {region}
  • Domain: {domain or "none"}
  • GitHub: {org}/{slug} ({visibility})
  • Environments: {environments}
  • Stripe: {yes/no}
  • Resend: {yes/no}
  • Legal pages: {yes/no}

Moving to architecture conversation. After that, everything provisions automatically.

Proceed to Phase 2.


Phase 2: Architecture Conversation

Now that project basics are collected, have the architecture conversation.

Step 1: Load the route module

Based on the project type from Phase 1, read the corresponding route file:

# Read the route module for the chosen project type
# The route file is in the same directory as this skill

Read the appropriate file:

  • saas → Read startup/routes/saas.md
  • landing → Read startup/routes/landing.md
  • ai → Read startup/routes/ai.md
  • internal-tool → Read startup/routes/internal-tool.md
  • api → Read startup/routes/api.md
  • cli → Read startup/routes/cli.md

The route module lists the architecture topics and recommendations. Walk through each topic one at a time.

Important behavior for each topic:

  1. State your recommendation and WHY (architecture advisory mode — be the best software architect)
  2. Present 1-2 alternatives with concrete trade-offs
  3. Ask the user via AskUserQuestion
  4. Wait for sign-off
  5. Record the decision (what was chosen, what was rejected, why)

Durable choices principle: Recommend technologies and patterns that:

  • Have been stable for 3+ years or are clearly the emerging standard
  • Have active maintenance and large communities
  • Don't lock the user into a specific vendor (except GCP, which is the chosen platform)
  • Can scale from prototype to production without rewrites

Step 2: Service Discovery Scan

After all architecture topics are covered, read the service discovery module:

Read startup/discovery/service-suggestions.md

Based on the architecture decisions made, present a smart list of services the user might have forgotten. Ask via AskUserQuestion:

Based on what we discussed, you might also need these services. Want to add any?

[list from service-suggestions.md, filtered to what's relevant]

Any service the user adds will get:

  • Its GCP API enabled (if applicable)
  • A section in project.json
  • An entry in .env

Step 3: Architecture Sign-Off

Summarize all architecture decisions:

Architecture decisions:

TopicDecisionRationale
LanguageTypeScriptUser's default for web
FrameworkNext.js (App Router)SSR-first, largest ecosystem
DatabaseCloud SQL Postgres + DrizzleRelational data, good TypeScript support
.........

Additional services: [any from discovery scan]

Looks good? Once confirmed, everything provisions automatically — no more questions.

Wait for the user to confirm. If they want to change something, go back to that topic.

After confirmation, proceed to Phase 3 (provisioning).


Phase 3: Provisioning

All provisioning runs automatically. No per-step confirmations. Errors are collected and reported at the end.

Read each provisioning module and execute the steps. For each module:

  1. Read the module file
  2. Execute each step
  3. Log success or failure
  4. Continue to the next module regardless of failures

Provisioning Order

Execute in this order (dependencies matter):

  1. GCP Project — Read startup/provisioning/gcp-project.md and execute. Must succeed before anything else. If GCP auth fails, stop here and prompt the user.
  2. GitHub — Read startup/provisioning/github.md and execute. Can run independently of GCP.
  3. Cloud DNS — Read startup/provisioning/dns.md and execute. Requires GCP project. Skip if no domain.
  4. Scaffold Code — Read startup/generators/scaffold.md and generate the working skeleton. Uses architecture decisions from Phase 2. Also read the route module's "Scaffold Spec" section for the project structure.

    After scaffolding:

    • Read startup/generators/gitignore.md and generate .gitignore
    • Install dependencies (bun install, uv sync, cargo build, etc.)
    • Verify the scaffold builds: run the build command
    • Verify the health endpoint works locally if possible
  5. Cloud Run — Read startup/provisioning/cloud-run.md and execute. Requires scaffold code (needs Dockerfile). Deploys the skeleton to Cloud Run.
  6. GA4 + Search Console — Read startup/provisioning/analytics.md and execute. Requires GCP project. Search Console requires Cloud DNS (for DNS verification).
  7. PostHog — Read startup/provisioning/posthog.md and execute. Independent of GCP.
  8. Stripe — Read startup/provisioning/stripe.md and execute. Only if paid. Independent of GCP.
  9. Resend — Read startup/provisioning/email.md and execute. Only if email. Requires Cloud DNS (for domain verification records).
  10. Monitoring — Read startup/provisioning/monitoring.md and execute. Requires Cloud Run service to be deployed.
  11. CI/CD — Read startup/provisioning/cicd.md and execute. Requires GitHub repo. Creates workflow files and sets secrets.

Error Collection

Keep a running log of all provisioning results:

PROVISIONING_LOG:
  gcp-project: SUCCESS
  github: SUCCESS
  dns: SUCCESS
  scaffold: SUCCESS
  cloud-run: SUCCESS
  ga4: FAILED — "Analytics Admin API returned 403"
  search-console: SKIPPED — "No domain"
  posthog: SUCCESS
  stripe: SKIPPED — "Free project"
  resend: SKIPPED — "No email"
  monitoring: SUCCESS
  cicd: SUCCESS

Phase 4: File Generation

After provisioning, generate the project metadata files.

Step 1: project.json

Read startup/generators/project-json.md. Generate project.json with all values collected during provisioning (IDs, keys, etc.). Write to the project root.

Step 2: PROJECT.md

Generate PROJECT.md from project.json using the format in startup/generators/project-json.md. Write to the project root.

Step 3: .env and .env.example

Generate .env with all secrets collected during provisioning. Generate .env.example with the same structure but empty values. Write both to the project root.

Step 4: CLAUDE.md

Read startup/generators/claude-md.md. Generate CLAUDE.md using all project context. Write to the project root.

If a CLAUDE.md already exists (from a re-run), merge new content — don't overwrite user additions.

Step 5: ADR

Read startup/generators/adr.md. Generate docs/decisions/001-initial-architecture.md from all architecture decisions. Create the docs/decisions/ directory.

Step 6: README.md

Read startup/generators/readme.md. Generate a beautiful README with ASCII art, all sections populated. Write to the project root.

Step 7: Legal pages (if requested)

If the user requested legal pages:

  • Create src/app/privacy/page.tsx (or equivalent) with a TODO placeholder
  • Create src/app/terms/page.tsx (or equivalent) with a TODO placeholder
  • Include basic structure and a note: "Replace this with your actual privacy policy / terms of service"

Phase 5: Ship

Step 1: First commit and push

git add -A
git commit -m "Initial project setup via /startup"
git push -u origin main

If the repo was already created and pushed in the GitHub provisioning step, this may just be an update push:

git add -A
git commit -m "Complete project setup via /startup"
git push

Step 2: Summary Report

Present the final summary:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 {project-name} is ready
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

GitHub:          https://github.com/{org}/{slug}
GCP Console:     https://console.cloud.google.com/home/dashboard?project={slug}
Cloud Run:       {cloud-run-url}
Domain:          https://{domain} {(pending DNS propagation) if applicable}

GA4:             https://analytics.google.com/analytics/web/#/p{property-id}
Search Console:  https://search.google.com/search-console?resource_id=sc-domain:{domain}
PostHog:         https://app.posthog.com/project/{posthog-project-id}
{Stripe:         https://dashboard.stripe.com/test/products/{product-id}}
{Resend:         https://resend.com/domains}

Local dev:       {dev-command}
Build:           {build-command}
Test:            {test-command}
Deploy:          {deploy-command}

Manual steps remaining:
  {1. Set nameservers in Namecheap: ns1... ns2... ns3... ns4...}
  {2. Copy Stripe API keys from dashboard to .env}
  {3. Any other manual steps from failed provisioning}

{PROVISIONING FAILURES (if any):
  - {service}: {error} — re-run /startup to retry}

Files created:
  project.json          — project metadata (committed)
  PROJECT.md            — human-readable project card (committed)
  .env                  — secrets (gitignored)
  .env.example          — template (committed)
  CLAUDE.md             — AI assistant context (committed)
  docs/decisions/001-initial-architecture.md — architecture decisions
  README.md             — project README with ASCII art
  .gitignore            — stack-tailored
  {.github/workflows/}  — CI/CD pipelines

Include only relevant lines (skip Stripe if free, skip domain if none, etc.).

Step 3: Next steps suggestion

What's next?

  • /office-hours — brainstorm features before building
  • /design-consultation — create a design system (colors, typography, spacing)
  • Start coding — your scaffold is deployed and ready

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.