install-skill
Skill29 starsChanged 7 months agoMITView on GitHub
Install agent skills from GitHub repositories using gh CLI. Use when user asks to install a skill, add a skill, or set up a skill from a GitHub repo. Triggers on "install skill", "add skill", "gh skill install".
7 other projects use a version of this.
Adopted by
Most recently taken up by
- Mineru98/skills-storetheir own version, first seen Aug 26, 2026
- aaronjmars/miroshark-aeontheir own version, first seen Aug 20, 2026
- aeonfun/aeontheir own version, first seen Aug 20, 2026
- moazbuilds/claudeclawtheir own version, first seen Apr 25, 2026
- cookiedclaw/cookiedclaw-claude-codetheir own version, first seen Apr 25, 2026
- xiangu152/my_claude_skillstheir own version, first seen Apr 5, 2026
Used with
Projects with it also use create-skill.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ElasticSkillcreate-skill
Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- moazbuilds/claudeclaw★ 1.3ksame name
- aeonfun/aeon★ 766same name
- aaronjmars/miroshark-aeon★ 18same name
- schwepps/skills★ 17same name
- Mineru98/skills-store★ 13same name
- cookiedclaw/cookiedclaw-claude-code★ 4same name
- xiangu152/my_claude_skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- broSkill
- build-skillSkill
- cloudflareSkill
- cold-emailSkill
- composio-cliSkill
- copywritingSkill
- diff-walkthroughSkill
- emailsSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- index-knowledgeSkill
- jira-toolSkill
- librarianSkill
- prospectingSkill
- repo-walkthroughSkill
- spec-plannerSkill
- teachSkill
- timesharingSkill
- tmuxSkill
- unslopSkill
- using-git-worktreesSkill
- whySkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Before running any install, verify gh CLI is available:
- Very specific: line 19
If gh is not installed, stop and inform the user:
- Distinctive: line 41
Agent override: only if user explicitly names a different agent
- Distinctive: line 42
Scope override: only if user explicitly says "project" or "directory"
- Distinctive: line 43
Directory override: only if user provides a specific path
- Very specific: line 47
Run scripts/install.sh or manually verify:
- Distinctive: line 54
If either fails, stop and inform the user.
- Very specific: line 65
If user says "install to project" or "project scope": --scope project
- Very specific: line 66
If user gives a directory path: --dir <path> (replaces --agent and --scope)
- Very specific: line 67
If user names a different agent: --agent <agent-name>
- Very specific: line 68
If user wants to force overwrite: add --force
- Very specific: line 69
If user specifies a version/pin: append @version or use --pin <ref>
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Install Skill
Install agent skills from GitHub repositories using gh skill install.
Prerequisites
Before running any install, verify gh CLI is available:
command -v gh >/dev/null 2>&1 || { echo "Error: gh CLI not found. Install from https://cli.github.com" >&2; exit 1; }If gh is not installed, stop and inform the user:
- Install from https://cli.github.com
- Then authenticate with
gh auth login
Defaults
| Setting | Default | Override |
| Agent | opencode | User specifies --agent <name> |
| Scope | user | User says "project" or "directory" |
| Directory | (none) | User provides explicit path via --dir |
Always use --agent opencode --scope user unless the user explicitly requests otherwise.
Workflow
1. Parse the User Request
Extract from the user's message:
- Repository:
OWNER/REPOformat (required) - Skill name: specific skill within the repo (optional)
- Version:
@versionor pin (optional) - Agent override: only if user explicitly names a different agent
- Scope override: only if user explicitly says "project" or "directory"
- Directory override: only if user provides a specific path
2. Validate gh CLI
Run scripts/install.sh or manually verify:
command -v gh >/dev/null 2>&1
gh auth status 2>/dev/nullIf either fails, stop and inform the user.
3. Build the Command
Base command:
gh skill install <OWNER/REPO> [<skill[@version]>] --agent opencode --scope userApply overrides:
- If user says "install to project" or "project scope":
--scope project - If user gives a directory path:
--dir <path>(replaces--agentand--scope) - If user names a different agent:
--agent <agent-name> - If user wants to force overwrite: add
--force - If user specifies a version/pin: append
@versionor use--pin <ref>
4. Run the Install
Execute the built command via scripts/install.sh or directly:
gh skill install <repo> [skill] --agent opencode --scope user5. Verify
After install, confirm:
- Command exited successfully (exit code 0)
- Report the installed skill name and location to the user
Command Reference
gh skill install <repository> [<skill[@version]>] [flags]| Flag | Purpose |
--agent <string> | Target agent (default: opencode for this skill) |
--scope <string> | project or user (default: user) |
--dir <string> | Custom directory (overrides agent and scope) |
--force | Overwrite existing skills without prompting |
--pin <string> | Pin to a specific git tag or commit SHA |
--from-local | Install from a local directory instead of a repo |
--allow-hidden-dirs | Include skills in hidden directories |
Supported Agents
opencode, github-copilot, claude-code, cursor, codex, gemini-cli, antigravity, amp, goose, junie, windsurf, cline, roo, and many more.
Full list: gh skill install --help
Examples
# Install a skill for opencode globally (default)
gh skill install owner/repo skill-name --agent opencode --scope user
# Install a specific version
gh skill install owner/repo skill-name@v1.0.0 --agent opencode --scope user
# Install to project scope (when user asks)
gh skill install owner/repo skill-name --agent opencode --scope project
# Install to a custom directory (when user provides path)
gh skill install owner/repo skill-name --dir /path/to/skills
# Install for a different agent (when user specifies)
gh skill install owner/repo skill-name --agent claude-code --scope user
# Force overwrite
gh skill install owner/repo skill-name --agent opencode --scope user --force
# Install from local directory
gh skill install ./local-repo skill-name --from-local --agent opencode --scope userError Handling
| Error | Action |
gh not found | Tell user to install from https://cli.github.com |
| Not authenticated | Tell user to run gh auth login |
| Repo not found | Verify OWNER/REPO format and repo exists |
| Skill not found in repo | List available skills with gh skill install <repo> interactively, or check repo structure |
| Already installed | Ask user if they want to --force overwrite |
Scripts
| Script | Purpose |
scripts/install.sh | Validate prerequisites and run gh skill install |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

