install-skill
Install Skill
Search for skills on skills.sh and install them into the project's skills/ directory. Always project level.
Scripts
Two scripts are provided in this skill's directory:
Search: search.mjs
node ${SKILL_DIR}/search.mjs "<query>"
Returns JSON array of matching skills:
[{"source": "owner/repo", "id": "skill-name", "name": "skill-name", "installs": 1234}]
Install: install.mjs
node ${SKILL_DIR}/install.mjs <owner/repo> <skill-name> <project-skills-dir>
Downloads all skill files from the GitHub repo into <project-skills-dir>/<skill-name>/. Returns:
{"ok": true, "skill": "name", "source": "owner/repo", "path": "/full/path", "files": ["SKILL.md", ...]}
Workflow
-
If the user gives a specific repo and skill name, skip to step 3.
-
Search: Run
search.mjswith the user's query. Show the top results as a numbered list with name, repo, and install count. Ask which one they want. -
Install: Run
install.mjswith the chosen repo, skill name, and the project'sskills/directory path. -
Confirm: Show what was installed — skill name, source, files downloaded, and path.
Replace ${SKILL_DIR} with the actual path to this skill's directory when running the scripts.