/agents:harvestfrom AI Agents and Models
Clone and install Claude Code skills from GitHub repositories. Use when the user provides a GitHub URL containing skills, wants to import skills from a repository, or asks to "harvest" or "install" skills from GitHub. Automatically detects skills, handles name collisions, and copies them to ~/.claude/skills directory.
Ships in AI Agents and Models. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The harvest skill enables Claude to automatically discover, clone, and install skills from GitHub repositories into the local Claude Code skills directory. It streamlines the process of sharing and distributing skills across teams and communities.
Use this skill when the user:
When the user provides a GitHub URL, validate and normalize it. The skill supports multiple URL formats:
https://github.com/owner/repo[email protected]:owner/repo.gitowner/repoRun the harvest script without collision resolutions to discover skills and detect any name collisions:
npx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" <github-url>
The script will:
gh CLI (falls back to git clone)SKILL.md filesExample output when collisions exist:
🌾 Starting harvest from: https://github.com/user/skills-repo
📥 Cloning repository to temporary directory...
✅ Repository cloned successfully
✅ Found 3 skill(s):
- pdf-editor
- smart-commit
- code-reviewer
⚠️ Name collisions detected:
- code-reviewer
📝 To resolve collisions, provide JSON mapping:
Example: {"originalName": "new-name"}
If name collisions are detected, use the AskUserQuestion tool to gather rename preferences from the user with structured options:
For a single collision:
Use AskUserQuestion with multiple choice options:
{
"questions": [{
"question": "The skill 'skill-creator' already exists locally. How would you like to handle this collision?",
"header": "Collision",
"multiSelect": false,
"options": [
{
"label": "Skip it (keep my local version)",
"description": "Don't install the skill-creator from the repository, keep your existing one"
},
{
"label": "Rename to '[skillname]-official'",
"description": "Install the new one with a renamed version (e.g., 'skill-creator-official')"
},
{
"label": "Replace my local version",
"description": "Overwrite your existing skill with the one from the repository"
}
]
}]
}
For multiple collisions:
For each colliding skill, ask individually using the same structured approach, or present a combined question listing all collisions and asking the user to choose a strategy (skip all, rename all with suffix, replace all, or handle individually).
Once collision resolutions are obtained (or if there are no collisions), run the harvest script with the resolution mapping:
npx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" <github-url> '{"old-name": "new-name"}'
Example with collision resolution:
npx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" user/skills-repo '{"code-reviewer": "code-reviewer-pro"}'
Example output:
🌾 Starting harvest from: https://github.com/user/skills-repo
📥 Cloning repository to temporary directory...
✅ Repository cloned successfully
✅ Found 3 skill(s):
- pdf-editor
- smart-commit
- code-reviewer
📝 Renaming: code-reviewer → code-reviewer-pro
📦 Installing: pdf-editor
📦 Installing: smart-commit
📦 Installing: code-reviewer → code-reviewer-pro
✅ Successfully harvested 3 skill(s) to /Users/username/.claude/skills
🧹 Cleaning up temporary files...
After successful harvest, inform the user of the newly installed skills and their locations. The skills are immediately available for use.
The harvest script is located at:
${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts
The TypeScript script (harvest.ts) provides:
gh repo clone with fallback to git clonegh) installed and authenticated (optional, falls back to git)~/.claude/skills (set CLAUDE_SKILLS_DIR to install somewhere else)Common error scenarios:
Invalid URL:
❌ Error: Invalid GitHub URL format: not-a-url
Supported formats:
- https://github.com/owner/repo
- [email protected]:owner/repo.git
- owner/repo
No skills found:
❌ No skills found in repository (no SKILL.md files detected)
Clone failure:
❌ Error: Failed to clone repository: [error details]
User: "Can you harvest the skills from https://github.com/company/shared-skills?"
Claude:
npx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" https://github.com/company/shared-skillsUser: "Install skills from user/awesome-skills repo"
Claude:
npx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" user/awesome-skillsnpx ts-node "${CLAUDE_PLUGIN_ROOT}/skills/harvest/scripts/harvest.ts" user/awesome-skills '{"pdf-editor": "pdf-editor-v2", "smart-commit": "smart-commit-advanced"}'User: "Harvest anthropic/example-skills"
Claude:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mattmakes/skill-marketplace --plugin agents24 skills in this plugin
/agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack./autoresearch-agentAutonomous experiment loop that optimizes any file by a measurable metric. Inspired by Karpathy's autoresearch. The agent edits a target file, runs a fixed evaluation, keeps improvements (git commit), discards failures (git reset), and loops indefinitely. Use when: user wants to optimize code speed, reduce bundle/image size, improve test pass rate, optimize prompts, improve content quality (headlines, copy, CTR), or run any measurable improvement loop. Requires: a target file, an evaluation command that outputs a metric, and a git repo./book-to-skillConverts books, documentation folders, and source collections (PDF, EPUB, DOCX, HTML, Markdown, RST, AsciiDoc, RTF, MOBI/AZW) into structured agent skills — extracting named frameworks, principles, techniques, and anti-patterns into a master SKILL.md plus on-demand chapter files, a glossary, a patterns file, and a decision cheatsheet. Use when the user wants to study a document with an agent, apply an author's frameworks while working, turn internal docs or standards into a reusable knowledge base, or package a compiled book skill as a Claude Code plugin./checkpoint-promotionGate fine-tuned checkpoints with drift budgets, paired comparison, and forgetting checks before promotion. Use after a training run produces a checkpoint, when deciding whether a tuned model ships, or when a promoted model needs re-gating against updated goldens./cli-for-agentsDesigns or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors, idempotency, dry-run, and predictable structure. Use when building a CLI, adding commands, writing --help, or when the user mentions agents, terminals, or automation-friendly CLIs./dataset-curationPrepare, format, and validate datasets for supervised fine-tuning and preference training. Use when converting raw data into training format, applying chat templates, configuring sequence packing, generating synthetic training data, or writing a dataset card before a run.