skill-optimizer
Skill7 starsChanged 5 months agoMITView on GitHub
Evaluate and improve an existing Claude Code skill using explicit success criteria and small controlled changes. Use when the user asks to optimize a skill, reduce over-triggering or under-triggering, improve reliability, tighten instructions, or add evals for a skill. Also trigger on "スキルを改善して", "スキルを最適化して", "スキルの品質を確認して".
30 other projects use a version of this.
Adopted by
Most recently taken up by
- HyperVon/agent-guidance-kittheir own version, first seen Nov 1, 2026
- 2021291696/weaver-evolvetheir own version, first seen Nov 1, 2026
- solplum/skill-optimizertheir own version, first seen Nov 1, 2026
- poizoncoded/skillstheir own version, first seen Nov 1, 2026
- MCKRUZ/microsoft-agentic-harnesstheir own version, first seen Nov 1, 2026
- bsene/skillstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use octocat, linting-neostandard-eslint9 and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mcollinaSkilloctocat
Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.
Also in 3 projects that use this
mcollinaSkilllinting-neostandard-eslint9
Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.
Also in 3 projects that use this
VercelSkilloauth
Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.
Also in 3 projects that use this
AnthropicSkilldocumentation
Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
Also in 3 projects that use this
MicrosoftSkillinit
Also in 3 projects that use this
OpenAISkillsystematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Also in 3 projects that use this
- +4 more from mcollina
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- garrytan/gbrain★ 33ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- mcollina/skills★ 2ksame name
- chujianyun/skills★ 755same name
- tdimino/claude-code-minoan★ 41same name
- AutoByteus/autobyteus-skills★ 35same name
- wulaosiji/skills★ 28same name
- MCKRUZ/microsoft-agentic-harness★ 18same name
- WOHUPA/Amazon-Skills★ 14same name
- WiseWong6/wise-skills★ 10same name
20 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository140 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- static/llms.txtllms.txt
- ask-codexSkill
- river-review-disciplineSkill
- skill-creatorSkill
- skill-ops-plannerSkill
- commandsSkill
- adversarial-reviewSkill
- review-teamSkill
- river-review-architectureSkill
- river-review-codeSkill
- river-review-docsSkill
- river-review-frontendSkill
- river-review-performanceSkill
- river-review-security-auditSkill
- river-review-securitySkill
- river-reviewSkill
- river-review-testingSkill
- unknown-coverage-reviewSkill
- Coverage and Failure Path GapsSkill
- Flaky Test Risk CheckSkill
- GitHub Actions Workflow Security ReviewSkill
- Standard Review Policy for DownstreamSkill
- Test Assertion Effectiveness 常に PASS するテストの検出Skill
- Test Presence for Changed CodeSkill
- Test Naming and StructureSkill
- テスト観点レビュー(差分ドリブン)Skill
- a11y Accessible Name BasicsSkill
- Agent Skill Bridge ReviewSkill
- Altitude Generalization GuardSkill
- API Compatibility and Test Gap ReviewSkill
- Assumption Resolution Trace Plan の前提解消トレーサビリティSkill
- Async Correctness 非同期処理の正しさ検証Skill
- Behavior-Structure Separation 振る舞い変更と構造変更の分離・外部挙動維持Skill
- Closure Scope Retention GuardSkill
- Component Variants / States Documentation コンポーネント状態の文書化Skill
- Configuration File ReviewSkill
- Cross-File Leakage リファクタ後の caller 側残骸検出Skill
- Design Source-of-Truth Conformance デザイン定義準拠Skill
- Design System Component Reuse GuardSkill
- Design Token EnforcementSkill
- Detector Detection Power 検査器の検出力の検証Skill
- Documentation Hygiene ドキュメント衛生Skill
- End-to-End Wiring 末端到達・貫通の検証Skill
- Existing-Pattern Conformance 既存パターン準拠の確認Skill
- Firebase Security Rules ReviewSkill
- Fix Scope Integrity 指摘対応ループのスコープ逸脱・前提破壊検出Skill
- GitHubレビューコメント対応(修正案つき)Skill
- Hallucinated Reference 幻覚的参照の実在確認Skill
- Hello Skill (Always-On Sample)Skill
- i18n Unused Key ReviewSkill
- Impact Evidence Coverage 影響・失敗系・外部依存の証拠充足Skill
- Independent Review SynthesisSkill
- Invisible Unicode Injection Scan 不可視 Unicode コード注入検出Skill
- Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全Skill
- Laravel Eloquent N+1 and Query Efficiency ReviewSkill
- Laravel Mass Assignment and Authorization ReviewSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 14 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Never apply a large rewrite first.
- Distinctive: line 96
Before proposing wording or structure fixes, you must check whether the failure is caused by the wrong pattern or a missing secondary …
- Distinctive: line 106
If pattern mismatch exists:
- Distinctive: line 109
do not jump to wording tweaks before resolving the pattern issue
- Distinctive: line 111
Do not proceed to Phase 3 until pattern mismatch has been evaluated and documented.
- Distinctive: line 127
Prefer the smallest useful change.
- Very specific: line 142
Use ${CLAUDE_SKILL_ROOT}/assets/eval-rubric-template.md as the rubric structure.
- Distinctive: line 146
do not adopt on a single successful run
- Distinctive: line 147
do not accept regressions on critical criteria
- Distinctive: line 158
no broad rewrites without evidence
- Distinctive: line 161
no changes that weaken safety or review steps
- Distinctive: line 162
no context reduction that hides always-required routing, hard guards, output contracts, or verification
- Distinctive: line 163
no new ambiguity in the description
- Distinctive: line 193
remove verification to save tokens
- Distinctive: line 198
If the current skill is structurally unsalvageable:
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pattern declaration
Primary pattern: Reviewer Secondary patterns: Pipeline Why: optimization starts with diagnosis against criteria, then applies small changes in a controlled sequence with eval checkpoints.
Purpose
Improve an existing skill without breaking what already works.
Your job is to:
- inspect the current skill package
- define or refine success criteria
- identify failure modes
- propose one small change at a time
- attach each change to an eval hypothesis
- reject changes that cannot be evaluated
Core optimization rule
Never apply a large rewrite first.
Optimize in small units:
- description
- gate logic
- workflow order
- examples
- prohibited behaviors
- output contract
- review checklist
- supporting file structure
Change only one major unit per proposal.
Phase 0: Baseline audit
Inspect:
- current
SKILL.md - current
SKILL.mdentrypoint size (UTF-8 bytes / lines) and whether optional knowledge is eagerly loaded - current supporting files
- invocation settings
- current examples
- current failure reports or user complaints
- existing eval cases if any
Then summarize:
- what the skill is supposed to do
- where it fails
- whether the issue is discovery, execution, or validation
Phase 1: Success criteria
Define 3 to 6 evaluation criteria.
Each criterion must be:
- specific
- observable
- pass/fail or narrowly scored
Separate:
- trigger quality
- task fidelity
- completeness
- safety / side effects
- output format compliance
Phase 2: Failure mapping
Classify failures into:
- over-triggering
- under-triggering
- missing context collection
- vague output
- hallucinated assumptions
- skipped verification
- unnecessary tool use
- high token or step cost
- entrypoint context bloat / optional knowledge that should be progressively disclosed
Phase 2.5: Pattern mismatch diagnosis
Before proposing wording or structure fixes, you must check whether the failure is caused by the wrong pattern or a missing secondary pattern. Do not skip this phase.
Check:
- acts too early on ambiguous input → missing Inversion
- output structure is inconsistent across runs → missing Generator
- returns unvalidated or unchecked output → missing Reviewer
- skips required steps or loses sequence control → missing Pipeline
- lacks domain-specific accuracy → missing Tool Wrapper
If pattern mismatch exists:
- recommend the smallest structural correction first
- do not jump to wording tweaks before resolving the pattern issue
Do not proceed to Phase 3 until pattern mismatch has been evaluated and documented.
Phase 3: Optimization proposal
For each proposed change, output:
- change id
- exact file to modify
- exact section to modify
- exact change summary
- reason
- expected benefit
- risk
- eval method
- rollback condition
Prefer the smallest useful change.
For context-health failures, move optional examples, troubleshooting, rationale, rare exceptions, or provider-specific detail to supporting references before rewriting behavior. Keep activation, responsibility, routing, hard guards, output contracts, and required verification in the main entrypoint unless an eval proves a safer boundary. In River Review Agent Skills, inspect the warning-only 12 KiB / 250-line advisory from npm run agent-skills:validate; do not optimize to the number alone.
Phase 4: Eval plan
For the recommended next change, define:
- baseline measurement
- test prompts
- grading method
- number of trials
- adoption threshold
- rollback threshold
Use ${CLAUDE_SKILL_ROOT}/assets/eval-rubric-template.md as the rubric structure.
Default stance:
- do not adopt on a single successful run
- do not accept regressions on critical criteria
Phase 5: Review
Check against:
${CLAUDE_SKILL_ROOT}/references/review-default.md${CLAUDE_SKILL_ROOT}/references/optimization-playbook.md
Before finalizing, verify:
- no broad rewrites without evidence
- no hidden assumptions
- no unverifiable claims
- no changes that weaken safety or review steps
- no context reduction that hides always-required routing, hard guards, output contracts, or verification
- no new ambiguity in the description
Output format
Return exactly these sections:
Baseline summary
Success criteria
Failure modes
Pattern mismatch diagnosis
Recommended next change
Eval plan
Rollback rule
Follow-up changes backlog
Anti-patterns
Do not:
- rewrite the whole skill first
- mix multiple major changes in one proposal
- optimize without a baseline
- optimize only for style
- remove verification to save tokens
- broaden description without evidence
Failure handling
If the current skill is structurally unsalvageable:
- say so directly
- recommend a replacement design
- explain why incremental optimization is not appropriate
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

