clean-up-agent-config

clean-up-agent-config is a skill for Claude Code, Codex from cboone/agent-harness-plugins. It costs 112 tokens per session (6,014 once invoked), scanned A, original, MIT.

A workflow for reviewing and organizing instruction and configuration files used by Claude Code, Codex, GitHub Copilot, and OpenCode.

In plain words
What is it for?
It is for setting up, reviewing, consolidating, and standardizing coding-agent configuration across a repository.
Why use it?
It helps reduce duplicated or conflicting agent instructions by placing shared guidance in one consistent structure and keeping tool-specific settings separate.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the clean-up-agent-config plugin — 1 skill shipped together

Good fit It is for setting up, reviewing, consolidating, and standardizing coding-agent configuration across a repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cboone/agent-harness-plugins/clean-up-agent-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cboone/agent-harness-plugins --skill clean-up-agent-config
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code, Codex.

Or install clean-up-agent-config, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clean-up-agent-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/clean-up-agent-config.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/clean-up-agent-config)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/clean-up-agent-config"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/clean-up-agent-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,014 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.06014
Opus 5 $0.00056 $0.03007
Sonnet 5 $0.00022 $0.01203
Haiku 4.5 $0.00011 $0.00601

Measured 8d ago against content hash 24b01668d92f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

clean-up-agent-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/clean-up-agent-config/skills/clean-up-agent-config/SKILL.md · 507 lines

How it starts

The opening of the file, as written. The whole thing — 507 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Config Cleanup

Review, consolidate, and organize AI coding agent configuration and instruction files across four tools: Claude Code, OpenAI Codex, GitHub Copilot (CLI agent and code review), and OpenCode.

Reference Documents

Consult the reference files in this skill's references/ directory for detailed information about each tool's file formats, precedence rules, and unique capabilities:

  • references/agent-instruction-files.md -- CLAUDE.md, AGENTS.md, copilot-instructions.md, SKILL.md comparison
  • references/agent-config-files.md -- settings.json, config.toml, opencode.json, VS Code settings comparison

Read these references before starting work. They contain tool-specific details about file precedence, loading behavior, and cross-tool compatibility that inform every decision in this workflow.


Target Structure

The goal is a hub-and-spoke model: shared instructions in one canonical file, tool-specific configuration in each tool's hidden directory.

Instruction files (the hub)

Pick one scoped-instructions layout per repo. The two layouts below are mutually exclusive alternatives, not files that should coexist.

Flat layout (convenient for one or two scoped files):

repo/
+-- AGENTS.md                              # Single source of truth (all tools)
+-- CLAUDE.md -> AGENTS.md                 # Symlink for Claude Code
+-- .claude/
|   +-- rules/
|       +-- *.md                           # Claude-specific rules (auto-loaded)
+-- .github/
    +-- copilot-instructions.md            # Copilot repo-wide review rules
    +-- *.instructions.md                  # Copilot path-scoped rules

Nested layout (scales better when there are many scoped files, or to keep .github/ uncluttered):

repo/
+-- AGENTS.md                              # Single source of truth (all tools)
+-- CLAUDE.md -> AGENTS.md                 # Symlink for Claude Code
+-- .claude/
|   +-- rules/
|       +-- *.md                           # Claude-specific rules (auto-loaded)
+-- .github/
    +-- copilot-instructions.md            # Copilot repo-wide review rules
    +-- instructions/
        +-- *.instructions.md              # Copilot path-scoped rules

Read the full file on GitHub · 507 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 507 lines · 112 tokens per session scan A 24b01668d92f

Subscribe to this mod's changes

clean-up-agent-config is a skill published in the GitHub repository cboone/agent-harness-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 112 tokens to every session and 6,014 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.