
Config gc
Audits your Claude Code config for stale or redundant items, confirming each deletion
Config gc is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Config gc
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (8 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/config-gc:
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.
Copy the skill folder to ~/.agents/skills/config-gc to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/config-gc to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/config-gcOr copy the folder to ~/.gemini/skills/config-gc yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/config-gc:
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.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen 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.
What it does
- 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
Config gc 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.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments



