-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
39 lines (31 loc) · 1.45 KB
/
Copy pathinstall.ps1
File metadata and controls
39 lines (31 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Marrow installer
# Find the explanation that clicks.
$ErrorActionPreference = "Stop"
$REPO = "CodePandaaAI/marrow"
Write-Host "Marrow Installer" -ForegroundColor Cyan
Write-Host "----------------"
# Primary: use npx skills, the standard installation path.
if (Get-Command npx -ErrorAction SilentlyContinue) {
Write-Host "Installing via npx skills..."
npx -y skills add $REPO
if ($LASTEXITCODE -ne 0) {
throw "Marrow installation failed."
}
Write-Host "Marrow installed successfully!"
} else {
# Fallback: install the skill into common project-level skill directories.
Write-Host "npx not found. Falling back to manual install..."
$RAW = "https://raw.githubusercontent.com/$REPO/main/skills/marrow/SKILL.md"
# Universal skill path used by Codex, Cursor, Cline, Gemini CLI, and others.
New-Item -ItemType Directory -Force -Path ".agents/skills/marrow" | Out-Null
Invoke-WebRequest -Uri $RAW -OutFile ".agents/skills/marrow/SKILL.md"
Write-Host "Added to .agents/skills/marrow."
# Windsurf
if ((Test-Path "$env:USERPROFILE\.windsurf") -or
(Test-Path "$env:USERPROFILE\.codeium\windsurf")) {
New-Item -ItemType Directory -Force -Path ".windsurf/skills/marrow" | Out-Null
Invoke-WebRequest -Uri $RAW -OutFile ".windsurf/skills/marrow/SKILL.md"
Write-Host "Added to .windsurf/skills/marrow."
}
Write-Host "Done. For best results, install Node.js and run: npx skills add $REPO"
}