Skip to content

feat(cli): optionally install OpenUI agent skill on project creation#384

Open
AbhinRustagi wants to merge 2 commits intothesysdev:mainfrom
AbhinRustagi:feat/install-skill-on-create
Open

feat(cli): optionally install OpenUI agent skill on project creation#384
AbhinRustagi wants to merge 2 commits intothesysdev:mainfrom
AbhinRustagi:feat/install-skill-on-create

Conversation

@AbhinRustagi
Copy link
Contributor

Summary

  • openui create now prompts to install the OpenUI agent skill after scaffolding, using npx skills add
  • Works with any AI coding assistant that supports the agentskills.io standard (Claude Code, Cursor, Copilot, Codex, etc.)
  • --skill and --no-skill flags let you skip the prompt

Flag semantics

--skill --no-skill Neither --no-interactive + neither
Install without prompting Skip without prompting Prompt the user Skip (safe default for CI)

Failure handling

If npx skills add fails (network issue, etc.), we print a warning with manual install instructions and continue. The scaffolded project works fine without the skill.

Alternatives considered

Bundle SKILL.md with the CLI and copy to .claude/skills/: Simpler and works offline, but this only works for Claude Code. Users on Cursor, Copilot, or Codex wouldn't benefit. Since we don't know which AI coding assistant the user has, we use npx skills add instead, which handles agent detection for all supported agents.

Closes #382

Test plan

  • openui create - verify skill prompt appears after dependency installation
  • openui create --name test --skill - verify skill installs without prompting
  • openui create --name test --no-skill - verify skill is skipped
  • openui create --name test --no-interactive - verify skill is skipped silently
  • Disconnect network + --skill - verify graceful warning, project still usable

🤖 Generated with Claude Code

AbhinRustagi and others added 2 commits March 24, 2026 21:16
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 thesysdev#382

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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>
@AbhinRustagi
Copy link
Contributor Author

AbhinRustagi commented Mar 24, 2026

Can optionally make the non-interactive for npx skills also configurable. Right now, it skips interactive mode (where the CLI prompts the user to select which agent(s) to install). Since we're skipping interactive mode right now, the Skill will automatically install for all agents available on the user's device.

Copy link
Member

@rabisg rabisg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install the OpenUI skill when new project is initialised via @openuidev/cli

2 participants