Логотип Hatch3r Perf Audit

Hatch3r Perf Audit

Організація
hatch3r
hatch3r-perf-audit

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

Огляд

Видавецьhatch3r
Репозиторійhatch3r
Назва навичкиhatch3r-perf-audit
Зірки
26
Форки
7
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: hatch3r. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Hatch3r Perf Audit у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-perf-audit
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Hatch3r Perf Audit в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Hatch3r Perf Audit, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Hatch3r Perf Audit не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ Hatch3r Perf Audit?

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

Навіщо використовувати Hatch3r Perf Audit у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Hatch3r Perf Audit — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Hatch3r Perf Audit у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-perf-audit. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Hatch3r Perf Audit?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Hatch3r Perf Audit?

Зі скількома забажаєте. У TypingMind ви можете використовувати Hatch3r Perf Audit із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Hatch3r Perf Audit?

Так. На GitHub цю навичку публікує hatch3r за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇