Repository navigation
fix(ade): skip sb installation if no explicit skill invocation - #302
huang-julien merged 5 commits into
Conversation
|
✅ Deploy Preview for storybook-mcp-self-host-example canceled.
|
commit: |
There was a problem hiding this comment.
Pull request overview
Updates the Storybook “stories” skill documentation in both the Codex and Claude plugins to avoid running (or prompting) when Storybook isn’t installed unless the user explicitly invoked the skill.
Changes:
- Adjusted the “Storybook must be installed” prerequisite in the Codex Storybook stories skill doc.
- Adjusted the same prerequisite in the Claude stories skill doc to match.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/codex-plugin/plugins/storybook/skills/stories/SKILL.md | Updates prerequisite wording to conditionally skip the skill when Storybook isn’t installed and the skill wasn’t explicitly invoked. |
| packages/claude-plugin/skills/stories/SKILL.md | Mirrors the same prerequisite behavior change for the Claude plugin skill doc. |
| ## Prerequisites | ||
|
|
||
| - Storybook must be installed in the project. If it is not, go to "When Storybook is not installed" below and stop here unless the user opts in. | ||
| - Storybook must be installed in the project. If it is not installed and if this skill is not explicitly invoked by the user, silently ignore this skill. |
|
|
||
| - Storybook must be installed in the project. If it is not, go to | ||
| "When Storybook is not installed" below and stop here unless the user opts in. | ||
| - Storybook must be installed in the project. If it is not installed and if this skill is not explicitly invoked by the user, silently ignore this skill. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #302 +/- ##
==========================================
+ Coverage 79.68% 79.78% +0.09%
==========================================
Files 67 67
Lines 2048 2048
Branches 578 578
==========================================
+ Hits 1632 1634 +2
+ Misses 235 234 -1
+ Partials 181 180 -1 ☔ View full report in Codecov by Harness. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo ChangesSilent skip when Storybook not installed
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| - Storybook must be installed in the project. If it is not installed: | ||
| - If this skill is not explicitly invoked by the user, silently ignore this skill. | ||
| - Otherwise, ask the user whether they want to set up Storybook and write stories. | ||
| - If the user decline, silently skip all story work, finish the component change (if any), and move on. |
| - Storybook must be installed in the project. If it is not installed: | ||
| - If this skill is not explicitly invoked by the user, silently ignore this skill. | ||
| - Otherwise, ask the user whether they want to set up Storybook and write stories. | ||
| - If the user decline, silently skip all story work, finish the component change (if any), and move on. | ||
| - If the user accepts, invoke the **storybook-setup** skill to set up Storybook and write stories. |
| - Storybook must be installed in the project. If it is not installed: | ||
| - If this skill is not explicitly invoked by the user, silently ignore this skill. | ||
| - Otherwise, ask the user whether they want to set up Storybook and write stories. | ||
| - If the user decline, silently skip all story work, finish the component change (if any), and move on. |
| - Storybook must be installed in the project. If it is not installed: | ||
| - If this skill is not explicitly invoked by the user, silently ignore this skill. | ||
| - Otherwise, ask the user whether they want to set up Storybook and write stories. | ||
| - If the user decline, silently skip all story work, finish the component change (if any), and move on. |
| - If this skill is not explicitly invoked by the user, silently ignore this skill. | ||
| - Otherwise, ask the user whether they want to set up Storybook and write stories. | ||
| - If the user decline, silently skip all story work, finish the component change (if any), and move on. | ||
| - If the user accepts, invoke the **storybook-setup** skill to set up Storybook and write stories. |
There was a problem hiding this comment.
The storybook-init skill right?
This pull request updates the prerequisites for Storybook-related skills to clarify the behavior when Storybook is not installed. Now, the skills will silently ignore the absence of Storybook unless the user explicitly invokes the skill, instead of stopping and requiring user opt-in.
Storybook Skill Prerequisite Updates:
SKILL.mdfiles to specify that if Storybook is not installed and the skill is not explicitly invoked by the user, the skill should be silently ignored. [1] [2]Summary by CodeRabbit