# Config gc

> Config gc is an open-source agent skill for developer tools. Audits your Claude Code config for stale or redundant items, confirming each deletion. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/config-gc
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** config-gc
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Config GC scans the ~/.claude directory across several channels: skills, memory files, hooks, permission entries, MCP server definitions, scheduled jobs, project history and runtime caches. It flags candidates that look redundant, orphaned, expired or low-value, then ranks them and caps each run at about twenty items so the review stays manageable.

The skill is built around a human-in-the-loop flow. Each candidate is shown with its evidence and needs its own yes, no or skip answer, and nothing is removed autonomously. Confirmed items are soft-deleted first, by renaming hooks and skills to .disabled or moving files into a dated trash folder, and permission entries are backed up before being removed with jq. Every run is appended to a gc_log.md file with undo instructions.

The skill includes example shell commands for finding orphaned hook scripts, duplicate or wildcard-shadowed permission grants, and large stale caches, using commands that work on both macOS and Linux. It expects a local Claude Code setup with a POSIX shell, jq and standard file utilities, and it is scoped to the user's configuration folders rather than project source code.

## When your agent uses it

> Garbage collection for your Claude Code configuration. Periodically scans ~/.claude (skills, memory, hooks, permissions, MCP servers, caches) for redundant, stale, orphaned, or low-value items, then walks the user through a confirm-each-deletion cleanup. Use when the user says "clean up my config", "config GC", "too many skills", "audit my setup", "my .claude is bloated", or asks for a periodic config review.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/config-gc)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/config-gc)

## Features

- **Multi-channel configuration scan:** Checks skills, memory, hooks, permissions, MCP servers, scheduled jobs, project history and caches for accumulated clutter.
- **Confirm-each-deletion workflow:** Presents each candidate with its evidence and requires an individual yes, no or skip decision.
- **Soft-delete with undo path:** Renames or moves items to a trash folder and backs up settings files before any change.
- **Permission redundancy checks:** Finds duplicate allow entries and specific grants already covered by a wildcard.
- **Orphaned hook detection:** Identifies hook scripts on disk that no settings file references.
- **Run logging:** Appends each cleanup run to a log with timestamps and reversal instructions.

## Good for

- Clean up my Claude Code config, it has too many skills now
- Find hook scripts that are no longer referenced in my settings
- Audit my permission allow list for duplicate or redundant entries
- Show me the largest stale caches in my .claude folder
- Run a monthly review of my Claude Code setup

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/config-gc`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/config-gc &&
cp -R "$tmp/.agents/skills/config-gc" ~/.claude/skills/config-gc &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/config-gc` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/config-gc` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/config-gc &&
cp -R "$tmp/.agents/skills/config-gc" ~/.agents/skills/config-gc &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/config-gc` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/config-gc` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/config-gc &&
cp -R "$tmp/.agents/skills/config-gc" ~/.cursor/skills/config-gc &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/config-gc` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/config-gc
```

Or copy the folder to `~/.gemini/skills/config-gc` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/config-gc`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/config-gc &&
cp -R "$tmp/.agents/skills/config-gc" ~/.copilot/skills/config-gc &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/config-gc` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/config-gc` into your agent's skills folder as `config-gc`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Config gc need to run?

The example commands use a POSIX shell, jq, du and standard file utilities, and they operate on files under ~/.claude.

### Does Config gc delete things automatically?

No. Every candidate needs an explicit confirmation, and confirmed items are soft-deleted to a trash folder or renamed to .disabled rather than hard-deleted unless the user asks.

### What does Config gc never touch?

It stays out of project source trees and does not clear chat history or uninstall Claude Code.

### How does Config gc decide what is stale?

It uses per-channel signals such as duplicate entries, orphaned files, broken SKILL.md files, and age in days, treating age as a hint rather than proof.

### How do I install Config gc in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/config-gc to use it in all your projects, or to .claude/skills/config-gc in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Config gc run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Config gc?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Config gc?

The closest alternatives to Config gc are Config health, Claude settings audit, Autonomous agent harness, Maintenance and Agentic os.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Config health](https://ai-powered.com/skills/config-health): Config health is an open-source agent skill for developer tools.
- [Claude settings audit](https://ai-powered.com/skills/claude-settings-audit): Claude settings audit is an open-source agent skill for ai models and llm tooling.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.
- [Maintenance](https://ai-powered.com/skills/maintenance-chachamaru127-2): Maintenance is an open-source agent skill for developer tools.
- [Agentic os](https://ai-powered.com/skills/agentic-os-smartworldarafath): Agentic os is an open-source agent skill for developer tools.
- [Maintain verification skill](https://ai-powered.com/skills/maintain-verification-skill): Maintain verification skill is an open-source agent skill for developer tools.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Ccmanager config](https://ai-powered.com/skills/ccmanager-config): Ccmanager config is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/config-gc
