Repository navigation
Add bash / cmd / PowerShell tabs to the /start install commands - #37
Conversation
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>
|
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
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 (
mkdirwith backslashes, PowerShellNew-Item, and explicitcurl.exewith a note about the PowerShell 5.1 alias).
Comments suppressed due to low confidence (2)
src/pages/start.astro:60
- The
curlline 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 thecurl.exeline 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.
| <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> |
There was a problem hiding this comment.
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.
/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>

Problem
The skill-install commands on
/startwere POSIX-only. In Windows PowerShell 5.1,curlis an alias forInvoke-WebRequestand rejects-fsSL, so a Windows user copy-pasting by hand gets a parameter error;mkdir -pis likewise a bashism.What changed
The "Skills directory" section of
/startnow presents the same two installs (.claude/skills/pegmaand.grok/skills/pegma) behind a three-tab shell picker: bash (default) · cmd · PowerShell.cmdpanel usesmkdir .claude\skills\pegma(nested creation is native) andcurl, which resolves to the bundledcurl.exeNew-Item -ItemType Directory -Forceandcurl.exeexplicitly, with a one-line note explaining the 5.1 alias trapVerification
npm run check— 0 errors;npm run build— 11 pages🤖 Generated with Claude Code