From b9c01878356483722d9796b019ec105c09770f24 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Wed, 29 Jul 2026 17:15:01 -0400 Subject: [PATCH] Share the shell-tab install commands with /skill /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 --- src/components/SkillInstallTabs.astro | 105 ++++++++++++++++++++++++++ src/pages/skill.astro | 7 +- src/pages/start.astro | 100 +----------------------- 3 files changed, 109 insertions(+), 103 deletions(-) create mode 100644 src/components/SkillInstallTabs.astro diff --git a/src/components/SkillInstallTabs.astro b/src/components/SkillInstallTabs.astro new file mode 100644 index 0000000..4c6f8bd --- /dev/null +++ b/src/components/SkillInstallTabs.astro @@ -0,0 +1,105 @@ +--- +/** + * Shell picker for the skill-install commands, shared by /start and /skill. + * CSS-only: radios drive which panel shows, so the tabs work without + * JavaScript and stay keyboard-operable (arrow keys switch). Radio ids are + * page-unique as long as the component appears once per page. + */ +--- + +
+ + + +
+ + + +
+
+
mkdir -p .claude/skills/pegma
+curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md
+
mkdir -p .grok/skills/pegma
+curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md
+
+
+
mkdir .claude\skills\pegma
+curl -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md
+
mkdir .grok\skills\pegma
+curl -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md
+
+
+
New-Item -ItemType Directory -Force .claude\skills\pegma
+curl.exe -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md
+
New-Item -ItemType Directory -Force .grok\skills\pegma
+curl.exe -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md
+

+ curl.exe on purpose: in Windows PowerShell 5.1, + plain curl is an alias for Invoke-WebRequest + and rejects these flags. +

+
+
+ + diff --git a/src/pages/skill.astro b/src/pages/skill.astro index bbd511e..f3873fa 100644 --- a/src/pages/skill.astro +++ b/src/pages/skill.astro @@ -1,5 +1,6 @@ --- import Base from '../layouts/Base.astro'; +import SkillInstallTabs from '../components/SkillInstallTabs.astro'; --- .claude/skills/pegma/SKILL.md, .agents/skills/pegma/SKILL.md, or a project AGENTS.md / rules file that points at the same text).

-
mkdir -p .grok/skills/pegma
-curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md
-# or
-mkdir -p .claude/skills/pegma
-curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md
+

Many tools treat a directory containing SKILL.md (with YAML frontmatter) as an installable skill. Keep the frontmatter; do not strip it. diff --git a/src/pages/start.astro b/src/pages/start.astro index 5ed390c..9356b2f 100644 --- a/src/pages/start.astro +++ b/src/pages/start.astro @@ -1,5 +1,6 @@ --- import Base from '../layouts/Base.astro'; +import SkillInstallTabs from '../components/SkillInstallTabs.astro'; --- SKILL.md (with YAML frontmatter — keep it) as an installable skill. From your project root:

-
- - - -
- - - -
-
-
mkdir -p .claude/skills/pegma
-curl -fsSL https://pegma.dev/skill.md -o .claude/skills/pegma/SKILL.md
-
mkdir -p .grok/skills/pegma
-curl -fsSL https://pegma.dev/skill.md -o .grok/skills/pegma/SKILL.md
-
-
-
mkdir .claude\skills\pegma
-curl -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md
-
mkdir .grok\skills\pegma
-curl -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md
-
-
-
New-Item -ItemType Directory -Force .claude\skills\pegma
-curl.exe -fsSL https://pegma.dev/skill.md -o .claude\skills\pegma\SKILL.md
-
New-Item -ItemType Directory -Force .grok\skills\pegma
-curl.exe -fsSL https://pegma.dev/skill.md -o .grok\skills\pegma\SKILL.md
-

- curl.exe on purpose: in Windows PowerShell 5.1, - plain curl is an alias for Invoke-WebRequest - and rejects these flags. -

-
-
+

Tools that use a generic agent directory follow the same shape, for example .agents/skills/pegma/SKILL.md. @@ -162,68 +131,3 @@ Do not invent passwords.

- -