본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM31k · #9313

skill-optimizer

하는 일

이 스킬은 벤치마크에 맞춰 후보 편집안을 테스트해 스킬 파일의 지시를 개선합니다. 측정 가능한 개선을 원하는 AI 스킬 관리자를 위한 스킬입니다.

사용하는 경우

  • ✓기존 스킬이 벤치마크에서 더 잘 작동하도록 개선하고 싶을 때.
  • ✓새 스킬을 위한 벤치마크 파일을 만들어야 할 때.
  • ✓다른 AI 모델로 바꾸고 스킬을 다시 맞추고 싶을 때.

스킬 링크

https://github.com/garrytan/gbrain/blob/master/plugin/skills/skill-optimizer/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/plugin/skills/skill-optimizer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“회의 요약 스킬을 개선해 주세요. 몇 가지 편집안을 벤치마크로 테스트하고, 분명히 도움이 되는 것만 남겨 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 스킬 본문에 대한 후보 편집안을 제안하고, 각각을 벤치마크에 대해 여러 번 점수 매깁니다. 변경이 정해진 기준을 넘을 때만 스킬을 다시 쓰며, 버전 기록을 저장합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Skill Optimizer

Self-evolving skill optimization. Treats SKILL.md as the trainable parameters of a frozen agent. Validation-gated, budget-capped, atomic-versioned.

Based on SkillOpt (arXiv 2605.23904, Microsoft Research, May 2026).

When to invoke this skill

The user wants to:

  • Improve an existing skill's execution quality against a benchmark
  • Bootstrap a benchmark file for a new skill
  • Re-tune a skill after switching target models

Iron Law

  • Validation gating is MANDATORY. Every candidate must clear median-of-3
    • epsilon=0.05 margin against the sel-set before SKILL.md gets rewritten.
  • Frontmatter mutation is FORBIDDEN. The optimizer only edits the body. Routing surface (triggers:, brain_first:) stays invariant.
  • Bundled skills require explicit opt-in AND an independent held-out set. Skills shipping with gbrain cannot be auto-mutated. To rewrite one in place the user passes BOTH --allow-mutate-bundled AND --held-out <path> with at least 5 benchmark-disjoint tasks; without the held-out set the run hard-refuses (exit 2). Drop --allow-mutate-bundled (or pass --no-mutate, the default for the dream-cycle phase) to write proposed.md for review instead — no held-out needed for review-only output.
  • Bootstrap output requires human review. Both --bootstrap-from-skill and --bootstrap-from-routing write a sentinel; you must review + STRENGTHEN the generated judges, delete the sentinel, and re-run with --bootstrap-reviewed before optimization can use the file.

The pipeline

gbrain skillopt <skill-name> [flags]
  │
  ├── Pre-flight gates
  │     ├── working tree clean (or --force)
  │     ├── benchmark valid + D_sel >= 5 (D17)
  │     ├── cost preflight (D3) — refuses over --max-cost-usd
  │     └── per-skill DB lock (D14)
  │
  ├── Baseline eval on D_sel (sets best_sel_score)
  │
  ├── default: one rewrite of the body from a D_train forward pass,
  │     accepted only through the same D12 validation gate
  ├── --loop (opt-in; has not beaten one-shot on benchmarks): for epoch in 1..N:
  │     for step in 1..steps_per_epoch:
  │       ├── forward pass: rollouts on D_train batch
  │       ├── backward pass: reflect × 2 (failures + successes per D7)
  │       ├── rank + clip via LR cosine schedule
  │       ├── apply edits (body-only per D5, tagged result per D9)
  │       ├── validation gate: median-of-3 + epsilon=0.05 (D12)
  │       └── if accept: commit via D8 history-intent-first
  │     │
  │     └── slow update (D6) if no improvement this epoch
  │
  └── Final test eval on D_test → run receipt

Where your skills live

Plugin-bundled skills ship as a read-only snapshot; you cannot write a benchmark or optimization artifacts next to them. Run skillopt against your own writable skills directory: pass --skills-dir <path> (gbrain skillopt X --skills-dir ~/my-project/skills), or run from a workspace that contains a skills/ tree and the CLI auto-detects it. Every skills/X/... path below refers to that writable directory (your own authored skills, skillify-scaffolded skills, or a brain-resident skillpack), not the plugin snapshot.

Starting a benchmark from the skill itself (the common case)

The user will NOT hand-write a benchmark, and you shouldn't start from a blank file either. When the user says "make skill X better" and skills/X/skillopt-benchmark.jsonl doesn't exist, generate a starter from the SKILL.md directly:

  1. Generate the starter. Run:
    gbrain skillopt X --bootstrap-from-skill
    
    One LLM call reads skills/X/SKILL.md, infers what the skill produces and what "good" looks like, and writes ~15 tasks (each with rule judges) to skills/X/skillopt-benchmark.jsonl plus a # BOOTSTRAP_PENDING_REVIEW sentinel. No routing-eval.jsonl is needed. Tune the count with --bootstrap-tasks N (max 50).
  2. Review AND STRENGTHEN the judges. This is YOUR job and it is load-bearing. The generated rule checks are weak drafts — the model tends to emit generic contains, loose max_chars, or invented headings. Read each task, fix soft checks, add the must-haves the skill actually requires (real section names, real length ceilings, min_citations where sources are expected, tool_called/tool_not_called for tools the skill genuinely uses). A thin benchmark optimizes for a thin definition of quality — do not rubber-stamp.
  3. Delete the sentinel line (`# BOOTSTRAP_PENDING_RE
자주 묻는 질문

스킬의 트리거를 바꿀 수 있나요?

아닙니다. 스킬의 라우팅 부분은 고정되어 있고, 본문만 편집합니다.

기본 제공 스킬도 바꾸나요?

명시적인 동의와 별도의 보류 테스트 세트가 있는 경우에만 바꿉니다. 그렇지 않으면 검토용 제안을 씁니다.

벤치마크가 필요한가요?

네. 최적화는 벤치마크로 측정되며, 스킬이 벤치마크를 만드는 것을 도울 수 있습니다.

상세 정보

작성자의 원본 설명

Self-evolving skill optimization via SkillOpt-paper-grounded text-space optimizer.

repo: garrytan/gbrain

인기도

GitHub 스타
31k
순위
#9313
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬