Repository navigation
Share the bash / cmd / PowerShell install tabs with /skill - #38
Conversation
/skill still showed the bash-only curl block that /start replaced with a bash / cmd / PowerShell picker in #37. Extract the picker into src/components/SkillInstallTabs.astro and use it on both pages, so the commands and the PowerShell curl.exe note stay in one place. Behavior is unchanged on /start; /skill drops its "# or" combined block for the tabs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
There was a problem hiding this comment.
Pull request overview
This pull request deduplicates the skill-install “shell picker” UI by extracting it into a shared Astro component, then reuses that component on both /start and /skill so Windows users get cmd/PowerShell-safe install commands in either place.
Changes:
- Added
src/components/SkillInstallTabs.astroto centralize the bash/cmd/PowerShell install tabs (including the PowerShellcurl.exenote) with scoped styling. - Updated
/startto replace the inline tab markup/styles with the shared component. - Updated
/skillto replace the bash-only combined block with the shared component.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/pages/start.astro | Replaces inline shell-tab markup with <SkillInstallTabs />. |
| src/pages/skill.astro | Uses the shared tabs instead of a single bash-only block. |
| src/components/SkillInstallTabs.astro | New shared component containing the shell picker markup + scoped CSS. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| */ | ||
| --- | ||
|
|
||
| <div class="shell-tabs"> |

Problem
#37 gave
/starta shell picker for the skill-install commands, but/skillstill showed the bash-only block (mkdir -p+curl -fsSLwith a# orseparator) — the same Windows PowerShellcurlalias trap, one page over.What changed
src/components/SkillInstallTabs.astro(first entry in a newsrc/components/directory) — markup, scoped styles, and the PowerShellcurl.exenote in one place/startswaps its inline copy of the tabs for the component (no behavior change)/skillreplaces its combined bash block with the same tabsStill CSS-only radios (no JavaScript, keyboard-operable), one instance per page so the radio ids stay unique.
Verification
npm run check— 0 errors;npm run build— 11 pages/skilland/start🤖 Generated with Claude Code