Agent skill
cloud-dev-environment
Cursor Cloud VM setup and service startup instructions for local development
Install this agent skill to your Project
npx add-skill https://github.com/elie222/inbox-zero/tree/main/.claude/skills/cloud-dev-environment
SKILL.md
Cloud Development Environment
Services overview
- Main app (
apps/web): Next.js 16 app (Turbopack). Runs on port 3000. - PostgreSQL 16: Primary database. Runs on port 5432 via
docker-compose.dev.yml. - Redis 7 + serverless-redis-http: Caching/rate-limiting. Redis on port 6380, HTTP proxy on port 8079.
Starting services
- Start Docker daemon:
sudo dockerd(already running in snapshot). - Start databases:
docker compose -f docker-compose.dev.yml up -dfrom repo root. - Run Prisma migrations:
cd apps/web && pnpm prisma:migrate:local(usesdotenv -e .env.local; do NOT use bareprisma migrate dev— it won't load.env.local). - Start dev server:
pnpm devfrom repo root.
Environment file
The app reads apps/web/.env.local. Required non-obvious env vars beyond .env.example defaults:
DEFAULT_LLM_PROVIDER(e.g.openai) — app crashes at startup without this.MICROSOFT_WEBHOOK_CLIENT_STATE— required ifMICROSOFT_CLIENT_IDis set.UPSTASH_REDIS_TOKENmust match theSRH_TOKENindocker-compose.dev.yml(default:dev_token).
Testing
pnpm testruns Vitest unit/integration tests (no DB or external services required).pnpm lintruns Biome. Pre-existing lint warnings/errors in the repo are expected.- AI tests (
pnpm test-ai) require a real LLM API key and are skipped by default.
Docker in this environment
The cloud VM is a Docker-in-Docker setup. Docker requires fuse-overlayfs storage driver and iptables-legacy. These are configured during initial setup. After snapshot restore, run sudo dockerd &>/dev/null & if Docker daemon is not running, then sudo chmod 666 /var/run/docker.sock.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
qa-new-flow
Create a new browser QA flow file from the template
llm
Guidelines for implementing LLM (Language Model) functionality in the application
fullstack-workflow
Complete fullstack workflow combining GET API routes, server actions, SWR data fetching, and form handling. Use when building features that need both data fetching and mutations from API to UI.
write-tests
Write focused unit tests for backend and utility logic
e2e
Run and debug E2E flow tests. Use when triggering E2E tests, checking test status, debugging failures with Axiom logs, or setting up local E2E testing.
prisma
How to use Prisma
Didn't find tool you were looking for?