Ns setup accounts

From Melvynx/saveit.now · View interactive version

Ns setup accounts is an AI agent skill from the GitHub repository Melvynx/saveit.now. Connect every external account NowStack Mobile needs (Convex, Expo/EAS, Apple Developer, Vercel, Stripe, Google Play) by acquiring PROGRAMMATIC API ACCESS for each, then doing everything automatically through that access. Use for "setup accounts", "connect my accounts", first-run onboarding, or when

How to use this skill

Skill file

Setup Accounts - NowStack Mobile

<objective>

Get programmatic control of every external service this product depends on, so the rest of the lifecycle (/ns setup, web deploy, ios distribute, android distribute) runs without the user ever touching a dashboard again.

The whole point of this skill is API access, not hand-holding. For each service the goal is one thing: obtain a credential the CLI/API can use (a token, a deploy key, a service-account JSON, an ASC .p8), persist it in the correct place, and verify it works. From that moment on, every action on that service is automated through the credential — npx convex env set, vercel deploy, eas submit, asc ... — never by clicking in the web UI.

</objective>

<core_principle>

Minimize what the user does to the irreducible manual steps only — the things a provider physically forces a human to do:

Everything else, the skill does itself via the acquired API access: creating tokens that CAN be created from the CLI, writing env vars, editing config, running deploys, validating. When you need the user, ask for exactly one thing, tell them the exact URL, and wait. Never say "go configure X somewhere" — either do it yourself with the credential, or ask for the single value and then write it.

</core_principle>

<rules>

</rules>

<start>

Probe what's already connected, then work only the gaps:

node scripts/check-setup.mjs --accounts

Parse the service|status|hint lines: ready = API access already obtained, skip; todo = acquire it now; skip-ok = optional, offer to skip. Ask the user up front which surfaces they ship (iOS? Android? web? payments?) so whole branches can be skipped. Then work the accounts in the order below.

</start>

<order>

Order by lead time, not importance — start the slow approvals first and keep going while they pend:

  1. Apple Developer — first if shipping iOS; identity review can take 24–48h.
  2. Google Play — second if shipping Android; identity review also takes days (the account may be "pending verification" — set up the API access now anyway so publishing is one command once approved).
  3. Convex — required; the app won't run without it.
  4. Expo / EAS — any mobile build.
  5. Vercel — web app + admin.
  6. Stripe — only if taking payments on web/Android (iOS uses Apple IAP).
  7. Social sign-in (Google / Apple OAuth) — instant, do last; only for providers whose SiteConfig.features.enable<Provider>SignIn flag is on. Email-OTP needs none of this.

</order>

Per-account playbooks

Each playbook follows the same spine: acquire API access → store → verify → from now on, automated.

<account name="Convex" cost="free" gates="everything (required)">

```bash

npx convex env set BETTER_AUTH_SECRET "$(openssl rand -base64 32)"

npx convex env set RESEND_API_KEY re_... # ask the user for this one value

npx convex env set SITE_URL http://localhost:3000

```

Copy the .convex.cloud / .convex.site URLs into the app env files yourself.

</account>

<account name="Apple Developer" cost="$99/yr, 24–48h" gates="iOS">

</account>

<account name="Google Play" cost="$25 one-time, days to verify" gates="Android">

1. Create the service account + JSON key:

```bash

gcloud iam service-accounts create play-publisher --display-name "Play Publisher"

gcloud iam service-accounts keys create mobile-app/google-play-service-account.json \

--iam-account play-publisher@<PROJECT_ID>.iam.gserviceaccount.com

```

2. Manual grant (web-only, unavoidable): in Play Console → Setup → API access (https://play.google.com/console/api-access), link the Cloud project and invite the service-account email, granting release/admin permissions. Only the user can do this, and only after the account is verified.

</account>

<account name="Expo / EAS" cost="free" gates="mobile builds">

</account>

<account name="Vercel" cost="free" gates="web app + admin">

```bash

vercel env add CONVEX_DEPLOY_KEY production # the prod deploy key from the Convex step

vercel env add VITE_CONVEX_SITE_URL production # prod .convex.site

```

Deploy from the repo root with vercel --prod --archive=tgz, or push to main (/ns web deploy).

</account>

<account name="Stripe" cost="free, % per charge" gates="web/Android payments">

</account>

<account name="Social sign-in (Google / Apple OAuth)" cost="free" gates="Google/Apple login on web + mobile">

```bash

npx convex env set GOOGLE_CLIENT_ID <id>.apps.googleusercontent.com

npx convex env set GOOGLE_CLIENT_SECRET <secret>

```

</account>

<finish>

When every targeted account is ready (skipped ones noted), run the full validator once:

npm run check-setup

Summarize per service: API access obtained / skipped (and what skipping blocks), where each credential lives, and the recommended next command — usually /ns setup to turn the boilerplate into the real product.

</finish>

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.