agentleFS
CodeCaroSCodeCaroS/MythOs_Aegis/.agents/skills/skill-optimizer/SKILL.md

skill-optimizer

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Optimize Markdown-based skills with a measured loop: baseline, bounded edits, held-out validation, rejection memory, and final reporting. Use when improving, benchmarking, or evaluating a SKILL.md file.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use octocat, linting-neostandard-eslint9 and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mcollinaSkill

    octocat

    Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.

    Also in 3 projects that use this

  • mcollinaSkill

    linting-neostandard-eslint9

    Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.

    Also in 3 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

  • AnthropicSkill

    documentation

    Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

  • +4 more from mcollina

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to improve an existing Markdown skill through an evidence-backed optimization loop.

    line 21
  2. Distinctive:

    Before starting any optimization run, read:

    line 26
  3. Distinctive:

    Treat that file as the authoritative protocol.

    line 30
  4. Distinctive:

    Create a candidate skill without modifying the original.

    line 58
  5. Distinctive:

    Never overwrite the original skill.

    line 69
  6. Distinctive:

    Never use test-set results to generate edits.

    line 70
  7. Distinctive:

    Never accept an edit because it merely sounds better.

    line 71
  8. Distinctive:

    Never encode benchmark answers into the skill.

    line 72
  9. Distinctive:

    Never remove protected safety or compliance rules.

    line 73
  10. Distinctive:

    Keep every accepted edit traceable to rollout evidence.

    line 74
  11. Distinctive:

    Keep changes inside the configured edit budget.

    line 75
  12. Distinctive:

    Do not declare the optimization complete until:

    line 119
  13. Distinctive:

    every accepted edit passed held-out validation,

    line 122

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Optimizer

Use this skill to improve an existing Markdown skill through an evidence-backed optimization loop. If the goal is finding a different skill rather than tuning this one, use find-skills instead.

Required Reference

Before starting any optimization run, read:

references/HARNESS.md

Treat that file as the authoritative protocol.

Inputs

Require:

  • the target SKILL.md,
  • training tasks,
  • validation tasks,
  • evaluation criteria,
  • the target model or agent configuration,
  • a run directory.

An untouched test set is strongly recommended for final evaluation.

Workflow

  1. Locate the target SKILL.md.
  2. Validate its frontmatter and Markdown structure.
  3. Confirm the task splits:
    • evals/train
    • evals/validation
    • evals/test
  4. Record a baseline with the unchanged skill.
  5. Execute training rollouts.
  6. Evaluate each rollout against an explicit rubric.
  7. Reflect on recurring failures and stable successes.
  8. Propose only bounded ADD, DELETE, or REPLACE edits.
  9. Create a candidate skill without modifying the original.
  10. Compare the candidate and current skill on the same validation set.
  11. Accept the candidate only when it exceeds the configured threshold and introduces no unacceptable regression.
  12. Store rejected edits and their failure reasons.
  13. Repeat until a stopping condition is reached.
  14. Evaluate the best skill once on the untouched test set.
  15. Produce a final optimization report.

Execution Rules

  • Never overwrite the original skill.
  • Never use test-set results to generate edits.
  • Never accept an edit because it merely sounds better.
  • Never encode benchmark answers into the skill.
  • Never remove protected safety or compliance rules.
  • Keep every accepted edit traceable to rollout evidence.
  • Keep changes inside the configured edit budget.
  • Preserve complete diffs and evaluation results.
  • Distinguish task failures from harness or infrastructure failures.

Default Paths

skills/<skill-name>/SKILL.md
evals/train/
evals/validation/
evals/test/
runs/<run-id>/

Default Edit Budget

Unless the repository defines another value:

max_edits_per_iteration: 4
max_added_words_per_iteration: 120
max_deleted_words_per_iteration: 120
minimum_validation_delta: 0.01
patience: 5

Output

Produce:

runs/<run-id>/
├── baseline/
├── rollouts/
├── evaluations/
├── reflections/
├── candidates/
├── rejected-edits.jsonl
├── best-skill.md
└── summary.md

Completion Criteria

Do not declare the optimization complete until:

  • a baseline exists,
  • every accepted edit passed held-out validation,
  • rejected edits are recorded,
  • the best skill is reproducible,
  • category-level regressions are documented,
  • the test set remained isolated,
  • the final report exists.

Shared output profile

Compose the optimization profile from output-templates. Report baseline, candidate, validation gate, isolated test, accepted and rejected edits, limits, and artifacts. Preserve stricter domain rules above, omit empty components, and never fill a component with invented evidence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.