Skill lifecycle optimization
Skill mouadja02/skills/skills/agent-eval/skill-lifecycle-optimization
A curated collection of agent skills for your AI agents - engineering craft, prompt engineering, design, growth marketing, ...
npx -y skills add mouadja02/skills --skill skill-lifecycle-optimizationAssembled 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.
- 8 stars8 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 author says it does
Copied from the file, not written here
Use when improving, evolving, benchmarking, or maintaining agent skills over time. Treats skills as long-lived structured artifacts: execute tasks, diagnose trajectory evidence, accumulate textual momentum, patch at the correct abstraction layer, test per model and harness, canary changes, and roll back regressions.
SKILL.md
7.1 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
Skill Lifecycle Optimization
Treat each skill as a versioned, testable artifact that can improve or regress. Optimize from execution evidence, not from stylistic preference.
When to Activate
Activate when:
- A skill exists but is unreliable, incomplete, stale, or model-sensitive
- Maintaining a growing skill library
- Evaluating third-party or generated skills before deployment
- Designing a self-evolving agent harness
- Deciding whether a skill rewrite actually improved task performance
Paper-Backed Principles
- Availability matters more reliably than presentation granularity. A controlled SkillsBench study found a clear benefit from access to task-relevant skills, while tested abstraction-level and example-format rewrites had smaller, uncertain, model-dependent effects.
- Skills can be optimized as structured parameters. SkillGrad uses trajectory loss evidence, textual diagnoses, momentum, and layer-aware patches.
- Skills need a lifecycle. MUSE-Autoskill emphasizes creation, memory, management, evaluation, and refinement with unit tests and runtime feedback.
- Skill effectiveness is model-dependent. MASA reports that a skill that helps one backbone can harm another.
- Updating and benefiting are separate capabilities. Harness evolution research distinguishes an evolver's ability to write a useful update from an executor's ability to load and follow it.
- Popularity is not quality. OpenSkillEval reports that public skills do not consistently outperform no-skill agents and should be evaluated dynamically under realistic tasks.
Lifecycle State
Maintain:
skill_id: example
version: 1.2.0
source: curated|generated|third-party
compatible_models: []
compatible_harnesses: []
evaluation_suite: path-or-id
last_evaluated_at: ISO-8601
repair_count: 0
regression_count: 0
known_failure_modes: []
rollback_target: 1.1.0
Optimization Loop
Step 1: Pin the Evaluation Surface
Define:
- Training tasks for update evidence
- Construction-time verification tasks
- Held-out tasks
- Models and harnesses under test
- Fixed executor configuration
- Deterministic postconditions
- Budget for iterations, tokens, and tool calls
Do not optimize against the held-out suite.
Step 2: Run the Current Skill
Capture:
- Task outcome
- Tool calls and environment observations
- Loaded skill sections
- Skill activation success or failure
- Whether instructions were followed faithfully
- Postcondition results
- Latency and token cost
Separate two executor failures:
| Failure | Meaning |
|---|---|
| Activation failure | Relevant skill was not loaded |
| Adherence failure | Skill loaded, but the executor did not follow it |
Step 3: Produce Textual Gradients
For each task:
## Diagnosis
- Task:
- Outcome:
- Failure or success signal:
- Missing, weak, ignored, or preserved guidance:
- Reusable mechanism:
- Suggested layer:
- Evidence:
Use both:
- Failed trajectories for repair evidence
- Contrastive successes for behaviors worth preserving
Step 4: Update Textual Momentum
Maintain momentum_memory.md:
## Pattern: [stable-slug]
- status: new|recurring|unresolved|absorbed
- evidence:
- affected skill sections:
- reusable rule:
- remedy log:
Momentum reduces churn. Consolidate recurring semantic directions instead of reacting to the latest task in isolation.
Step 5: Patch by Abstraction Layer
Patch patterns, not individual examples.
| Layer | Contents |
|---|---|
SKILL.md | concise always-loaded routing and core procedure |
references/*.md | conditional edge cases, long procedures, examples, domain specifics |
scripts/ | executable helpers where deterministic automation is appropriate |
Prefer small targeted edits. Do not continuously expand the always-loaded file.
Step 6: Evaluate Net Effect
Report per model and harness:
- Baseline pass rate
- Candidate pass rate
- Repairs
- Regressions
- Activation rate
- Harness-following rate
- Runtime and token cost
- Cross-model transfer
- Performance with no skill
Canary new versions before promotion. Roll back when regressions exceed the defined budget.
Step 7: Allocate Capability Wisely
Do not automatically spend the strongest model on skill evolution. Test whether a cheaper evolver produces equivalent reusable procedures. Allocate strong-model budget to the task-solving executor when executor activation or adherence is the bottleneck.
Output Format
## Skill Baseline
[Version, source, models, harnesses, evaluation suite]
## Trajectory Evidence
[Failures, contrastive successes, activation and adherence failures]
## Textual Momentum
[Recurring patterns and status]
## Patch Plan
[Layer-aware targeted edits]
## Net-Effect Report
[Repairs, regressions, held-out results, cost, per-model behavior]
## Promotion Decision
[Promote, canary, revise, or rollback]
Guidelines
- Keep evaluation configurations pinned.
- Compare against no-skill behavior.
- Evaluate each target model and harness separately.
- Measure activation and adherence.
- Preserve contrastive success patterns.
- Keep rollback available for every promoted change.
- Prefer execution-based verification over document similarity.
Gotchas
- Formatting theater - Rewriting abstraction level or adding examples is not automatically an improvement.
- Model-agnostic assumptions - A useful skill can harm another backbone.
- Latest-batch overfitting - Without textual momentum, patches chase local incidents.
- Append-only bloat - Put conditional material in references.
- Strong-evolver waste - Executor capability may be the real bottleneck.
- Popularity bias - Community usage is not a substitute for controlled evaluation.
References
- SkillGrad: Optimizing Agent Skills Like Gradient Descent
- MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluation
- Skill is Not One-Size-Fits-All: Model-Aware Skill Alignment for LLM Agents
- Harness Updating Is Not Harness Benefit
- Skill Availability and Presentation Granularity in LLM Agents
- OpenSkillEval
Skill Metadata
Created: 2026-06-02 Version: 1.0.0
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.