一键导入
onboarding
Interview the user, inspect this template repo, run headless onboarding, and prune unused systems so a new Rust project gets running quickly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interview the user, inspect this template repo, run headless onboarding, and prune unused systems so a new Rust project gets running quickly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use whenever creating, editing, renaming, or deleting any file under .claude/skills/, .claude/agents/, .agents/skills/, or .codex/agents/. Teaches the dual-tool Claude/Codex layout and reminds to run `make sync-agent-config`.
Guide for making changes to the Rust backend of the server template, covering the engine crate, the CLI + HTTP API transports, and testing patterns.
Instructions for using prek as a replacement for pre-commit.
Instructions for running code quality checks and maintaining standards in the Rust-Template project.
Git branch hygiene - delete merged/closed branch, prune stale refs, sync dependencies
基于 SOC 职业分类
| name | onboarding |
| description | Interview the user, inspect this template repo, run headless onboarding, and prune unused systems so a new Rust project gets running quickly. |
Use this skill when the user wants to turn this template into a real project,
especially when they invoke /onboarding, ask to run onboarding, or want to
remove unused template systems.
crates/cli/src/init/config.rs is the source of truth for every choice,
default, and prune action. Read it before changing anything. Its enums and the
Config type (Profile, Surface, the expand() implications, and the
prune-path groups) define what can be selected and how selections imply each
other.
Inspect the repo before changing anything:
AGENTS.md / CLAUDE.md, the workspace Cargo.toml, Makefile, README.mdcrates/cli/src/init/config.rs - especially the config enums, the
per-profile presets, expand() (dependency implications), and the
prune-path groups (exactly which files/crates each choice removes)crates/engine/),
the CLI (crates/cli/), the HTTP API (appctl serve / the server
module), config (crates/config/), docs/, and relevant testsmake init does NOT manage (handle these manually - see step 7):
release CI (.github/workflows/). Note frontend/, Dockerfile, and the
docs/ site ARE pruned by init when their surface/flag is deselected - do
not hand-delete them.Interview the user briefly. Prefer grouped multi-select questions:
--profile): cli-only, server-only, or cli+server
(for a custom shape, skip --profile and drive --surfaces/--config)--surfaces): cli, http_api (and mcp once that
transport exists)--frontend, the optional Bun/React viz app),
docs site (--docs), Dockerfile (--docker)Use make init as the source of truth. It maps PROFILE=, CONFIG=, and
DRY_RUN=1 to flags and passes everything else through ARGS=:
make init PROFILE=<profile> DRY_RUN=1.ARGS, e.g.
make init PROFILE=server-only DRY_RUN=1 ARGS="--surfaces cli,http_api --no-frontend --docker".
Boolean axes use paired flags: --frontend/--no-frontend,
--docs/--no-docs, --docker/--no-docker.CONFIG=<path>
(keys: profile, surfaces, frontend, docs, docker).make init (no headless flags) launches the interactive wizard
(branding, rename, cli-name, deps, env, hooks).Apply dependency implications before pruning (expand() enforces these):
frontend implies the http_api surface (the frontend talks to it).cli+server implies both the cli and http_api surfaces.http_api also drops frontend (nothing for it to talk to).Let onboarding prune deterministically; do not hand-delete. A non-dry run
removes files/crates and also rewrites, in the same pass, Cargo.toml
(workspace members, dependents' [dependencies], [[bin]] targets - via
toml_edit, format-preserving), Makefile targets, and .env.example keys
for pruned surfaces. Pruning http_api drops the server module/routes and
the frontend/; pruning frontend drops frontend/ and its package
manifests only.
Verify the selected shape:
appctl --help and one simple command (e.g. appctl call ping).appctl serve, check GET /healthz, and GET /api/v1/commands.cargo test first, then make ci when scope
is large.Handle the systems onboarding does not touch, after confirming with the user:
frontend/ branding/content (if kept) almost always needs rebranding..github/workflows/) are not wired into pruning; update
or remove them to match the kept surfaces. (frontend/, Dockerfile, and
the docs/ site are pruned automatically by their surface/flag - no manual
deletion needed.)main, force-push, or run destructive git commands. Onboarding
reads git remote only - it never commits or pushes.toml_edit over regex for any Cargo.toml change.