跳到正文
cccskills
免费在 GitHub 公开

ns-doctor

Install and verify every developer tool NowStack Mobile needs on this machine (Node, eas, vercel, convex, asc, gpc, fastlane, bun, gcloud, + Xcode/Android Studio). Cross-platform — Homebrew/npm on macOS, apt/curl on Linux, winget/scoop on Windows. Use for "install the CLIs", "set up my machine", "ns doctor", missing-tool errors, or right before /ns accounts. Proposes to install everything missing in one pass.

中文简介正在准备中。当前显示原文说明。

集成工具Vercel
查看安装方法

包含的文件(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

ns-doctor — Machine setup

<objective> Get a fresh machine from "just cloned the repo" to "every tool the lifecycle needs is installed and on PATH". This is the **install** counterpart to `check-setup --accounts` (which only **detects**). It does NOT log you into anything — that's `/ns accounts`. Run `doctor` first, then `accounts`.

Propose to install everything. Detect what's missing, then present ONE plan that installs all of it — CLIs and the GUI build tools (Xcode, Android Studio) — and install the whole accepted batch in a single pass. The user accepts the plan once; don't drip-feed per tool. (GUI apps are big — call out the download size in the plan so the consent is informed — but include them in the "everything" proposal rather than treating them as an afterthought.) </objective>

<os_aware> Detect the OS first and pick the matching install column — never assume macOS:

uname -s   # Darwin = macOS, Linux = Linux; Windows = use PowerShell / winget
OSPackage managers usedBootstrap if missing
macOSHomebrew + npm/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Linuxsystem pkg mgr (apt/dnf/pacman) + npm + official installersuse the distro's manager or each tool's curl installer
Windowswinget (or scoop) + npmwinget ships with Windows 10+; scoop: iwr -useb get.scoop.sh | iex

npm-based tools install identically on all three. Only the native tools (bun, asc, fastlane, gcloud, Android Studio) differ per OS — use the row below. </os_aware>

<workflow> 1. **Detect.** Probe every tool with its check command + run `node scripts/check-setup.mjs --accounts`. Build the missing list. 2. **Propose everything.** Show one plan: every missing tool, its exact install command for *this* OS, and the GUI download sizes. Get **one** confirmation for the whole batch. 3. **Install.** Run all accepted installs in one pass — idempotent, skip anything already on PATH. Never reinstall/upgrade a present tool unless asked. 4. **Re-verify.** Re-run the probes + `check-setup --accounts`; report installed-now / already-present / skipped / still-missing. Recommend `/ns accounts` next. </workflow> <prerequisites> - **Node + npm** — runtime for the JS CLIs. Check `node -v`. Install via [nvm](https://github.com/nvm-sh/nvm) (mac/Linux), [fnm](https://github.com/Schniz/fnm), or `winget install OpenJS.NodeJS` (Windows). Don't silently switch a user's Node version. - The OS package manager from the table above (Homebrew / winget / apt…). </prerequisites>

<tool_manifest> Check is command -v <tool> unless noted. Install per OS:

ToolRolemacOSLinuxWindows
convexbackend (no global install)npx convex …samesame
easExpo / mobile buildsnpm i -g eas-clisamesame
vercelweb deploynpm i -g vercelsamesame
gpcGoogle Play Console (Android)npm i -g @gpc-cli/clisamesame
ascApp Store Connect (iOS)brew install ascdownload from asccli.shiOS release is macOS-only — skip
fastlaneAndroid publish fallbackbrew install fastlanegem install fastlanegem install fastlane
bunrepo toolingbrew install buncurl -fsSL https://bun.sh/install | bashpowershell -c "irm bun.sh/install.ps1|iex" or scoop install bun
gcloudcreate the Play service account (optional)brew install --cask google-cloud-sdkapt/dnf repowinget install Google.CloudSDK

Skip per-platform tools the user won't use: no iOS → skip asc; no Android → skip gpc/fastlane/gcloud. </tool_manifest>

<gui_apps> Included in the "install everything" proposal, with size called out:

AppRoleCheckmacOSWindowsLinux
XcodeiOS build + Simulator (~7 GB)xcodebuild -versionApp Store, or brew install xcodes && xcodes install --latestn/a (no iOS on Windows)n/a
Android StudioAndroid emulator + SDK (~1 GB + SDK)command -v adbbrew install --cask android-studiowinget install Google.AndroidStudiosudo snap install android-studio --classic or download

After Android Studio: create an AVD and ensure ANDROID_HOME is exported. Xcode needs an Apple ID + a one-time license accept (sudo xcodebuild -license accept). </gui_apps>

<rules> - One confirmation for the whole batch; propose everything missing (CLIs + GUI) together, then install without re-prompting per tool. - Idempotent: never touch a tool already on PATH. - OS-aware: detect with `uname`/PowerShell and use the matching install command — never run `brew` on Linux/Windows. - Don't manage the user's Node version or shell config beyond what an install strictly requires. - Installs tools only — it never logs in or writes credentials. Authentication is `/ns accounts`. - Report skipped/missing honestly; re-check `command -v` before claiming a tool is ready. </rules> <verification> ```bash node scripts/check-setup.mjs --accounts # CLI presence + auth view for c in node bun eas vercel asc gpc fastlane gcloud; do command -v $c >/dev/null && echo "ok $c" || echo "MISSING $c"; done xcodebuild -version >/dev/null 2>&1 && echo "ok xcode" || echo "MISSING xcode" command -v adb >/dev/null && echo "ok android" || echo "MISSING android-studio" ``` End by recommending `/ns accounts` to log in and wire credentials. </verification>

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

convex

免费

Routes general Convex requests to the right project skill. Use when the user asks which Convex skill to use or gives an underspecified Convex app task.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

Use when optimizing Convex database read bandwidth, documents-read cost, query indexes, full-table scans, function-level usage dashboard findings, or code that uses .filter(), unbounded .collect(), N+1 reads, or expensive reactive Convex queries.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

Build reusable Convex components with isolated tables and app-facing wrappers. Use for defineComponent, app.use, ComponentApi, or shared backend modules.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

Plan safe Convex schema and data migrations. Use for widen-migrate-narrow rollouts, backfills, breaking field changes, table splits, or failed schema deploys.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

Audit Convex performance for hot reads, write contention, subscriptions, function limits, OCC conflicts, latency, read amplification, and expensive reactive queries.

中文简介正在准备中。当前显示原文说明。

Melvynx/saveit.now322026年10月19日 更新

查看 Melvynx 的全部技能

报告此技能的问题