Agent skill · civitai
moderator-page-migration
Port a moderator page from the main Next.js app (src/pages/moderator/**) into apps/moderator. Use when asked to migrate, move or cut over a /moderator/* page to the spoke, or to port its tRPC procedures and Prisma services to SvelteKit loads/actions and Kysely.
What it needs
About 9k tokens when loaded.
What this skill does
Main app → moderator spoke migration Ports a page under src/pages/moderator/ into apps/moderator, then switches the main-app page off. The React component is not the work — the page's whole backend slice is. tRPC and Prisma do not exist in the spoke. Sibling skill: retool-migration, for the other inbound path. The two converge — same app, same conventions, same reviews — and differ only in what the source is and how you read it. Read that skill's §4–§6 if you have not built a page here before; they are not repeated. Done means all three A migration is one unit of work and it is not finished until every part of it is. Partial delivery is the failure mode this whole skill is arranged around — a page that is 90% ported and still live in both apps is worse than one that was never started, because a moderator now has two tools that disagree. 1. Full functional parity. Every query, every mutation, every side effect, and every action reachable from the page's child components. Not "the useful half" — §1 and §2 are how you enumerate it, §6.1 is the gate. 2. The legacy page removed, and everything it orphans with it. Delete the page file, redirect its URL, then trim the procedures, controllers, schemas and service functions nothing else uses. Leaving the old page live means moderators keep using it. Leaving dead procedures behind means the next reader cannot tell what is still load-bearing. §5. 3. Reviewed — svelte-correctness-review, svelte-idiom-review and svelte-abstraction-review over the segment, findings fixed. §6. Do not tick the tracker until all three have happened. 0. Read the tracker first docs/moderator-app/page-migration-checklist.md is the tracker. Every page is a checkbox with its procedures, services, schemas and infra already enumerated, plus what earlier ports deferred. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills civitai/moderator-page-migration