Skip to content
Skills Library
Programming · Building & coding

new-option

/new-option

Adds a choice to the CLI: an add-on, a skill pack, a database, an email provider, a deploy target or a framework. Use when the kit should support something new (Stripe, Neon, Netlify, Remix…).

Licence
MIT
Last repository change
02.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Adds a choice to the CLI: an add-on, a skill pack, a database, an email provider, a deploy target or a framework. Use when the kit should support something new (Stripe, Neon, Netlify, Remix…).

Original author description

Adds a choice to the CLI: an add-on, a skill pack, a database, an email provider, a deploy target or a framework. Use when the kit should support something new (Stripe, Neon, Netlify, Remix…).

How it works

  1. 1. Declare it in manifest.json
  2. 2. Wire the CLI
  3. 3. Templates
  4. 4. Prove it
  5. A new framework
Original SKILL.md headings · 53 lines, 443 words
SKILL.md preview
---
name: new-option
description: "Adds a choice to the CLI: an add-on, a skill pack, a database, an email provider, a deploy target or a framework. Use when the kit should support something new (Stripe, Neon, Netlify, Remix…)."
---

# New option

Every option stays optional: a project that doesn't pick it gets no file, package, script, skill, permission or
AGENTS.md line from it. The template-change skill's rules apply (docs first, real builds); this is the list of places
an option touches.

## 1. Declare it in manifest.json
- **The option:** `addOns` (`label`, `hint`, `requires`), or `databases` (`deploys`), `emailProviders`, `deploys`;
  then list its id in an `addOnGroups` entry (pick-one groups: `pickOne`). Add it to the `full` preset, and to `app`
  if most apps need it.
- **Its skills:** a `skillPacks` entry with `when: ["<flag>"]` (or `optional: true` for a checkbox in the Agent skills
  group), naming skills from their makers' repositories only; `bun run verify:skills` checks the names.
- **Packages:** `packages.<flag>` lists names only (`deps`, `dev`): versions are resolved at create time. Add the
  checked major of each to `verified`.
- **Everything else is keyed by flag** (`a+b` means both): `files` (a `when` rule for every new file or folder),
  `scripts`, `claudeSettings`, `shadcn.components`. Framework-specific keys combine flags: `next+cloudflare`.

## 2. Wire the CLI
- **Flags:** `src/kit-config.ts` → `renderFlags` (the option's flag, plus any derived flag other templates need) and
  `renderVars`.
- **Choices:** ids flow through `src/create/choices.ts` (`kindOf`, `applyIds`); a new kind of choice needs it there
  and in `src/create/prompts.ts`. A hard requirement goes in `requires`: the CLI asks for it in prompts and stops in
  flag mode, and never adds it silently.
- **Setup steps:** `src/create/scaffold-base.ts` for wrangler bindings and `secrets.required`;
  `src/create/official-clis.ts` for an official generator CLI (always `@latest`).
- **Detection:** `src/detect.ts`, so `install` recognises the option in an existing project.

## 3. Templates
- **Code:** shared code under `template/app/src/`, framework-only code under `template/frameworks/<name>/src/`, in
  category/vendor/role folders (`server/<category>/<vendor>/<role>.ts`, `shared/<category>/<vendor>/client.ts`).
- **Lines in shared files**, inside `{{#flag}}` blocks:
  - `template/agent/`: `AGENTS.md`, `docs/DEPLOYMENT.md`, `docs/RUNBOOK.md`, `docs/official/sources.json`, the
    `security` skill's references.
  - `template/app/`: `.env.example`, `src/server/config/env.ts`.
  - `template/frameworks/<name>/`: the `project-structure` skill, `knip.json`, `.agents/biome.kit.json`.
- **Docs:** add the pages the new templates follow to `template-sources.json`, then run `bun run verify:docs --accept`.

## 4. Prove it
- `tests/unit/only-checked.test.ts`: nothing from the option appears without it. `tests/unit/choices.test.ts`: its
  requirements.
- `scripts/verify-build.ts`: at least one combination includes the option (add one if none does); run it.
- README.md options table, and one CHANGELOG line.

## A new framework
- `manifest.json` → `frameworks.<id>`: a `scaffold` command using `{name}` `{dir}` `{pm}` `{deploy}`, plus
  `expectFiles`.
- `template/frameworks/<id>/`: the app overlay, its `project-structure` and `new-feature` skills, `biome.json`,
  `knip.json` and `.agents/biome.kit.json`. The agent setup in `template/agent/` and the code in `template/app/` are
  shared: add `{{#<id>}}` lines where they differ.
- A `skillPacks` entry for the framework's own skills, and its knowledge source in AGENTS.md → Framework knowledge.
- Detection in `src/detect.ts`, and its own verify:build combinations.

Versions

The database has no other skills named new-option.

Database snapshot: 13.11.2026 · package version 3e030cd5691e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100add-provider
    Add a new storage or service provider to the core package. Use when implementing a new backend for StorageService (e.g., a new database) or a new service provider (e.g., a new LLM backend).
  • 100neon-postgres
    Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's…
  • 100neon-postgres
    Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's…
  • 100netlify-database
    Zero-config Postgres for Netlify apps via @netlify/database — querying data from Functions/Edge Functions, writing schema migrations, setting up Drizzle ORM, local dev with netlify dev, database branches for deploy previews, and migrating an existing Postgres project onto…
  • 100add-cli-option
    Add a new Remotion CLI or config option by creating an AnyRemotionOption, registering CLI parsing, wiring config setters, and updating documentation. Use when adding or converting command-line flags or Remotion options.
  • 100using-neon
    Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.