mine-plugins
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:
python3 "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-skill-open-specifications— standards and spec updatesagent-plugin-analyzer— 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
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26