Logo di Hatch3r Perf Audit

Hatch3r Perf Audit

Organizzazione
hatch3r
hatch3r-perf-audit

Profiles and optimizes application performance against defined budgets. Use when investigating performance issues, auditing performance budgets, or optimizing hot paths.

Panoramica

Pubblicato dahatch3r
Repositoryhatch3r
Nome della skillhatch3r-perf-audit
Stelle
26
Fork
7
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da hatch3r su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Hatch3r Perf Audit in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-perf-audit
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-perf-audit .claude/skills/hatch3r-perf-audit
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Hatch3r Perf Audit in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Hatch3r Perf Audit non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Hatch3r Perf Audit non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Note: Commands below use npm as an example. Substitute with your project's package manager (yarn, pnpm, bun) or build tool when your project uses a different package manager.

Performance Audit Workflow

Quick Start

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

Step 0 — Detect Ambiguity (P8 B1)

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 Discipline (P8 B2)

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.

Step 1: Read Performance Budgets

Load the project's performance budgets from project rules and quality documentation:

  • Common metrics: render frame rate, cold start to interactive, idle CPU usage, memory footprint, event processing latency, bundle size (initial, gzipped), database reads per session, API warm execution.
  • Note which surface is in scope: frontend, backend, or both.
  • Read project architecture docs for constraints if auditing a specific module.

Step 2: Profile

Bundle size:

  • Run npm run build. Inspect output for gzipped sizes.
  • Use vite-bundle-visualizer, rollup-plugin-visualizer, or webpack-bundle-analyzer (or build tool equivalent) to identify large chunks and dependencies.
  • Compare bundle sizes if multiple build targets exist.

Runtime (frontend):

  • Use Chrome DevTools Performance tab: record startup, record key interactions.
  • Measure: Time to Interactive (TTI), First Contentful Paint (FCP), Largest Contentful Paint (LCP).
  • For CPU profiling with call stacks, use the Cursor browser MCP (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).
  • Check frame rate during animations (target: 60fps, 16ms/frame).

Memory:

  • Heap snapshot before/after session. Target per project budget.
  • Look for leaks: detached DOM, growing arrays, uncleared timers.

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.

Step 3: Identify Violations

  • List which budgets are exceeded and by how much.
  • Identify hot paths: which functions/components contribute most to latency or bundle size.
  • Prioritize: critical user flows first.
  • Document baseline measurements for comparison.

Step 4: Plan Optimizations

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.

Step 5: Implement Optimizations

  • Apply changes incrementally. Measure before and after each change.
  • Document before/after for each metric in PR/MR or audit report (check platform in .hatch3r/hatch.json for PR vs MR terminology).
  • Respect prefers-reduced-motion — do not add animations that ignore it.
  • Run full test suite after each optimization to avoid functional regressions.

Step 6: Verify

bash
${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.

  • All performance budgets met.
  • No functional regressions.
  • Before/after measurements documented.
  • CI performance check passes (if configured).

Required Agent Delegation

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.

Related Rules

  • Rule: hatch3r-performance-budgets — reference this rule for the project's defined performance budget thresholds

Error Handling

  • No performance budgets defined for the project: Use the defaults from hatch3r-performance-budgets rule as a baseline. Note in the report that custom budgets should be defined.
  • Profiling tool unavailable or incompatible: Fall back to manual timing measurements (e.g., performance.now() or console.time) for critical paths. Document the measurement method used.
  • Optimization introduces functional regressions: Revert the optimization, add a regression test for the broken behavior, then re-attempt with a different approach.

Definition of Done

  • All performance budgets met
  • Before/after measurements documented
  • No functional regressions
  • Bundle size within budget (if defined)
  • Key metrics within project targets

References

  • Core Web Vitals — web.dev — accessed 2026-05-31, official-docs (Google / Chrome team). Source for the LCP, INP/FCP/TTI metric definitions and the field-vs-lab measurement guidance behind Step 2.
  • Lighthouse performance scoring — accessed 2026-05-31, official-docs (Google / Chrome team). Source for the 60fps/16ms frame target and the metric-weighting model used when prioritising violations in Step 3.

Domande frequenti

Cosa fa la skill IA Hatch3r Perf Audit?

Profiles and optimizes application performance against defined budgets. Use when investigating performance issues, auditing performance budgets, or optimizing hot paths.

Perché usare Hatch3r Perf Audit su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Hatch3r Perf Audit è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Hatch3r Perf Audit in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-perf-audit. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Hatch3r Perf Audit?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Hatch3r Perf Audit?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Hatch3r Perf Audit: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Hatch3r Perf Audit è gratuita?

Sì. È pubblicata su GitHub da hatch3r con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇