Skip to content

Share the bash / cmd / PowerShell install tabs with /skill - #38

Merged
FlyOverCoderKY merged 1 commit into
mainfrom
claude/skill-shell-tabs
Jul 29, 2026
Merged

FlyOverCoderKY merged 1 commit into
mainfrom
claude/skill-shell-tabs

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Problem

#37 gave /start a shell picker for the skill-install commands, but /skill still showed the bash-only block (mkdir -p + curl -fsSL with a # or separator) — the same Windows PowerShell curl alias trap, one page over.

What changed

  • Extracted the picker into src/components/SkillInstallTabs.astro (first entry in a new src/components/ directory) — markup, scoped styles, and the PowerShell curl.exe note in one place
  • /start swaps its inline copy of the tabs for the component (no behavior change)
  • /skill replaces its combined bash block with the same tabs

Still 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
  • Verified both pages in the dev preview: bash default, tab clicks swap panels on /skill and /start

🤖 Generated with Claude Code

/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>
Copilot AI review requested due to automatic review settings July 29, 2026 21:15
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Grok Grok Build Review — no issues

Review complete. No issues found — the changes look solid.

This pull request correctly extracts the shell-install tab UI into a shared Astro component and applies it on both /start and /skill. The markup, CSS-only radio behavior, and PowerShell curl.exe guidance are preserved without introducing regressions under the single-instance-per-page constraint. No defects of correctness, security, or maintainability were identified.

Reviewed commit b9c0187 · workflow run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.astro to centralize the bash/cmd/PowerShell install tabs (including the PowerShell curl.exe note) with scoped styling.
  • Updated /start to replace the inline tab markup/styles with the shared component.
  • Updated /skill to 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">
@FlyOverCoderKY
FlyOverCoderKY merged commit c7dbea7 into main Jul 29, 2026
3 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/skill-shell-tabs branch July 29, 2026 21:19
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.

2 participants