/hatch3r:hatch3r-perf-auditfrom hatch3r
Profiles and optimizes application performance against defined budgets. Use when investigating performance issues, auditing performance budgets, or optimizing hot paths.
Ships in hatch3r. 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.
Note: Commands below use
npmas an example. Substitute with your project's package manager (yarn,pnpm,bun) or build tool when your project uses a different package manager.
Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Read performance budgets from rules and specs
- [ ] Step 2: Profile — bundle size, runtime, memory
- [ ] Step 3: Identify violations — which budgets exceeded, which hot paths slow
- [ ] Step 4: Plan optimizations — code splitting, lazy loading, memoization, etc.
- [ ] Step 5: Implement optimizations with before/after measurements
- [ ] Step 6: Verify all budgets met, no regressions
Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: target surface (frontend bundle vs backend cold start vs DB query), budget threshold values, profiling environment (local vs CI vs production), regression policy (revert vs ship-and-monitor), and whether optimization is allowed to introduce new deps.
Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.
Load the project's performance budgets from project rules and quality documentation:
Bundle size:
npm run build. Inspect output for gzipped sizes.vite-bundle-visualizer, rollup-plugin-visualizer, or webpack-bundle-analyzer (or build tool equivalent) to identify large chunks and dependencies.Runtime (frontend):
cursor-ide-browser — browser_profile_start/browser_profile_stop) when it is available; otherwise use the Chrome DevTools Performance panel or node --cpu-prof (Node processes).Memory:
Backend/API:
Check monitoring for cold start and warm execution times.
Instrument key paths.
For external library docs and current best practices, follow the project's tooling hierarchy.
Common strategies:
Code splitting: Route-based or component-based. Lazy-load panels, modals, non-critical features.
Lazy loading: Dynamic import() for heavy components; use your framework's async-loading mechanism (React lazy, Vue defineAsyncComponent, Angular deferrable views).
Memoization: Cache expensive derivations and avoid unnecessary re-renders (React useMemo/memo, Vue computed, Svelte $derived).
Reduce re-renders: Prefer conditional visibility over conditional mount for frequently toggled elements (Vue v-show over v-if, Angular [hidden] over *ngIf); keep reactive state shallow where deep reactivity is unneeded (Vue shallowRef).
Bundle: Remove unused deps, replace heavy libs with lighter alternatives, tree-shake.
Images/assets: Optimize, lazy-load, use appropriate formats.
Database: Reduce reads (batch, cache, denormalize).
Cloud/API: Warm-up strategies, reduce cold starts.
Check project ADRs for constraints. Verify optimizations do not violate privacy/security invariants documented in the ADRs.
For external library docs and current best practices, follow the project's tooling hierarchy.
platform in .hatch3r/hatch.json for PR vs MR terminology).prefers-reduced-motion — do not add animations that ignore it.${HATCH3R:VERIFY_GATE_ALL}
npm run build
The gate line is resolved to the project's language-aware command set at sync time (fallback when detection is unknown: npm run lint && npm run typecheck && npm run test); the build line is illustrative — substitute the project's build command.
You MUST spawn these agents via the Task tool (subagent_type: "general-purpose") at the appropriate points:
hatch3r-performance (CQ7) — MUST spawn to perform autonomous performance profiling and optimization (CWV, p95/p99, bundle-size, N+1, hot-path analysis). Provide the target areas, budget thresholds, and baseline measurements.hatch3r-performance-budgets — reference this rule for the project's defined performance budget thresholdshatch3r-performance-budgets rule as a baseline. Note in the report that custom budgets should be defined.performance.now() or console.time) for critical paths. Document the measurement method used.What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
55 skills in this plugin
/hatch3r-a11y-auditRuns a WCAG AA accessibility audit with findings and fixes across 7 scan categories (keyboard, contrast, ARIA, reduced motion, screen reader, high contrast, automated axe). Use when auditing and remediating accessibility./hatch3r-adhoc-orchestrateScaffolds the ad-hoc Tier >= 2 orchestration protocol -- Per-Turn Pipeline-State Header, implementer delegation plan, End-of-Turn Delegation Attestation. Use for a multi-phase task with no registered command to avoid inline-implementation bypass mode./hatch3r-ai-featureEval-driven development workflow for shipping AI features — write eval before prompt, measure, iterate, ship with caching + cost telemetry + model fallback + hallucination SLI/hatch3r-api-specGenerates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation./hatch3r-architecture-reviewEvaluates architectural decisions and produce ADRs following the project template. Use when making architectural decisions, evaluating trade-offs, or creating ADRs./hatch3r-board-groomOngoing backlog refinement for existing board items. Re-prioritize, reclassify, re-scope, archive stale items, decompose oversized issues, merge duplicates, refresh dependencies, and remediate board health findings.Other plugins' skills for the same job