Skill Optimizer
Three complementary jobs for turning coding-agent work into better SKILL.md
files. Pick the direction that matches the request:
| Goal |
Use this mode |
Direction |
| Find repeated workflows worth packaging |
miner |
scan real usage -> draft candidates |
| Make a skill fit YOUR setup |
personalizer |
tune inward (triggers, tools, paths) |
| Make a skill safe to SHARE |
generalizer |
strip private context -> publishable |
When to use
- "This skill never triggers when I phrase it naturally" -> personalizer
- "Audit my installed skills; which under/over-trigger or are too generic?" -> personalizer
- "I downloaded/forked this skill, tune it to my machine" -> personalizer
- "Turn this local/private skill into a public GitHub-ready skill" -> generalizer
- "Mine my agent history for repeated work that should become skills" -> miner
Do NOT use for ordinary coding help, or for project-specific instructions that
belong in AGENTS.md/CLAUDE.md rather than a reusable skill.
skill-miner — discover candidates
- Locate real evidence: session JSONL, memory summaries, repo notes, repeated
scripts, recent project folders.
- Run the deterministic first-pass scanner (sanitized cluster report):
python3 scripts/scan_sessions.py --days 30 --limit 300 --min-count 3
--export <file.json> for non-native agents, --patterns <file.json> for
custom workflow definitions, --help for all flags.
- Treat its output as evidence for review, NOT an auto-decision to create skills.
- Cluster by intent, trigger phrasing, tools used, files touched, verification pattern.
- Filter out one-offs, ordinary coding knowledge, and project-only instructions.
- Score candidates: recurrence, friction, risk, portability, future value.
- For strong candidates draft: name, trigger description, workflow outline,
bundled-resource needs, validation prompts.
- Recommend: keep personal / generalize for publication / skip.
- Only create skill folders if the user asks; then verify frontmatter + layout.
Evidence rules: quote enough to justify each candidate; never expose sensitive
transcript content unless asked; check sampled positives AND near-misses before
trusting a regex match; label findings partial if session access is incomplete.
skill-personalizer — tune inward
- Inspect target skill, installed copies, local memories, real session evidence.
- Identify the user's recurring phrasing, autonomy level, tools, dirs, verify habits.
- Compare trigger conditions against real requests that SHOULD and SHOULD NOT load it.
- Edit only the target skill + the bundled resources needed.
- Add concrete local defaults, preferred commands, safety bounds, verification steps.
- Preserve useful upstream behavior; document intentional local divergence.
- Validate with realistic prompts + a frontmatter/layout check.
Audit dimensions (the original optimizer's checks): trigger fit, user reaction,
workflow completion, static quality, conflicts, environment consistency, token
economics, and P0/P1/P2 fix priority.
Rules: personal details only if they improve future execution; don't add brittle
fallbacks that mask broken setup; keep trigger descriptions broad enough to catch
natural phrasing; don't alter upstream attribution/license on third-party skills.
skill-generalizer — publish outward
- Inspect the source skill and nearby repo files before judging.
- If quality is unclear, run the personalizer audit first.
- Separate the reusable capability from personal implementation details.
- Redact/replace private names, paths, hosts, credentials, account IDs,
transcripts, one-off project facts.
- Rewrite around general triggers, portable workflows, bounded assumptions.
- Keep
SKILL.md concise; move long rubrics/examples/scripts into bundled resources.
- Check target-agent compatibility before writing install/support claims.
- Produce packaging + honest promo copy only when requested.
- Verify frontmatter, layout, install path, and one realistic usage prompt.
Rules: description says WHEN to use, not what the workflow is; public examples
must be generic or explicitly sanitized; README/marketplace claims must match
files that actually exist; prefer path placeholders over the author's home dir;
turn essential personal details into configurable variables with setup guidance.
Reference material (in the source repo)
Each mode ships rubrics under skills/<mode>/references/ and agent helpers under
skills/<mode>/agents/. Notable files to pull when doing a deep pass:
skills/skill-miner/references/discovery-rubric.md + scripts/scan_sessions.py
skills/skill-personalizer/references/audit-rubric.md, personalization-rubric.md
skills/skill-generalizer/references/publication-rubric.md, platform-compatibility.md
Gotchas
- The repo has NO root SKILL.md — it is three skills under
skills/<name>/.
Frontmatter description is what drives auto-detection; keep it trigger-rich.
- Don't mistake a one-off task for a skill; package only workflows where guidance
changes future behavior.
- Personalizer = inward (private OK); generalizer = outward (private removed).
Don't mix the two in one pass.
1---2name: skill-optimizer3description: "Use when creating, auditing, tuning, personalizing, mining, generalizing, or publishing Agent Skills / SKILL.md files — when a skill won't trigger, over-triggers, is too generic/noisy, needs to fit your tools and paths, needs private context stripped for public release, or when you want to mine coding-agent history for repeated workflows worth turning into skills."4version: 1.0.05license: MIT6tags: [skills, skill-md, agent-skills, authoring, trigger-tuning, personalization, publishing, session-mining, claude-code, codex]7source: https://github.com/hqhq1025/skill-optimizer8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/skill-optimizer11---1213# Skill Optimizer1415Three complementary jobs for turning coding-agent work into better `SKILL.md`16files. Pick the direction that matches the request:1718| Goal | Use this mode | Direction |19| --- | --- | --- |20| Find repeated workflows worth packaging | **miner** | scan real usage -> draft candidates |21| Make a skill fit YOUR setup | **personalizer** | tune inward (triggers, tools, paths) |22| Make a skill safe to SHARE | **generalizer** | strip private context -> publishable |2324## When to use2526- "This skill never triggers when I phrase it naturally" -> personalizer27- "Audit my installed skills; which under/over-trigger or are too generic?" -> personalizer28- "I downloaded/forked this skill, tune it to my machine" -> personalizer29- "Turn this local/private skill into a public GitHub-ready skill" -> generalizer30- "Mine my agent history for repeated work that should become skills" -> miner3132Do NOT use for ordinary coding help, or for project-specific instructions that33belong in `AGENTS.md`/`CLAUDE.md` rather than a reusable skill.3435## skill-miner — discover candidates36371. Locate real evidence: session JSONL, memory summaries, repo notes, repeated38 scripts, recent project folders.392. Run the deterministic first-pass scanner (sanitized cluster report):40 `python3 scripts/scan_sessions.py --days 30 --limit 300 --min-count 3`41 - `--export <file.json>` for non-native agents, `--patterns <file.json>` for42 custom workflow definitions, `--help` for all flags.43 - Treat its output as evidence for review, NOT an auto-decision to create skills.443. Cluster by intent, trigger phrasing, tools used, files touched, verification pattern.454. Filter out one-offs, ordinary coding knowledge, and project-only instructions.465. Score candidates: recurrence, friction, risk, portability, future value.476. For strong candidates draft: name, trigger description, workflow outline,48 bundled-resource needs, validation prompts.497. Recommend: keep personal / generalize for publication / skip.508. Only create skill folders if the user asks; then verify frontmatter + layout.5152Evidence rules: quote enough to justify each candidate; never expose sensitive53transcript content unless asked; check sampled positives AND near-misses before54trusting a regex match; label findings partial if session access is incomplete.5556## skill-personalizer — tune inward57581. Inspect target skill, installed copies, local memories, real session evidence.592. Identify the user's recurring phrasing, autonomy level, tools, dirs, verify habits.603. Compare trigger conditions against real requests that SHOULD and SHOULD NOT load it.614. Edit only the target skill + the bundled resources needed.625. Add concrete local defaults, preferred commands, safety bounds, verification steps.636. Preserve useful upstream behavior; document intentional local divergence.647. Validate with realistic prompts + a frontmatter/layout check.6566Audit dimensions (the original optimizer's checks): trigger fit, user reaction,67workflow completion, static quality, conflicts, environment consistency, token68economics, and P0/P1/P2 fix priority.6970Rules: personal details only if they improve future execution; don't add brittle71fallbacks that mask broken setup; keep trigger descriptions broad enough to catch72natural phrasing; don't alter upstream attribution/license on third-party skills.7374## skill-generalizer — publish outward75761. Inspect the source skill and nearby repo files before judging.772. If quality is unclear, run the personalizer audit first.783. Separate the reusable capability from personal implementation details.794. Redact/replace private names, paths, hosts, credentials, account IDs,80 transcripts, one-off project facts.815. Rewrite around general triggers, portable workflows, bounded assumptions.826. Keep `SKILL.md` concise; move long rubrics/examples/scripts into bundled resources.837. Check target-agent compatibility before writing install/support claims.848. Produce packaging + honest promo copy only when requested.859. Verify frontmatter, layout, install path, and one realistic usage prompt.8687Rules: `description` says WHEN to use, not what the workflow is; public examples88must be generic or explicitly sanitized; README/marketplace claims must match89files that actually exist; prefer path placeholders over the author's home dir;90turn essential personal details into configurable variables with setup guidance.9192## Reference material (in the source repo)9394Each mode ships rubrics under `skills/<mode>/references/` and agent helpers under95`skills/<mode>/agents/`. Notable files to pull when doing a deep pass:96- `skills/skill-miner/references/discovery-rubric.md` + `scripts/scan_sessions.py`97- `skills/skill-personalizer/references/audit-rubric.md`, `personalization-rubric.md`98- `skills/skill-generalizer/references/publication-rubric.md`, `platform-compatibility.md`99100## Gotchas101102- The repo has NO root SKILL.md — it is three skills under `skills/<name>/`.103 Frontmatter `description` is what drives auto-detection; keep it trigger-rich.104- Don't mistake a one-off task for a skill; package only workflows where guidance105 changes future behavior.106- Personalizer = inward (private OK); generalizer = outward (private removed).107 Don't mix the two in one pass.