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

improve

Skill2 starsChanged 6 months agoMITView on GitHub

Self-improvement — analyze the project and update CLAUDE.md, rules, settings, and agents to improve AI effectiveness

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

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Framework detection: Read config files (next.config.*, vite.config.*, angular.json, etc.)

    line 38
  2. Distinctive:

    Read current CLAUDE.md and check:

    line 46
  3. Distinctive:

    Missing information: Add sections for:

    line 57
  4. Distinctive:

    Outdated information: Check if documented commands, paths, or patterns still exist

    line 62
  5. Very specific:

    If --scope claude-md or full pass: apply changes.

    line 64
  6. Distinctive:

    Check if files matching those patterns actually exist

    line 72
  7. Very specific:

    If patterns are still {{PLACEHOLDER}}, replace with discovered file patterns

    line 73
  8. Distinctive:

    If the project has file types not covered by any rule, consider adding rules

    line 76
  9. Distinctive:

    If a rule's file patterns match zero files, warn (don't delete — user may add files later)

    line 80
  10. Very specific:

    Read .claude/settings.local.json and check:

    line 86
  11. Distinctive:

    If project uses git heavily, ensure Bash(git*) patterns

    line 89
  12. Distinctive:

    If project needs web access for docs, ensure WebFetch/WebSearch

    line 90
  13. Distinctive:

    Tool appropriateness: Do the allowed tools match what the agent needs?

    line 102

“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 for better AI assistance.

Usage

/improve                  — Full improvement pass (all areas)
/improve claude-md        — Update CLAUDE.md only (fill placeholders, add patterns)
/improve rules            — Update rule file patterns to match actual project
/improve settings         — Update permissions and model config
/improve agents           — Tune agent tools and models for project needs
/improve scan             — Report only, no changes (dry run)

Process

Phase 1: Project Discovery

Scan the project to build a comprehensive profile:

  1. Tech stack detection:
# Package managers and dependency files
ls package.json requirements.txt Pipfile go.mod Cargo.toml build.gradle pom.xml Gemfile composer.json sfdx-project.json 2>/dev/null
  1. File type census:
find . -type f -not -path "*/.git/*" -not -path "*/node_modules/*" -not -path "*/__pycache__/*" -not -path "*/vendor/*" -not -path "*/.next/*" -not -path "*/dist/*" -not -path "*/build/*" | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -20
  1. Framework detection: Read config files (next.config., vite.config., angular.json, etc.)
  2. Directory structure: Map the top-level architecture
  3. Existing tooling: Find linter configs, test configs, CI configs

Phase 2: CLAUDE.md Improvement

Read current CLAUDE.md and check:

  1. Unfilled placeholders: Find any remaining {{...}} and fill from discovered data:
    • {{PROJECT_DESCRIPTION}} — from README.md, package.json description, etc.
    • {{TECH_STACK_TABLE}} — build from dependency files
    • {{CODE_STRUCTURE}} — generate directory tree
    • {{CODING_STANDARDS}} — infer from linter configs (.eslintrc, .prettierrc, pyproject.toml, etc.)
    • {{ERROR_HANDLING_PATTERN}} — find common error patterns in code
    • {{TESTING_STRATEGY}} — infer from test config and existing tests
    • {{INTEGRATIONS}} — list discovered external services
  2. Missing information: Add sections for:
    • Discovered environment variables and their purposes
    • Common commands found in package.json scripts or Makefile
    • Team conventions visible in git log patterns
  3. Outdated information: Check if documented commands, paths, or patterns still exist

If --scope claude-md or full pass: apply changes. Otherwise skip.

Phase 3: Rules Improvement

For each rule file in .claude/rules/:

  1. Verify patterns match reality:
    • Extract the glob patterns from the YAML frontmatter
    • Check if files matching those patterns actually exist
    • If patterns are still {{PLACEHOLDER}}, replace with discovered file patterns
  2. Add missing rules:
    • If the project has file types not covered by any rule, consider adding rules
    • Common gaps: middleware files, config schemas, migration files, test utilities
  3. Remove irrelevant rules:
    • If a rule's file patterns match zero files, warn (don't delete — user may add files later)

If --scope rules or full pass: apply changes. Otherwise skip.

Phase 4: Settings Improvement

Read .claude/settings.local.json and check:

  1. Permissions: Are all tools the project workflow needs allowed?
    • If project uses git heavily, ensure Bash(git*) patterns
    • If project needs web access for docs, ensure WebFetch/WebSearch
  2. Model: Is the default model appropriate?
    • Complex architecture projects may benefit from opus
    • High-volume code generation may benefit from sonnet for speed

If --scope settings or full pass: apply changes. Otherwise skip.

Phase 5: Agent Improvement

For each agent in .claude/agents/:

  1. Tool appropriateness: Do the allowed tools match what the agent needs?
  2. Model selection: Is the model appropriate for the task complexity?
  3. Placeholder check: Are any {{PLACEHOLDER}} values unfilled?

If --scope agents or full pass: apply changes. Otherwise skip.

Phase 6: Report

## Framework Improvement Report

### Project Profile
- **Type:** {detected project type}
- **Stack:** {tech stack summary}
- **Size:** {file count, LOC estimate}

### Changes Made
| File | Change | Reason |
|------|--------|--------|
| {path} | {description} | {why} |

### CLAUDE.md Status
- Placeholders filled: {n}
- Placeholders remaining: {n} (need human input)
- Sections added: {list}
- Sections updated: {list}

### Rules Status
- Rules with matching files: {n}/{total}
- Patterns updated: {list}
- New rules created: {list}

### Recommendations (need human decision)
- {items that require human judgment}

### Next Steps
1. Review changes in CLAUDE.md and fill remaining placeholders
2. Run `/improve scan` again after making manual updates
3. Consider `/team review` to validate the improved configuration

Edge Cases

ScenarioBehavior
CLAUDE.md doesn't existCreate from template, fill what's discoverable
No .claude/ directoryRun setup.sh first (print instructions)
--scope scanReport only, make no changes
Mixed project (frontend + backend)Detect both, configure rules for both
Monorepo with multiple appsDetect workspace structure, note in CLAUDE.md

Related Skills

  • /ai-update — Create branch + PR for AI config changes (use after /improve for tracked 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.