/productos:develop-security-auditfrom productos
Audits the full app or uncommitted changes for security problems: secrets, database access control, unprotected routes, IDOR, exposed keys, and agent-tool risks like prompt injection. Verifies each finding to a concrete exploit path and writes a report with a fix plan.
Ships in productos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A full security audit of the member's app, built for apps made fast with AI agents by founders who are not security engineers. It audits the short list that burns real founder apps first — committed secrets, databases without row-level security, unprotected API routes, missing ownership checks, secret keys shipped to the browser — verifies every finding to a concrete exploit path, and writes docs/SECURITY-AUDIT.md: a verdict, the findings, and a fix plan a coding agent can execute while the member keeps building.
Boundary with the sibling skills: build-loop and develop-build run the tool's security pass on sensitive surfaces when they review (build-loop once the work is finished, develop-build at each phase boundary); develop-code-review carries only a thin pre-commit check (secrets, missing auth). This skill owns depth: the whole attack surface, the full category list, and the durable report. Run it before go-live, and again after any significant auth, payments, or data-access work.
This skill never auto-fixes. A wrong "fix" to auth middleware can lock a founder out of their own app. It reports; execution is a separate, explicit step the member chooses.
The voice is a senior application-security engineer auditing a small production app — precise about exploitability, allergic to theater. Every finding must name what an attacker can actually do; "this isn't best practice" doesn't ship — a noisy report teaches the member to ignore reports.
Ask one question: whole codebase, or just the uncommitted changes? (Default whole codebase; uncommitted-only uses the same git diff HEAD + untracked-files scoping as develop-code-review.)
Then read the shape (docs/DEFINE.md → ## Product Shape → ### Primary Shape; no section → web-app) and detect the stack before judging anything — framework, database layer (Supabase / Firebase / Prisma / raw SQL), auth provider (Clerk / Auth0 / NextAuth / Supabase Auth / custom), payment provider, hosting config. The stack decides which categories apply. Managed providers make whole categories N/A — "weak password hashing: N/A, Clerk manages credentials" is a correct and required audit line, not a gap. Auditing for problems the stack can't have is the fastest way to a noise report.
No-code shapes (productized-service, digital-product, website built in a hosted builder) need this audit only where there is custom code or stored customer data — scripts and automations that touch client files, a custom intake or portal, a database of buyers or members. Audit just that surface; if there is none, say so in one line and stop: the tools' own security is out of scope.
Enumerate before judging — the map is the audit's evidence base and goes in the report:
NEXT_PUBLIC_*, VITE_*, REACT_APP_*, EXPO_PUBLIC_*).Work the tiers in order — never batched, never sampled. Classify each category CRITICAL / HIGH / MEDIUM / LOW / PASS / N/A, and for every N/A state why.
Tier 1 — the five that took down real apps. Audit these first, always:
.env tracked in git (git ls-files + history), keys hardcoded in source, secrets placed behind public env prefixes (a NEXT_PUBLIC_ secret ships to every browser).auth.uid(), no USING (true); Firebase: rules require auth, no open reads/writes; self-hosted DBs not bound to 0.0.0.0 without auth.service_role / sk_live_ anywhere client-reachable is Critical.Tier 2 — High: SQL/NoSQL injection (raw queries built from input — f-strings, template literals); XSS only via the framework escape hatches (dangerouslySetInnerHTML, innerHTML, v-html — React/Vue/Angular are otherwise safe by default); unverified webhooks (Stripe/Clerk/GitHub signature checks + idempotency); wildcard or reflected CORS, especially with credentials: true; SSRF where user input controls the host or protocol (path-only is not a finding); command injection / eval / unsafe deserialization; dependency risk — packages that don't exist on the registry (AI-hallucinated names) or carry known critical vulns (run the ecosystem's audit tool — npm audit, pip-audit — if available; otherwise check the lockfile against known advisories and say the check was manual); missing rate limiting on auth endpoints (login, register, password reset — credential stuffing is script-kiddie easy); JWT flaws (algorithm: none, unverified signatures, no expiry).
Tier 3 — Medium/Low: CSRF protection / SameSite cookie config; security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options); insecure file uploads (extension-only validation, no server-side size limit, uploads served from the app domain); verbose errors / stack traces / debug mode reachable in production; PII in logs.
Tier 4 — Agent tools. Applies to agent-plugin, agent-skill, mcp-server, and chat-assistant, and to any app where a model calls tools — audit it right after Tier 1 for those shapes. Six categories: prompt injection through tool outputs and fetched content; over-broad tool permissions and scopes; secrets in plugin, MCP, and extension configs and manifests; data exfiltration via links and images; unsafe shell in hooks and scripts; missing confirmation on destructive tools. Read references/agent-tools-tier.md whenever Tier 4 applies — it holds each category's checks, severity rules, and the agent-specific never-report list. Severity follows what an injected instruction can make the agent do: Critical when untrusted content, private data, and an outbound channel or destructive tool meet in one session.
Tag each finding with its OWASP Top 10 (latest edition) ID for reference (Tier 4 findings: the OWASP Top 10 for LLM Applications ID) — but the tiers, not OWASP, order the report; the tiers are ordered by what actually burns founders.
Key identity — the rules that prevent both the worst false positive and the worst miss:
SUPABASE_ANON_KEY / NEXT_PUBLIC_SUPABASE_ANON_KEY in frontend code is correct and intended — it is not a secret, and flagging it is a false positive. Same for Stripe pk_live_* and the Firebase web apiKey.SUPABASE_SERVICE_ROLE_KEY or Stripe sk_live_* anywhere the browser can reach — client bundles, public env prefixes, frontend fetch headers — is Critical: it bypasses all access control.Detection is generous; the report is not. Before a finding ships, re-examine it against the code and demand a concrete exploit path — who the attacker is, what they send, what they get. Drop anything below roughly 8/10 confidence. Judge new code against this codebase's existing security patterns, not an abstract ideal.
Never report (noise, not findings): denial-of-service or resource-exhaustion scenarios; theoretical race conditions; missing hardening without a concrete exploit ("should add a CSP" is a Tier-3 category check, not a per-file finding); missing auth checks in client-side code (the server owns authorization — client checks are UX); XSS in React/Angular/Vue outside the escape hatches; attacks requiring control of env vars or CLI flags (those are trusted); missing audit logs; findings in documentation or test-only files (for skills and plugins, SKILL.md files, references, and prompts are product code, not documentation).
Always report (commonly excluded by enterprise tools only because enterprises have separate systems for them — founders don't): committed or exposed secrets, missing rate limiting on auth endpoints, and vulnerable or hallucinated dependencies.
docs/SECURITY-AUDIT.mdOne canonical file at the app repo root, overwritten each run (create docs/ if needed). Get the audit date with date +%Y-%m-%d — never guess it. Read templates/security-audit.md and write the report in exactly that shape: Verdict, Do this right now (only when credentials leaked), Findings, What's already secure, Fix plan, Human-only actions, Excluded from this audit.
Every fix task's Verify line is a falsifiable assertion an agent can mechanically confirm — never "improve validation." The Do this right now section outranks everything: rotating a leaked key comes before fixing the code that leaked it — the key is in git history and is compromised no matter what the code says.
Re-read the written report and check:
Close the session with the verdict, the finding count by severity, and the one instruction: "To execute the fixes, tell your coding agent to work through the Fix plan in docs/SECURITY-AUDIT.md top to bottom, marking tasks complete — or point your build loop at it. The Human-only actions are yours; do the 'right now' section first." After the fixes land, offer a re-audit of the changed surface to confirm the Verify lines pass.
What SKILL.md sets; muted values are Claude Code's defaults
45 skills in this plugin
/build-loopBuilds plan tasks or a feature prompt in Claude Code, Codex, or Cursor through a build → test → fix loop per task, then one review pass with the tool's own /review (plus a security pass for sensitive surfaces) once the work is finished. Use when the user says "run the build loop", "build the next task", "continue the plan", or asks to implement work from a plan file or a direct prompt. Works in any repo. Not for running a whole roadmap in one go — use develop-build./continuePicks up the member's ProductOS work where they left off — reads setup, any open challenge, the programme plan, docs/PATH.md, and docs/, tells the member in plain words where they are and what the next step does for them, then hands over to the skill that owns it: setup, a challenge check-in, product-refactor, or a phase orchestrator. Use when the member starts or returns to a session and says "continue", "keep going", "what's next", "where was I", or "pick up where I left off". Not for carrying on a task already under way in this conversation — just keep going with it./define-business-strategyWorks out the economics behind the price — cost per customer and gross margin, unfair advantage, north star metric — and writes the optional Business Strategy section of docs/DEFINE.md. Use when the money questions get real (before paid acquisition, at first revenue, when an investor asks): "what are my margins", "unit economics", "what does each customer cost me", "what's my north star metric". Requires the Offer and Pricing sections. Not for choosing the business model or price — use define-pricing./define-customer-personaBuilds an evidence-backed Customer Persona from the Product Offer, with live market research and section-by-section critique, and writes the Customer Persona section of docs/DEFINE.md. Use after the offer is drafted, when the user says "build my customer persona", "who is my ideal customer", "create an ICP", or "target customer profile". Requires the Product Offer section of docs/DEFINE.md. Not for critiquing the offer — use define-offer-review; not for extracting a persona from an existing product — use define-from-code./define-from-codeExtracts draft Define answers — Summary, Product Offer, Customer Persona, Pricing Strategy — from an existing product (codebase, live app, landing page, or store listing), writes them to docs/DEFINE.md marked as extracted drafts, confirms the load-bearing inferences, then hands off to define-offer-review. Use when the product already exists but DEFINE.md doesn't: "fast-track define", "extract my offer from my code", "backfill the strategy docs". Not for a product that is still an idea — use define-offer-builder./define-idea-finderTurns a business, deep expertise, or a passion into one software idea worth building: audits where money, hours, and obsessions already go, scores a 3–5 idea shortlist behind a willingness-to-pay gate, converges on one idea, and records what the member keeps in docs/DEFINE.md before handing off to define-offer-builder. Use when there is no idea yet: "what should I build", "find my idea", "turn my expertise into software", "productize my service". Not for shaping an idea you already have — use define-offer-builder; not for features in an existing app — use develop-feature-finder.npx claudepluginhub buildgreatproducts/product-os-public --plugin productosOther plugins' skills for the same job