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.
+
.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';
---
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.