Mine plugins
Skill richfrem/agent-plugins-skills/plugins/agent-scaffolders/skills/mine-plugins
Trigger with "mine plugins", "analyze plugin collection", "run the full analysis pipeline", "inventory and analyze all plugins", "mine patterns from this directory", or when you want to run the complete virtuous cycle: inventory, analyze, extract patterns, synthesize recommendations, and deliver a structured report. Use this even if the user just says "analyze everything in this folder".From its SKILL.md
npx -y skills add richfrem/agent-plugins-skills --skill mine-pluginsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.7 KB, 721 tokens by cl100k_base, as published. Nobody here has run it
Dependencies
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ./requirements.txt for the dependency lockfile (currently empty — standard library only).
Mine Plugins
Run the full analysis pipeline on a plugin or collection of plugins. This is the one-shot command for the virtuous cycle.
What This Command Does
- Inventory — Enumerate and classify every file in the target
- Analyze — Deep structural and content analysis using the
analyze-pluginskill - Extract — Identify all design patterns (known and novel)
- Synthesize — Generate improvement recommendations using the
synthesize-learningsskill - Report — Produce a comprehensive analysis report
Usage
/mine-plugins <path-to-plugin-or-directory>
Examples
# Analyze a single plugin
/mine-plugins claude-knowledgework-plugins/sales
# Analyze an entire collection
/mine-plugins claude-knowledgework-plugins/
# Analyze our own plugins
/mine-plugins plugins/legacy\ system
Execution Steps
Step 1: Determine Scope
Check if $ARGUMENTS points to:
- A single plugin (contains
.claude-plugin/plugin.jsonorskills/directory) → Single Plugin Mode - A directory of plugins (contains multiple subdirectories with plugins) → Comparative Mode
- A single skill (contains
SKILL.md) → Single Skill Mode
Step 2: Run Inventory
For each plugin in scope, run:
python "scripts/inventory_plugin.py" --path "$ARGUMENTS" --format json
Security scanning is enabled by default. The inventory script runs credential detection, network call detection, and environment variable access checks on every script file. Pass
--no-securityonly if you want to suppress the security scan output.
If the script fails, perform manual inventory per the analyze-plugin skill Phase 1.
Step 3: Deep Analysis
For each plugin, execute the full 6-phase analyze-plugin framework:
- Inventory (done)
- Structure Analysis
- Content Analysis — read every file completely, do not skip or summarize prematurely
- Pattern Extraction
- Anti-Pattern Detection
- Synthesis
Step 4: Cross-Plugin Synthesis
If analyzing multiple plugins, identify:
- Universal patterns (in all plugins)
- Common patterns (in most)
- Unique innovations (in one — with attribution)
- Consistency gaps
Step 5: Generate Improvement Recommendations
Invoke the synthesize-learnings skill to produce targeted recommendations for:
agent-scaffolders— template and scaffold improvementsagent-scaffolders— standards and spec updatesagent-scaffolders— self-improvement of this analyzer- Domain plugins (e.g.,
oracle-legacy-system-analysis) — transferable patterns for legacy code analysis
Step 6: Deliver Report
Present the full analysis as a structured markdown artifact. Include:
- Executive summary
- Per-plugin analysis summaries
- Pattern catalog additions
- Prioritized improvement recommendations
- Next steps
What ships with it: 5 files
905 B alongside SKILL.md, 1 of them executable
evals/
- evals.json659 B
- results.tsv156 B
scripts/
- inventory_plugin.pyruns36 B
- plugin.json32 B
- requirements.txt22 B