Agent Skill
2/7/2026create-plugin-from-repo
Clone an OSS repository, analyze its documentation and code, and generate a Claude Code plugin with appropriate skills for that library/framework.
B
benoberkfell
3GitHub Stars
1Views
npx skills add benoberkfell/claude-plugins
SKILL.md
| Name | create-plugin-from-repo |
| Description | Clone an OSS repository, analyze its documentation and code, and generate a Claude Code plugin with appropriate skills for that library/framework. |
name: create-plugin-from-repo description: Clone an OSS repository, analyze its documentation and code, and generate a Claude Code plugin with appropriate skills for that library/framework.
Create Plugin from Repository
Generate a Claude Code plugin by analyzing an open source repository.
Usage
/create-plugin-from-repo <repo-url> [plugin-name]
repo-url: GitHub URL or git clone URL for the repositoryplugin-name: Optional name for the plugin (defaults to repo name)
Process
Step 1: Clone Repository
Clone the repository to a temporary directory:
TEMP_DIR=$(mktemp -d)
git clone --depth 1 <repo-url> "$TEMP_DIR/repo"
cd "$TEMP_DIR/repo"
Step 2: Analyze Repository Structure
Explore the repository to understand its purpose and structure:
-
Read primary documentation:
- README.md (or README.rst, README.txt)
- docs/ directory if present
- Any GETTING_STARTED, QUICKSTART, or TUTORIAL files
-
Identify the technology:
- Check build files (build.gradle, package.json, Cargo.toml, pyproject.toml, etc.)
- Determine the language and ecosystem
- Note any framework dependencies
-
Examine source structure:
- Main source directories
- Example or sample directories
- Test directories (often contain usage patterns)
-
Look for API surface:
- Public APIs, annotations, decorators
- Configuration options
- Extension points
Step 3: Identify Skill Categories
Based on analysis, determine what skills would help users. Common categories:
| Category | When to Create | Examples |
|---|---|---|
| Installation | Library requires setup/configuration | Dependencies, build config, initialization |
| Usage | Library has APIs/patterns to learn | Core APIs, common patterns, best practices |
| Debugging | Library has known issues or complex errors | Error messages, troubleshooting, common mistakes |
| Migration | Library has version upgrades or alternatives | Upgrade guides, migration from other tools |
| Advanced | Library has complex/power-user features | Performance tuning, customization, plugins |
Step 4: Generate Plugin Structure
Create the plugin in the target marketplace:
plugins/<plugin-name>/
├── .claude-plugin/
│ └── plugin.json
├── skills/
│ ├── <plugin-name>-install/
│ │ └── SKILL.md
│ ├── <plugin-name>-usage/
│ │ └── SKILL.md
│ └── <plugin-name>-debugging/
│ └── SKILL.md
└── README.md (optional)
Step 5: Write Skill Content
For each skill, create a SKILL.md with:
- Frontmatter: name and description
- Overview: What the skill helps with
- Key Information: Extracted from docs/code
- Examples: Real examples from the repo
- Common Patterns: Frequently used patterns
- Troubleshooting: Known issues and solutions (for debugging skills)
Skill Writing Guidelines
- Be specific: Include actual code patterns, not generic advice
- Use repo examples: Pull real examples from docs, tests, or samples
- Include versions: Note which versions the information applies to
- Link to sources: Reference official docs where appropriate
- Progressive disclosure: Start simple, add complexity gradually
Step 6: Update Marketplace
Add the plugin entry to .claude-plugin/marketplace.json:
{
"name": "<plugin-name>",
"source": "./plugins/<plugin-name>",
"description": "<description from README>",
"version": "1.0.0"
}
Step 7: Cleanup
Remove the temporary directory:
rm -rf "$TEMP_DIR"
Output
After completion, report:
- Plugin location
- Skills created with brief descriptions
- Any manual steps needed (e.g., adding to marketplace.json)
- Suggestions for additional skills that could be added later
Example
/create-plugin-from-repo https://github.com/square/retrofit retrofit
This would:
- Clone the Retrofit repository
- Analyze its documentation and source
- Create a
plugins/retrofit/directory - Generate skills like
retrofit-install,retrofit-usage,retrofit-debugging - Update marketplace.json
Skills Info
Original Name:create-plugin-from-repoAuthor:benoberkfell
Download