AGENT SKILL

skillopt-reflection-edits

Turn SkillOpt rollout evidence into bounded structured edits for a plugin skill. Use when analyzing success and failure minibatches, merging proposed patches, ranking edits by systematic impact, and producing candidate add/insert/replace/delete operations without touching the protected slow-update block.

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

01 前言 Front Matter

name
skillopt-reflection-edits
version
0.1.0
mutating
true
triggers
[ "reflect on skill rollouts", "generate skillopt edits", "merge skill patches", "rank skill edits", "bounded skill update" ]
writes_to
[ ".plugin-manager/skillopt/" ]
description
Turn SkillOpt rollout evidence into bounded structured edits for a plugin skill. Use when analyzing success and failure minibatches, merging proposed patches, ranking edits by systematic impact, and producing candidate add/insert/replace/delete operations without touching the protected slow-update block.
writes_pages
false
allowed-tools
[ "Read", "Write", "Edit", "Bash", "Grep", "Glob" ]
disable-model-invocation
false

03 SKILL.md 正文

SkillOpt Reflection Edits

Contract

Produce a bounded candidate patch from rollout evidence. The patch must be structured JSON, grounded in recurring evidence, small enough to preserve the existing skill, and ready for skillopt-validation-gate to apply to a copy.

Workflow

  1. Load inputs

    • Read ../../references/skillopt-protocol.md.
    • Read the current target SKILL.md, latest rollout artifacts, and rejected buffer for the current epoch.
    • Identify the edit budget from run.md.
  2. Partition evidence

    • Split failures from successes.
    • Group each side into minibatches. Use 4 to 8 trajectories by default when enough evidence exists.
    • Keep selection and test evidence out of reflection.
  3. Analyze failures

    • Look for repeated missing rules, bad evidence-gathering habits, verifier mistakes, unsafe mutation patterns, routing confusion, or output contract misses.
    • Propose corrective add, insert, replace, or delete edits.
    • Ignore one-off task details unless they expose a general rule.
  4. Analyze successes

    • Identify behaviors that reliably worked and are not already encoded.
    • Use success edits to preserve useful behavior and prevent regressions.
    • Keep success-driven edits lower priority than failure corrections.
  5. Merge

    • Deduplicate edits with the same purpose.
    • Resolve conflicts by choosing the stronger evidence or synthesizing a narrower instruction.
    • Add support_count and source_type to every merged edit.
    • Do not generate edits inside <!-- SLOW_UPDATE_START --> and <!-- SLOW_UPDATE_END -->.
  6. Rank and select

    • Rank by systematic impact, complementarity, generality, then actionability.
    • Clip to the edit budget.
    • Write failure-analysis.json, success-analysis.json, merged-edits.json, and selected-edits.json.

Output Format

SKILLOPT REFLECTION EDITS
Run: .plugin-manager/skillopt/<run-id>/
Step: <n>
Evidence:
- failures: <count>
- successes: <count>
Edit budget: <n>
Selected edits:
- [<source_type>, support=<count>] <op> <target or append>
Artifacts:
- .plugin-manager/skillopt/<run-id>/reflection/<step>/selected-edits.json
Gate next:
- /plugin-manager:skillopt-validation-gate

Anti-Patterns

  • Rewriting the whole skill when a localized patch is enough.
  • Proposing vague advice that a future agent cannot execute.
  • Adding rules already present in the skill.
  • Optimizing for a single task instead of recurring failure modes.
  • Touching the protected slow-update block.
  • Dropping rejected-edit feedback before proposing similar edits again.

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