agentleFS
GlamgarOnDiscordGlamgarOnDiscord/claude-saas-blueprint/.claude/skills/env-setup/SKILL.md

env-setup

Skill2 starsChanged 6 months agoMITView on GitHub

Configure l'environnement de développement pour un SaaS Next.js + Supabase + Vercel : outils CLI, variables d'env, RTK, vérifications.

  • Reads credentials
  • Installs packages

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

The file

Files
SKILL.md

Instructions

1. Vérification des outils CLI requis

Vérifier que ces outils sont installés, sinon donner la commande d'installation :

OutilVérificationInstall
Node.js LTSnode -v ≥ 20https://nodejs.org
pnpmpnpm -vnpm i -g pnpm
Supabase CLIsupabase -vbrew install supabase/tap/supabase-cli
Vercel CLIvercel -vpnpm i -g vercel
Gitgit -v—
RTK (token optimizer)rtk --versionbrew install rtk-ai/tap/rtk && rtk init --global
Python 3.9+python --versionhttps://python.org

2. Variables d'environnement

Créer .env.local à partir de .env.example. Si .env.example n'existe pas, le générer avec ces variables minimales pour un SaaS Supabase :

# App
NEXT_PUBLIC_APP_URL=http://localhost:3000

# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
DATABASE_URL=          # pooler port 6543
DIRECT_URL=            # direct port 5432

# Auth (si Better Auth ou NextAuth)
AUTH_SECRET=           # openssl rand -base64 32

# Paiements (si Stripe)
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

# Emails (si Resend)
RESEND_API_KEY=

# Monitoring
SENTRY_DSN=
NEXT_PUBLIC_POSTHOG_KEY=

Vérifier que .env* est bien dans .gitignore.

3. Configuration Git

git config user.name   # vérifier configuré
git config user.email  # vérifier configuré
git config core.autocrlf false  # Windows : éviter les conflits CRLF

4. Supabase local

supabase start         # Démarrer la DB locale
supabase status        # Vérifier Studio URL + anon key locale

5. Vérification finale

python scripts/project_health.py   # Santé globale
python scripts/rtk_setup.py --check  # RTK actif ?
pnpm install && pnpm dev              # App démarre ?

6. RTK — si non installé

RTK réduit les tokens Claude Code de 60-90%. Installer une fois globalement :

brew install rtk-ai/tap/rtk && rtk init --global
# Windows : winget install rtk-ai.rtk

Doc : docs/integrations/rtk-token-optimizer.md

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.