/act101:hot-path-refactorfrom act101
Ranks code by runtime hotness combined with static complexity and coupling to identify high-value refactoring targets from CPU profiles.
Ships in act101. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Target code that is both hot at runtime and structurally hard. Cold code is not worth optimizing; hot but trivial code rarely pays; the wins are where hotness meets complexity.
A CPU profile in speedscope JSON (py-spy, Austin) or pprof format, and the source
tree. profile_overlay is Architecture tier.
profile_overlay with the profile ranks symbols by self_pct
(direct cost) and total_pct (inclusive cost).analyze_hotspots ranks files and functions by composite
complexity (cyclomatic, statements, nesting).analyze_coupling shows how entangled a hot symbol's module is;
refactoring a high-coupling hot path is riskier and higher-value.self_pct with high complexity is the
top refactor target. High self_pct with low complexity suggests an algorithmic
or throughput fix rather than a refactor. High total_pct with low self_pct
means the cost is in callees; follow the stack.A ranked target list. Each entry: symbol id, self_pct and total_pct, complexity
and coupling signals, and a one-line action. Lead with the hot-and-hard
intersections.
Profile percentages are relative to the captured workload; a different workload
shifts the hot set. Read modeled_kinds and unmapped: frames that mapped to no
symbol are excluded, not zero-cost. Complexity is a syntactic estimate.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub act101-ai/act101 --plugin act10126 skills in this plugin
/agent-safety-auditUse before an autonomous agent edits a sensitive or high-blast-radius file, or to judge an edit it already made. Composes secret surface, taint flow, blast radius, API width, and the repo scan into one safety verdict./architectural-refactoringUse when breaking circular dependencies, splitting god classes, reducing coupling between modules, extracting interfaces at seams, or executing any structural change identified by an architecture audit. Requires a prior architecture-audit run that produced project-map.md and a report./architecture-auditUse when asked to audit architecture, get the full structural picture of a codebase, assess overall health or porting readiness, or find module boundaries, circular dependencies, coupling hotspots, dead code, or code smells. Full hypothesis-driven audit, optionally enriched with coverage and git evidence./boundary-analysisUse when looking for extraction candidates, planning a module split, analyzing module boundaries, or asked "where should I split this?". Produces ranked extraction candidates with cut costs, layer violations, interface width, orphan types, and a decomposition sequence./change-impactUse before modifying a file or symbol, or when asked "what breaks if I change X?". Returns a blast-radius, test-coverage, and cycle-risk verdict immediately, with no follow-up investigation./code-generationGenerates boilerplate (constructors, accessors, builders, equals and hash methods, JSON serialization, toString, interface stubs, test stubs) from a type's existing fields, previewed and reversible. Use when creating any of that boilerplate from an existing class or struct, or when porting a type and its boilerplate to another language. Business logic is written by hand.Other plugins' skills for the same job