AGENT SKILL

skillopt-validation-gate

Apply and evaluate SkillOpt candidate skill edits behind a strict held-out validation gate. Use when deciding whether bounded skill edits should become the current or best skill, recording rejected edits and score deltas, and preventing unvalidated self-edits from reaching production plugin skills.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
skillopt-validation-gate
version
0.1.0
mutating
true
triggers
[ "gate skillopt candidate", "validate skill edits", "accept or reject skill candidate", "apply skillopt patch", "held-out skill validation" ]
writes_to
[ ".plugin-manager/skillopt/", "plugins/" ]
description
Apply and evaluate SkillOpt candidate skill edits behind a strict held-out validation gate. Use when deciding whether bounded skill edits should become the current or best skill, recording rejected edits and score deltas, and preventing unvalidated self-edits from reaching production plugin skills.
writes_pages
false
allowed-tools
[ "Read", "Write", "Edit", "Bash", "Grep", "Glob" ]
disable-model-invocation
false

03 SKILL.md 正文

SkillOpt Validation Gate

Contract

Evaluate a candidate skill on the held-out selection split and accept it only when its score is strictly greater than the current skill's selection score. Rejected candidates must leave useful negative feedback for later reflection.

Workflow

  1. Preflight

    • Read ../../references/skillopt-protocol.md.
    • Verify current selection score, selected edits, candidate path, and evaluator.
    • Run git status --short --branch before any production file change.
  2. Apply to a copy

    • Apply selected edits to a candidate SKILL.md under .plugin-manager/skillopt/<run-id>/candidates/<step>/.
    • Produce edit-apply-report.json with per-edit applied, skipped, or conflicted status.
    • If any edit targets the protected slow-update block, reject the patch before scoring.
  3. Evaluate selection

    • Run the same held-out selection tasks, verifier, target model or harness, and scoring method used for the current skill.
    • Store selection-report.md under gates/<step>/.
    • Keep train and test scores out of the accept/reject decision.
  4. Decide

    • Accept only if candidate selection score is strictly greater than current selection score.
    • Reject ties and regressions.
    • When accepted, update the run's current pointer. If the candidate also exceeds the previous best score, copy it to best/SKILL.md.
    • Do not overwrite the production plugin skill unless the user explicitly asked to deploy or skillopt-transfer-release is running that promotion.
  5. Record negative feedback

    • Append rejected edits, failure patterns, selection score, current score, and score delta to rejected-buffer.jsonl.
    • Summarize why the candidate failed without trying to fix it in-place.

Output Format

SKILLOPT VALIDATION GATE
Run: .plugin-manager/skillopt/<run-id>/
Step: <n>
Candidate: accepted|rejected|blocked
Current selection score: <score>
Candidate selection score: <score>
Best updated: yes|no
Artifacts:
- .plugin-manager/skillopt/<run-id>/candidates/<step>/SKILL.md
- .plugin-manager/skillopt/<run-id>/gates/<step>/selection-report.md
Rejected buffer: <path or none>
Next:
- <next optimization, slow update, or release step>

Anti-Patterns

  • Accepting ties because the new skill looks cleaner.
  • Evaluating the candidate on training tasks and calling it validation.
  • Changing the rubric, verifier, model, or harness for the candidate only.
  • Mutating the production SKILL.md before the gate passes.
  • Losing rejected edits instead of feeding them back into future reflection.

04 同仓库更多 Skills

weisberg
weisberg/agile_agentic_analytics

metric-reconciliation

Use when two reports disagree, a KPI needs reconciliation across sources, or actuals need to be compared with a plan, forecast vintage, or prior methodology. Align population, coverage, calendar, attribution, and observation windows before computing gaps. Identify missing slices and preserve unresolved residuals.

★ 1
weisberg
weisberg/agile_agentic_analytics

analysis-handoff

Use to make a recurring SQL analysis reproducible, hand it to another analyst, or check whether an analysis bundle changed. Capture the exact query, metric definitions, inputs, source vintages, checks, and rerun steps in a portable folder without requiring a copy of row-level results.

★ 1
weisberg
weisberg/agile_agentic_analytics

conversation-ingestion

File a conversation transcript or notes from an interview, research discussion, or support exchange. Preserve the raw material, capture decisions and actions, and update participant and company timelines. Trigger on 'process this conversation', 'ingest this conversation', 'file this transcript', or 'conversation notes to KB'. For standalone media use media-ingest. For source routing use ingest.

★ 1
weisberg
weisberg/agile_agentic_analytics

minimal-skill

Minimal shared skill fixture for marketplace renderer and validator examples.

★ 1
weisberg
weisberg/agile_agentic_analytics

roadmap

Use this skill when the user wants a product roadmap, initiative sequencing, Now/Next/Later plan, quarterly roadmap, release theme map, product strategy-to-roadmap translation, or executive roadmap narrative. Trigger on phrases like "build a roadmap", "roadmap these initiatives", "what should be now next later", "sequence this backlog", "quarterly product roadmap", "theme-based roadmap", or "plan the next two quarters". Do NOT trigger for drafting or reviewing a single PRD (use prd-writer or prd-review), converting a PRD into an agentic PLAN.md (use prd-to-plan), or scoring/ranking a set of options without a time horizon (use prioritization).

★ 1
weisberg
weisberg/agile_agentic_analytics

prioritization

Use this skill when the user wants to rank, score, triage, or compare product opportunities, features, PRD requirements, backlog items, roadmap candidates, or initiatives using RICE, impact-effort, confidence, reach, value, effort, risk, or tradeoff analysis. Trigger on phrases like "prioritize these features", "rank this backlog", "RICE score", "impact effort matrix", "what should we build first", "compare these initiatives", or "stack rank product bets". Do NOT trigger for a time-based roadmap (use roadmap), writing or reviewing one PRD (use prd-writer or prd-review), turning a PRD into an agentic plan (use prd-to-plan), or analyzing experiment results (use ab-testing or experimentation skills).

★ 1