-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
36 lines (28 loc) · 1.11 KB
/
Copy pathinstall.sh
File metadata and controls
36 lines (28 loc) · 1.11 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
#!/bin/bash
# Marrow installer
# Find the explanation that clicks.
set -e
REPO="CodePandaaAI/marrow"
echo "Marrow Installer"
echo "----------------"
# Primary: use npx skills, the standard installation path.
if command -v npx &> /dev/null; then
echo "Installing via npx skills..."
npx -y skills add "$REPO"
echo "Marrow installed successfully!"
else
# Fallback: install the skill into common project-level skill directories.
echo "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.
mkdir -p .agents/skills/marrow
curl -fsSL "$RAW" -o .agents/skills/marrow/SKILL.md
echo "Added to .agents/skills/marrow."
# Windsurf
if [ -d "$HOME/.windsurf" ] || [ -d "$HOME/.codeium/windsurf" ]; then
mkdir -p .windsurf/skills/marrow
curl -fsSL "$RAW" -o .windsurf/skills/marrow/SKILL.md
echo "Added to .windsurf/skills/marrow."
fi
echo "Done. For best results, install Node.js and run: npx skills add $REPO"
fi