config-surface-audit
Use to audit the non-skill recurring context surfaces of the AI tools — configured MCP servers (tool schemas load every session), permission allowlists, and hooks in settings.json / config.toml — against actual usage from transcripts, and recommend removing what never fires. Triggers: "audit my MCP servers", "are these permissions stale", "what hooks do I have", "config bloat".
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- config-surface-audit
- metadata
- { "owner": "tze", "status": "active", "authors": [ "tze", "Claude Fable 5" ], "last_reviewed": "2026-06-12" }
- description
- Use to audit the non-skill recurring context surfaces of the AI tools — configured MCP servers (tool schemas load every session), permission allowlists, and hooks in settings.json / config.toml — against actual usage from transcripts, and recommend removing what never fires. Triggers: "audit my MCP servers", "are these permissions stale", "what hooks do I have", "config bloat".
- compatibility
- Reads ~/.claude settings/transcripts and ~/.codex/config.toml; jq helpful but optional.
02 资源文件 11
- 参考文档api-style.md1.1 KB
- 参考文档auth.md576 B
- 参考文档documentation.md549 B
- 参考文档graphql.md977 B
- 参考文档rate-limiting.md726 B
- 参考文档response.md921 B
- 参考文档rest.md1.3 KB
- 脚本scripts/api_validator.py7.4 KB
- 参考文档security-testing.md2.8 KB
- 参考文档trpc.md801 B
- 参考文档versioning.md651 B
03 SKILL.md 正文
Config Surface Audit
Skill frontmatter is not the only recurring context cost. Every configured MCP server injects its tool schemas, every hook runs on its event, and permission allowlists grow monotonically as one-off grants accumulate. Same discipline as ../audit-skill-hygiene/SKILL.md: measure configured-vs-used from transcripts, recommend removals with evidence, let the user decide.
Inventory the configured surface
# Claude Code: global + project settings (NOT settings.local.json if gitignored — check first)
jq '{mcpServers: (.mcpServers // {} | keys), hooks: (.hooks // {} | keys), permissions: (.permissions.allow // [] | length)}' \
~/.claude/settings.json 2>/dev/null
cat ~/.claude.json 2>/dev/null | jq '.mcpServers | keys' 2>/dev/null
# Codex
grep -E '^\[mcp_servers\.' ~/.codex/config.toml 2>/dev/null
Also list plugin marketplaces (~/.claude/plugins/) — installed plugins
carry their own skills/commands into context.
Measure actual use from transcripts
MCP tool calls are grep-able by their canonical names:
LC_ALL=C grep -rhoE '"name":"mcp__[a-zA-Z0-9_]+__' ~/.claude/projects --include="*.jsonl" \
| sort | uniq -c | sort -rn
A configured server with zero mcp__<server>__* calls over the window is a
removal candidate. For hooks, check the hook's own side effects or log
lines; for permissions, sample which allow rules actually match recent tool
calls (rule prefix vs. "name":"Bash" command strings).
Recommend, with the same caveats as skill audits
- Window vs. retention: a zero may mean "rarely needed", not "never" — report the window alongside the verdict.
- Some servers are seasonal (e.g. a calendar MCP used monthly); 1–2 uses is a keep-lean signal, not a delete order.
- Permission rules are cheap individually; recommend pruning only clearly dead ones (referencing removed tools/paths) rather than micro-optimizing.
Hard stops
- Config files may embed tokens or URLs with credentials — never quote secret values into reports; reference keys by name only.
- Do not edit
settings.json/config.tomlwithout showing the exact diff first; a wrong hook or permission edit changes harness behavior for every future session. - Removing an MCP server that an active workflow depends on breaks it
silently — search the skills tree for references to the server name
before recommending removal (
rg -l "mcp__<server>" skills/).
04 同仓库更多 Skills
progress-dashboard
Use when asked to "give this session a dashboard", "show loop progress", "monitor subagents", or "steer this run in a browser": a durable local workspace for current work, findings, agents, measured usage and feedback.
spec-concretization
Use when specs and implementation must be fully reconciled in both directions — code doing things no spec describes, specs requiring things the code doesn't do yet, or the two disagreeing — and the result must land as vision-gated spec updates plus a complete, backlog-deduplicated work plan. Also the read-only audit form ("does code match the spec?"), and re-runs that must not duplicate prior findings. Triggers: "reconcile spec vs implementation", "does code match the spec", "what's implemented but undocumented", "what's specified but not built", "the code is ahead of the spec", "plan the work to finish the spec", "concretize the specs".
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.