agentleFS
slogsdonslogsdon/loop-and-gate-foundation/skills/improve/SKILL.md

improve

Skill0 starsChanged 4 months agoMITView on GitHub

Apply accumulated self-improvement signals. Use when the user asks to run an improvement pass or "apply reflections" — reads Reflections/, applies changes that have earned it, updates standing lessons in MEMORY.md.

66 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 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.
  • 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 4 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 4 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 5 projects that use this

  • admin-remixSkill

    workspace

    Google Workspace administration - manage users, groups, email, Drive, calendars, and devices through natural conversation. Triggers on: Google Workspace, G Suite, user management, group management, admin tasks, offboarding, onboarding, email forwarding, Drive permissions, suspended users, organizational units, ChromeOS devices, audit logs, admin reports.

    Also in 3 projects that use this

  • AmirofcodesSkill

    goal

    Use when the user starts, manages, or asks about an OpenClaw goal mode with /goal. Enforces a bounded goal contract, visible progress blocks, proof requirements, stop conditions, and honest limitation language when no runtime goal-loop plugin is active.

    Also in 4 projects that use this

  • JetBrainsSkill

    doc-sync

    Keeps IdeaVim documentation in sync with code changes. Use this skill when you need to verify documentation accuracy after code changes, or when checking if documentation (in doc/, README.md, CONTRIBUTING.md) matches the current codebase. The skill can work bidirectionally - from docs to code verification, or from code changes to documentation updates.

    Also in 3 projects that use this

  • +3 more from agno-agi

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Read all notes in vault/Reflections/ (newest first).

    line 14
  2. Distinctive:

    Apply: if the signal repeated (same lesson in 2+ reflections, or marked REPEAT SIGNAL) AND the target is concrete AND it survives step 2a.

    line 18
  3. Very specific:

    Reject: if it appeared once and never again (write status: rejected with one line why), or if it's vague ("be more careful" is not a …

    line 20
  4. Distinctive:

    Keep each skill under ~80 lines — if a new rule won't fit, an old rule must be dropped or merged.

    line 35
  5. Very specific:

    Commit — memory and code live in different repos now: Stage the files you edited by path in both — never add -A, which commits whatever …

    line 46
  6. Distinctive:

    Never apply a single-occurrence signal.

    line 72
  7. Distinctive:

    Never apply a proposal the count alone approved.

    line 74
  8. Distinctive:

    Do not edit this skill (improve) to weaken its own gates.

    line 85

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

One job: turn repeated reflection signals into actual changes — skill edits, MEMORY.md standing lessons, config tweaks. This is where the system compounds: the model never changes, but the environment it runs in gets sharper.

Steps

  1. Read all notes in vault/Reflections/ (newest first). Collect every Proposed change block with status: proposed.
  2. For each proposal, decide:
    • Apply if the signal repeated (same lesson in 2+ reflections, or marked REPEAT SIGNAL) AND the target is concrete AND it survives step 2a.
    • Reject if it appeared once and never again (write status: rejected with one line why), or if it's vague ("be more careful" is not a change).
    • Hold (leave proposed) if it appeared once and is recent — it may repeat.

2a. Verify every proposal that reached Apply. Use the verify skill: one fresh-context subagent per proposal, given the claim and the evidence paths (daily notes, vault git diffs, the actual files) and never the Reflections notes. A drop verdict sends the proposal back to Hold with the verifier's one-line why appended — repeats are not evidence on their own, because the hook shows each session the last reflection before it writes its own.

  1. Apply accepted changes:
    • skills/*/SKILL.md → edit the skill. Add the rule where it belongs in the existing structure. Don't append a "lessons" dump at the bottom. Keep each skill under ~80 lines — if a new rule won't fit, an old rule must be dropped or merged. Never change a skill's one job.
    • CLAUDE.md → edit the standing behavior rules. Never touch the "Hard rules" section.
    • vault/MEMORY.md → add a one-line entry under ## Standing lessons (max 10; if full, demote the least-relevant lesson back to its Reflections note).
    • config.yaml → change the value, keep the comment accurate.
  2. Mark each applied proposal status: applied in its Reflections note.
  3. Commit — memory and code live in different repos now: Stage the files you edited by path in both — never add -A, which commits whatever else is in the tree under your message.
    • Skill/CLAUDE.md/config.yaml edits (this repo): git add <the files you edited> && git commit -m "feat: apply self-improvement — <summary>".
    • The MEMORY.md standing-lessons edit lands in the vault (external; see CLAUDE.md → "Resolving the vault path"). Commit it in the vault's own git if it has one: git -C <base> add MEMORY.md <any Reflections notes you restatused> && git -C <base> commit -m "chore: memory update — standing lessons". Self-modification without a reviewable diff is forbidden.
  4. Release it — committed is not shipped. A skill edit lands in a source repo; the agent loads the installed copy. For a plugin skill: bump .claude-plugin/plugin.json and package.json, push, then claude plugin marketplace update <marketplace> and claude plugin update <plugin>@<marketplace> (Claude Code) or pi update git:github.com/<repo> (pi). Verify by grepping the NEW installed copy (the plugin cache, or ~/.pi/agent/git/…) for the text you added — the source file you edited proves nothing about what runs. Skip only if the agent loads the edited file directly.
  5. Report: what you applied, what you rejected, what you held — one line each. Say where each applied change is installed, not just committed.

Rules

  • Never apply a single-occurrence signal. One bad session is noise; the same problem twice is a pattern. This gate is what stops self-thrashing.
  • Never apply a proposal the count alone approved. Two strikes get it to the verifier; the verifier decides. Counting mentions of a claim is not the same as checking it.
  • Walk the user through each applied diff — improvement passes run interactively so the human stays in the review loop.
  • MEMORY.md updates come LAST — after all skill/CLAUDE.md/config edits, immediately before the commit; it is the prompt-cache prefix (see CLAUDE.md).
  • An applied proposal that was never installed is a held proposal with extra steps. Two passes in a row have shipped fixes the running agent never saw.
  • Skills stay atomic: if a proposal would give a skill a second job, reject it and propose a new skill in your report instead.
  • Do not edit this skill (improve) to weaken its own gates.

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.