2026 · FIRST BUILD

RiskScanAI

Shelved and continued as the basis for later work after the market verdict redirected the product question.

SHELVED Built the original agent workflow and learned the foundation patterns through production failures.
On this page

WHAT IT IS

RiskScanAI gave small businesses an AI-written security assessment.

RiskScanAI was my first product and the first one I built with coding agents. A small business filled in a free, plain-language questionnaire about how it handles security and got back a scored snapshot with a risk summary written by Claude, Anthropic's AI model. The paid tier added an interview with the AI that worked through the CIS IG1 safeguards (Implementation Group 1, the starter set of the Center for Internet Security's Critical Security Controls), and the interview ended in a report the business could export as a PDF or a PowerPoint deck.

RiskScanAI screenshot

WHAT BROKE

Claude took longer than Netlify's 26-second request limit.

The risk summary is a five-section JSON document (structured data the page reads), and the commit that diagnosed the crash put Claude at 25 to 35 seconds to write it. The project ran on Netlify, a hosting service whose server functions stop a request at 26 seconds on its paid Pro plan, so a slow summary came back as Netlify's HTML 504 timeout page, and the summary page crashed trying to read that page as JSON. Most fixes from March 13 on tried to make the call fit inside the request, and the one that held, on March 19, moved it into a background function, which Netlify lets run for up to 15 minutes after answering.

CONTROL

Login tokens got a signature check in one commit on March 12.

Logins went through Clerk, a hosted login service, and signed-in requests carried Clerk's token, a signed JWT (a small JSON record of who the user is plus a signature proving Clerk issued it). Until the hardening commit late on March 12, the functions read the user's ID with a plain base64 decode, which turns the token's text back into JSON and never looks at the signature, so they could not tell Clerk's tokens from forged ones. That commit moved all seven functions of the time onto a shared lib/auth.js that calls Clerk's verifyToken(), which checks the signature first.

LESSONS

Two patterns from this build.

  • Move an output check along with the code it guards. On March 18 a check for all five required summary sections went into the in-request Claude call, and the next day that call was deleted with the check inside it. The background function now rejects only a reply cut off at its length cap or not valid JSON, so a reply that parses but lacks sections is stored as is.
  • A successor product can continue in the same repository, which keeps the whole history and the agent tooling next to the code. RiskScanAI's last commit, on March 20, is followed the same day by the commit that rebranded it as CyberReadyAI, its successor, so every RiskScanAI commit is in CyberReadyAI's history, and its agent skills and reviewer agents (instruction files the coding agents load) carried over with the code.

PROJECT DESIGN

How it works.

First build — React SPA, Netlify Functions, Supabase, Claude
Frontend
React 18 + ViteZustand storesReact Router SPA
API / edge
15 Netlify Functions + edge auth guardClerk JWT verification26s timeout pins + background functions
Data
Supabase Postgres + RLS (5 tables)Code-level ownership re-checks on service-role queriesAudit log
External
Claude (Sonnet 4, cached prompts)Clerk authStripe (idempotent webhooks)

Key modules

Pipeline

Snapshot engine

A 21-question, 5-section intake feeding deterministic domain scoring.

Data

Derived-signals processor

Computes risk tier, compliance tracks, and active signals server-side — stable for prompt caching.

AI

Summary pipeline

Returns a deterministic fallback summary right away and generates the Claude risk summary in a background function the frontend polls.

AI

Interview chat

A domain-by-domain CIS IG1 gap interview that emits structured state via delimiter blocks.

Pipeline

Report generation

Enriches findings into a NIST CSF view with PDF and PowerPoint exports.

Auth

Access & payments

Three-tier guest/free/paid gating over Clerk + Stripe with idempotent webhooks.

SECURITY & OPERATIONS

Security and operations.

Tenant isolation
Authenticated request
Token signature verified — one hardening day replaced a decorative check with real verification
Row-level security on all five tables, keyed on the JWT subject claim (the user's stable ID from the signed token)
Service-role functions re-enforce ownership in code — a deliberate second layer
  • The early prototype skipped token signature verification. One hardening commit added full verification, security headers, webhook idempotency, and timing-safe admin comparisons across 13 files.
  • Row-level security on all five tables keys on the JWT subject claim, with service-role functions re-enforcing ownership in code as a deliberate second layer.
  • The funnel starts unauthenticated by design: guest, free, and paid tiers were a conversion decision, with the gates at the paid features.

BUILDER NOTES

Builder notes.

  • Never await an LLM inside a serverless request: return a fallback summary at once, run the model in a background function, poll for the result — the fix after a six-day timeout battle.
  • A model ID and its feature set are one unit: pin them together and document the pairing, or every upgrade silently breaks the prompt machinery built around the old model.
  • An autonomous overnight agent run produced ~20 commits from a written playbook with stop conditions — fixed test infrastructure, an error boundary, SEO, and five page redesigns.
  • Dead code was deleted with a documented restore path: ~8,700 lines removed, every deletion logged with its one-line git restore command.

WRITING

Field notes from this work.

Full build narrative

My first product: a small business answers a plain-language questionnaire and gets an AI-written security assessment, an AI interview that digs deeper, and an exportable report, across guest, free and paid tiers. Started off GitHub in late January; 160 commits over 15 active days once the repository existed.

First product, first agent workflow, and where the foundational patterns got paid for: the async background-work architecture from a six-day timeout war, a one-day security retrofit that replaced decorative token checks with real verification, and a failure taxonomy for AI output that maps what users see to which contract piece broke.

Trust belongs in the schema, not the application.
The operating principle behind every project here. A rule the database enforces can't be forgotten in a hurry. Constraints, denied-by-default access, append-only logs — the controls that hold are the ones the system won't run without.