You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): optionally install OpenUI agent skill on project creation (#384)
* feat(cli): optionally install OpenUI agent skill on project creation
After scaffolding, `openui create` now prompts whether to install the
OpenUI agent skill via `npx skills add`. The skill is agent-agnostic
(works with Claude, Cursor, Copilot, Codex, etc.). Adds --skill and
--no-skill flags for non-interactive control.
Closes#382
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: move skill install to after deps, extract to lib/
Move the skill prompt and installation to run after dependency
installation. Extract shouldInstallSkill and runSkillInstall into
lib/install-skill.ts for cleaner separation of concerns.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/content/docs/api-reference/cli.mdx
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ openui create [options]
31
31
| Flag | Description |
32
32
|---|---|
33
33
|`-n, --name <string>`| Project name (directory to create) |
34
+
|`--skill`| Install the OpenUI agent skill for AI coding assistants |
35
+
|`--no-skill`| Skip installing the OpenUI agent skill |
34
36
|`--no-interactive`| Fail instead of prompting for missing input |
35
37
36
38
When run interactively (default), the CLI prompts for any missing options. Pass `--no-interactive` in CI or scripted environments to surface missing required flags as errors instead.
@@ -41,18 +43,29 @@ When run interactively (default), the CLI prompts for any missing options. Pass
41
43
2. Rewrites `workspace:*` dependency versions to `latest`
42
44
3. Auto-detects your package manager (npm, pnpm, yarn, bun)
43
45
4. Installs dependencies
46
+
5. Optionally installs the [OpenUI agent skill](/docs/openui-lang/agent-skill) for AI coding assistants (e.g. Claude, Cursor, Copilot)
44
47
45
48
The generated project includes a `generate:prompt` script that runs `openui generate` as part of `dev` and `build`.
46
49
50
+
**Agent skill**
51
+
52
+
When run interactively, `openui create` asks whether to install the OpenUI agent skill. The skill teaches AI coding assistants how to build with OpenUI Lang — covering component definitions, system prompts, the Renderer, and debugging.
53
+
54
+
Pass `--skill` or `--no-skill` to skip the prompt. In `--no-interactive` mode the skill is skipped unless `--skill` is explicitly passed.
55
+
47
56
**Examples**
48
57
49
58
```bash
50
-
# Interactive — prompts for project name
59
+
# Interactive — prompts for project name and skill installation
0 commit comments