Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 96 additions & 2 deletions src/pages/start.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,39 @@ import Base from '../layouts/Base.astro';
containing <code>SKILL.md</code> (with YAML frontmatter — keep it) as an
installable skill. From your project root:
</p>
<pre><code>mkdir -p .claude/skills/pegma
<div class="shell-tabs">
<input type="radio" name="skill-shell" id="skill-shell-bash" checked />
<input type="radio" name="skill-shell" id="skill-shell-cmd" />
<input type="radio" name="skill-shell" id="skill-shell-powershell" />
<div class="shell-tab-labels">
<label for="skill-shell-bash">bash</label>
<label for="skill-shell-cmd">cmd</label>
<label for="skill-shell-powershell">PowerShell</label>
</div>
<div class="shell-panel" data-shell="bash">
<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>
Comment on lines +51 to 54

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.

</div>
<div class="shell-panel" data-shell="cmd">
<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>
</div>
<div class="shell-panel" data-shell="powershell">
<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>
<p class="form-note">
<code>curl.exe</code> on purpose: in Windows PowerShell 5.1,
plain <code>curl</code> is an alias for <code>Invoke-WebRequest</code>
and rejects these flags.
</p>
</div>
</div>
<p>
Tools that use a generic agent directory follow the same shape, for
example <code>.agents/skills/pegma/SKILL.md</code>.
Expand Down Expand Up @@ -133,3 +162,68 @@ Do not invent passwords.</code></pre>
</p>
</section>
</Base>

<style>
/* CSS-only shell picker: radios drive which panel shows, so the tabs work
without JavaScript and stay keyboard-operable (arrow keys switch). */
.shell-tabs {
margin: 1rem 0 1.5rem;
}

.shell-tabs > input[type='radio'] {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
clip-path: inset(50%);
overflow: hidden;
}

.shell-tab-labels {
display: flex;
gap: 0.25rem;
border-bottom: 1px solid var(--line);
}

.shell-tab-labels label {
padding: 0.35rem 0.9rem;
font-size: 0.9rem;
font-weight: 650;
color: var(--slate);
cursor: pointer;
border: 1px solid transparent;
border-bottom: none;
border-radius: 0.4rem 0.4rem 0 0;
margin-bottom: -1px;
}

#skill-shell-bash:checked ~ .shell-tab-labels label[for='skill-shell-bash'],
#skill-shell-cmd:checked ~ .shell-tab-labels label[for='skill-shell-cmd'],
#skill-shell-powershell:checked
~ .shell-tab-labels
label[for='skill-shell-powershell'] {
color: var(--ink);
background: var(--paper);
border-color: var(--line);
border-bottom: 1px solid var(--paper);
}

#skill-shell-bash:focus-visible ~ .shell-tab-labels label[for='skill-shell-bash'],
#skill-shell-cmd:focus-visible ~ .shell-tab-labels label[for='skill-shell-cmd'],
#skill-shell-powershell:focus-visible
~ .shell-tab-labels
label[for='skill-shell-powershell'] {
outline: 2px solid var(--ink);
outline-offset: -2px;
}

.shell-panel {
display: none;
}

#skill-shell-bash:checked ~ .shell-panel[data-shell='bash'],
#skill-shell-cmd:checked ~ .shell-panel[data-shell='cmd'],
#skill-shell-powershell:checked ~ .shell-panel[data-shell='powershell'] {
display: block;
}
</style>
Loading