agentleFS
gilbertwuugilbertwuu/Auto-Optimize/SKILL.md

auto-optimize

Skill85 starsChanged 8 months agoMITView on GitHub

Host-agnostic Agent Skill: double-layer workflow for AI-assisted delivery—requirement specification, multi-prompt outer loop, on-disk inner iterations, phase gates, optional byte-level verify. For any IDE, CLI, or Skill-capable tool (e.g. OpenClaw). Read program.md and docs/verifiability.md before editing delivery artifacts unless waived.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. microsoft/winml-cli★ 51same name
    2. Randomblock1/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Read program.md (shortest path) or the checklist below.

    line 22
  2. Very specific:

    Before claiming delivery matches the final track file, in a class-A environment actually run scripts/skill-verify.sh from the repository …

    line 25
  3. Distinctive:

    Must be written in the current task message, e.g.:

    line 53
  4. Distinctive:

    Does not replace regulation, clinical procedures, or human review.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Double-layer auto-optimization (Skill entry)

This file is the Skill package entry (SKILL.md). Normative text lives under docs/. Not tied to a specific IDE—any host that loads this Skill can use it.

Strict execution (hard constraints)

  • The agent must follow program.md, docs/verifiability.md, docs/phase-01-spec.md through phase-04-output.md, and docs/execution.md in full; must not shorten the workflow to save tokens, time, or because it “feels enough”.
  • Each tracks/prompt-*/ inner loop must satisfy docs/phase-03-inner.md: gates (e.g. at least r01, r02 per scheme) and main termination (all items checked in tracks/phase-01-acceptance.md; or 5 rounds max). Self-score “≥8” must not alone justify stopping (verifiability.md R3). Forbidden: claiming a track is “deliverable” and moving to phase 4 before the acceptance checklist passes.
  • Forbidden: using “reduce workload” or other reasons not in the Skill to deviate; only when the user explicitly waives in the current turn may the full workflow be skipped.

Quick start (agent)

  1. Read program.md (shortest path) or the checklist below; do not skip docs/verifiability.md (R1–R5).
  2. Open phases in order: docs/phase-01-spec.md → phase-02-prompts.md → phase-03-inner.md → phase-04-output.md; read docs/execution.md for cost/order reminders.
  3. Before phase 1 gates pass, do not rewrite delivery code; phase 1 must write tracks/phase-01-acceptance.md (R3); phase 2 must write tracks/phase-02-consistency-check.md (check + scheme–dimension table); r01 for prompt-b/prompt-c must not be a full-page copy of prompt-a; waivers must be explicit in the current user message.
  4. Before claiming delivery matches the final track file, in a class-A environment actually run scripts/skill-verify.sh from the repository root (see program.md).

Execution checklist

- [ ] Read docs/verifiability.md (R1–R5)
- [ ] Phase 1: spec written, feature list non-empty; tracks/phase-01-acceptance.md exists with ≥1 item
- [ ] Phase 2: outer prompts + consistency check; tracks/phase-02-consistency-check.md written (with table)
- [ ] Phase 3: each tracks/prompt-*/ has at least r01.* and r02.*; non-a r01 is independently generated
- [ ] Phase 4: compare & output; at least one track fully checked before final delivery (R3; self-score reference only)
- [ ] Delivery claim: ran skill-verify.sh and recorded command + output (R2/R4)

Resource index

ResourcePath
Shortest entryprogram.md
R1–R5 authoritydocs/verifiability.md
Phases 1–4docs/phase-01-spec.md etc.
Executiondocs/execution.md
Layout & verifyreference.md
Exampleexamples.md
Human guideSKILL-GUIDE.md
Scriptscripts/skill-verify.sh (run from repo root)

User waiver

Must be written in the current task message, e.g.:

This task waives the Skill / skips phases

(Synonyms allowed if equally explicit; the agent must not infer a waiver.)

High-risk domains

Does not replace regulation, clinical procedures, or human review; model self-scores and scripts are not sole safety 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.