본문으로 건너뛰기
cccskills
무료GitHub에 공개

skill-optimizer

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 "スキルを改善して", "スキルを最適化して", "スキルの品質を確認して".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md5.2 KB
  • assets/eval-rubric-template.md810 B
  • references/optimization-playbook.md845 B
  • references/review-default.md392 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

  1. inspect the current skill package
  2. define or refine success criteria
  3. identify failure modes
  4. propose one small change at a time
  5. attach each change to an eval hypothesis
  6. 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.md entrypoint 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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

<What this skill does>

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

敵対的分析手法を統合したレビューの entry skill。認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

s977043/river-review72026년 10월 21일 업데이트

s977043의 스킬 모두 보기

이 스킬의 문제 신고