Skilllibrary skill-installer
Install skills into an agent client environment from a curated registry, GitHub repository, local folder, or packaged bundle. Use this when the user says "install this skill", "add skill from GitHub", "list available skills", "set up skill X", or asks about installable skills. Handles listing available skills, downloading, extracting, verifying integrity, and registering with the target client. Do not use for creating new skills (use skill-authoring or skill-creator), packaging skills for distribution (use skill-packaging), or improving existing installed skills (use skill-refinement).
git clone https://github.com/merceralex397-collab/skilllibrary
T=$(mktemp -d) && git clone --depth=1 https://github.com/merceralex397-collab/skilllibrary "$T" && mkdir -p ~/.claude/skills && cp -r "$T/03-meta-skill-engineering/skill-installer" ~/.claude/skills/merceralex397-collab-skilllibrary-skill-installer && rm -rf "$T"
03-meta-skill-engineering/skill-installer/SKILL.mdPurpose
Installs skill packages into a local environment or agent client configuration. Handles listing available skills, downloading from registries or GitHub, extraction, integrity verification, client-specific placement, and registration so the skill is discoverable and usable.
When to use this skill
Use when:
- User says "install this skill", "add skill from X", "set up skill", "list skills"
- Installing from a curated registry (e.g.,
)npx skills add skill-name - Installing from GitHub:
ornpx skills add owner/repo--url https://github.com/... - Installing from local tarball, zip, or folder
- Listing available skills from curated or experimental collections
- Linking a local folder for skill development
Do NOT use when:
- Creating or authoring a skill (use
orskill-authoring
)skill-creator - Packaging a skill for distribution (use
)skill-packaging - Skill already installed and just needs configuration
- Uninstalling or removing a skill
Operating procedure
Listing available skills
- Run
to show curated skills with install statusscripts/list-skills.py - For experimental skills:
scripts/list-skills.py --path skills/.experimental - For JSON output:
scripts/list-skills.py --format json - Present results as numbered list with "(already installed)" annotations
- Ask user which skills they want installed
Installing from curated registry or GitHub
- Identify source:
- Curated:
scripts/install-skill-from-github.py --repo openai/skills --path skills/.curated/<name> - Experimental:
scripts/install-skill-from-github.py --repo openai/skills --path skills/.experimental/<name> - Any GitHub repo:
scripts/install-skill-from-github.py --repo <owner>/<repo> --path <path/to/skill> - By URL:
scripts/install-skill-from-github.py --url https://github.com/<owner>/<repo>/tree/<ref>/<path>
- Curated:
- Download: Scripts default to direct download for public repos; fall back to git sparse checkout on auth errors
- Install: Skills install to
(default:$CODEX_HOME/skills/<skill-name>
)~/.codex/skills - Verify: Confirm folder exists with SKILL.md
- Report: Tell user "Restart Codex to pick up new skills"
Installing from local source
- Local folder: Verify SKILL.md exists at path
- Tarball/zip: Extract to temp, verify contents
- Verify integrity: Check manifest.yaml if present; verify SHA-256 checksum
- Copy to target location based on client:
- Codex:
$CODEX_HOME/skills/<name>/ - GitHub Copilot (VS Code):
or.github/skills/<name>/.vscode/skills/<name>/ - Claude Code: project
or user.claude/skills/<name>/~/.claude/skills/<name>/ - Gemini CLI:
.gemini/skills/<name>/
- Codex:
- Register: Update any config files or skill indexes
- Verify: Skill discoverable by client
Script reference
All scripts require network access — request sandbox escalation when running.
| Script | Purpose |
|---|---|
| List available skills with install annotations |
| Install from any GitHub location |
Options for install script:
— GitHub repository--repo <owner>/<repo>
— Path within repo (multiple allowed)--path <path>
— Full GitHub URL--url <url>
— Git ref (default: main)--ref <ref>
— Custom install destination--dest <path>
— Download method--method auto|download|git
— Override skill name--name <name>
Output defaults
## Installation Complete **Skill**: skill-name **Location**: ~/.codex/skills/skill-name/ **Source**: [registry/GitHub/local] ### Verification - [x] Files extracted - [x] SKILL.md present - [x] Registered ### Next Step Restart Codex to pick up new skills. Triggers on: [description summary]
References
- https://developers.openai.com/codex/skills — Codex skill format and installation
- https://docs.github.com/en/copilot/concepts/agents/about-agent-skills — GitHub agent skills
- https://docs.anthropic.com/en/docs/claude-code/overview — Claude Code skill placement
- https://geminicli.com/docs/cli/skills/ — Gemini CLI skills
- Curated skills: https://github.com/openai/skills/tree/main/skills/.curated
- Experimental skills: https://github.com/openai/skills/tree/main/skills/.experimental
Notes
- System skills at https://github.com/openai/skills/tree/main/skills/.system are preinstalled. If asked, explain this. If user insists, download and overwrite.
- Private GitHub repos accessible via git credentials or
/GITHUB_TOKENGH_TOKEN - Git fallback tries HTTPS first, then SSH
- Installation aborts if destination directory already exists (prevents accidental overwrites)
Failure handling
- Checksum mismatch: Do not install — report "Integrity verification failed, package may be corrupted or tampered with"
- Auth/permission error on download: Fall back to git sparse checkout; if that fails, suggest user set GITHUB_TOKEN
- Destination already exists: Ask user: overwrite, skip, or install as different version?
- Incompatible client: Report which clients are supported, suggest manual placement
- Missing SKILL.md in source: Abort — "Not a valid skill package: no SKILL.md found"
- Network unavailable in sandbox: Request sandbox escalation for network access