--- name: sc-onboarding description: "Onboard SI-Coder provider access safely. Fresh local setup resolves a user, creates named provider connections, and stores direct credentials only in 0600 connection files; OAuth stays external. Legacy profile/~/.bashrc tooling is migration-only. Agents route through /sc-provider so plaintext secrets never enter chat/tool JSON." use_when: "Use for first-run or provider-access onboarding when SI-Coder must create/select a user and connect one or more active providers without exposing plaintext secrets." do_not_use_when: "Do not use when the task is outside this skill scope or a more specific SI-Coder skill owns the requested outcome." required_tools: [] security_constraints: "Never request, print, or persist plaintext credentials in chat/tool payloads; use SI-Coder safe credential handoffs." references: [] compatibility: "Standalone SI-Coder; host invocation syntax and available tools may vary." --- # /sc-onboarding — Guided credential setup ## Language Keep durable instructions in English. **Reply in the user's language** unless they request another language. > **Agent secret boundary:** never ask the user to paste an API key/token/password into chat, an MCP/function argument, or argv. Resolve `user → provider → connection` first. OAuth stays in the external connected-account flow; a direct new/rotated secret is entered with `sc user credential-set --connection ` in the hidden terminal. Consume with `sc run [--connection provider=alias] -- `. Use this skill when the user is setting up `si-coder-agent` for the first time, or after they install a new `/sc-*` domain skill that needs new credentials. ## Non-technical default UX — mandatory SI-Coder is primarily for people who want a working web app, not an infrastructure lesson. **Lead with the outcome, hide the plumbing.** A valid user request can be as simple as: > "Create a salon booking app and put it on my domain." From that sentence, the agent should normally choose the stack, database/data service, hosting route, repository strategy, deployment method, domain records, and verification approach itself. Rules: 1. **Speak in goals:** "publish the app", "connect the account", "connect the domain", "store the app data". Do not lead with terms such as environment variable, DNS record, deploy key, compose, container, build pipeline, or provider routing. 2. **One user action at a time.** Never dump a setup checklist when only one permission/account connection blocks progress. 3. **Do not ask users to choose technology** unless they explicitly care. Choose sensible defaults and keep the technology name in optional technical details. 4. **Do not ask a question that tools/repo state can answer.** Inspect first, then ask only the unresolved product/domain/account decision. 5. **Credentials are framed as permissions, not secrets.** Say "I need permission to use the email service" first. Then show the official create/connect action, where access is stored, and what SI-Coder will do next. Put env-key names and terminal commands under optional technical details unless the user must run the command. 6. **Never ask the user to copy values between services** when a connector/server-side flow can do it safely. 7. **Progress is product-oriented:** `Build the app → Prepare data → Publish → Connect domain → Verify`, not internal provider phases. 8. Every completion message must state what is now working and then offer exactly one `[rekomendasi]` next step. 9. Technical users can ask for "technical details", `--technical`, JSON, or provider-specific skills. Do not force those details on everyone else. When a technical failure occurs, translate it first: - preferred: "The domain is not connected yet. I am fixing the connection between the domain and the website." - optional detail: "The CNAME does not match the hosting target yet." Never hide a failure, but explain its user impact before its implementation detail. ## The `sc` console (preferred entry point) ``` sc providers what is configured, per provider sc providers show per-var detail + where to get each value sc providers set re-enter (rotate) every var for one provider sc providers rm remove its vars from the ~/.bashrc managed block sc setup [--target t] interactive wizard for whatever is missing sc doctor [--target t] LIVE check — calls each real API sc preflight --target t the gate /sc-all runs ``` Everything that picks *something* is arrow-key driven — no retyping identifiers that are already on screen, and no silent typos: - **`sc`** with no arguments opens the console menu (on a pipe it still prints usage, so scripts are unaffected). - **`sc setup`** shows a checkbox list of all providers with **no implicit selection**. `↑/↓` move · `Enter` chooses the highlighted provider when nothing is checked / confirms when boxes are checked · `Space` multi-select · `Ctrl-A` all/none · `←/→` tabs · type to search · `Esc` clear/cancel. This prevents an unrelated Needs-fix provider from being configured just because it was preselected behind the cursor. - **`sc providers show|set|rm`** with no id opens a single-select list. Values themselves are still typed — a token has to be pasted — but secrets are read hidden and never reach argv. In the Finder flow, `Esc` during a hidden or visible credential/metadata input cancels that input, saves nothing, and returns to the previous SC screen instead of quitting. ### More than one identity and more than one account SI-Coder has two levels of identity: ```text folder/project → user → provider → named connection ``` A user may have multiple labeled connections for the same provider. Example: ```text rahmanfakhr └─ convex-cloud ├─ Convex Admin (Bearer token · account) ├─ Client A Production (API key · deployment) └─ Client B Preview (API key · deployment) ``` Commands: ```bash sc user add sc user map sc user which sc user connections [provider] sc user connection-add "