app-stack — build a SaaS with coding agents
Next.js (App Router) + Supabase + Clerk + Netlify, from an idea to a product in production. The rules were learned on real products; each states its principle first, so most carry to another stack.
Install
claude plugin marketplace add phuryn/product-engineering
claude plugin install app-stack@product-engineering
Codex, Cursor and other agents: see the collection's root README.md.
Skills (12)
- app-lifecycle — The detailed path for a SaaS from idea to production, stage by stage: what each produces, when it is done, what each product shape skips, and which capability to propose next when its trigger fires. It takes the accepted artifact from the
product pack's propose as its first stages.
- saas-authorization — Who may do what in a multi-tenant app: workspaces, the three functions every route goes through, permissions vs roles vs entitlements, invariants as database constraints, and the threat model every app has.
- supabase-production — The choices Supabase's own skill can't make: the server as the only database client, RLS on with zero policies, migrations by CLI with the target spelled out, each database reached only by its own connection string and the CLI never linked, and how to tell whether a push applies migrations.
- clerk-production — The choices Clerk's own skills can't make: verify never decode, sign-in landing, organizations and billing, the CSP header, MCP OAuth, the authenticated test mile and the gotchas that failed silently.
- environments — Development and production kept apart: the verified mapping, branches, the migrations window, variables and secrets (with a schema that runs at build), backups, incidents, the domain and the agent's access to each provider, and showing development to the owner.
- ui-design — How product UI is designed, built and judged: the method every kit and screen satisfies, which design skill collection leads at each stage, what a screen may claim, and reviewing the look with its owner.
- mcp-server — Ship an authenticated hosted MCP endpoint, test its tool surface, and prove it with one client. Choose a companion package or listings when you want them. The ChatGPT plugin reference covers OpenAI's directory review on any stack, including authentication before the first upload, the package checker, OAuth, request metadata and data rules. It also covers annotations, the reviewer account, the portal, rejection and changes after publication.
- embedded-agents — Decide what an agent may do before building it. Its card holds its job, tools by kind, what code enforces, what its instructions ask and what decisions it can make. The skill includes code and tests for an action that only a person's click runs. The Messages API is the default, with one wrapper, agents as directories, the tools the app gives them and replies streamed to a chat UI. The same agent directories run on the Agent SDK for Claude Code's built-in tools, or on Managed Agents, where Anthropic runs the loop with hosted code execution or web search when needed and the app runs its own functions. On all three, a lead agent can consult specialists through tools, with each specialist holding only its own tools and a cap on runs per message.
- transactional-email — Sending email from the app through a provider: an outbox, durable receipts and reconciliation instead of a promise of exactly-once, one-click unsubscribe, and a provider server per environment.
- uptime-monitoring — Knowing the app is down before its users do, on any monitoring service: content checks instead of status codes, confirmation from a second location, heartbeats for scheduled jobs, monitoring that doesn't run on what it monitors, and an alert route proven by a controlled failure. The default service is Staygreen, made by this collection's author, and its adapter is included; a service you already use stays.
- product-analytics — What people did, without analytics cookies: session recordings and heatmaps from Microsoft Clarity with cookies off by default, PostHog for events on the landing page, the data read back by the agent through each vendor's MCP server, and what changes (a banner, a policy line, the owner's dashboard steps) when a cookie comes in.
- legal-pages — Terms, a privacy policy and consent at sign-up, drafted from what the code collects and sends while it is built, held to it by a test, with the facts only the owner has and the owner's approval.
Author
Paweł Huryn — The Product Compass