[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KVTYJWKNDT28VMB8SMWPW":3,"skill-same:01M77KVTYJWKNDT28VMB8SMWPW":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M77KVTYJWKNDT28VMB8SMWPW","audit-performance",null,"Slowness diagnostic that never 'fixes', run before restarting or deleting: version, retention sweep, install bloat, hook\u002Fsubagent fan-out, kernel-leak census. Use when: 'Claude Code is slow', 'typing lags', 'my machine freezes when Claude runs', 'why is this session sluggish', 'my hooks are slowing everything down', 'too many subagents'. Upstream bugs: \u002Fharness-ops:known-issues. Stale files: \u002Fharness-ops:audit-install-state.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Slowness diagnostic that never 'fixes', run before restarting or deleting: version, retention sweep, install bloat, hook\u002Fsubagent fan-out, kernel-leak census. Use when: 'Claude Code is slow', 'typing lags', 'my machine freezes when Claude runs', 'why is this session sluggish', 'my hooks are slowing everything down', 'too many subagents'. Upstream bugs: \u002Fharness-ops:known-issues. Stale files: \u002Fharness-ops:audit-install-state.\"\nargument-hint: \"[--unattended] [--root \u003Cpath>] [--session-id \u003Cid>] [--note \u003Cfact>]\"\nuser-invocable: true\ndisable-model-invocation: false\nmetadata:\n  workflow-stage: operator\n  summary: Capture slowness evidence while slow. Version, sweep health, tree walk, sessions, fleet, fan-out\n  cadence: continuous\n---\n\n**Arguments.** `[--unattended] [--root \u003Cpath>] [--session-id \u003Cid>] [--note \u003Cfact>]`. `--root` defaults to `$CLAUDE_CONFIG_DIR`, else `~\u002F.claude`; pass the current session id via `--session-id` when known, and each operator fact via a repeated `--note`. `--unattended`, anywhere in the arguments, is the caller declaring that nobody is present. The skill takes it out before reading the rest: never pass it to the engine, whose parser does not accept it, and never read it as a root or a `--note` value; under it, make no `\u002Fdoctor` suggestion and do not run it. The bare word `unattended` is not this flag: stop and name `--unattended`.\n\n## Purpose\n\n\"It was slow, so I deleted everything and reinstalled\" destroys the evidence and confounds the fix:\na reinstall crosses version upgrades, so nobody learns whether accumulated state, a version\nregression, or component bloat was the cause. This skill is the five-minute capture that runs\n*while it is slow*, so the diagnosis rests on measurements instead of a nuked crime scene.\n\nIt deliberately answers \"what is true right now\" and refuses \"so delete X\". Remediation routes\nout (see the boundary table). The engine's own phase timings are first-class evidence: a census\nwalk that takes minutes IS the cost the product's retention sweep pays on that tree; a\n`claude --version` probe that takes ten seconds is itself a finding.\n\n## Scope boundary\n\n| Question | Owner |\n|---|---|\n| Why is Claude Code slow right now? | **this skill** |\n| The historical cost of these hooks over past sessions | Not this engine (Never read bars transcripts); the person asks a `\u002Fdoctor` session (see Reading the report) |\n| What exactly is in the install tree, and is anything stale? | `\u002Fharness-ops:audit-install-state` |\n| Which plugins are enabled at which scope, and is the fleet current? | `\u002Fharness-ops:plugins-audit` |\n| Is this a known upstream bug? | `\u002Fharness-ops:known-issues` (compose: search the symptoms this report surfaces) |\n| Delete a genuinely unmanaged leftover | `\u002Fdisk-hygiene:clean` |\n| Shed one project's `~\u002F.claude.json` state | `claude purge \u003Cpath>` |\n\n## Boundary, the bundled `doctor` skill\n\nOne native Claude Code surface overlaps this skill's suspects, and the two get conflated\nwhenever a session feels slow:\n\n- **`doctor` (bundled skill)**: an in-session setup checkup that can offer fixes, which this skill\n  never does. What it checks, its aliases, and its terminal variant are read live from\n  [commands: all commands](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fcommands#all-commands).\n- **This skill (marketplace plugin).** A timed, read-only capture taken while it is slow: engine\n  phase timings, spawn baselines, per-hook buckets, and the census, with remediation routed out.\n\n**Routing.** Capture first. This skill is capture-at-moment tooling: a report taken after the\nstall ends supports no conclusion about the incident, and prepending a prerequisite adds latency\non a host that is already slow. Transcript-derived history is covered under Reading the report,\nand the run-end suggestion offers `\u002Fdoctor`. Prefer `claude doctor` when a session will not\nstart. Prefer this skill when the question is why it is slow right now: the timings, the fan-out\nlayer, and the retention-sweep state have no native counterpart. Its sibling `audit-install-state`\nowns the deep inventory of the tree against the same surface.\n\n**Mutation gate.** `doctor` mutates: fixing is its point. This skill's contract is report-only and\nit refuses deletion, so never chain into a `doctor` fix on this skill's behalf. Surface the\nfinding and let the user invoke the fix.\n\n**Availability is never assumed.** Settings and the environment can hide `doctor`; this section\nstates what to do when it resolves, never that it is present. What hides it, and the four-part\nrecords, live in [reference\u002Fbundled-doctor.md](reference\u002Fbundled-doctor.md).\n\n## Never read\n\n`.credentials.json`, `daemon\u002F*.key`, `ide\u002F*.lock` bodies, the values inside `~\u002F.claude.json`, and\nthe contents of `history.jsonl` and transcript files. The engine's content-read allowlist is four\nnon-secret config files: `settings.json`, `.last-cleanup`, a plugin's `hooks\u002Fhooks.json`, and\n`plugins\u002Finstalled_plugins.json`. Everything else is stat-only. Name, size, mtime. The allowlist\nis enforced in `read_json`, which raises rather than reading a file it does not name, so the\nprose and the code cannot drift apart. On Linux the engine also reads `\u002Fproc\u002F\u003Cpid>\u002Fstatus` and\n`\u002Fproc\u002F\u003Cpid>\u002Fstat`, kernel-generated text with no user content, to tell kernel threads from user\nprocesses, enforced the same way in `read_proc_text`.\n\nThe last two entries are what makes hook enumeration possible: a hook manifest holds an event, a\nmatcher, and a command string, and the installed-plugins manifest holds install paths. Neither\ncarries credential material.\n\n**This rule is inherited by every subagent this skill dispatches; say so explicitly in any prompt\nyou fan out.**\n\n## Never execute\n\nThe engine enumerates the hooks and the statusline command that will fire; it never runs one: a\nhook is third-party code with arbitrary side effects, so executing it would make the capture a\nmutation. Per-hook attribution is the operator's deliberate step; the engine supplies the no-op\nspawn baseline every hook pays before its own work.\n\n`fan_out.shell_resolution` resolves which `bash.exe` the harness would hand a shell-form command\nto by reading `settings.json` and the environment and stat-ing the path. No binary is spawned, and\nthe documented search for an unset variable is reported, not walked.\n\n## Run it\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Faudit-performance\u002Fscripts\u002Faudit_performance.py\" \\\n  --session-id \"\u003Ccurrent-session-id-if-known>\" \\\n  --note \"\u003Cone operator fact; repeat the flag per fact>\" \\\n  --project-dir \"${CLAUDE_PROJECT_DIR:-.}\" > .\u002Fclaude-performance-report.json\n```\n\nPass `--project-dir` whenever a project root is known, so project-scope hooks are counted; without\nit the hook inventory is a floor, not a total.\n\nWrite the report **outside** the install root. Requires Python 3.11+ only. On a struggling machine\nthe run itself is slow; that is signal. Report the phase timings prominently.\n\nEscape hatches for a machine too contended for the full pass, in this order:\n`--subprocess-timeout \u003Cseconds>` raises the per-probe bound (default 20 s; a probe that times out\nis recorded as a finding, not dropped); `--spawn-samples \u003Cn>` and `--population-gap 0` shorten the\ntwo wall-clock probes; `--skip-fan-out` and `--skip-processes` drop whole phases. Say which flags\nyou passed: each narrows what the report can conclude.\n\nPass what is already known through `--note`, one note per fact: what was slow (typing? tool calls?\nthe whole machine?), how many terminals were open, what the session was doing, and, on Windows,\nwhether Task Manager showed \"Antimalware Service Executable\" or disk saturation. Declare who\nsupplied them with `--note-source`; `operator_context` records `absent` for what nobody passed, so\na gap never reads as a clean bill of health.\n\n## Reading the report. Separate the four suspects\n\nLead with `sweep_health.findings`, then work the suspects in order. For each, state what the\nevidence supports and what it cannot distinguish. This report is one sample, not a longitudinal\nstudy.\n\nThis engine never reads `history.jsonl` or transcript files, so it cannot report hook cost\nover past sessions. A `\u002Fdoctor` session can read them, so a person who wants the transcript-derived\nhistory asks there. That is not time-sensitive: do not prepend it.\n\n**Clearing the first three does not end the audit.** A machine can have a current binary, a\nhealthy sweep, and a modest fleet and still stall for a minute per tool call, because none of\nthose measure what a spawn costs. Suspect 4 is where that lives, and it is the suspect a report\nmost often has to reach.\n\n**On Windows, read `kernel_objects` before any of them.** It is the floor the host imposes on every\nprocess creation, and one mechanism moves it by an order of magnitude with CPU idle and memory\nfree: a leaked kernel reference to Token objects. `state_label: token-leak` (the finding\n`token-objects-leaked`) means every spawn-denominated number below is a multiple of a broken host,\nand the remediation is a reboot followed by the elevated attribution runbook in\n[reference\u002Fknown-performance-issues.md](reference\u002Fknown-performance-issues.md), neither of which\nis this skill's to run. `paged-pool-high` on its own is a different, weaker signal: the pool\nfigure is aggregate and unattributed, so route it to `poolmon` (elevated, operator-run) to name\nthe tag before anyone calls it a Token leak or a reboot. `token.objects_per_uptime_second` is a\npopulation ratio, not a measured mint rate: it includes the boot population (so it overstates\nearly in a boot and the projection errs short) and cannot see churn, and it is reported because\na short in-run window under-reads bursty minting; `hours_to_leak_threshold_at_uptime_ratio` says\nhow long a clean boot lasts on that basis. `supported: false` names why the census could not\nrun; it is never silently absent.\n\n**Suspect 1. Accumulated install-tree state.** Evidence: `tree_census.walk_seconds` and\n`total_files` (the walk the retention sweep pays over the same tree), `settings-unparsable-pauses-sweep`\n(treat it as nothing cleaned for as long as that error existed), `history.mb` and\n`home_root_state` sizes (outside the sweep). `last-cleanup-stale` is weaker evidence than it\nlooks: a stale sentinel can have a benign explanation. Report both readings. How often the sweep\nruns, what pauses it, and when it skips are read live from\n[claude directory: cleaned up automatically](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fclaude-directory#cleaned-up-automatically).\n\n**Suspect 2. Version regression.** Evidence: `cli.version` against the bundled\n[reference\u002Fknown-performance-issues.md](reference\u002Fknown-performance-issues.md). Several 2.1.2xx\nreleases fixed quadratic long-session slowdowns, per-turn CPU regressions, and keystroke lag, so\nan out-of-date binary is a complete alternative explanation. Always capture the version *before*\nany reinstall; after one, the confound is permanent. Cross-check current symptoms via\n`\u002Fharness-ops:known-issues` when it is installed; otherwise search the upstream issue tracker\ndirectly.\n\n**Suspect 3. Component bloat.** Evidence: `plugin_fleet` counts and `processes`. Community-\nconfirmed slowness causes cluster here (many MCP servers\u002Fplugins each add per-tool-call and\nstartup cost). This report only counts; the enablement-and-scope verdict belongs to\n`\u002Fharness-ops:plugins-audit`. Tell the user to run it rather than eyeballing.\n\n**Suspect 4, the fan-out layer.** What the machine pays per spawn, multiplied by everything that\nspawns. Read `fan_out` in this order:\n\n1. **`fan_out.spawn_cost`** first, because every other number in this section is denominated in\n   it. A no-op spawn is the floor a hook, a statusline render, and a subagent each pay before\n   doing any work of their own. The floor MOVES WITH LOAD, so read `min_ms` together with\n   `concurrent_processes_at_sample` and never quote one without the other. `slow-spawn-floor`\n   means the machine is contended before Claude Code does anything; `bimodal-spawn-latency`, a\n   wide spread whose slow mode is itself slow, IS the contention diagnosis rather than a hint\n   toward one.\n2. **`fan_out.hooks`**. `per_tool_call.count` scales with tool-call volume; `per_turn.count` is\n   what makes a long conversation degrade and is the bucket most audits never look at.\n   `invocation_shape_findings` names three shapes: `git-bin-bash-wrapper-costs-an-extra-spawn`\n   and `nested-shell-invocation`, each an extra process creation before the hook's own work\n   starts, and `shell-form-hook-names-a-second-shell`, a shell-form command that spells a shell\n   inside the shell the harness has already wrapped the string in. **An empty list does not mean\n   the hooks run un-nested.** We treat a shell-form command as handed to a shell whatever it\n   names, so a row with no finding still pays one wrapping shell; the list names only the rows that add a\n   second, and its command-position rule is a floor, so a shell reached through a position the\n   rule does not cover is missed rather than reported: a subshell (`$(bash x.sh)` or a\n   backquoted one) and a runner taking arguments of its own first (`timeout 5 bash x.sh`) are\n   examples, not a closed list: `xargs bash x.sh` and `find . -exec sh {} \\;` miss for the same\n   reason. It errs the other way too: a shell named in a trailing comment (`.\u002Fx.sh # ; bash`)\n   is reported, because comments are not parsed, and so is a `\u003Ctool> exec \u003Cshell>` form\n   (`docker exec bash`, `npm exec sh`), because `exec` grants command position without knowing\n   whose subcommand it is. Confirm a row against its own manifest before acting on it. The\n   command-position rule honors quotes: a quoted executable containing spaces\n   (`\"C:\u002FProgram Files\u002FPowerShell\u002F7\u002Fpwsh.exe\" -File hook.ps1`) stays one token and is\n   recognized, and a shell operator inside a quoted argument (`grep -e 'a|sh' f`) is not read\n   as a delimiter. The two LEGACY findings still flatten quotes and read their own token\n   list, unchanged on every input. The engine treats a row with an `args` key, even\n   `[]`, as exec form and reports no second shell for it, and a row without the key as shell form.\n   Which bash pays the wrapping spawn is item 3. `per_tool_call.count` is the\n   registered-row ceiling, so read `by_matcher` and\n   `projection` beside it for what one tool call of a given shape actually spawns, and\n   `unclassified_rows` for the `if` gates the engine could not decide and therefore counted as\n   firing. Each projection row carries a `floor` (rows known to fire) and a `ceiling` (the\n   floor plus `fire_always_unclassified`); quote the pair, never the ceiling alone, as the\n   count one edit spawns. The floor counts an edit inside each handler's project anchor; an edit\n   outside an anchor can fire fewer, so say which (the `HOOK_ANCHOR_NOTE` in the notes). **Never present hook cost as a sum**. How hooks on one event are\n   scheduled is read live from\n   [hooks: hook handler fields](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#hook-handler-fields). To find which hook is the wall on `Stop`, point the operator at\n   the `stop_hook_summary` durations named under \"Never time a hook by running it\" in Gotchas;\n   a per-turn bucket counts the costliest hook as one row among many. We treat shell form as\n   always wrapped in a shell and exec form, with `args` present, as spawned with none; which\n   shell wraps a row per OS, and the `shell` field's values, are read live.\n   - **Pointer**: when naming the wrapping shell, fetch\n     [hooks: exec form and shell form](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#exec-form-and-shell-form)\n     live.\n3. **`fan_out.shell_resolution`**, which names WHICH bash pays that wrapping spawn on Windows:\n   `CLAUDE_CODE_GIT_BASH_PATH`, where the value came from, whether the path exists, whether\n   Claude Code accepts the filename, and whether it resolves to Git's `bin` launcher or to\n   `usr\u002Fbin\u002Fbash.exe`. We treat a rejected filename and a path that does not exist alike: a\n   `resolves_to` shown beside either finding names a binary the harness will not use. When the\n   variable is unset, this block reports the engine's copy of the harness's own search and never\n   performs it.\n   - **Pointer**: when stating the search order, the accepted filenames, or the fallback, fetch\n     [troubleshoot install: Git for Windows or PowerShell](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftroubleshoot-install#claude-code-on-windows-requires-either-git-for-windows-for-bash-or-powershell)\n     live.\n\n   The\n   `bin` launcher's re-exec of `usr\u002Fbin\u002Fbash.exe` rides in `observation` as a one-host\n   observation with its provenance, never as a count this engine asserts. The block answers\n   only for rows the harness wraps with bash, and only from the install-root `settings.json`:\n   a hook whose own `shell` field is `\"powershell\"`, or a Windows host with no Git Bash\n   installed, gets no `bash.exe` resolved for it (which shell wraps it: the exec-form pointer in\n   item 2), and a project or\n   local `.claude\u002Fsettings.json` `env` that outranks the install root is not read here.\n4. **`fan_out.config_liveness`** before attributing any cost to configuration.\n   `sessions_predating_settings` greater than zero means the file on disk may not describe what\n   is running. Which settings edits reach a running session is read live from\n   [settings: when edits take effect](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings#when-edits-take-effect)\n   and [plugin loading: check which stage a plugin reached](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#check-which-stage-a-plugin-reached). Reporting the disk state as the running state is how a\n   confident and wrong diagnosis gets written. The advisory names `\u002Freload-plugins` or a restart;\n   either one is the operator's, not this skill's.\n5. **`fan_out.concurrency_ceilings`**. Spawn depth multiplies against the per-session concurrency\n   limit, and every subagent carries the same statusline and hook fan-out as its parent, so two\n   individually modest settings can license a very large population. Report effective values\n   against documented defaults. **Never present any value, or removing the variable, as\n   disabling either cap**; read what a value does, and where a cap is not enforced, from the\n   pointer. The engine's `trap` string beside them describes only the truthiness-gated observer\n   flag and says removing that variable disables it; never relay it for the caps. Rewording it\n   is left undone because `test_the_trap_never_advises_setting_a_flag_to_zero` in\n   `scripts\u002Ftest_audit_performance.py` pins that text.\n   - **Pointer**: when judging what a cap value does or where it is not enforced, fetch\n     [sub-agents: concurrent subagent limit](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#concurrent-subagent-limit),\n     [sub-agents: let subagents spawn their own subagents](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#let-subagents-spawn-their-own-subagents),\n     and the two variables' rows in\n     [env-vars: variables](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#variables) live.\n6. **`fan_out.statusline`**. Reported, never rendered. The engine reads `refreshInterval` as\n   seconds (`refresh_interval_seconds`); reading it as milliseconds inverts the conclusion. Its\n   `invocation_shape_findings` reads the same way as item 2: the command runs in a shell, so a\n   command naming a shell puts at least two shells in the chain.\n   - **Pointer**: when checking the interval's unit and minimum or the shell it runs in, fetch\n     [statusline: manually configure a status line](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fstatusline#manually-configure-a-status-line)\n     live. **As of**: 2026-10-11. **Recheck trigger**: that section changes the interval's unit\n     or which shell runs the command.\n7. **`processes.orphan_attribution`**. Only a dead-parent process is an orphan. A long-lived\n   process with a live parent is working software and killing it breaks whatever owns it, so\n   report `parent_alive` per candidate and treat `unknown` as unknown. `dead_parent_any_age`,\n   beside that verdict, is a census and not a kill list: one row per name (`name`, `count`,\n   `youngest_h`, `oldest_h`, `cpu_seconds`) for a process in the orphan candidate set, or named\n   `tail.exe`, `grep.exe`, `sleep.exe`, `cat.exe`, `rm.exe`, or `du.exe`, whose parent is gone\n   or whose parent pid was recycled, and which is older than 5 seconds. `count` is every such\n   process of that name; `cpu_seconds` is their summed kernel plus user time, `null` when any\n   member's time is unreadable. `dead_parent_by_cpu` drops the name list: every dead-parent\n   process of any name under the same rules, ranked by CPU, top 10, each row `name`, `pid`,\n   `age_h`, `cpu_seconds`, and `cpu_share` (CPU seconds over age; above 1.0 means more than one\n   core). It is a ranking, not a kill list, and a high `cpu_share` there is the first thing to\n   report: a detached process burning CPU after its parent exited slows the whole machine at any\n   age, well inside the 24-hour orphan floor.\n   A census process whose parent start time is unreadable is no row; it is counted in\n   `dead_parent_any_age_unknown_count`, while the verdict's `unknown_count` holds only its\n   own 24-hour candidates. The 24-hour orphan floor and the orphan candidate set are\n   unchanged, and a census row is not a process to kill. The census, its unknown count, and the\n   CPU ranking are `null` off Windows, which is not measured rather than none found: Linux, macOS, and\n   WSL reparent an orphan to a live init or subreaper, so the process table cannot show its\n   dead parent. The orphan verdict reads the same table, so off Windows (`orphans_note` says\n   so) `orphan_count: 0` is not a negative to record, and a `live_parent` row whose parent is\n   init, launchd, or a subreaper is unresolved rather than working software.\n   `processes.population` separates accumulation from churn across two samples; one sample\n   cannot tell them apart, and a count that holds while pids turn over is churn.\n\nCross-cutting: `sessions.active_last_hour` (concurrent sessions multiply watcher and I\u002FO load),\n`sessions.largest_transcript` (a very large live transcript in a resumed session grows the\nper-keystroke render cost), and every entry in `timings_seconds` (a slow phase names a slow\nsubsystem).\n\n## Run-end suggestion\n\nRelay the sentence below to the user and do not run `\u002Fdoctor` yourself: it is reserved for the person to run.\n\nIf \u002Fdoctor is available in your session (gate basis: **Boundary, the bundled `doctor` skill** above), run it for the quick health-and-fix pass this timed capture does not perform.\n\n**`--unattended`:** omit the suggestion and do not run `\u002Fdoctor`.\n\n## Gotchas\n\n- **Do not convert this audit into a cleanup.** Big is not the finding; *unswept* is. A healthy\n  sweep bounds the tree by itself; route a paused sweep to `\u002Fharness-config:audit` (settings fix),\n  invoked via the Skill tool, and tell the user to run `\u002Fdisk-hygiene:clean` for unmanaged\n  leftovers.\n- **A number alone never convicts.** 100k files with `walk_seconds: 4` on an excluded NVMe volume\n  is healthy; 20k files with `walk_seconds: 90` behind a scanning filter driver is the problem.\n  Pair counts with timings in every claim.\n- **Run it while slow.** A report captured after a restart supports no conclusion about the\n  incident.\n- **`quiesced: false` always.** Counts drift while the engine walks a live tree; report ranges, not\n  false precision.\n- **Reinstalling before capturing destroys the version evidence permanently.** If the operator\n  already reinstalled, say plainly that suspect 2 can no longer be tested for the past incident.\n- **Never time a hook by running it** (see Never execute). Report the enumeration and the spawn\n  baseline, and let the operator attribute. The harness has already timed the Stop hooks that ran:\n  a `stop_hook_summary` record in the session transcript carries `hookCount` and a `hookInfos`\n  array of `{\"command\", \"durationMs\"}`, one entry per hook. The skill still never reads a\n  transcript, so name the route and hand the operator a filter that extracts those records alone,\n  for example\n  `jq -c 'select(.subtype == \"stop_hook_summary\") | .hookInfos' \u003Csession>.jsonl`. Claim: the\n  record and its fields are observed harness behavior, not documented, so treat the shape as\n  unstable; basis: 41 such records in one session supplied every per-hook duration an audit\n  produced, and [hooks](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks.md) contains neither\n  `stop_hook_summary` nor `durationMs`; verified 2026-11-04. Recheck when the hooks page\n  documents per-hook timing in transcript records, or when a filtered transcript returns no\n  `stop_hook_summary` record in a session whose Stop hooks ran.\n  We time hooks from the transcript because it covers a session that already ran, with nothing\n  turned on beforehand. Pointer: for what the debug route records, see\n  [hooks: debug hooks](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#debug-hooks).\n  For other events' hooks, filter to the timing fields:\n  `jq -c 'select(.type == \"attachment\") | .attachment | select(.type == \"hook_success\" or .type == \"hook_non_blocking_error\") | {hookEvent, hookName, command, durationMs}' \u003Csession>.jsonl`.\n  `\u002Fharness-ops:observability hooks \u003Csession>.jsonl` reads both shapes and owns the record of\n  their keys and stability.\n- **Label every spawn number with machine state.** The floor moves with load: every quoted timing\n  carries its `concurrent_processes_at_sample`, and a comparison against an earlier capture is\n  valid only at comparable load.\n- **A slow spawn floor at idle CPU with the four suspects clear is the host, not the fan-out\n  layer.** On Windows check `kernel_objects` before writing up `slow-spawn-floor`: a Token-object\n  leak can produce seconds per process creation at low CPU that a reboot clears. Report the leak,\n  route the reboot and the attribution to the operator, and do not let the fan-out numbers carry\n  the diagnosis.\n- **Do not present hook cost as additive** (scheduling: the hook-handler-fields pointer in\n  item 2 of the report reading). Summing hook timings overstates the stall the\n  operator observes several times over.\n- **Config on disk is not config in force.** Check `fan_out.config_liveness` before saying a\n  setting is or is not the cause: everything can look disabled while its hooks still run.\n- **Age is not orphanhood.** Read `parent_alive`, and leave `unknown` unresolved rather than\n  guessing; most long-lived helpers have live parents.\n- **Record the negatives.** When a suspect is tested and cleared, say so and how, as the bundled\n  reference's tested-and-cleared section does. Antivirus, filesystem, and shell choice have each\n  looked like the cause and been wrong.\n","**Arguments.** `[--unattended] [--root \u003Cpath>] [--session-id \u003Cid>] [--note \u003Cfact>]`. `--root` defaults to `$CLAUDE_CONFIG_DIR`, else `~\u002F.claude`; pass the current session id via `--session-id` when known, and each operator fact via a repeated `--note`. `--unattended`, anywhere in the arguments, is the caller declaring that nobody is present. The skill takes it out before reading the rest: never pass it to the engine, whose parser does not accept it, and never read it as a root or a `--note` value; under it, make no `\u002Fdoctor` suggestion and do not run it. The bare word `unattended` is not this flag: stop and name `--unattended`.\n\n## Purpose\n\n\"It was slow, so I deleted everything and reinstalled\" destroys the evidence and confounds the fix:\na reinstall crosses version upgrades, so nobody learns whether accumulated state, a version\nregression, or component bloat was the cause. This skill is the five-minute capture that runs\n*while it is slow*, so the diagnosis rests on measurements instead of a nuked crime scene.\n\nIt deliberately answers \"what is true right now\" and refuses \"so delete X\". Remediation routes\nout (see the boundary table). The engine's own phase timings are first-class evidence: a census\nwalk that takes minutes IS the cost the product's retention sweep pays on that tree; a\n`claude --version` probe that takes ten seconds is itself a finding.\n\n## Scope boundary\n\n| Question | Owner |\n|---|---|\n| Why is Claude Code slow right now? | **this skill** |\n| The historical cost of these hooks over past sessions | Not this engine (Never read bars transcripts); the person asks a `\u002Fdoctor` session (see Reading the report) |\n| What exactly is in the install tree, and is anything stale? | `\u002Fharness-ops:audit-install-state` |\n| Which plugins are enabled at which scope, and is the fleet current? | `\u002Fharness-ops:plugins-audit` |\n| Is this a known upstream bug? | `\u002Fharness-ops:known-issues` (compose: search the symptoms this report surfaces) |\n| Delete a genuinely unmanaged leftover | `\u002Fdisk-hygiene:clean` |\n| Shed one project's `~\u002F.claude.json` state | `claude purge \u003Cpath>` |\n\n## Boundary, the bundled `doctor` skill\n\nOne native Claude Code surface overlaps this skill's suspects, and the two get conflated\nwhenever a session feels slow:\n\n- **`doctor` (bundled skill)**: an in-session setup checkup that can offer fixes, which this skill\n  never does. What it checks, its aliases, and its terminal variant are read live from\n  [commands: all commands](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fcommands#all-commands).\n- **This skill (marketplace plugin).** A timed, read-only capture taken while it is slow: engine\n  phase timings, spawn baselines, per-hook buckets, and the census, with remediation routed out.\n\n**Routing.** Capture first. This skill is capture-at-moment tooling: a report taken after the\nstall ends supports no conclusion about the incident, and prepending a prerequisite adds latency\non a host that is already slow. Transcript-derived history is covered under Reading the report,\nand the run-end suggestion offers `\u002Fdoctor`. Prefer `claude doctor` when a session will not\nstart. Prefer this skill when the question is why it is slow right now: the timings, the fan-out\nlayer, and the retention-sweep state have no native counterpart. Its sibling `audit-install-state`\nowns the deep inventory of the tree against the same surface.\n\n**Mutation gate.** `doctor` mutates: fixing is its point. This skill's contract is report-only and\nit refuses deletion, so never chain into a `doctor` fix on this skill's behalf. Surface the\nfinding and let the user invoke the fix.\n\n**Availability is never assumed.** Settings and the environment can hide `doctor`; this section\nstates what to do when it resolves, never that it is present. What hides it, and the four-part\nrecords, live in [reference\u002Fbundled-doctor.md](reference\u002Fbundled-doctor.md).\n\n## Never read\n\n`.credentials.json`, `daemon\u002F*.key`, `ide\u002F*.lock` bodies, the values inside `~\u002F.claude.json`, and\nthe contents of `history.jsonl` and transcript files. The engine's content-read allowlist is four\nnon-secret config files: `settings.json`, `.last-cleanup`, a plugin's `hooks\u002Fhooks.json`, and\n`plugins\u002Finstalled_plugins.json`. Everything else is stat-only. Name, size, mtime. The allowlist\nis enforced in `read_json`, which raises rather than reading a file it does not name, so the\nprose and the code cannot drift apart. On Linux the engine also reads `\u002Fproc\u002F\u003Cpid>\u002Fstatus` and\n`\u002Fproc\u002F\u003Cpid>\u002Fstat`, kernel-generated text with no user content, to tell kernel threads from user\nprocesses, enforced the same way in `read_proc_text`.\n\nThe last two entries are what makes hook enumeration possible: a hook manifest holds an event, a\nmatcher, and a command string, and the installed-plugins manifest holds install paths. Neither\ncarries credential material.\n\n**This rule is inherited by every subagent this skill dispatches; say so explicitly in any prompt\nyou fan out.**\n\n## Never execute\n\nThe engine enumerates the hooks and the statusline command that will fire; it never runs one: a\nhook is third-party code with arbitrary side effects, so executing it would make the capture a\nmutation. Per-hook attribution is the operator's deliberate step; the engine supplies the no-op\nspawn baseline every hook pays before its own work.\n\n`fan_out.shell_resolution` resolves which `bash.exe` the harness would hand a shell-form command\nto by reading `settings.json` and the environment and stat-ing the path. No binary is spawned, and\nthe documented search for an unset variable is reported, not walked.\n\n## Run it\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Faudit-performance\u002Fscripts\u002Faudit_performance.py\" \\\n  --session-id \"\u003Ccurrent-session-id-if-known>\" \\\n  --note \"\u003Cone operator fact; repeat the flag per fact>\" \\\n  --project-dir \"${CLAUDE_PROJECT_DIR:-.}\" > .\u002Fclaude-performance-report.json\n```\n\nPass `--project-dir` whenever a project root is known, so project-scope hooks are counted; without\nit the hook inventory is a floor, not a total.\n\nWrite the report **outside** the install root. Requires Python 3.11+ only. On a struggling machine\nthe run itself is slow; that is signal. Report the phase timings prominently.\n\nEscape hatches for a machine too contended for the full pass, in this order:\n`--subprocess-timeout \u003Cseconds>` raises the per-probe bound (default 20 s; a probe that times out\nis recorded as a finding, not dropped); `--spawn-samples \u003Cn>` and `--population-gap 0` shorten the\ntwo wall-clock probes; `--skip-fan-out` and `--skip-processes` drop whole phases. Say which flags\nyou passed: each narrows what the report can conclude.\n\nPass what is already known through `--note`, one note per fact: what was slow (typing? tool calls?\nthe whole machine?), how many terminals were open, what the session was doing, and, on Windows,\nwhether Task Manager showed \"Antimalware Service Executable\" or disk saturation. Declare who\nsupplied them with `--note-source`; `operator_context` records `absent` for what nobody passed, so\na gap never reads as a clean bill of health.\n\n## Reading the report. Separate the four suspects\n\nLead with `sweep_health.findings`, then work the suspects in order. For each, state what the\nevidence supports and what it cannot distinguish. This report is one sample, not a longitudinal\nstudy.\n\nThis engine never reads `history.jsonl` or transcript files, so it cannot report hook cost\nover past sessions. A `\u002Fdoctor` session can read them, so a person who wants the transcript-derived\nhistory asks there. That is not time-sensitive: do not prepend it.\n\n**Clearing the first three does not end the audit.** A machine can have a current binary, a\nhealthy sweep, and a modest fleet and still stall for a minute per tool call, because none of\nthose measure what a spawn costs. Suspect 4 is where that lives, and it is the suspect a report\nmost often has to reach.\n\n**On Windows, read `kernel_objects` before any of them.** It is the floor the host imposes on every\nprocess creation, and one mechanism moves it by an order of magnitude with CPU idle and memory\nfree: a leaked kernel reference to Token objects. `state_label: token-leak` (the finding\n`token-objects-leaked`) means every spawn-denominated number below is a multiple of a broken host,\nand the remediation is a reboot followed by the elevated attribution runbook in\n[reference\u002Fknown-performance-issues.md](reference\u002Fknown-performance-issues.md), neither of which\nis this skill's to run. `paged-pool-high` on its own is a different, weaker signal: the pool\nfigure is aggregate and unattributed, so route it to `poolmon` (elevated, operator-run) to name\nthe tag before anyone calls it a Token leak or a reboot. `token.objects_per_uptime_second` is a\npopulation ratio, not a measured mint rate: it includes the boot population (so it overstates\nearly in a boot and the projection errs short) and cannot see churn, and it is reported because\na short in-run window under-reads bursty minting; `hours_to_leak_threshold_at_uptime_ratio` says\nhow long a clean boot lasts on that basis. `supported: false` names why the census could not\nrun; it is never silently absent.\n\n**Suspect 1. Accumulated install-tree state.** Evidence: `tree_census.walk_seconds` and\n`total_files` (the walk the retention sweep pays over the same tree), `settings-unparsable-pauses-sweep`\n(treat it as nothing cleaned for as long as that error existed), `history.mb` and\n`home_root_state` sizes (outside the sweep). `last-cleanup-stale` is weaker evidence than it\nlooks: a stale sentinel can have a benign explanation. Report both readings. How often the sweep\nruns, what pauses it, and when it skips are read live from\n[claude directory: cleaned up automatically](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fclaude-directory#cleaned-up-automatically).\n\n**Suspect 2. Version regression.** Evidence: `cli.version` against the bundled\n[reference\u002Fknown-performance-issues.md](reference\u002Fknown-performance-issues.md). Several 2.1.2xx\nreleases fixed quadratic long-session slowdowns, per-turn CPU regressions, and keystroke lag, so\nan out-of-date binary is a complete alternative explanation. Always capture the version *before*\nany reinstall; after one, the confound is permanent. Cross-check current symptoms via\n`\u002Fharness-ops:known-issues` when it is installed; otherwise search the upstream issue tracker\ndirectly.\n\n**Suspect 3. Component bloat.** Evidence: `plugin_fleet` counts and `processes`. Community-\nconfirmed slowness causes cluster here (many MCP servers\u002Fplugins each add per-tool-call and\nstartup cost). This report only counts; the enablement-and-scope verdict belongs to\n`\u002Fharness-ops:plugins-audit`. Tell the user to run it rather than eyeballing.\n\n**Suspect 4, the fan-out layer.** What the machine pays per spawn, multiplied by everything that\nspawns. Read `fan_out` in this order:\n\n1. **`fan_out.spawn_cost`** first, because every other number in this section is denominated in\n   it. A no-op spawn is the floor a hook, a statusline render, and a subagent each pay before\n   doing any work of their own. The floor MOVES WITH LOAD, so read `min_ms` together with\n   `concurrent_processes_at_sample` and never quote one without the other. `slow-spawn-floor`\n   means the machine is contended before Claude Code does anything; `bimodal-spawn-latency`, a\n   wide spread whose slow mode is itself slow, IS the contention diagnosis rather than a hint\n   toward one.\n2. **`fan_out.hooks`**. `per_tool_call.count` scales with tool-call volume; `per_turn.count` is\n   what makes a long conversation degrade and is the bucket most audits never look at.\n   `invocation_shape_findings` names three shapes: `git-bin-bash-wrapper-costs-an-extra-spawn`\n   and `nested-shell-invocation`, each an extra process creation before the hook's own work\n   starts, and `shell-form-hook-names-a-second-shell`, a shell-form command that spells a shell\n   inside the shell the harness has already wrapped the string in. **An empty list does not mean\n   the hooks run un-nested.** We treat a shell-form command as handed to a shell whatever it\n   names, so a row with no finding still pays one wrapping shell; the list names only the rows that add a\n   second, and its command-position rule is a floor, so a shell reached through a position the\n   rule does not cover is missed rather than reported: a subshell (`$(bash x.sh)` or a\n   backquoted one) and a runner taking arguments of its own first (`timeout 5 bash x.sh`) are\n   examples, not a closed list: `xargs bash x.sh` and `find . -exec sh {} \\;` miss for the same\n   reason. It errs the other way too: a shell named in a trailing comment (`.\u002Fx.sh # ; bash`)\n   is reported, because comments are not parsed, and so is a `\u003Ctool> exec \u003Cshell>` form\n   (`docker exec bash`, `npm exec sh`), because `exec` grants command position without knowing\n   whose subcommand it is. Confirm a row against its own manifest before acting on it. The\n   command-position rule honors quotes: a quoted executable containing spaces\n   (`\"C:\u002FProgram Files\u002FPowerShell\u002F7\u002Fpwsh.exe\" -File hook.ps1`) stays one token and is\n   recognized, and a shell operator inside a quoted argument (`grep -e 'a|sh' f`) is not read\n   as a delimiter. The two LEGACY findings still flatten quotes and read their own token\n   list, unchanged on every input. The engine treats a row with an `args` key, even\n   `[]`, as exec form and reports no second shell for it, and a row without the key as shell form.\n   Which bash pays the wrapping spawn is item 3. `per_tool_call.count` is the\n   registered-row ceiling, so read `by_matcher` and\n   `projection` beside it for what one tool call of a given shape actually spawns, and\n   `unclassified_rows` for the `if` gates the engine could not decide and therefore counted as\n   firing. Each projection row carries a `floor` (rows known to fire) and a `ceiling` (the\n   floor plus `fire_always_unclassified`); quote the pair, never the ceiling alone, as the\n   count one edit spawns. The floor counts an edit inside each handler's project anchor; an edit\n   outside an anchor can fire fewer, so say which (the `HOOK_ANCHOR_NOTE` in the notes). **Never present hook cost as a sum**. How hooks on one event are\n   scheduled is read live from\n   [hooks: hook handler fields](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#hook-handler-fields). To find which hook is the wall on `Stop`, point the operator at\n   the `stop_hook_summary` durations named under \"Never time a hook by running it\" in Gotchas;\n   a per-turn bucket counts the costliest hook as one row among many. We treat shell form as\n   always wrapped in a shell and exec form, with `args` present, as spawned with none; which\n   shell wraps a row per OS, and the `shell` field's values, are read live.\n   - **Pointer**: when naming the wrapping shell, fetch\n     [hooks: exec form and shell form](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#exec-form-and-shell-form)\n     live.\n3. **`fan_out.shell_resolution`**, which names WHICH bash pays that wrapping spawn on Windows:\n   `CLAUDE_CODE_GIT_BASH_PATH`, where the value came from, whether the path exists, whether\n   Claude Code accepts the filename, and whether it resolves to Git's `bin` launcher or to\n   `usr\u002Fbin\u002Fbash.exe`. We treat a rejected filename and a path that does not exist alike: a\n   `resolves_to` shown beside either finding names a binary the harness will not use. When the\n   variable is unset, this block reports the engine's copy of the harness's own search and never\n   performs it.\n   - **Pointer**: when stating the search order, the accepted filenames, or the fallback, fetch\n     [troubleshoot install: Git for Windows or PowerShell](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftroubleshoot-install#claude-code-on-windows-requires-either-git-for-windows-for-bash-or-powershell)\n     live.\n\n   The\n   `bin` launcher's re-exec of `usr\u002Fbin\u002Fbash.exe` rides in `observation` as a one-host\n   observation with its provenance, never as a count this engine asserts. The block answers\n   only for rows the harness wraps with bash, and only from the install-root `settings.json`:\n   a hook whose own `shell` field is `\"powershell\"`, or a Windows host with no Git Bash\n   installed, gets no `bash.exe` resolved for it (which shell wraps it: the exec-form pointer in\n   item 2), and a project or\n   local `.claude\u002Fsettings.json` `env` that outranks the install root is not read here.\n4. **`fan_out.config_liveness`** before attributing any cost to configuration.\n   `sessions_predating_settings` greater than zero means the file on disk may not describe what\n   is running. Which settings edits reach a running session is read live from\n   [settings: when edits take effect](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings#when-edits-take-effect)\n   and [plugin loading: check which stage a plugin reached](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#check-which-stage-a-plugin-reached). Reporting the disk state as the running state is how a\n   confident and wrong diagnosis gets written. The advisory names `\u002Freload-plugins` or a restart;\n   either one is the operator's, not this skill's.\n5. **`fan_out.concurrency_ceilings`**. Spawn depth multiplies against the per-session concurrency\n   limit, and every subagent carries the same statusline and hook fan-out as its parent, so two\n   individually modest settings can license a very large population. Report effective values\n   against documented defaults. **Never present any value, or removing the variable, as\n   disabling either cap**; read what a value does, and where a cap is not enforced, from the\n   pointer. The engine's `trap` string beside them describes only the truthiness-gated observer\n   flag and says removing that variable disables it; never relay it for the caps. Rewording it\n   is left undone because `test_the_trap_never_advises_setting_a_flag_to_zero` in\n   `scripts\u002Ftest_audit_performance.py` pins that text.\n   - **Pointer**: when judging what a cap value does or where it is not enforced, fetch\n     [sub-agents: concurrent subagent limit](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#concurrent-subagent-limit),\n     [sub-agents: let subagents spawn their own subagents](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#let-subagents-spawn-their-own-subagents),\n     and the two variables' rows in\n     [env-vars: variables](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#variables) live.\n6. **`fan_out.statusline`**. Reported, never rendered. The engine reads `refreshInterval` as\n   seconds (`refresh_interval_seconds`); reading it as milliseconds inverts the conclusion. Its\n   `invocation_shape_findings` reads the same way as item 2: the command runs in a shell, so a\n   command naming a shell puts at least two shells in the chain.\n   - **Pointer**: when checking the interval's unit and minimum or the shell it runs in, fetch\n     [statusline: manually configure a status line](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fstatusline#manually-configure-a-status-line)\n     live. **As of**: 2026-10-11. **Recheck trigger**: that section changes the interval's unit\n     or which shell runs the command.\n7. **`processes.orphan_attribution`**. Only a dead-parent process is an orphan. A long-lived\n   process with a live parent is working software and killing it breaks whatever owns it, so\n   report `parent_alive` per candidate and treat `unknown` as unknown. `dead_parent_any_age`,\n   beside that verdict, is a census and not a kill list: one row per name (`name`, `count`,\n   `youngest_h`, `oldest_h`, `cpu_seconds`) for a process in the orphan candidate set, or named\n   `tail.exe`, `grep.exe`, `sleep.exe`, `cat.exe`, `rm.exe`, or `du.exe`, whose parent is gone\n   or whose parent pid was recycled, and which is older than 5 seconds. `count` is every such\n   process of that name; `cpu_seconds` is their summed kernel plus user time, `null` when any\n   member's time is unreadable. `dead_parent_by_cpu` drops the name list: every dead-parent\n   process of any name under the same rules, ranked by CPU, top 10, each row `name`, `pid`,\n   `age_h`, `cpu_seconds`, and `cpu_share` (CPU seconds over age; above 1.0 means more than one\n   core). It is a ranking, not a kill list, and a high `cpu_share` there is the first thing to\n   report: a detached process burning CPU after its parent exited slows the whole machine at any\n   age, well inside the 24-hour orphan floor.\n   A census process whose parent start time is unreadable is no row; it is counted in\n   `dead_parent_any_age_unknown_count`, while the verdict's `unknown_count` holds only its\n   own 24-hour candidates. The 24-hour orphan floor and the orphan candidate set are\n   unchanged, and a census row is not a process to kill. The census, its unknown count, and the\n   CPU ranking are `null` off Windows, which is not measured rather than none found: Linux, macOS, and\n   WSL reparent an orphan to a live init or subreaper, so the process table cannot show its\n   dead parent. The orphan verdict reads the same table, so off Windows (`orphans_note` says\n   so) `orphan_count: 0` is not a negative to record, and a `live_parent` row whose parent is\n   init, launchd, or a subreaper is unresolved rather than working software.\n   `processes.population` separates accumulation from churn across two samples; one sample\n   cannot tell them apart, and a count that holds while pids turn over is churn.\n\nCross-cutting: `sessions.active_last_hour` (concurrent sessions multiply watcher and I\u002FO load),\n`sessions.largest_transcript` (a very large live transcript in a resumed session grows the\nper-keystroke render cost), and every entry in `timings_seconds` (a slow phase names a slow\nsubsystem).\n\n## Run-end suggestion\n\nRelay the sentence below to the user and do not run `\u002Fdoctor` yourself: it is reserved for the person to run.\n\nIf \u002Fdoctor is available in your session (gate basis: **Boundary, the bundled `doctor` skill** above), run it for the quick health-and-fix pass this timed capture does not perform.\n\n**`--unattended`:** omit the suggestion and do not run `\u002Fdoctor`.\n\n## Gotchas\n\n- **Do not convert this audit into a cleanup.** Big is not the finding; *unswept* is. A healthy\n  sweep bounds the tree by itself; route a paused sweep to `\u002Fharness-config:audit` (settings fix),\n  invoked via the Skill tool, and tell the user to run `\u002Fdisk-hygiene:clean` for unmanaged\n  leftovers.\n- **A number alone never convicts.** 100k files with `walk_seconds: 4` on an excluded NVMe volume\n  is healthy; 20k files with `walk_seconds: 90` behind a scanning filter driver is the problem.\n  Pair counts with timings in every claim.\n- **Run it while slow.** A report captured after a restart supports no conclusion about the\n  incident.\n- **`quiesced: false` always.** Counts drift while the engine walks a live tree; report ranges, not\n  false precision.\n- **Reinstalling before capturing destroys the version evidence permanently.** If the operator\n  already reinstalled, say plainly that suspect 2 can no longer be tested for the past incident.\n- **Never time a hook by running it** (see Never execute). Report the enumeration and the spawn\n  baseline, and let the operator attribute. The harness has already timed the Stop hooks that ran:\n  a `stop_hook_summary` record in the session transcript carries `hookCount` and a `hookInfos`\n  array of `{\"command\", \"durationMs\"}`, one entry per hook. The skill still never reads a\n  transcript, so name the route and hand the operator a filter that extracts those records alone,\n  for example\n  `jq -c 'select(.subtype == \"stop_hook_summary\") | .hookInfos' \u003Csession>.jsonl`. Claim: the\n  record and its fields are observed harness behavior, not documented, so treat the shape as\n  unstable; basis: 41 such records in one session supplied every per-hook duration an audit\n  produced, and [hooks](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks.md) contains neither\n  `stop_hook_summary` nor `durationMs`; verified 2026-11-04. Recheck when the hooks page\n  documents per-hook timing in transcript records, or when a filtered transcript returns no\n  `stop_hook_summary` record in a session whose Stop hooks ran.\n  We time hooks from the transcript because it covers a session that already ran, with nothing\n  turned on beforehand. Pointer: for what the debug route records, see\n  [hooks: debug hooks](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks#debug-hooks).\n  For other events' hooks, filter to the timing fields:\n  `jq -c 'select(.type == \"attachment\") | .attachment | select(.type == \"hook_success\" or .type == \"hook_non_blocking_error\") | {hookEvent, hookName, command, durationMs}' \u003Csession>.jsonl`.\n  `\u002Fharness-ops:observability hooks \u003Csession>.jsonl` reads both shapes and owns the record of\n  their keys and stability.\n- **Label every spawn number with machine state.** The floor moves with load: every quoted timing\n  carries its `concurrent_processes_at_sample`, and a comparison against an earlier capture is\n  valid only at comparable load.\n- **A slow spawn floor at idle CPU with the four suspects clear is the host, not the fan-out\n  layer.** On Windows check `kernel_objects` before writing up `slow-spawn-floor`: a Token-object\n  leak can produce seconds per process creation at low CPU that a reboot clears. Report the leak,\n  route the reboot and the attribution to the operator, and do not let the fan-out numbers carry\n  the diagnosis.\n- **Do not present hook cost as additive** (scheduling: the hook-handler-fields pointer in\n  item 2 of the report reading). Summing hook timings overstates the stall the\n  operator observes several times over.\n- **Config on disk is not config in force.** Check `fan_out.config_liveness` before saying a\n  setting is or is not the cause: everything can look disabled while its hooks still run.\n- **Age is not orphanhood.** Read `parent_alive`, and leave `unknown` unresolved rather than\n  guessing; most long-lived helpers have live parents.\n- **Record the negatives.** When a suspect is tested and cleared, say so and how, as the bundled\n  reference's tested-and-cleared section does. Antivirus, filesystem, and shell choice have each\n  looked like the cause and been wrong.\n",{"metadata":24,"description":7,"argument-hint":28,"user-invocable":29,"disable-model-invocation":20},{"cadence":25,"summary":26,"workflow-stage":27},"continuous","Capture slowness evidence while slow. Version, sweep health, tree walk, sessions, fleet, fan-out","operator","[--unattended] [--root \u003Cpath>] [--session-id \u003Cid>] [--note \u003Cfact>]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fharness-ops\u002Fskills\u002Faudit-performance",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":29},[41,44,47],{"tool":42,"command":43},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill audit-performance",{"tool":45,"command":46},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill audit-performance",{"tool":48,"command":49},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill audit-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002FSKILL.md",[52,58,62,66,72,76],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"evals\u002Fevals.json","REFERENCE","参考文档",15474,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Fevals\u002Fevals.json",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"reference\u002Fbundled-doctor.md",3443,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Freference\u002Fbundled-doctor.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"reference\u002Fknown-performance-issues.md",55022,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Freference\u002Fknown-performance-issues.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Faudit_performance.py","SCRIPT","脚本",111209,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Fscripts\u002Faudit_performance.py",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Faudit_performance.test.sh",7137,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Fscripts\u002Faudit_performance.test.sh",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Ftest_audit_performance.py",109322,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Faudit-performance\u002Fscripts\u002Ftest_audit_performance.py",[81,88,95,102,107,114],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":103,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]