skill-miner
About
The skill-miner analyzes historical agent session data, transcripts, and local work logs to identify repeated workflows that can be automated. It extracts reusable techniques from this evidence to generate draft candidate skills, helping developers build a skill backlog based on actual usage patterns. Use it when you suspect manual task repetition or want to systematically discover automation opportunities from past work.
Quick Install
Claude Code
Recommendednpx skills add hqhq1025/skill-optimizer -a claude-code/plugin add https://github.com/hqhq1025/skill-optimizergit clone https://github.com/hqhq1025/skill-optimizer.git ~/.claude/skills/skill-minerCopy and paste this command in Claude Code to install this skill
Documentation
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
- Locate real evidence: session JSONL, memory summaries, repo notes, repeated scripts, and recent project folders.
- Run
scripts/scan_sessions.pyfor a first-pass sanitized cluster report when local session files or exported transcripts are available. - Cluster repeated work by intent, trigger phrasing, tools used, files touched, and verification pattern.
- Filter out one-off tasks, ordinary coding knowledge, and project-specific instructions better suited for
AGENTS.md. - Score candidates by recurrence, friction, risk, portability, and future value.
- For each strong candidate, draft a concise skill name, trigger description, workflow outline, bundled-resource needs, and validation prompts.
- Recommend whether each candidate should stay personal, become a public skill via
skill-generalizer, or be skipped. - 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.
References
Read discovery-rubric.md before doing a full session-history scan or creating candidate skill drafts.
Use scripts/scan_sessions.py --help for the deterministic scanner. It supports native Codex/Claude/Gemini-style local evidence, --export inputs for other agents, and --patterns for personalized workflow definitions. Treat its output as evidence for review, not as an automatic decision to create skills.
GitHub Repository
Related Skills
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
polymarket
MetaThis skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.
creating-opencode-plugins
MetaThis skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
