复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
Three Agent Skills for turning coding-agent work into better SKILL.md files:
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
Three Agent Skills for turning coding-agent work into better SKILL.md files:
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:
| Goal | Skill | Optimization Direction |
|---|---|---|
| Mine repeated workflows | skill-miner | Scan real agent usage, cluster repeated workflows, and draft evidence-backed candidate skills. |
| Fit inward | skill-personalizer | Preserve the original optimizer's audit checks, then add local defaults, user phrasing, preferred tools, verification habits, and workflow shortcuts. |
| Publish outward | skill-generalizer | Remove 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.
Copy the command below into your agent's chat:
Install the skills from https://github.com/hqhq1025/skill-optimizer
Install the skills from https://github.com/hqhq1025/skill-optimizer into ~/.codex/skills/
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/.
| Agent | Support level | Recommended path |
|---|---|---|
| Codex | Native Agent Skills, plus optional plugin metadata. | ~/.codex/skills/ or .agents/skills/ |
| Claude Code | Native skills in personal, project, and plugin scopes. | ~/.claude/skills/ or .claude/skills/ |
| Cursor | Native Agent Skills and rules/commands; skills are discoverable by Agent. | .agents/skills/, .cursor/skills/, or global skills |
| OpenCode | Native skill tool and repo/home skill discovery. | .agents/skills/, .opencode/skills/, or ~/.config/opencode/skills/ |
| Gemini CLI / Google agents | Agent 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.
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.
scripts/scan_sessions.py for a deterministic first-pass scan of Codex, Claude Code, Gemini/Antigravity task files, and exported transcripts from other agentsExample:
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
Works with agents that support the Agent Skills folder convention:
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.
MIT
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.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.
Do not use to tune an existing skill; use skill-personalizer. Do not use to publish a private skill publicly; use skill-generalizer.
scripts/scan_sessions.py for a first-pass sanitized cluster report when local session files or exported transcripts are available.AGENTS.md.skill-generalizer, or be skipped.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)
暂无评论,成为第一个评论者吧!