Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Consolidate

ASecurity

Audit and prune rules, skills, and learnings to cut context bloat. Triggers "consolidate", "clean up rules", "what's redundant", or degraded agent performance from oversized instructions.

44 stars
0 votes
0 copies
1 views
Added 9/3/2026
ai-agentsbashrailsgitperformance

Works with

claude code

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add darkroomengineering/cc-settings --skill consolidate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Consolidate?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Consolidate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/darkroomengineering-consolidate/badge)](https://www.skillsdirectory.com/skills/darkroomengineering-consolidate)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: consolidate
description: Audit and prune rules, skills, and learnings to cut context bloat. Triggers "consolidate", "clean up rules", "what's redundant", or degraded agent performance from oversized instructions.
context: fork
---

# Consolidate Rules, Skills, and Learnings

## Standalone Codex mode

Audit `${CODEX_HOME:-$HOME/.codex}/AGENTS.md`, native
`${CODEX_HOME:-$HOME/.codex}/agents/`, native
`${CODEX_HOME:-$HOME/.codex}/rules/`, and the managed skills in the real
cc-settings checkout named by
`${CODEX_HOME:-$HOME/.codex}/.cc-settings-version` `repo_path`. Validate that
path is a git checkout of `darkroomengineering/cc-settings` before treating it
as source. The installed plugin/cache and `darkroom/source` runtime copy may be
read to diagnose drift, but must never be edited as though either were the git
source.

Claude auto-memory and `CLAUDE.md` cleanup are unavailable in standalone
Codex. Skip those counts and phases rather than redirecting them into
`~/.claude`. Verify native agent/rule references and managed source skill
triggers, then ask before deleting anything.

The remaining path examples describe Claude Code.

## Phase 1: Audit

### Count everything
```bash
echo "Rules:" && ls ~/.claude/rules/*.md 2>/dev/null | wc -l
echo "Skills:" && ls -d ~/.claude/skills/*/SKILL.md 2>/dev/null | wc -l
echo "Auto-memory entries:" && find ~/.claude/projects/*/memory -name "*.md" -not -name "MEMORY.md" 2>/dev/null | wc -l
echo "CLAUDE.md lines:" && wc -l ~/.claude/CLAUDE.md 2>/dev/null
echo "AGENTS.md lines:" && wc -l ~/.claude/AGENTS.md 2>/dev/null
```

### Check for contradictions
Read all rules and flag:
- Opposites ("always X" in one, "never X" in another)
- Significant overlap (two rules covering the same concern)
- References to outdated tools, patterns, or dependencies
- Vague rules that aren't actionable

### Check skill triggers
Read all skill descriptions and flag:
- Overlapping trigger phrases between skills
- Skills that never get invoked (ask the user)
- Outdated instructions

## Phase 2: Merge and Deduplicate

### Rules
- Merge rules covering the same concern
- Remove rules that duplicate AGENTS.md guardrails
- Remove rules for problems that no longer occur
- Tighten vague rules into specific instructions

### Skills
- Merge skills with overlapping triggers
- Remove unused skills. In Claude Code, run native `/skill-doctor` first: it reports which loaded skills went unused and what each costs in context, so prune from its numbers rather than by guess
- Update outdated instructions
- Ensure distinct, non-overlapping trigger phrases

### Auto-memory
- Review entries under `~/.claude/projects/<hash>/memory/`
- Remove entries about long-fixed bugs
- Remove entries about deprecated patterns
- Consolidate similar entries into one

## Phase 3: Simplify CLAUDE.md

CLAUDE.md should be a routing table:
- Points to AGENTS.md for standards
- Points to rules for specific concerns
- Points to skills for specific workflows
- Minimal inline content

If it exceeds ~100 lines of content, extract inline sections into rules or skills.

## Phase 4: Verify

1. Start a fresh Claude Code session
2. Test that key skills still trigger
3. Verify no regressions in agent behavior
4. Ask the user about rules you're unsure about

## Output Format

```markdown
## Consolidation Report

### Changes Made
- Merged: [list]
- Removed: [list]
- Updated: [list]

### Current State
- Rules: N (was M)
- Skills: N (was M)
- Learnings: N (was M)
- CLAUDE.md: N lines (was M)

### Flagged for User Review
- [Item]: [Why it needs human judgment]

### Recommendations
- [Further cleanup suggestions]
```

## Remember

- Ask before deleting — the user may have reasons you don't see
- Fix contradictions first — they cause the most confusion
- Overlapping triggers cause skill mis-invocation
- 10 sharp rules beat 30 vague ones

Attribution

darkroomengineeringdarkroomengineering
View sourceMore from darkroomengineering →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →