使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/jpeetz/agent-skills --skill skill-miner开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
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. Use Hermes tools like
search_filesto find session logs andsession_searchto query past conversation context for recurring patterns. - 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 (see
skill-lifecycle-foundryfor generalization), 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.
Prerequisites
- Access to agent session history or archives
- For automated scanning: a recent Hermes, Claude Code, or Codex session archive
- Familiarity with the skill-lifecycle-foundry skill for generalization and publication workflows
Pitfalls
- Session logs can contain sensitive data. Always sanitize before sharing mining results.
- One repeated task does not make a skill — look for 3+ occurrences before drafting.
- Mining without domain context can produce overly generic skill candidates.
- The automated scanner (
scan_sessions.py) is a first-pass tool. Always review its output manually before creating skills.
Verification
- Run
search_fileson session archives with recurring action patterns. - Verify that extracted candidates show 3+ repeat instances.
- Cross-check candidate against the existing
skill-lifecycle-foundryto confirm it's a genuine gap. - Draft a test workload and verify the agent follows the new skill correctly.
References
See skill-lifecycle-foundry for the full skill lifecycle: personalize, generalize, and publish skills from this miner's output.

