agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/improve/SKILL.md

improve

Skill2 starsChanged 6 months agoMITView on GitHub

Self-improvement — orchestrates framework-improver-detector and framework-improver-applier across a skip-list-aware pipeline. Distinct from /setup (first-run shape decisions); /improve owns ongoing evolution and refuses to overwrite layers /setup decided

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use goal, loop and 7 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.
  • jthackSkill

    goal

    Codex-style /goal for Claude Code. Use when the user runs /goal, wants a persistent long-running objective, or wants to pause, resume, clear, or complete a goal.

    Also in 3 projects that use this

  • ww-w-aiSkill

    loop

    Run a prompt or command on a recurring interval. Useful for monitoring, polling, or periodic checks.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    test

    Also in 5 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 4 projects that use this

  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 0

    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:

    If --scope scan, stop here.

    line 47
  2. Very specific:

    Read .claude/state/improve-applied.md and surface:

    line 65

“Common” is measured: kept by at least 6 in 10 of the 35 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 — Framework Self-Improvement

Analyze the current project state and improve the .claude/ configuration. This is the ongoing-evolution lifecycle counterpart to /setup — it tunes around shape decisions /setup already made instead of overwriting them.

Lifecycle vs /setup: /setup decides shape (first run). /improve keeps shape in tune as the project grows. Boundary is enforced architecturally: the detector reads setup-applied.md to build a skip-list at proposal time, the applier re-validates the skip-list at apply time. Items /setup owns never become candidates.

Usage

/improve                  full pass: detect → apply (no user gate; autonomous)
/improve scan             dry run — produce proposal only, don't apply
/improve claude-md        scope to CLAUDE.md placeholders
/improve rules            scope to .claude/rules/ patterns
/improve settings         scope to .claude/settings.local.json
/improve agents           scope to .claude/agents/ tuning

Scopes are passed through to the detector to limit the proposal.

Process

Phase 1: Detect (read-only)

Spawn framework-improver-detector:

Run your full process. Read setup-applied.md (if present) and build the
skip-list, scan the project per docs/project-detection.md, identify
improvements, filter against the skip-list, and write
.claude/state/improve-proposal.md. End with the surface summary.

The detector is read-only by tool restriction. It writes only .claude/state/improve-proposal.md.

Phase 2: Verify proposal

Read the proposal:

  • Confirm ## Improvements is well-formed
  • Confirm ## Filtered (owned by /setup) lists items the detector dropped — surface to user as "respected /setup decisions"
  • Confirm there are no path-allowlist violations (the applier will halt if there are, but flagging here is faster)

If --scope scan, stop here. Print the path to improve-proposal.md for inspection.

Phase 3: Apply

Spawn framework-improver-applier:

Read .claude/state/improve-proposal.md. Run all 4 pre-apply gates
(proposal exists, re-derive skip-list, filter & halt if non-empty drop
count, allowlist validate). On success, snapshot to
.claude/state/improve-backup-<ts>/, apply substitutions, smoke-check,
write .claude/state/improve-applied.md. Auto-rollback on any error.

The applier has Edit/Write but refuses to apply any item in the /setup-owned skip-list.

Phase 4: Verify and report

Read .claude/state/improve-applied.md and surface:

  • Count of changes applied
  • Count of refusals (skip-list enforcement — should be 0 if detector did its job)
  • List of remaining {{...}} placeholders (intentionally vs unexpected)
  • Backup directory path (rollback path)
  • Path to docs/ai-improvements.md (append-only changelog)

State Files

FileOwnerLifecycle
.claude/state/improve-proposal.mddetector (Phase 1)Overwritten each run
.claude/state/improve-applied.mdapplier (Phase 3)Append-only audit
.claude/state/improve-backup-<ts>/applier (Phase 3)Created every apply; rollback path
docs/ai-improvements.mdapplier (Phase 3)Append-only project-level changelog

When to Use /improve vs /setup

SituationUse
First-time onboarding (just ran setup.sh)/setup
Convention drift after weeks of development/improve
Filling specific {{...}} placeholders/improve claude-md
Adding new rule patterns based on actual file structure/improve rules
Switched stacks (e.g., npm → pnpm)/setup --layer=build

/setup is shape-deciding. /improve is shape-tuning. They don't overlap — the skip-list mechanism enforces it.

Edge Cases

ScenarioBehavior
setup-applied.md doesn't exist (no /setup ever run)Detector treats every layer as in-scope; user warned that /setup is recommended for first-time onboarding
Detector proposes empty improvements listSkill skips Phase 3; reports "nothing to improve"
Applier gate 3 drops items (non-empty)Halt; surface refusals; user reviews and decides
CLAUDE.md doesn't existDetector recommends running /setup first; does not fill placeholders into a missing file
Apply fails mid-flightAuto-rollback from backup; apply log not written; proposal stays valid for re-run after fix
--scope scanStop after Phase 2; do not spawn applier

Related

  • framework-improver-detector agent — runs Phase 1, produces proposal (read-only by tool removal)
  • framework-improver-applier agent — runs Phase 3, applies with skip-list enforcement + backup + audit
  • /setup — first-run shape decisions; writes the skip-list this skill respects
  • docs/project-detection.md — shared detection bash
  • docs/setup-state-schema.md — schema for setup-proposal.md and setup-applied.md (defines the layer→placeholder mapping the skip-list uses)
  • /ai-update — Create branch + PR for AI config changes
  • /add-reference — Add domain knowledge references
  • /team full — Run all agents to validate improved configuration

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.