skip to content

agent skill · next.js app router

you built the pages.
let's do the missing ones.

A free skill for your coding agent that finds the 404, loading and error pages your Next.js app is missing and designs on-brand ones with you.

Install in Claude Code

/plugin marketplace add Frklin/fallback404-skill/plugin install fallback404@fallback404

Then, in your Next.js app

Let's build the /fallback404

Using another agent? See the other installs

  • free
  • nothing written without your pick
  • never commits
> fallback404 · acme-storeexample 1/3

Let's build the /fallback404

Next.js 16.4.0 · App Router in app/ · Cache Components on

IdRouteStateNowProposal
F1every unknown URLnot-foundmissingwrite app/not-found.tsx
F4/blog/[slug]404 statussoft: answers 200existence check in proxy
F6/blog/[slug]loadingplain-text fallbackuse <Loader inline />
F7/products/[id]loadingempty (null) fallbackuse <Loader inline />

picker open in your browser. choose what to create, keep or fix.

on-brand for every site.

  • fallback404-beta.vercel.app/this-page-fell-throughHTTP 404
    fallback404, this site, live in a framelive
  • findaday.app/3HTTP 404
    Find a Day 404 page
    Find a Day, a group calendar applive
  • strikeandball.com/yesterdays-numberHTTP 404
    Strike & Ball 404 page
    Strike & Ball, a daily number gamelive
  • step-by-step-kappa.vercel.app/woHTTP 404
    Step by Step 404 page
    Step by Step, instructions drawn as stepslive
  • app.ledgerly.io/workspaces/acme-2HTTP 404

    No workspace at this address.

    It may have been archived or renamed.

    Open your workspaces
    Ledgerly, an invoicing dashboardmock
  • maraliu.photo/series/dusk-iiHTTP 404

    This frame is empty.

    The series index has everything that's published.

    See the series
    Mara Liu, a photographer's portfoliomock
  • brewandco.com/roasts/ethiopia-2023HTTP 404

    This roast sold out, or never existed.

    New lots land every Thursday.

    Back to the shelf
    Brew & Co, a coffee roastermock
  • northbank.app/accounts/88213HTTP 404

    Nothing on this account page.

    Check the number, or start from your accounts.

    Your accounts
    Northbank, a banking appmock
  • docs.hooklet.dev/api/v1/hooksHTTP 404

    That page moved or never shipped.

    The API reference lives under /api.

    Browse the reference
    Hooklet, API docs for webhooksmock

This site, three live apps, then five mock sites drawn for this page. On yours, the page takes your tokens, fonts and voice.

scan.
pick.
ship.

Ten minutes inside your coding agent. The skill does the mechanical work. You decide.

  1. scan

    It reads your routes and finds every missing not-found, loading and error state, plus the 404s that answer 200. On the picker page you choose what to create, keep or fix.

  2. pick

    One step per flow: two options built from your own components, next to your current page. After the last pick it lists every change and waits for your yes. Nothing is written before that.

  3. ship

    Files land on a new branch: one folder you can review, plus thin route wrappers. Every state is opened in a real browser, light and dark, with its status checked. Never committed.

rules it never breaks.

  • 404 means 404

    Missing pages answer HTTP 404. Never 200, never a redirect home.

  • your tokens, not hex

    Every color comes from a token and works in light and dark.

  • text is text

    Illustrations are SVG, aria-hidden, with ids unique per instance. The message is real HTML.

  • motion can stop

    Every animation stops under prefers-reduced-motion.

  • loaders are honest

    role="status" with a label, inlined, under 15 KB gzipped, no layout shift.

  • a branch, not a commit

    Files go to a new git branch. You review the diff.

  • you pick first

    Nothing is written to your repo without a pick.

  • code stays home

    Your source never leaves your machine. Only the previews reach the picker.

what lands on the branch

app/
  global-error.tsx                ← required here; renders its own <html> and <body>
  not-found.tsx                   ← wrapper, imports the router
  error.tsx                       ← wrapper
  loading.tsx                     ← wrapper
  products/[id]/not-found.tsx     ← wrapper, only where a section needs its own
  fallback404-preview/page.tsx    ← every flow on one page, dev only

components/fallback404/
  flows/root-not-found/           ← one folder per flow: NotFound.tsx, copy.ts, flow.css
  flows/products-id-not-found/    ← the section's own 404, from its components
  flows/products-id-loading/      ← Loader.tsx and its copy.ts
  NotFoundRouter.tsx              ← shows each section's own 404 at the root, before first paint
  fallback404.css                 ← role tokens and motion, instead of editing globals.css
  manifest.json                   ← which route uses which flow

works in your agent.

Any agent that reads skills and runs shell commands. Pick yours and paste its lines.

Then, in your Next.js app:

Let's build the /fallback404

Or put it in your own words, like “add my missing 404 pages”.

Needs Node 20 or later, a Next.js 15 or 16 App Router app in a git repo, and a one-time 105 MB headless browser download for the visual check.

  • Claude Code

    As a plugin. /plugin marketplace update keeps it current.

    in claude code

    /plugin marketplace add Frklin/fallback404-skill/plugin install fallback404@fallback404

  • Codex

    As a plugin, from the same marketplace.

    in your terminal

    codex plugin marketplace add Frklin/fallback404-skillcodex plugin add fallback404@fallback404

  • Cursor, OpenCode, Gemini CLI, GitHub Copilot and others

    Any agent that reads skills. It asks which agents you use, then installs for each.

    in your app's folder

    npx skills add Frklin/fallback404-skill

  • No installer

    Copy the skill folders by hand. For Claude Code, use ~/.claude/skills/ instead.

    in your terminal

    git clone https://github.com/Frklin/fallback404-skillrsync -a fallback404-skill/skills/ ~/.agents/skills/

no more blank pages.

You built the pages. The missing ones take ten minutes.

install the skill

no repo, just a URL?

The web app comes next: paste a URL, get the same pages for WordPress, Shopify, Webflow or anything live. Leave your email and we write once, when it opens.

We use it for that one email only. See the privacy policy.