agentleFS
mthinesmthines/agent-skills/skills/workflow/improve/SKILL.md

improve

Skill22 starsChanged 32 days agoMITView on GitHub

Runs a telemetry-driven self-improvement loop: `discover` finds improvement hypotheses in a service's traces and metrics, `validate` re-measures each in an independent window, a human `approve`s, `ship` sends it through `/atelier`, and `verify` judges it against the baseline stored on a LoreKit bus once the change is deployed. A confirmed hypothesis closes; a neutral or regressed one escalates through `ticket` or retries once. Five scores rank the queue, and a separate rule decides AUTO vs HUMAN. Opt-in for atelier through `.agents/aw/improve.yml`. `setup` writes that file. Triggers on "find improvements from telemetry", "what should we optimise", "did that change actually help", "/improve".

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy-platform, setup-platform and 10 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.
  • agno-agiSkill

    deploy-platform

    Deploy this AgentOS using its own provider instructions, configure JWT verification, and verify the public service. Use for first deployment, redeployment, or production configuration changes.

    Also in 6 projects that use this

  • agno-agiSkill

    setup-platform

    Set up this AgentOS from a fresh clone — confirm Docker, configure .env, boot the containers, prove the MCP endpoint live, connect the AgentOS UI, then build the user's first agent. Use when the user asks to set up the platform, get started, or bring this repo up on a new machine.

    Also in 6 projects that use this

  • MicrosoftSkill

    create-agent

    Create a new MCS2 Copilot Studio agent and PAC-connected local workspace with `pac copilot init`, then optionally add modern instructions, skills, tools, knowledge, and settings before synchronizing it. Use when the user asks to create, scaffold, initialize, or build a Copilot Studio agent.

    Also in 7 projects that use this

  • launch52-aiSkill

    domain

    Generate domain layer code (entities, enums, repository interfaces) from feature specifications. Creates pure Dart business logic with no external dependencies. Use after /feature-init to fill in the domain layer.

    Also in 3 projects that use this

  • NVIDIASkill

    goal

    Check the current discovery target and stopping decision. Use for /goal.

    Also in 6 projects that use this

  • HeshamFSSkill

    loop

    Run a command or check on a recurring interval

    Also in 6 projects that use this

  • +3 more from agno-agi

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Read .agents/aw/improve.yml (rules/discover.md).

    line 49
  2. Distinctive:

    Run the three self-tests and the calibration gates.

    line 50
  3. Very specific:

    Every state change goes through bus.mjs --apply, which refuses an illegal transition (rules/bus.md):

    line 72

“Common” is measured: kept by at least 6 in 10 of the 80 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

improve

/aw-verify proves a feature works before the merge, and /deployment-verify proves it did no harm after. Neither asks whether the change was worth making, and neither remembers. This skill does both: it finds what is worth improving, records the baseline before anything ships, and checks the result after the deploy. Scripts decide; the agent measures and writes. Why it is shaped this way: references/design.md.

Invocation

/improve setup                       # write .agents/aw/improve.yml (interactive only)
/improve discover                    # mine telemetry, write `proposed` hypotheses with a baseline and scores
/improve validate <id>               # re-measure in an independent window; → validated or rejected
/improve approve <id>                # the human gate (interactive only); /improve reject <id> [reason]
/improve ship <id>                   # dispatch /atelier for an approved hypothesis
/improve verify [--sha <merge-sha>]  # judge every deployed hypothesis whose after-window is complete
/improve status                      # read-only table of the bus
ArgumentMeaning
<id>A hypothesis slug, <service>-<route>-<stat>-<n>
--repoThe bus scope's <owner/name>; default is the current checkout's. Use a scratch slug to dry-run without touching a real repo's bus
--shaThe merge commit a deploy just finished; verify still judges every due hypothesis, not only that one
--unattendedNo questions; approve and setup are refused, everything else runs

Step 0 — Resolve and refuse early

  1. Read .agents/aw/improve.yml (rules/discover.md). Missing → STOPPED — run /improve setup first; an atelier call with no file is a silent no-op, never an error.
  2. Run the three self-tests and the calibration gates; a failure stops the run, because a verdict rule is broken:

    node ${CLAUDE_SKILL_DIR}/scripts/judge.mjs --self-test
    node ${CLAUDE_SKILL_DIR}/scripts/score.mjs --self-test
    node ${CLAUDE_SKILL_DIR}/scripts/bus.mjs --self-test
    node ${CLAUDE_SKILL_DIR}/scripts/simulate.mjs
  3. Resolve <owner/name> from --repo, else gh repo view --json nameWithOwner. Probe the bus with bus.mjs --list --repo <slug>; a Degraded: line stops every mode except status and setup, because nothing is recorded without it.
  4. Telemetry comes from the .agents/aw/telemetry.yml backend, read the way telemetry-verify reads it (the Dash0 MCP server chosen by capability, never by name).

Modes

ModeDoesOwner rule
discoverQueries the configured services over window_hours, writes up to max_open minus the open count proposed recordsrules/discover.md
validateSecond independent window, code-path lookup, /confidence analysis, /critical analysis; → validated or rejectedrules/discover.md
approve, rejectThe human gate; records the review time; score.mjs prints the recommendation beside itrules/scoring.md
shipSkill("atelier", "<request> --improve <id>"); the record moves approved → shipping and stores the PRrules/hook.md
verifyJudges each deployed hypothesis against its baseline and applies the transitionrules/judge.md, rules/hook.md

Every state change goes through bus.mjs --apply, which refuses an illegal transition (rules/bus.md):

✗ write the record's "state" field by hand with memory_write
✓ node ${CLAUDE_SKILL_DIR}/scripts/bus.mjs --apply --repo acme/web --id api-orders-p95-1 --to validated --reason "second window: p95 612 ms, n 940"

Rules

  • Scripts decide. The verdict comes from judge.mjs, AUTO vs HUMAN from score.mjs, legality of a state change from bus.mjs; never from your judgment.
  • A human approves every hypothesis until improve.yml sets autonomy. An unset autonomy is always HUMAN, and critical and data risk classes are never AUTO (rules/scoring.md).
  • The baseline is taken before the change ships, from the same query the after-window reuses. A baseline measured differently from the after-window is refused (rules/judge.md).
  • improve never rolls back and never flips a flag. A regressed verdict is recorded and escalated; /deployment-verify owns the rollback.
  • The bus is evidence, never a gate on a stage. An unreachable store is one Degraded: line; atelier proceeds.
  • One retry. A neutral or regressed hypothesis may be revised once (attempt: 2); the second failure escalates (rules/bus.md).

Output

IMPROVE <mode>
- Repo: <owner/name>
- Bus: <n open> open, <n> confirmed, <n> escalated
- Judged: [<id> <VERDICT> <effect_pct> % vs a <band_pct> % band | none due]
- Degraded: [what was skipped and why, or "none"]
- Needs you: [the next human step (approve <id>, a ticket link), or "nothing"]

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.