一键导入
ax-onboarding
Use when modifying the first-run setup, configuration wizard, bootstrap ritual, or profile defaults in src/onboarding/ and src/cli/bootstrap.ts
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when modifying the first-run setup, configuration wizard, bootstrap ritual, or profile defaults in src/onboarding/ and src/cli/bootstrap.ts
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ax-onboarding |
| description | Use when modifying the first-run setup, configuration wizard, bootstrap ritual, or profile defaults in src/onboarding/ and src/cli/bootstrap.ts |
The onboarding system handles first-run configuration via a minimal 3-question wizard (profile → LLM provider → API key), generates a minimal ax.yaml, and stores credentials directly in the SQLite database. It also supports reconfiguration.
| File | Responsibility | Key Exports |
|---|---|---|
src/onboarding/wizard.ts | Config generation, minimal ax.yaml + database credential storage | runOnboarding(), loadExistingConfig(), openCredentialStore() |
src/onboarding/prompts.ts | Profile names, LLM providers, default models | PROFILE_NAMES, PROFILE_DISPLAY_NAMES, LLM_PROVIDERS, DEFAULT_MODELS |
src/onboarding/configure.ts | Interactive @inquirer/prompts 3-question wizard | runConfigure() |
src/cli/bootstrap.ts | Agent identity reset ritual | resetAgent() |
runOnboarding(opts) generates config files from OnboardingAnswers:
interface OnboardingAnswers {
profile: 'paranoid' | 'balanced' | 'yolo';
llmProvider?: string; // anthropic, openai, openrouter, groq, deepinfra
model?: string; // Model name (provider-specific default)
apiKey?: string; // LLM API key
}
Output files:
ax.yaml -- Minimal config (profile + models.default only, all other fields use Zod schema defaults)~/.ax/data/ax.db) via openCredentialStore()runConfigure() uses @inquirer/prompts:
Adding a new security profile:
PROFILE_NAMES in prompts.tsPROFILE_DISPLAY_NAMES in prompts.tsconfigure.tsconfig.ts Zod schematests/onboarding/wizard.test.tsAdding a new LLM provider to onboarding:
LLM_PROVIDERS array in prompts.tsDEFAULT_MODELSsrc/providers/llm/<name>.tssrc/host/provider-map.tsopenCredentialStore().resetAgent keeps users/ directory.models.default entirely.Use when modifying logging, error handling, or diagnostic messages — logger setup, transports, error diagnosis patterns in src/logger.ts and src/errors.ts
Use when modifying the trusted host process — server orchestration, message routing, IPC handler, request lifecycle, event streaming, file handling, plugin loading, or agent delegation in src/host/
Use when modifying the sandboxed agent process — runner, IPC client, local/IPC tools, tool catalog, prompt building, or identity loading in src/agent/
Use when modifying agent sandbox isolation -- Docker, Apple Container (macOS), or k8s providers in src/providers/sandbox/
Use when modifying IPC protocol between host and agent — schemas, actions, length-prefix framing, or Zod validation in ipc-schemas.ts and ipc-server.ts
AX project architecture and coding skills - use sub-skills for specific subsystems (agent, host, cli, providers, etc.)