$npx -y skills add alexei-led/cc-thingz --skill evolving-configAudit AI coding-agent configuration with local evidence first. Default to review-only. Apply fixes only when the user explicitly asks or passes --fix.
| 1 | # Evolving Agent Configuration |
| 2 | |
| 3 | Audit AI coding-agent configuration with local evidence first. Default to |
| 4 | review-only. Apply fixes only when the user explicitly asks or passes `--fix`. |
| 5 | |
| 6 | ## Claude tool use |
| 7 | |
| 8 | - Use Read, Glob, and Grep for local inventory. |
| 9 | - Use WebFetch for official docs, changelogs, and exact source URLs. |
| 10 | - Use Perplexity only when official docs do not answer a current best-practice or ecosystem question. |
| 11 | - Use AskUserQuestion before ambiguous scope or risky fixes. |
| 12 | - Do not fetch broad web advice before reading local config. |
| 13 | |
| 14 | ## Read first |
| 15 | |
| 16 | - `references/RUBRIC.md` for shared review dimensions and severity. |
| 17 | - `references/platforms/claude-code.md` for Claude Code surfaces. |
| 18 | - `references/platforms/codex.md` for Codex surfaces. |
| 19 | - `references/platforms/pi.md` for Pi surfaces. |
| 20 | - `references/apply-fixes.md` only in approved fix mode. |
| 21 | |
| 22 | ## Modes |
| 23 | |
| 24 | Review-only is the default for prompts such as "review my config", "audit |
| 25 | config", "check setup", or "what should I improve". |
| 26 | |
| 27 | Fix mode starts only when the user explicitly asks for changes or passes `--fix`. |
| 28 | Even then, ask before changing permissions, sandbox policy, hooks, MCP servers, |
| 29 | model routing, package installs, deletes, moves, broad rewrites, private config, |
| 30 | or managed settings. |
| 31 | |
| 32 | ## Workflow |
| 33 | |
| 34 | 1. Identify platform, config root, and mode. |
| 35 | 2. If scope is ambiguous, list detected surfaces and ask which to audit. |
| 36 | 3. Inventory relevant files with paths, sizes, and source/generated status. |
| 37 | 4. Read current files before recommending changes. |
| 38 | 5. Check the matching platform reference. |
| 39 | 6. When the audit touches skills, agents, prompts, or package manifests, inspect thin-router risk, weak pointers to must-read support files, and whether plugin grouping forces unrelated instructions into startup context. |
| 40 | 7. Fetch official docs only when syntax, feature availability, or deprecation status is uncertain. |
| 41 | 8. Use broader web research only for source gaps or ecosystem comparisons. |
| 42 | 9. Classify findings by impact and disruption. |
| 43 | 10. In fix mode, apply only approved changes and verify. |
| 44 | |
| 45 | ## Scope |
| 46 | |
| 47 | Review AI-agent config only: |
| 48 | |
| 49 | - Claude Code settings, `CLAUDE.md`, skills, agents, commands, hooks, MCP, permissions. |
| 50 | - Codex config, `AGENTS.md`, profiles, sandbox, approvals, MCP, skills, subagents. |
| 51 | - Pi settings, packages, skills, extensions, prompts, themes, context files. |
| 52 | - Plugin/package manifests and source-to-generated export rules. |
| 53 | |
| 54 | Do not review app runtime config, git hook hygiene, product docs, source-code |
| 55 | quality, or generated output as the source of truth. |
| 56 | |
| 57 | ## Priorities |
| 58 | |
| 59 | Flag these first: |
| 60 | |
| 61 | - unsafe permissions, sandbox bypasses, broad MCP access, or secret exposure |
| 62 | - unsupported or stale keys, tool names, hook events, or model names |
| 63 | - generated exports edited by hand instead of source files |
| 64 | - duplicate or overlapping skills, agents, hooks, prompts, or trigger descriptions |
| 65 | - bloated startup context or always-loaded instructions that should be on demand |
| 66 | - hooks or extensions that hide errors, block safe work, or run risky commands |
| 67 | - missing validation for config that produces skills, agents, hooks, or packages |
| 68 | |
| 69 | ## Output |
| 70 | |
| 71 | ```markdown |
| 72 | ## Config Audit |
| 73 | |
| 74 | Scope: <platforms/files> |
| 75 | Mode: review-only | fix-approved |
| 76 | Sources: <local files and docs checked> |
| 77 | Confidence: high | medium | low |
| 78 | |
| 79 | ### Summary |
| 80 | |
| 81 | - Files reviewed: N |
| 82 | - Generated files skipped: N |
| 83 | - Main risk: <one sentence> |
| 84 | |
| 85 | ### Critical |
| 86 | |
| 87 | - `path:line` — issue. Evidence: <fact>. Fix: <action>. |
| 88 | |
| 89 | ### Important |
| 90 | |
| 91 | - `path:line` — issue. Evidence: <fact>. Fix: <action>. |
| 92 | |
| 93 | ### Suggested |
| 94 | |
| 95 | - `path:line` — issue. Evidence: <fact>. Fix: <action>. |
| 96 | |
| 97 | ### Working Well |
| 98 | |
| 99 | - <config that should stay as-is> |
| 100 | |
| 101 | ### Verification |
| 102 | |
| 103 | - <command run or recommended> |
| 104 | ``` |
| 105 | |
| 106 | Omit empty severity sections. If no findings are confirmed, say `No confirmed |
| 107 | findings.` |
| 108 | |
| 109 | ## Failure handling |
| 110 | |
| 111 | - Ambiguous target: ask one scoped question before auditing. |
| 112 | - Missing official docs: use local evidence, lower confidence, and report the gap. |
| 113 | - Generated file target: report the source path and regeneration command instead of editing it. |
| 114 | - Secrets or private data: do not quote secret values; identify only the path and key name when needed. |
| 115 | - Validation failure after a fix: revert the change unless the user asks to keep it, then report the exact error. |