machine-audit

Diagnoses machine-level Claude Code configuration for cost and latency problems.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/22Teikk/22Teikk-Agent-Skills-Hub --skill machine-audit-22teikk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: machine-audit
Source: https://github.com/22Teikk/22Teikk-Agent-Skills-Hub/tree/main/core/skills/machine-audit
Command: npx skills add https://github.com/22Teikk/22Teikk-Agent-Skills-Hub --skill machine-audit-22teikk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow or expensive Claude Code sessions are often caused by machine-level global configuration — user-scope MCP servers, global hooks, pinned reasoning effort — rather than by project code or workflow quality. This Skill systematically audits that global config so cost/latency issues are not misdiagnosed as project problems. ## Core Features & Use Cases - Evidence Collection: Runs claude mcp list/get, reads ~/.claude/settings.json, global CLAUDE.md, and global skills to gather raw diagnostic data. - Red Flag Detection: Identifies user-scoped MCP servers unused by the current project, broad PreToolUse/PostToolUse hooks, duplicate hook matchers, globally pinned high effort levels, and failed MCP connections. - Cost Quantification: Analyzes whether cache read/write dominates session cost, pointing to oversized or repeatedly re-cached base context. - Use Case: After an unusually expensive session, run this audit to discover a user-scope MCP server loading its full tool schema into every project, then demote it to project scope with explicit confirmation. ## Quick Start Ask the agent to run the machine-audit skill to diagnose why recent Claude Code sessions have been slow or expensive.

Frequently Asked Questions about machine-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose why Claude Code sessions are slow or expensive?▼

Run the machine-audit skill to inspect user-scope MCP servers, global hooks in ~/.claude/settings.json, and global CLAUDE.md. It flags config that loads into every project and quantifies whether cache read/write dominates your cost breakdown.

How do I check which MCP servers are slowing down Claude Code?▼

Use `claude mcp list` and `claude mcp get <name>` to see each server's scope. User-scope servers attach to every project and load their full tool schema into context even when unused, so demote them to project scope where actually needed.

Do global hooks in settings.json affect Claude Code performance?▼

Yes. PreToolUse/PostToolUse hooks matching broad patterns like Bash or Read fire on every matched tool call, adding subprocess spawn latency per call. Multiple hooks on the same matcher multiply that overhead across a session.

When should I not use the machine-audit skill?▼

Do not use it for code bugs or project-level workflow issues — those belong to debugging skills. It is also user-initiated only and should never run automatically inside build or test commands.

Does machine-audit change my global Claude config automatically?▼

No. It only reports findings as flag, evidence, and fix command. Removing user-scope MCP servers or editing ~/.claude/settings.json affects every project on the machine, so it requires explicit user confirmation before any change.