Skip to content

Commit 67598c6

Browse files
committed
feat: show dependencies in main install command
- Change install command to include all dependencies directly - Simplify note to just mention what's required - Makes it clearer that dependencies are auto-included in the command
1 parent 6d1728c commit 67598c6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

website/worker.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,12 @@ Sitemap: https://opc.dev/sitemap.xml`, {
324324
<div class="skill-triggers">${s.triggers.map(t => `<span class="trigger">${t}</span>`).join('')}</div>
325325
<div class="install-section">
326326
<div class="install-cmd">
327-
<code class="cmd-display">npx skills add ReScienceLab/opc-skills --skill ${s.name}</code>
328-
<button class="copy-btn" onclick="navigator.clipboard.writeText('npx skills add ReScienceLab/opc-skills --skill ${s.name}').then(() => { this.textContent='Copied!'; setTimeout(() => this.textContent='Copy', 1000); })">Copy</button>
327+
<code class="cmd-display">npx skills add ReScienceLab/opc-skills --skill ${s.dependencies && s.dependencies.length > 0 ? s.dependencies.concat(s.name).join(' --skill ') : s.name}</code>
328+
<button class="copy-btn" onclick="navigator.clipboard.writeText('npx skills add ReScienceLab/opc-skills --skill ${s.dependencies && s.dependencies.length > 0 ? s.dependencies.concat(s.name).join(' --skill ') : s.name}').then(() => { this.textContent='Copied!'; setTimeout(() => this.textContent='Copy', 1000); })">Copy</button>
329329
</div>
330330
${s.dependencies && s.dependencies.length > 0 ? `
331331
<div class="platform-note" style="background:#fff3cd;border-left:3px solid #ffc107;padding:8px;margin-top:8px;font-size:11px;color:#856404;">
332-
<strong>Note:</strong> Install with dependencies:<br>
333-
<code style="font-size:10px;display:block;margin-top:4px;">npx skills add ReScienceLab/opc-skills --skill ${s.dependencies.concat(s.name).join(' --skill ')}</code>
332+
<strong>Note:</strong> This skill requires ${s.dependencies.map(d => `<code>${d}</code>`).join(', ')}
334333
</div>` : ''}
335334
</div>
336335
<details class="commands-section">

0 commit comments

Comments
 (0)