plugins/agent-plugin-analyzer/skills/mine-plugins/SKILL.md
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".
npx skillsauth add richfrem/agent-plugins-skills mine-pluginsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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).
Run the full analysis pipeline on a plugin or collection of plugins. This is the one-shot command for the virtuous cycle.
analyze-plugin skillsynthesize-learnings skill/mine-plugins <path-to-plugin-or-directory>
# 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
Check if $ARGUMENTS points to:
.claude-plugin/plugin.json or skills/ directory) → Single Plugin ModeSKILL.md) → Single Skill ModeFor 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.
For each plugin, execute the full 6-phase analyze-plugin framework:
If analyzing multiple plugins, identify:
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 analyzeroracle-legacy-system-analysis) — transferable patterns for legacy code analysisPresent the full analysis as a structured markdown artifact. Include:
tools
Ingests repository files into the ChromaDB vector store. Builds or updates the vector index from a manifest or directory scan using ingest.py. Use when new files need to be indexed or the vector store is out of date. <example> user: "Index these new plugin files into the vector database" assistant: "I'll use vector-db-ingest to add them to the vector store." </example> <example> user: "The vector store is missing recent files -- update it" assistant: "I'll use vector-db-ingest to re-index the changes." </example>
data-ai
Removes stale and orphaned chunks from the ChromaDB vector store for files that have been deleted or renamed. Use after files are removed or moved to keep the vector index in sync with the filesystem. <example> user: "Clean up the vector store after I deleted some files" assistant: "I'll use vector-db-cleanup to remove orphaned chunks." </example> <example> user: "The vector database has chunks for files that no longer exist" assistant: "I'll run vector-db-cleanup to prune them." </example>
testing
Audit Vector DB coverage -- compares the live filesystem manifest against the ChromaDB index to identify coverage gaps.
development
3-Phase Knowledge Search strategy for the RLM Factory ecosystem. Auto-invoked when tasks involve finding code, documentation, or architecture context in the repository. Enforces the optimal search order: RLM Summary Scan (O(1)) -> Vector DB Semantic Search -> Grep/Exact Match. Never skip phases.