Ns init project

From Melvynx/saveit.now · View interactive version

Ns init project is an AI agent skill from the GitHub repository Melvynx/saveit.now. Initialize or rebrand a NowStack Mobile product. Use for repo bootstrap, product brief intake, site-config, AGENTS.md, landing, mobile copy, Convex env, and final validation.

How to use this skill

Skill file

Init Project - NowStack Mobile

<objective>

Initialize this boilerplate as a real product while respecting the split architecture: root Convex backend, web-app/ TanStack Start site/app/admin, and mobile-app/ Expo app.

</objective>

<strict_order>

  1. Verify repo/remotes/worktree and Convex setup.
  2. Collect one product brief or PRD. Do not run a long questionnaire if the user already gave the idea.
  3. Update product context in AGENTS.md and shared config in site-config.ts, then mirror title, slug, bundleId, product ids, and auth.trustedOrigins into convex/siteConfig.ts.
  4. Update visible product copy across web-app/ and mobile-app/, including onboarding images in mobile-app/app/onboarding/content.ts and the product id in mobile-app/App.storekit.

4b. Apply branding colors in mobile-app/lib/theme.ts (the single source of truth — every mobile color resolves from there). Ask whether the app wants dual theme (light + dark, ships with a switcher) or a single theme (e.g. dark-only). For single-theme apps, follow the Mono Theme procedure in references/theming.md so the switcher is removed and only one scheme is maintained — never hand-edit scattered hex.

  1. Configure backend runtime env in Convex only; never commit secrets. At minimum set RESEND_API_KEY, EMAIL_FROM, BETTER_AUTH_SECRET, SITE_URL (sign-in is broken without them).
  2. If the user plans store builds, run cd mobile-app && eas init and copy the project id into site-config.ts > easProjectId; set prod Convex URLs in mobile-app/eas.json.
  3. Validate changed surfaces with npm run check-setup plus the build checks, and summarize remaining manual steps from docs/production-checklist.md.

</strict_order>

<rules>

</rules>

<config_targets>

Read these before editing config or branding:

sed -n '1,240p' site-config.ts
sed -n '1,220p' AGENTS.md
rg -n "NowStack|nowts|boilerplate|TODO|SaaS" web-app mobile-app convex docs site-config.ts package.json

Update only values grounded in the product brief. Do not invent legal company, domain, pricing, store ids, or OAuth credentials.

</config_targets>

<env_groups>

Ask by service group, not one variable at a time:

Set server-side runtime values in Convex:

npx convex env set KEY "value"
npx convex env list

</env_groups>

<validation>

Always run the setup validator first — it catches placeholder ids, missing Convex env vars, and out-of-sync convex/siteConfig.ts:

npm run check-setup

Then run only the checks that match touched surfaces:

npx convex dev --once
cd web-app && npm run typecheck
cd web-app && npm run build
cd mobile-app && npx tsc --noEmit
cd mobile-app && npm run lint

</validation>

<stop_gates>

Stop and ask when:

</stop_gates>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.