feat(cli): optionally install OpenUI agent skill on project creation#384
Open
AbhinRustagi wants to merge 2 commits intothesysdev:mainfrom
Open
feat(cli): optionally install OpenUI agent skill on project creation#384AbhinRustagi wants to merge 2 commits intothesysdev:mainfrom
AbhinRustagi wants to merge 2 commits intothesysdev:mainfrom
Conversation
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>
Contributor
Author
|
Can optionally make the non-interactive for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openui createnow prompts to install the OpenUI agent skill after scaffolding, usingnpx skills add--skilland--no-skillflags let you skip the promptFlag semantics
--skill--no-skill--no-interactive+ neitherFailure handling
If
npx skills addfails (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 usenpx skills addinstead, which handles agent detection for all supported agents.Closes #382
Test plan
openui create- verify skill prompt appears after dependency installationopenui create --name test --skill- verify skill installs without promptingopenui create --name test --no-skill- verify skill is skippedopenui create --name test --no-interactive- verify skill is skipped silently--skill- verify graceful warning, project still usable🤖 Generated with Claude Code