मुख्य सामग्री पर जाएँ
Skillpedia
प्रॉम्प्ट और LLM31k · #9313

skill-optimizer

यह क्या करती है

यह स्किल उम्मीदवार बदलावों को बेंचमार्क पर परखकर स्किल फ़ाइल के निर्देश सुधारती है। यह उन लोगों के लिए है जो AI स्किल संभालते हैं और मापने योग्य सुधार चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप मौजूदा स्किल का बेंचमार्क पर प्रदर्शन सुधारना चाहें।
  • ✓जब आपको किसी नई स्किल के लिए बेंचमार्क फ़ाइल बनानी हो।
  • ✓जब आप किसी दूसरे AI मॉडल पर जाएँ और स्किल को फिर से ट्यून करना चाहें।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/garrytan/gbrain/blob/master/plugin/skills/skill-optimizer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी मीटिंग सारांश स्किल को बेंचमार्क पर कुछ बदलाव परखकर सुधारिए, और सिर्फ़ वही रखिए जो साफ़ तौर पर मदद करें।”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

gbrain

31k

यह आपके एजेंट को लोगों, प्रोजेक्ट और फ़ैसलों के बारे में तथ्य खोजने के लिए साझा कंपनी ज्ञान ब्रेन में खोजने और उसमें स्थायी नोट सहेजने देती है।

लेखन और डॉक्यूमेंटरिसर्च

brain-ingest-gate

31k

यह आपके एजेंट को नई सामग्री जोड़ने से पहले मौजूदा ज्ञान ब्रेन से जाँचने देती है, ताकि डुप्लिकेट न बनें और नामित इकाइयाँ पहले सुलझें।

लेखन और डॉक्यूमेंटरिसर्च

brain-link-discipline

31k

यह सुनिश्चित करती है कि आपका एजेंट हर उस ब्रेन पेज का काम करने वाला लिंक उसी संदेश में दे, जिसकी वह रिपोर्ट करता है, ताकि आप उसे तुरंत खोल सकें।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

brain-ops

31k

यह आपके एजेंट को ज्ञान ब्रेन की मुख्य दिनचर्या देती है: पहले मौजूदा संदर्भ जाँचना, स्पष्ट नोट उनके स्रोत के साथ सहेजना, और संबंधित पेज जोड़ना।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills