mine-plugins

mine-plugins is a skill for Claude Code, Codex from richfrem/agent-plugins-skills. It costs 82 tokens per session (852 once invoked), scanned A, original, MIT.

A complete analysis workflow for a plugin or collection of plugins. It inventories files, analyzes structure and content, extracts patterns, creates recommendations, and produces a report.

In plain words
What is it for?
Use it to analyze one plugin, a directory of plugins, or an entire collection and generate a structured findings report.
Why use it?
It combines several review steps into one process, so large plugin collections can be examined consistently.

Skill for Claude CodeCodex

Part of the agent-scaffolders plugin — 33 skills, 2 plugins shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/mine-plugins
Any agent
npx skills add richfrem/agent-plugins-skills --skill mine-plugins
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code, Codex.

Or install agent-scaffolders, the plugin that ships this one along with the rest of its 33 skills, 2 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mine-plugins

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/mine-plugins.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/mine-plugins)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/mine-plugins"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/mine-plugins.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00082 $0.00852
Opus 5 $0.00041 $0.00426
Sonnet 5 $0.00016 $0.00170
Haiku 4.5 $0.00008 $0.00085

Measured yesterday against content hash dba0a99f85a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mine-plugins scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/inventory_plugin.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-scaffolders/skills/mine-plugins/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Inventory — Enumerate and classify every file in the target
  2. Analyze — Deep structural and content analysis using the analyze-plugin skill
  3. Extract — Identify all design patterns (known and novel)
  4. Synthesize — Generate improvement recommendations using the synthesize-learnings skill
  5. 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.json or skills/ 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-security only if you want to suppress the security scan output.

If the script fails, perform manual inventory per the analyze-plugin skill Phase 1.

Read the full file on GitHub · 116 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 116 lines · 82 tokens per session scan A dba0a99f85a0

Subscribe to this mod's changes

mine-plugins is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 852 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.