agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/skill-optimizer/SKILL.md

skill-optimizer

Skill4 starsChanged 4 months agoMITView on GitHub

Improve a skill through benchmarked, validation-gated edits instead of ad hoc prompt polishing.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use linting-neostandard-eslint9, octocat and 4 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

    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

  • 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

  • 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

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • +2 more from mcollina

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 6

    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. Distinctive:

    Use this skill when the user asks to optimize, tune, or improve an existing skill against examples or a benchmark.

    line 8
  2. Very specific:

    Prefer deterministic local tests and review tasks over upstream gbrain skillopt unless that CLI is installed and the user approved its …

    line 29
  3. Distinctive:

    Do not call external model optimization services unless the user explicitly approves the cost and network use.

    line 31
  4. Distinctive:

    Do not optimize against a vague preference.

    line 35
  5. Distinctive:

    Do not mutate frontmatter in a quality-tuning pass.

    line 36
  6. Distinctive:

    Do not accept a change that only improves the training examples while regressing held-out tasks.

    line 37
  7. Distinctive:

    Do not present an unvalidated rewrite as an optimization.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 22 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 when the user asks to optimize, tune, or improve an existing skill against examples or a benchmark.

This port is adapted from garrytan/gbrain at commit 814258dda67945ffec9457a1e73980e947b7e462.

Workflow

  1. Pick the target skill and read its SKILL.md.
  2. Establish an evaluation set before editing:
    • existing examples, tests, or benchmark JSONL
    • user-provided success criteria
    • at least a small held-out set for bundled skills
  3. Make the smallest body-only change likely to improve behavior.
  4. Preserve frontmatter routing fields unless the user explicitly asked to change routing.
  5. Validate before accepting:
    • repo tests
    • relevant skill-specific checks
    • manual comparison against held-out tasks
  6. Record what improved, what was rejected, and remaining risk.

Codex Adaptation

  • Prefer deterministic local tests and review tasks over upstream gbrain skillopt unless that CLI is installed and the user approved its cost/runtime.
  • For bundled skills in this repo, default to proposed edits plus validation rather than automatic mutation loops.
  • Do not call external model optimization services unless the user explicitly approves the cost and network use.

Guardrails

  • Do not optimize against a vague preference; write the benchmark first.
  • Do not mutate frontmatter in a quality-tuning pass.
  • Do not accept a change that only improves the training examples while regressing held-out tasks.
  • Do not present an unvalidated rewrite as an optimization.

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.