Skip to content

Add bash / cmd / PowerShell tabs to the /start install commands - #37

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

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

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Problem

The skill-install commands on /start were POSIX-only. In Windows PowerShell 5.1, curl is an alias for Invoke-WebRequest and rejects -fsSL, so a Windows user copy-pasting by hand gets a parameter error; mkdir -p is likewise a bashism.

What changed

The "Skills directory" section of /start now presents the same two installs (.claude/skills/pegma and .grok/skills/pegma) behind a three-tab shell picker: bash (default) · cmd · PowerShell.

  • CSS-only tabs driven by radio inputs — no JavaScript, so the static-pages rule holds; radios keep the picker keyboard-operable (arrow keys switch) with a visible focus ring on the active label
  • cmd panel uses mkdir .claude\skills\pegma (nested creation is native) and curl, which resolves to the bundled curl.exe
  • PowerShell panel uses New-Item -ItemType Directory -Force and curl.exe explicitly, with a one-line note explaining the 5.1 alias trap
  • Styling stays monochrome and theme-aware via the existing CSS variables; scoped to the page

Verification

  • npm run check — 0 errors; npm run build — 11 pages
  • Verified in the dev preview: bash panel shows by default, clicking each tab swaps panels, Windows paths render with backslashes

🤖 Generated with Claude Code

The skill-install commands were POSIX-only; a Windows PowerShell user
copy-pasting them hits the curl→Invoke-WebRequest alias and fails. The
skills-directory section now offers the same two installs (.claude and
.grok) per shell behind a CSS-only radio tab picker — no JavaScript, so
the static-pages rule holds and the tabs stay keyboard-operable. The
PowerShell panel calls curl.exe explicitly and says why.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 29, 2026 20:12
@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.

The change correctly addresses the documented Windows failure mode without violating the static-pages rule. The CSS radio-tab pattern is structurally sound, the bash/cmd/PowerShell command variants are accurate for their target shells, and the PowerShell note correctly explains the 5.1 curl alias trap. No defects warrant blocking or follow-up changes.

Reviewed commit 738a1c8 · 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

Updates the /start onboarding page so the “Skills directory” install commands are copy/paste-friendly on Windows as well as POSIX shells, while keeping the page static (CSS-only).

Changes:

  • Adds a CSS-only tabbed shell picker (bash/cmd/PowerShell) for the two skills-directory install paths.
  • Introduces Windows-friendly command variants (mkdir with backslashes, PowerShell New-Item, and explicit curl.exe with a note about the PowerShell 5.1 alias).
Comments suppressed due to low confidence (2)

src/pages/start.astro:60

  • The curl line in these <code> blocks is indented in the source, which becomes a leading space when users copy/paste. Using a template literal here avoids accidental whitespace in the rendered command text.
        <pre><code>mkdir .claude\skills\pegma
curl -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md</code></pre>
        <pre><code>mkdir .grok\skills\pegma
curl -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md</code></pre>

src/pages/start.astro:66

  • These PowerShell <code> blocks also include indentation before the curl.exe line in the source, which can add leading whitespace on copy/paste. Consider a template literal to ensure the commands are copied exactly as intended.
        <pre><code>New-Item -ItemType Directory -Force .claude\skills\pegma
curl.exe -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md</code></pre>
        <pre><code>New-Item -ItemType Directory -Force .grok\skills\pegma
curl.exe -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md</code></pre>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pages/start.astro
Comment on lines +51 to 54
<pre><code>mkdir -p .claude/skills/pegma
curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md</code></pre>
<pre><code>mkdir -p .grok/skills/pegma
<pre><code>mkdir -p .grok/skills/pegma
curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md</code></pre>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not applicable — the continuation lines are deliberately not indented. In the source, every second command line inside the <code> blocks starts at column 0 (see lines 52, 54, 58, 60, 64, 66 of src/pages/start.astro), and the built HTML confirms it: all six curl lines in dist/start.html begin at column 0 with no leading whitespace (grep -n '^curl' dist/start.html matches all 6). The un-indented continuation line inside a multi-line <pre><code> is the same pattern the page already used before this PR, precisely to keep copied text clean. Leaving unresolved for Nathan to confirm.

@FlyOverCoderKY
FlyOverCoderKY merged commit f499a25 into main Jul 29, 2026
3 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/start-shell-tabs branch July 29, 2026 21:05
FlyOverCoderKY added a commit that referenced this pull request Jul 29, 2026
/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>
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