SkillAtlasSkill 详情

skill-miner

Three Agent Skills for turning coding-agent work into better SKILL.md files:

审核状态:已审核Quality 80Security 100

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年9月12日

Skill Optimizer

中文版

Three Agent Skills for turning coding-agent work into better SKILL.md files:

  • skill-miner — mine coding-agent history, archives, memories, and repeated work to surface skill-worthy workflows with evidence.
  • skill-personalizer — audit and adapt newly created, downloaded, forked, or community skills to one user's own tools, habits, directories, and session history.
  • skill-generalizer — turn local, private, personal skills into publishable skills for GitHub, marketplaces, teams, or public sharing.

Current release: v2.0.0. This is a major redesign from the original single-skill optimizer.

Project site: https://hqhq1025.github.io/skill-optimizer/

The split is intentional. Generating, personalizing, and publishing skills are different jobs:

GoalSkillOptimization Direction
Mine repeated workflowsskill-minerScan real agent usage, cluster repeated workflows, and draft evidence-backed candidate skills.
Fit inwardskill-personalizerPreserve the original optimizer's audit checks, then add local defaults, user phrasing, preferred tools, verification habits, and workflow shortcuts.
Publish outwardskill-generalizerRemove private context, generalize examples, make install and README claims portable.

See Research Background for related agent-skill ecosystems, comparable projects, and papers that motivate session mining, skill libraries, trigger auditing, progressive disclosure, and lifecycle governance.

Installation

Copy the command below into your agent's chat:

Claude Code

Install the skills from https://github.com/hqhq1025/skill-optimizer

Codex

Install the skills from https://github.com/hqhq1025/skill-optimizer into ~/.codex/skills/

Other Agent Skills-compatible agents

Install the skills from https://github.com/hqhq1025/skill-optimizer into ~/.agents/skills/

Manual install:

git clone https://github.com/hqhq1025/skill-optimizer.git /tmp/skill-optimizer
mkdir -p ~/.agents/skills
cp -r /tmp/skill-optimizer/skills/skill-miner ~/.agents/skills/
cp -r /tmp/skill-optimizer/skills/skill-personalizer ~/.agents/skills/
cp -r /tmp/skill-optimizer/skills/skill-generalizer ~/.agents/skills/
rm -rf /tmp/skill-optimizer

For Codex-only installs, use ~/.codex/skills/:

git clone https://github.com/hqhq1025/skill-optimizer.git /tmp/skill-optimizer
mkdir -p ~/.codex/skills
cp -r /tmp/skill-optimizer/skills/skill-generalizer ~/.codex/skills/
cp -r /tmp/skill-optimizer/skills/skill-miner ~/.codex/skills/
cp -r /tmp/skill-optimizer/skills/skill-personalizer ~/.codex/skills/
rm -rf /tmp/skill-optimizer

For Claude Code-only installs, use ~/.claude/skills/.

Platform Support

AgentSupport levelRecommended path
CodexNative Agent Skills, plus optional plugin metadata.~/.codex/skills/ or .agents/skills/
Claude CodeNative skills in personal, project, and plugin scopes.~/.claude/skills/ or .claude/skills/
CursorNative Agent Skills and rules/commands; skills are discoverable by Agent..agents/skills/, .cursor/skills/, or global skills
OpenCodeNative skill tool and repo/home skill discovery..agents/skills/, .opencode/skills/, or ~/.config/opencode/skills/
Gemini CLI / Google agentsAgent Skills open format is documented by Google; GEMINI.md remains the always-on context mechanism..agents/skills/ or installer-managed skills

The safest public layout is skills/<name>/SKILL.md in the repo plus install instructions that copy into .agents/skills/ or the target agent's native skill directory.

Usage

Ask for the direction you want:

Mine my coding-agent history and find repeated workflows that should become skills.
Audit and tune my installed skills; tell me which ones are undertriggering, too noisy, or too generic.
Turn this local skill into a public GitHub-ready skill.
I downloaded this skill. Tune it to my local workflow and usage habits.
This skill does not trigger when I say things naturally. Personalize it for me.

What Each Skill Does

skill-miner

  • coding-agent session history, memory summaries, repo notes, repeated scripts, and project folders
  • recurring user intents, shorthand, tool chains, artifacts, and verification patterns
  • candidates that are repeated and non-obvious enough to become skills
  • whether a candidate should stay personal, be generalized for publication, or be skipped
  • includes scripts/scan_sessions.py for a deterministic first-pass scan of Codex, Claude Code, Gemini/Antigravity task files, and exported transcripts from other agents
  • includes archived Codex sessions and rollout summaries by default, with flags to disable archive/summary sources

Example:

python3 skills/skill-miner/scripts/scan_sessions.py --days 30 --limit 300 --min-count 3
python3 skills/skill-miner/scripts/scan_sessions.py --export ~/Downloads/cursor-chat-export.json
python3 skills/skill-miner/scripts/scan_sessions.py --patterns ./my-patterns.json
python3 skills/skill-miner/scripts/scan_sessions.py --no-include-archives --no-include-summaries

skill-generalizer

  • private paths, hosts, credentials, account names, transcript quotes, and internal repo facts
  • public portability of commands, examples, README claims, and install instructions
  • frontmatter that describes when to use the skill rather than the workflow
  • packaging structure for public distribution

skill-personalizer

  • local installed copies and nearby project instructions
  • real user phrasing and recurring task patterns
  • preferred CLIs, MCP tools, paths, aliases, and verification commands
  • undertrigger, overtrigger, and unnecessary-question friction
  • original optimizer-style audit checks: trigger fit, user reaction, workflow completion, static quality, conflicts, environment consistency, token economics, and P0/P1/P2 fixes

Compatibility

Works with agents that support the Agent Skills folder convention:

  • Claude Code
  • Codex
  • Cursor
  • OpenCode
  • Gemini CLI

Research Background

This project is informed by Agent Skills ecosystem work and LLM-agent research on externalized memory, skill libraries, retrieval/routing, and long-context behavior. See docs/research-background.md.

AI And Search Visibility

License

MIT

Agent / MCP / Skill 创作开发与工程

低风险

  • 来源需自行核对维护者身份。
  • 未检测到明显脚本安装指令。
  • 未检测到明显外部权限要求。
  • 未检测到高风险命令。
  • 扫描发现:0 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/hqhq1025/skill-optimizer.git
  3. 将 "skills/skill-miner" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/hqhq1025/skill-optimizer.git
  3. 将 "skills/skill-miner" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/hqhq1025/skill-optimizer.git
  3. 将 "skills/skill-miner" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/hqhq1025/skill-optimizer.git
  3. 将 "skills/skill-miner" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/hqhq1025/skill-optimizer.git
  3. 将 "skills/skill-miner" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: skill-miner
description: Use when mining coding-agent session history, archived transcripts, memories, or repeated local work to discover recurring workflows that should become new Agent Skills.

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.

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.

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!