一键导入
new
Use when the user runs /autumn:new, asks to create a new Autumn web application, or wants to scaffold a fresh project with the autumn CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user runs /autumn:new, asks to create a new Autumn web application, or wants to scaffold a fresh project with the autumn CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when writing, reviewing, or debugging Rust code in an autumn-web project; covers idiomatic patterns for testing, repositories, service layers, job design, security, error handling, and Maud templates that are not covered in the framework API reference.
Use when building, debugging, documenting, or upgrading Rust web applications with autumn-web, autumn-cli, or first-party Autumn crates; also use for Autumn route/model/repository/job/webhook/admin macros, AppBuilder setup, Maud + htmx server-rendered UI, Diesel async Postgres, and Autumn 0.5.x migration or release work.
Use when the user runs /autumn:doctor, asks to audit their Autumn app's configuration, check for deployment readiness, or diagnose config problems, missing secrets, or stale migrations.
Use when the user runs /autumn:generate, asks to scaffold a resource, generate a model, migration, controller, mailer, or task using the autumn CLI.
Use when the user runs /autumn:routes, asks to list registered routes, inspect route handlers, check what endpoints exist, or audit an Autumn app's routing table.
Use when the user runs /autumn:dev, asks to start the Autumn development server, enable hot reload, or check what's running locally.
| name | new |
| description | Use when the user runs /autumn:new, asks to create a new Autumn web application, or wants to scaffold a fresh project with the autumn CLI. |
| argument-hint | <app-name> [--with-i18n] [--with-seed] |
| allowed-tools | ["Bash","Read","Write"] |
Create a new Autumn web application. This runs autumn new, then autumn setup, and walks the user through the first-run configuration.
Will create: autumn new <app-name> [--with-i18n] [--with-seed]
Directory: ./<app-name>/
Pass any flags the user provided (e.g. --with-i18n, --with-seed) through
to the command — they can only be applied at creation time, not added later.autumn new <app-name> [--with-i18n] [--with-seed]
cd <app-name> && autumn setup
autumn setup downloads the Tailwind CSS binary used during development.Present this as an ordered list after the project is created:
First-run checklist:
1. Set your database URL in autumn.toml (or via env var):
[database]
url = "postgres://localhost:5432/<app-name>_dev"
Or: export AUTUMN_DATABASE__PRIMARY_URL="postgres://..."
2. Run the initial migration:
autumn migrate
3. Start the dev server:
autumn dev
→ App available at http://localhost:3000
→ Health check: http://localhost:3000/health
4. (Production) Set the signing secret before deploying:
export AUTUMN_SECURITY__SIGNING_SECRET="$(openssl rand -hex 32)"
5. Run autumn doctor --strict before your first deploy.
--with-i18n: Scaffold the optional i18n module (Fluent translations at
i18n/en.ftl, the [i18n] block in autumn.toml, and the i18n feature
on autumn-web).--with-seed: Scaffold a stub src/bin/seed.rs for database seeding.--api (trunk-dev): Scaffold a JSON-first app instead of the HTML/view
flavor (issue #1847). Handlers return Json<…>; autumn-web is pinned
default-features = false to a lean set (db, cache-moka, http-client,
reporting, flash), dropping the maud/htmx/tailwind view stack. No
static/, input.css, tailwind.config.js, vendored assets, or Tailwind
CI/README notes are generated, and the first cargo run serves JSON (no
autumn setup Tailwind download needed). --api conflicts with --daemon
and --bundled-pg, but composes with --with-i18n and --with-seed.| File | Purpose |
|---|---|
README.md | Generated quickstart — prerequisites and the golden-path commands (configure the [database] block in autumn.toml, then autumn migrate → autumn dev) that take a clean checkout to a serving route, plus a CLI reference. Flag-aware: --with-i18n / --with-seed add sections for their extra steps. |
.env.example | Documented template of local env vars. Copy it to .env (gitignored) and fill in local values (e.g. AUTUMN_DATABASE__URL); Autumn auto-loads .env in the dev/test profiles. Real shell env vars always win over .env. |
autumn.toml | Base config (server, database, session, security, logging) |
autumn-dev.toml | Dev profile overrides (auto-detected in debug builds) |
src/main.rs | AppBuilder setup — register routes, tasks, jobs, migrations here |
migrations/ | Diesel migrations — one directory per migration |
static/ | Static assets served at /static/ |
cargo install autumn-cli --version 0.5.0