skills/onboarding-wizard/SKILL.md
Add a first-run product tour plus per-section prompts to an app, backed by persisted per-user state (not localStorage) so it survives devices and can be re-armed from an admin panel. Two surfaces — a welcome modal that walks the whole flow on first login, and a lightweight per-module prompt (Show me / Skip / Later) the first time a user enters each section. Covers the state shape, the server actions, the React component, and an admin reset. Use when building onboarding, a guided tour, coach marks, an empty-state walkthrough, or "explain the app to a first-time user". Triggers on "onboarding wizard", "product tour", "first-run experience", "guided tour", "walk the user through", "coach marks".
npx skillsauth add RonanCodes/ronan-skills onboarding-wizardInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Two surfaces, one persisted state:
The point: a first-time user understands the app in ~30s, and someone who skips the big tour still gets a nudge per section. A demo operator can re-arm the whole thing from an admin panel.
jsonb column on the user/profile row is enough.Later ≠ Skip. Skip marks the section seen (never ask again). Later dismisses for this session only (ask again next visit). Persist Skip; keep Later in client state.One column, merged-not-overwritten:
export type SectionKey = "bids" | "inbox" | "agenda" | "grow"; // your modules
export type OnboardingState = {
main?: "done" | "skipped"; // undefined = never offered → tour fires
sections?: Partial<Record<SectionKey, boolean>>;
};
alter table profiles add column if not exists onboarding jsonb not null default '{}'::jsonb;
Two predicates drive the UI:
export const tourPending = (s: OnboardingState) =>
s.main !== "done" && s.main !== "skipped";
export const sectionUnseen = (s: OnboardingState, k: SectionKey) =>
!s.sections?.[k];
Keep the copy in a SECTIONS map (title, accent colour matching the module's nav colour, a one-line blurb, and 2–4 numbered flow steps). The tour modal and the per-section card both render from the same map, so the tour and the prompt never drift.
Read the current state, merge, write back. Use the privileged client to update the user's own row by id (don't rely on a self-update RLS policy existing), then revalidatePath("/", "layout") so the layout that reads the state re-renders.
"use server";
async function patch(next: (cur: OnboardingState) => OnboardingState) {
const userId = /* auth */;
const cur = /* select onboarding where id = userId */ ?? {};
/* update onboarding = next(cur) where id = userId */;
revalidatePath("/", "layout");
}
export const completeTour = () =>
patch((c) => ({ ...c, main: "done",
sections: { bids: true, inbox: true, agenda: true, grow: true } }));
export const skipTour = () => patch((c) => ({ ...c, main: "skipped" }));
export const markSectionSeen = (k: SectionKey) =>
patch((c) => ({ ...c, sections: { ...(c.sections ?? {}), [k]: true } }));
Render <Onboarding state={...} /> in the persistent layout, not per page — it stays mounted across navigations, so its Later/expanded client state survives module switches. It reads usePathname() to know which section you're in.
tourPending(state) and not locally closed.seen/deferred sets.startTransition. The revalidation catches up.Give a demo operator a one-click Reset onboarding that clears the flag for every demo user (update profiles set onboarding = '{}'). Pair it with data-reseed presets if the app has a demo console. After reset, the tour fires again on next login.
On TanStack Start/Router, swap the mechanics but keep the rules: load onboarding in the root route loader, persist via a server function + router.invalidate(), and gate the surfaces on the same two predicates. The state shape, the Skip-vs-Later distinction, and DB-not-localStorage are identical.
onboarding jsonb column on the user/profile row, default {}.SECTIONS content map (shared by tour + prompts).completeTour, skipTour, markSectionSeen, each merge-not-overwrite + revalidate.<Onboarding> in the persistent layout, pathname-aware.Skip persists, Later is session-only.Reference implementation: the Makely real-estate demo (housapp-bieden) — lib/onboarding.ts, components/onboarding.tsx, app/(app)/onboarding-actions.ts, and the admin app/(app)/demo console.
testing
--- name: linear-pipeline description: The Fable orchestrator for a single dispatched Linear ticket. Holds almost no context itself; it receives `--issue <ID> --detached`, decides the stage sequence, and fans out a sub-agent per stage, passing forward only each stage's artifact (never re-derived, never inlined into its own context). Step zero, before any planning or stage routing, is a boundary triage against `canon/security-boundary.md` (#199): a match tags Ronan Connolly and stops the run, no
development
--- name: in-your-face description: Capture a chat-only answer into a durable artifact (markdown + HTML, PDF when cheap) and launch it automatically so the user cannot miss it. Use when user says "in your face", "don't let me lose this", "save that answer", "make that durable", or right after answering a substantive side question (a recipe, comparison, how-to, or generated prompt) that would otherwise die with the context. category: workflow argument-hint: [--no-open] [--vault <short>] [hint of
tools
One-shot headless OpenAI Codex CLI calls for background/admin AI tasks — summaries, classification, extraction, admin glue. The default engine for anything that runs AI constantly in the background (daemon-driven, per-event), because it bills the flat ChatGPT subscription instead of Claude usage or per-token API spend, and it keeps working while Claude is rate-limited. NEVER for coding — coding stays Claude. Use when a skill or daemon needs a cheap always-on AI call, when the user says "use codex", "ask codex", "codex as backup", or when building a background summarizer/classifier into a listener or loop. Reads auth from ~/.codex/auth.json (ChatGPT account, no API key).
research
Turn a warranty rejection, repair quote, or RMA email into a cited decision brief — legal read (NL/EU consumer law), is the part user-serviceable, live part and new-unit prices, repair-vs-DIY-vs-new economics, before-you-send-it checklist, deadlines. Use when the user pastes or screenshots a repair quote, warranty rejection, "not covered" email, onderzoekskosten fee, or asks "should I repair or replace this".