skill-miner

skill-miner is a skill for Claude Code, Codex from hqhq1025/skill-optimizer. It costs 32 tokens per session (559 once invoked), scanned A, original, MIT.

A method for finding repeated workflows in coding-agent sessions and turning them into possible Agent Skills. An Agent Skill is a reusable set of instructions for handling a particular kind of task.

In plain words
What is it for?
Use it to review session history, memories, project notes, and repeated scripts. It helps group similar tasks, remove one-off cases, and draft candidates for new skills.
Why use it?
Useful procedures can remain scattered across old chats, scripts, and notes. Mining those records helps identify patterns based on real work instead of guessing what should be reusable.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions AGENTS.md; mentions Codex.

Part of the skill-optimizer plugin — 3 skills shipped together

Good fit Use it to review session history, memories, project notes, and repeated scripts. It helps group similar tasks, remove one-off cases, and draft candidates for new skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hqhq1025/skill-optimizer/skill-miner
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.

Any agent
npx skills add hqhq1025/skill-optimizer --skill skill-miner
Clone the repo
git clone --depth 1 https://github.com/hqhq1025/skill-optimizer

Made for: Claude Code, Codex.

Or install skill-optimizer, the plugin that ships this one along with the rest of its 3 skills.

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 skill-miner

README.md
[![agentmods](https://agentmods.dev/badge/skills/hqhq1025/skill-optimizer/skill-miner/github.svg)](https://agentmods.dev/skills/hqhq1025/skill-optimizer/skill-miner)
Your own site
<a href="https://agentmods.dev/skills/hqhq1025/skill-optimizer/skill-miner"><img src="https://agentmods.dev/badge/skills/hqhq1025/skill-optimizer/skill-miner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-miner

Your own site · 80×15
<a href="https://agentmods.dev/skills/hqhq1025/skill-optimizer/skill-miner"><img src="https://agentmods.dev/badge/skills/hqhq1025/skill-optimizer/skill-miner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00032 $0.00559
Opus 5.5 $0.00013 $0.00224
Sonnet 5.5 $0.00006 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 2mo ago against content hash 6aec3459dffc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-miner 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_sessions.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.

skills/skill-miner/SKILL.md · 46 lines

How it starts

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

Skill Miner

Overview

Mine real agent usage for new skill opportunities. The goal is to find repeated workflows, extract the reusable technique, and turn strong candidates into draft skills with evidence.

When To Use

  • A user wants to scan past coding-agent sessions for repeated workflows.
  • The user suspects they keep asking agents to do similar tasks manually.
  • A team wants a backlog of candidate skills based on actual work rather than brainstorming.
  • Existing memories, session logs, or project notes contain recurring procedures that have not been packaged.

Do not use to tune an existing skill; use skill-personalizer. Do not use to publish a private skill publicly; use skill-generalizer.

Workflow

  1. Locate real evidence: session JSONL, memory summaries, repo notes, repeated scripts, and recent project folders.
  2. Run scripts/scan_sessions.py for a first-pass sanitized cluster report when local session files or exported transcripts are available.
  3. Cluster repeated work by intent, trigger phrasing, tools used, files touched, and verification pattern.
  4. Filter out one-off tasks, ordinary coding knowledge, and project-specific instructions better suited for AGENTS.md.
  5. Score candidates by recurrence, friction, risk, portability, and future value.
  6. For each strong candidate, draft a concise skill name, trigger description, workflow outline, bundled-resource needs, and validation prompts.
  7. Recommend whether each candidate should stay personal, become a public skill via skill-generalizer, or be skipped.
  8. If the user asks to proceed, create the selected skill folders and verify frontmatter/layout.

Evidence Rules

  • Quote or summarize enough source evidence to justify each candidate.
  • Do not expose sensitive transcript content unless the user explicitly asks for raw evidence.
  • Avoid turning every repeated task into a skill; prefer workflows where guidance changes future behavior.
  • Treat broad intent clusters as navigation hints, not skill drafts.
  • Check sampled positives and near misses before trusting a regex-based workflow candidate.
  • If session access is incomplete, label findings as partial and list what was scanned.

Read the full file on GitHub · 46 lines

Files

What ships with it

4 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. 2mo ago First seen · 46 lines · 32 tokens per session scan A 6aec3459dffc

Subscribe to this mod's changes

skill-miner is a skill published in the GitHub repository hqhq1025/skill-optimizer (190 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 559 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

skill-miner compared with skills from other repositories

skill-miner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-minerhqhq1025/skill-optimizerSkill1905mo agoMITA32Claude Code, Codex
forward-implementation-firstVuk97/forward-implementation-firstSkill1842mo agoMITC94Claude Code, Codex
pingpong0xAaronx0/pingpongSkill64mo agoMITA121Claude Code, Codex
master-instructional-designnarosemena/master-instructional-designSkill246mo agononeA230Claude Code, Codex
vox-directorAlisa0808/vox-directorSkill2.6k1mo agoMITA236Claude Code, Codex
higgsfield-troubleshootOSideMedia/higgsfield-ai-prompt-skillSkill86313d agoMITA39Claude Code
akg-agentsXiaoLuoLYG/GODSkill1.3k14d agoApache-2.0A75Claude Code, Codex