agentleFS
Vimalk0703Vimalk0703/shipworthy/skills/planning/decision-frameworks/SKILL.md

decision-frameworks

Skill6 starsChanged 8 months agoMITView on GitHub

Guides non-technical users through technology choices with opinionated defaults. Recommends one option for Builder-tier users, presents comparisons for Engineer-tier users. Covers databases, hosting, payments, auth, email, and build-vs-buy decisions.

  • Commits and pushes

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test mode for development (no real charges)

    line 105
  2. Distinctive:

    No additional service to manage or pay for

    line 136
  3. Distinctive:

    When deciding whether to build something yourself or use a service:

    line 199
  4. Distinctive:

    No existing service fits your specific requirements

    line 210
  5. Distinctive:

    Ask: "If this component breaks at 3 AM, do I want to fix it myself or do I want someone else's on-call team to fix it?"

    line 216
  6. Distinctive:

    If the answer is "someone else" — buy it.

    line 218

“Common” is measured: kept by at least 6 in 10 of the 6 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

Decision Frameworks

Core Principle

If it's not your competitive advantage, buy it.

Your app's value is what it does differently. Authentication, email delivery, payment processing, hosting infrastructure — none of these are what makes your product special. Use proven services for these and spend your time on what matters.

How This Skill Works by Tier

  • Builder-tier: You get ONE recommendation with a brief "why." No comparison tables, no tradeoff analysis. The recommendation is the one that gets you shipping fastest with the least regret.
  • Engineer-tier: You get a comparison with tradeoffs so you can make an informed choice. The recommendation is still highlighted, but alternatives are presented with honest pros and cons.

Database

Recommendation: Supabase

Builder-tier response: "Use Supabase. It gives you a Postgres database, authentication, and real-time subscriptions in one service. Free tier is generous. You'll set it up in 10 minutes."

Why Supabase is the default:

  • Real Postgres database (not a proprietary format — your data is portable)
  • Auth built in (one less service to manage)
  • Real-time subscriptions included
  • Row-level security for fine-grained permissions
  • Generous free tier (500MB database, 50K monthly active users on auth)
  • Dashboard for viewing and editing data without writing queries

Engineer-Tier Comparison

FactorSupabaseFirebasePlanetScaleRaw Postgres
Database typePostgres (relational)Firestore (document/NoSQL)MySQL (relational)Postgres (relational)
Auth includedYesYesNoNo
Real-timeYesYesNoRequires setup
Free tier500MB, 2 projectsSpark plan (generous)5GB, 1B row reads/moSelf-host only
Vendor lock-inLow (standard Postgres)High (proprietary)Medium (MySQL-compatible)None
ComplexityLowLow-MediumLowHigh
Best forMost projectsMobile-first apps, Google ecosystemHigh-scale MySQL workloadsFull control needed
Avoid whenNeed NoSQL document modelNeed relational data, complex queriesNeed built-in authWant managed service

When to NOT use Supabase:

  • You're deep in the Google/Firebase ecosystem already
  • You specifically need a document database (rare for most apps)
  • You need MySQL specifically (PlanetScale)
  • You have regulatory requirements that mandate self-hosted databases

Hosting

Recommendation: Vercel (for Next.js), Railway (for anything else)

Builder-tier response: "If you're using Next.js, deploy on Vercel — it's made by the same team. Push your code to GitHub, connect Vercel, and you're live. For anything else (Python, Node backends, etc.), use Railway — same idea, works with everything."

Why Vercel is the default for Next.js:

  • Made by the creators of Next.js (best possible integration)
  • Git push to deploy (no configuration needed)
  • Automatic preview deployments for every branch
  • Edge functions and serverless built in
  • Free tier handles most early-stage projects
  • Custom domains with automatic HTTPS

Engineer-Tier Comparison

FactorVercelNetlifyRailwayAWS
Best forNext.js, ReactStatic sites, JamstackFull-stack, backendsEverything (at a cost)
Deploy methodGit pushGit pushGit pushMany options, all complex
Free tier100GB bandwidth100GB bandwidth$5/mo credit12-month free tier (limited)
ServerlessBuilt-inBuilt-in (Functions)Not serverless (containers)Lambda (complex setup)
Custom domainsEasy + auto HTTPSEasy + auto HTTPSEasy + auto HTTPSRoute 53 (complex)
Backend supportAPI routes, serverlessFunctions onlyFull containersEverything
ComplexityLowLowLow-MediumHigh
Scaling costCan spike unexpectedlyPredictablePredictablePay-per-use (complex billing)
Avoid whenNot using React/Next.jsNeed persistent backendNeed edge computingWant simplicity

When to NOT use Vercel:

  • You're not using Next.js or React (use Railway or Netlify instead)
  • You need a persistent backend process (WebSocket server, cron jobs) — use Railway
  • You need full infrastructure control — use AWS (but really consider if you do)
  • Budget-sensitive and traffic is unpredictable — Vercel can surprise you on cost

Payments

Recommendation: Stripe Checkout

Builder-tier response: "Use Stripe Checkout. It handles the entire payment flow — card forms, validation, receipts, subscriptions — all hosted by Stripe so you don't touch sensitive payment data. You'll be taking payments in an afternoon."

Why Stripe Checkout is the default:

  • Pre-built payment UI (no need to design card forms)
  • PCI compliance handled for you (critical — you don't want to handle card data)
  • Subscriptions, one-time payments, usage-based billing all supported
  • 40+ payment methods (cards, Apple Pay, Google Pay, bank transfers)
  • Excellent documentation and developer experience
  • Test mode for development (no real charges)

Engineer-Tier Comparison

FactorStripe CheckoutLemon SqueezyPaddle
Fee2.9% + 30c (US)5% + 50c5% + 50c
Merchant of RecordYouLemon SqueezyPaddle
Sales tax handlingYou manage (or use Stripe Tax)IncludedIncluded
Global tax complianceAdd-on (Stripe Tax)Built-inBuilt-in
Best forSaaS, e-commerce, marketplacesDigital products, SaaSSaaS, digital products
Subscription managementYes (Billing)YesYes
Setup complexityLow-MediumLowLow
Payout2-day rollingMonthlyMonthly

Merchant of Record explained (plain language): When Stripe processes a payment, YOU are the seller — you handle refund disputes, tax collection, and legal compliance in every country. When Lemon Squeezy or Paddle process a payment, THEY are the seller — they handle taxes and compliance for you, but take a bigger cut and pay you monthly. If you sell globally and don't want to deal with VAT/GST in 40 countries, Lemon Squeezy or Paddle earn their higher fee.

When to NOT use Stripe:

  • You sell digital products globally and don't want to handle international tax compliance — use Lemon Squeezy or Paddle
  • Your primary market is outside the US/EU and Stripe isn't available — check Paddle's country support
  • You want the absolute simplest setup for a digital product — Lemon Squeezy is slightly simpler

Authentication

Recommendation: Built-In (Supabase Auth if using Supabase, NextAuth if using Next.js without Supabase)

Builder-tier response: "If you're using Supabase, use Supabase Auth — it's already there, no extra setup. If you're using Next.js without Supabase, use NextAuth. Both give you email/password and social logins with minimal configuration."

Why built-in auth is the default:

  • No additional service to manage or pay for
  • Already integrated with your stack
  • Handles the common cases (email/password, Google, GitHub sign-in)
  • Free at the scale most projects need

Engineer-Tier Comparison

FactorSupabase AuthNextAuth (Auth.js)ClerkAuth0
CostFree (included with Supabase)Free (open source)Free up to 10K MAUFree up to 7.5K MAU
Social loginsGoogle, GitHub, Apple, etc.60+ providersGoogle, GitHub, Apple, etc.60+ providers
Email/passwordYesYes (with adapter)YesYes
MFAYesManual implementationYesYes
Pre-built UIBasicNone (you build it)Beautiful, drop-inUniversal Login (hosted)
User management dashboardYes (in Supabase)NoYes (excellent)Yes
ComplexityLowMediumLowMedium-High
Best forSupabase projectsNext.js, full controlBeautiful UI, fast setupEnterprise requirements
Avoid whenNot using SupabaseWant pre-built UIBudget-sensitive at scaleWant simplicity

When to NOT use built-in auth:

  • You need a beautiful, pre-built sign-in UI with minimal effort — use Clerk
  • You have enterprise requirements (SAML, SSO, compliance) — use Auth0
  • You need advanced user management features — use Clerk or Auth0

Email

Recommendation: Resend

Builder-tier response: "Use Resend for sending emails (welcome emails, password resets, notifications). It's simple, reliable, and the free tier covers most early-stage needs. You'll have it working in 15 minutes."

Why Resend is the default:

  • Simple API (one function call to send an email)
  • React Email integration (write emails as React components)
  • Free tier: 3,000 emails/month, 100/day
  • Excellent developer experience
  • Built-in email verification and deliverability
  • Modern dashboard with delivery tracking

Engineer-Tier Comparison

FactorResendSendGridAWS SES
Free tier3K/month100/day (forever free)62K/month (if sent from EC2)
Cost after free$20/mo for 50K$19.95/mo for 50K$0.10 per 1K emails
DX (developer experience)ExcellentGoodFunctional
React Email supportNativeNoNo
Setup complexityVery lowLowMedium
DeliverabilityHighHighHigh (requires setup)
DashboardModern, cleanFeature-richBasic
Best forMost projectsHigh volume, marketingVery high volume, cost-sensitive
Avoid whenSending 1M+/monthWant modern DXWant simplicity

When to NOT use Resend:

  • You're sending 100K+ emails/month and cost matters — use AWS SES
  • You need advanced marketing features (A/B testing, automation) — use SendGrid
  • You're already deep in the AWS ecosystem — use SES

Build vs Buy Framework

When deciding whether to build something yourself or use a service:

Buy It (Use a Service) When:

  • It's not your competitive advantage (auth, payments, email, hosting)
  • The problem is well-solved by existing services
  • Security is critical (payments, auth) — battle-tested services have security teams you don't
  • You need it to work NOW, not after weeks of building
  • The service has a free tier that covers your current needs

Build It When:

  • It IS your competitive advantage (the core thing that makes your product unique)
  • No existing service fits your specific requirements
  • You need full control over the user experience and no service offers enough customization
  • The build is small and well-understood (a utility function, not an infrastructure component)
  • Vendor lock-in is a real concern for your specific situation

The Litmus Test

Ask: "If this component breaks at 3 AM, do I want to fix it myself or do I want someone else's on-call team to fix it?"

If the answer is "someone else" — buy it.

Common Mistakes

  • Building auth from scratch "for learning" in a production app (use a service, learn on a side project)
  • Building a custom CMS when WordPress or a headless CMS would work
  • Building an email sending system instead of using Resend/SendGrid
  • Building a deployment pipeline instead of using Vercel/Railway
  • Building analytics instead of using Plausible/PostHog

The time you spend building commodity infrastructure is time you're NOT spending on what makes your product special.

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.