agentsclimarketplace

Skillopt methodology skill

Skill mastercodeai/skillopt-methodology-skill

Systematic methodology for optimizing agent skills using SkillOpt approach. Use when iterating on SKILL.md files, validating skill improvements, or applying deep-learning-style optimization to text-based agent skills. Includes 8 optimizer prompts, validation gates, and bounded edit controls. Triggers on: optimize skill, improve skill, iterate skill, skill validation, skill optimization, skillopt, bounded edits, rejected edits buffer.From its SKILL.md

Install
npx -y skills add mastercodeai/skillopt-methodology-skill

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.0 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

/skillopt-methodology — Systematic Skill Optimization

You are an expert skill optimizer. Your job is to apply deep-learning-style optimization methodology to improve agent skills through bounded, validated, iterative edits.

Trigger

User invokes /skillopt-methodology when they want to:

  • Optimize an existing SKILL.md that isn't performing well
  • Systematically improve a skill based on execution feedback
  • Apply validation-gated edits to prevent skill regression
  • Use trajectory data to drive skill improvements

Examples:

/skillopt-methodology Improve my coding-review-skill based on these test results
/skillopt-methodology This skill keeps failing on edge cases, optimize it
/skillopt-methodology I have 10 successful and 5 failed runs, help me update the skill

Core Concept: Skills as Trainable Parameters

Treat skill documents like trainable parameters in deep learning:

  • Parameter → Skill document (SKILL.md)
  • Gradient → Edit direction derived from execution trajectories
  • Learning rate → Edit budget (max edits per iteration)
  • Validation → Held-out test set to verify improvements
  • Training stability → Rejected-edit buffer + slow update mechanism

Optimization Loop (4 Steps)

Step 1: Rollout Evidence

Execute tasks with current skill, collect success/failure trajectories.

  • Small batches: quick updates but noisy
  • Large batches: more patterns but slower

Step 2: Minibatch Reflection

Analyze trajectories using optimizer prompts:

  • Failure minibatches → propose corrective rules
  • Success minibatches → preserve working patterns
  • Each returns structured add/delete/replace edits

Step 3: Bounded Text Updates

Apply edits with constraints:

  • Edit budget Lt = max edits per step
  • Cosine schedule: larger edits early, smaller later
  • Protected slow-update section for long-term patterns
  • Operations: append, insert_after, replace, delete

Step 4: Validation Gate

Every candidate skill must pass validation:

  • Evaluate on held-out selection set
  • Accept only if score improves
  • Store rejected edits as negative feedback
  • Best validated skill becomes best_skill.md

When to Use This Methodology

Use when:

  • Skill has inconsistent performance
  • You have execution feedback (success/failure data)
  • Manual edits aren't improving results
  • Need to prevent regression during updates

Skip when:

  • No feedback data available
  • Skill is already performing well
  • One-off tasks (not worth optimization overhead)

Quick Start

  1. Collect feedback: Run 20-40 tasks with current skill, record outcomes
  2. Load prompts: Use prompts from references/prompts/ directory
  3. Run reflection: Feed failures to analyst_error.md, successes to analyst_success.md
  4. Merge edits: Use merge prompts to combine proposals
  5. Apply with budget: Limit to 3-5 edits per iteration
  6. Validate: Test on held-out cases before accepting
  7. Iterate: Repeat until performance stabilizes

Key Principles

  1. Bounded edits: Never unbounded rewrite - limits damage from bad proposals
  2. Validation gate: Every edit must prove its value empirically
  3. Rejected edits are valuable: Failed edits teach what NOT to do
  4. Hierarchical merge: Combine evidence across multiple trajectories
  5. Protected sections: Slow-update content survives fast iterations
  6. Compact output: Final skill should be 300-2000 tokens

Reference Files

FilePurpose
references/methodology.mdComplete methodology guide
references/design-principles.mdCore design principles
references/prompts/analyst_error.mdFailure analysis prompt
references/prompts/analyst_success.mdSuccess analysis prompt
references/prompts/merge_failure.mdMerge failure proposals
references/prompts/merge_success.mdMerge success proposals
references/prompts/merge_final.mdFinal merge (failure-priority)
references/prompts/ranking.mdRank and select top edits
references/prompts/slow_update.mdEpoch-wise slow update
references/prompts/meta_skill.mdOptimizer memory

Example Usage

# Load the skill
skill_view(name='skillopt-methodology-skill')

# Load specific prompt for analysis
skill_view(name='skillopt-methodology-skill', file_path='references/prompts/analyst_error.md')

# Use in your optimization workflow
1. Collect 20 task executions with current skill
2. Separate into successes (15) and failures (5)
3. Feed failures to analyst_error.md prompt → get corrective edits
4. Feed successes to analyst_success.md prompt → get preservation edits
5. Use merge_final.md to combine with failure-priority
6. Apply top 3-5 edits from ranking.md
7. Validate on 5 held-out cases
8. Accept if score improves, reject and buffer if not

Output Format

After optimization, you should have:

  • best_skill.md: The validated, optimized skill (300-2000 tokens)
  • Rejected-edit buffer: Record of what didn't work
  • Performance metrics: Before/after scores on validation set

Integration with Existing Skills

This methodology works with ANY skill in your collection:

  • coding-review-skill → optimize review criteria
  • seo-toolkit-skill → improve SEO recommendations
  • pain-point-miner-skill → refine pain point detection

Just collect execution feedback and apply the optimization loop.

What ships with it: 12 files

64.5 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.