plugins/dev-tools/skills-codex/reviewing-cc-config/SKILL.md
Review Claude Code configuration for context efficiency, signal density, and anti-patterns. Use when user says "review config", "review setup", "check configuration", "review cc config", "context review", "config review", "review my setup", "review skills", "review agents", "review hooks", or wants feedback on their Claude Code configuration quality.
npx skillsauth add alexei-led/claude-code-config reviewing-cc-configInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review configuration against context engineering principles derived from Anthropic's "Effective Context Engineering for AI Agents" and "Best Practices for Claude Code."
Track these 4 phases. Keep work scoped to ONLY these review targets and keep agent prompts/output compact:
Scan for all Claude Code configuration components. Check BOTH standard layout
and plugin layout (cc-thingz style). Findings must cite concrete file paths or configuration locations such as CLAUDE.md, .claude/settings.json, .claude/skills/<name>/SKILL.md, plugins/<plugin>/skills/<name>/SKILL.md, plugins/<plugin>/hooks/<hook>.sh, or .claude-plugin/marketplace.json.
# Glob these patterns in parallel
CLAUDE.md
CLAUDE.local.md
.claude/CLAUDE.md
.claude/settings.json
.claude/settings.local.json
.claude/skills/*/SKILL.md
.claude/agents/*.md
.claude/commands/**/*.md
# Also check parent dirs (monorepo) and home
~/.claude/CLAUDE.md
../CLAUDE.md
plugins/ or .claude-plugin/ exists)plugins/*/skills/*/SKILL.md
plugins/*/agents/**/*.md
plugins/*/hooks/*.sh
plugins/*/commands/**/*.md
.claude-plugin/marketplace.json
Extract hook script paths from settings.json hooks field. Read each script.
Extract MCP server names from settings.json mcpServers field. Count them.
Build inventory table:
| Component | Count | Token Est | Details |
| ----------- | ----- | --------- | ---------------------- |
| CLAUDE.md | N | ~Nt | paths |
| Skills | N | ~Nt | names (auto/invocable) |
| Agents | N | ~Nt | names (model) |
| Hooks | N | ~Nt | events |
| Commands | N | ~Nt | names |
| MCP servers | N | — | names |
Token estimation: word_count * 1.3 for English text.
Calculate the session startup cost — tokens loaded before the user's first prompt:
Startup Budget = CLAUDE.md tokens
+ auto-activated skill bodies (skills without user-invocable: true
that match common prompts)
+ hook startup output (SessionStart hooks)
+ settings overhead
| Budget | Rating | Action | | ---------- | ------- | ------------------------------------- | | <2K tokens | LEAN | Ideal — maximum attention available | | 2K-4K | OK | Acceptable for complex projects | | 4K-6K | HEAVY | Consider moving content to skills | | >6K | BLOATED | Urgent — context rot risk from turn 1 |
Count CLAUDE.md lines and estimate tokens. Flag if CLAUDE.md exceeds 150 lines or ~3K tokens.
Find and read the rubric (co-located with this skill):
# Try both plugin layout and standard layout
Glob("**/skills/reviewing-cc-config/RUBRIC.md")
Read the first match. If no match found, stop and warn the user that RUBRIC.md is missing — do not proceed without the rubric. If the rubric or requested config files are unavailable, stop and report the blocker instead of inventing findings.
Parse $ARGUMENTS:
all → review everythingskills → review only skillsagents → review only agentshooks → review only hooksclaude-md → review only CLAUDE.md filescommands → review only commands--fix → apply fixes after review (Phase 5)Read RUBRIC.md (co-located with this skill) first. Pass relevant rule IDs
to each agent. Spawn up to 4 agents in parallel, one per component type.
Skip agents for component types not present or not in scope.
Each agent prompt must include:
Agent 1: CLAUDE.md Reviewer — Rules: SD-CLAUDE-MD, AR-HOOK-DETERMINISTIC,
AR-SKILL-DEMAND, AP-OVER-SPECIFIED (>150 lines), CB-STARTUP (<3K tokens).
Output per file: ### path (lines, ~tokens) + rule/verdict/notes table.
Keep under 1500 tokens.
Agent 2: Skills Reviewer — Rules: SD-DESCRIPTION, CB-FORK, SD-TOOL-MINIMAL,
AR-VERIFY, AR-MODEL-MATCH, AP-TRIGGER-OVERLAP, AP-OVER-SPECIFIED (>200 lines),
CB-PROGRESSIVE. Output per skill: ### name (model, invocable, lines) +
rule/verdict/notes table + trigger overlap matrix (conflicts only).
Keep under 2000 tokens.
Agent 3: Agents & Commands Reviewer — Rules: AR-ISOLATION, SD-TOOL-MINIMAL,
SD-RETURN, AP-SCOPE-UNBOUNDED, AR-MODEL-MATCH, AP-OVER-SPECIFIED (>100 lines).
Output per agent/command: ### name (model, tools, lines) +
rule/verdict/notes table. Keep under 1500 tokens.
Agent 4: Hooks Reviewer — Rules: AR-HOOK-DETERMINISTIC, plus: performance
(<2s), exit code discipline (0=context, 2=blocking), event appropriateness
(PreToolUse=validation, PostToolUse=verification, SessionStart=setup,
Notification=alerts, PostCompact=metrics). Output per hook:
### name (event, lines) + check/verdict/notes table. Keep under 1000 tokens.
Collect results from all review agents. Cross-check: for each ERROR finding that references a specific line number or file path, verify it exists by reading the actual file. Agents can hallucinate line numbers — drop findings that don't match reality. Every finding must include a concrete file path/config location and actionable fix. Do not report generic "CLAUDE.md" or "RUBRIC.md" unless that exact path was read or requested. Present:
Report structure:
--fix in arguments)Skip this phase entirely unless --fix is in $ARGUMENTS.
Apply only approved fixes. Confirm before deleting files, removing hooks, broad rewrites, or changing permissions:
context: fork, trim tool lists, fix descriptionsAfter each fix, show the diff. Do NOT make changes beyond what was flagged.
Post-fix verification: After all fixes are applied, re-check modified components against the rules that triggered the fix. Confirm each finding is resolved. Report any regressions.
/reviewing-cc-config # Review all config components
/reviewing-cc-config skills # Review only skills
/reviewing-cc-config claude-md # Review only CLAUDE.md files
/reviewing-cc-config hooks agents # Review hooks and agents
/reviewing-cc-config all --fix # Review everything, then apply fixes
Execute this workflow now.
tools
Idiomatic shell development for POSIX sh, Bash, Zsh, Fish, hooks, CI shell steps, and scriptable CLI glue. Use when writing or changing `.sh`, `.bash`, `.zsh`, `.fish`, `.bats`, shell functions, shell pipelines, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, TypeScript, Go, web code, or infrastructure operations.
tools
Use when planning, executing, checkpointing, finishing, or inspecting lightweight spec-driven work. Runs one task at a time using `.spec/` markdown files and the bundled `specctl` helper. NOT for broad product discovery beyond a short requirement interview.
testing
Author, inspect, troubleshoot, and review infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions, AWS, GCP, Cloud Run, BigQuery, IAM, logs, instances, or service health. NOT for deploy/apply/rollback workflows (see deploying-infra). NOT for shell scripts or generic command pipelines (see writing-shell).
development
Configure safe git workflow hygiene: pre-commit/pre-push hooks, Gitleaks secret scanning, .gitignore rules, local git config, and guardrails. Use when setting up git hooks, gitleaks/git leaks, staged pre-commit checks, pre-push validation, core.hooksPath, .gitignore, or git config best practices. NOT for creating commits (use committing-code), cleaning branches/worktrees (use cleanup-git), or creating worktrees (use using-git-worktrees).