SpecUI

init reference

Every flag and preset for specui init and specui new.

specui new <path> is specui init --flat with a required target name. All flags below apply to init; new accepts the subset --preset, --themes, --platforms, --agents-md, --git, and --force (defaults for a flat repo: no AGENTS.md, no git).


Presets (--preset)

PresetDescription
web-appDefault SaaS / product UI scaffolding
mobile-appMobile-first scope in front matter
marketing-siteMarketing / landing patterns
dashboard-data-denseDense data UI
design-system-libraryLarge catalog starter
blankMinimal lists; you define components/patterns

Target and layout

FlagDescription
--target <dir>Write the contract here (default: cwd)
--flatNo .specui/ wrapper — contract at target root (new sets this)
--forceOverwrite an existing .specui or flat SPEC.md
--dry-runPrint the plan only; no writes

Product metadata

FlagDescription
--name <string>Product name in SPEC.md
--category <string>e.g. web-app, marketing-site
--audience <string>Primary users

Scope

FlagValues
--themeslight, dark, high-contrast (comma-separated)
--platformsweb, ios, android, flutter, desktop, other
--densitycomfortable, compact, dense
--componentsComma list of required kebab component ids
--patternsComma list of required kebab pattern ids
--imageryphoto, illustration, ai-allowed
--rtlEnable RTL requirement
--no-rtlDisable RTL
--data-vizCharts / data visualization in scope
--no-data-vizDisable data viz

Agents and editor files

FlagDescription
--agents-mdInject SpecUI block into AGENTS.md (default)
--no-agents-mdSkip AGENTS.md
--agent-tools <list>cursor, claude, codex, copilot, gemini, windsurf
--no-agent-toolsSkip per-tool stub files
--starter-kitSeed 2 bundled rules + 2 skills
--seed-rules / --no-seed-rulesBundled rules templates
--seed-skills / --no-seed-skillsBundled skills templates

If --agents-md is set and the tools list is empty, the default is cursor.


CI and git

FlagDescription
--ci githubAdd GitHub Actions validate workflow (default when CI enabled)
--no-ciSkip the CI template
--gitgit init + initial commit in target
--no-gitSkip git (default)

Examples

Minimal blank project:

specui init --preset blank --target ./my-app --no-ci --no-git

Full agent + CI setup:

specui init \
  --name "Acme" \
  --preset web-app \
  --themes light,dark \
  --platforms web \
  --agents-md \
  --agent-tools cursor,claude,copilot \
  --starter-kit \
  --ci github

Publishable design system:

specui new ./acme-ds --preset design-system-library --git

Preview the plan before committing to anything:

specui init --dry-run --preset web-app --target /tmp/preview

Exit codes

CodeCause
0Success or dry-run
2Invalid flags, missing preset, existing contract without --force

Next steps

Edit this page on GitHub
On this page

On this page