Логотип Performance Optimization

Performance Optimization

Спільнота
thienanblog
performance-optimization

Measure and improve latency, resource use, queries, rendering, or build/test throughput. Use when performance is the primary problem; preserve correctness and compare equivalent workloads.

Огляд

Видавецьthienanblog
Репозиторійawesome-ai-agent-skills
Назва навичкиperformance-optimization
Зірки
66
Форки
21
Файли в пакеті
2
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

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

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

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

  • Файлів у комплекті: 2

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

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

    Опубліковано на GitHub користувачем thienanblog. Перегляньте вихідний вміст перед установленням.

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

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

1

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

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

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/thienanblog/awesome-ai-agent-skills/tree/main/plugins/project-development-skills/skills/performance-optimization
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thienanblog/awesome-ai-agent-skills.git /tmp/awesome-ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/awesome-ai-agent-skills/plugins/project-development-skills/skills/performance-optimization .claude/skills/performance-optimization
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

Performance Optimization

Use this skill when performance is the main concern. Measure first, optimize the confirmed bottleneck, and verify improvement without changing business behavior accidentally.

Working agreement

Follow the user's request and applicable repository instructions over these defaults. Use existing authorization; ask only about missing decisions that materially affect scope, cost, safety, or the result. Continue independent authorized work while awaiting an answer.

Run in the main conversation by default. Delegation can increase usage: obtain explicit approval for the proposed agent count and scope before using subagents. Reuse that approval within its bounds; ask again before expanding the approved count or scope.

Operating Rules

  • Do not optimize blindly. Capture a baseline or concrete symptom first.
  • Define a benchmark envelope before comparing results: workload, starting data, cache state, command and flags, resource limits, and concurrent activity.
  • Read the rules and instrumentation relevant to the measured path.
  • Preserve business logic and data correctness.
  • Prefer low-risk local improvements before broad architecture changes.
  • Treat caching as a contract: define invalidation, freshness, and user-specific data boundaries.
  • Treat infrastructure health as part of correctness. Reject measurements with crashes, OOM kills, unexpected restarts, failed cleanup, or orphan processes.
  • Avoid adding dependencies or infrastructure unless measurement justifies them.
  • For an unexplained correctness failure, isolate it before optimizing. Consult debugging or testing guidance only when it adds useful depth to the work.

Workflow

1. Define The Performance Claim

  • Identify what is slow, where, for whom, and compared to what.
  • Capture baseline evidence: timing, query count, payload size, memory, CPU, bundle size, Web Vitals, screenshot, profile, or logs.
  • Identify the environment and data size used for measurement.
  • Fix the workload and starting state. Record warm or cold cache, account and permissions, worker count, retries, resource limits, and unrelated workloads.
  • For noisy measurements, run enough repetitions to report a representative value and spread instead of selecting the best run.

2. Find The Bottleneck

  • Separate backend latency, database time, network payload, frontend rendering, asset loading, build tooling, and external dependency time.
  • Separate setup, exercise, and cleanup costs. A browser or test runner on the host can still drive memory, CPU, and database work inside services.
  • Measure workload amplification where relevant: request volume, statement classes, row growth, repeated fixture work, background jobs, and retries.
  • Check source-of-truth docs for expected behavior before changing data flow.
  • Inspect existing instrumentation, logs, traces, query debug output, profiler data, and browser performance tools when available.

Read references/performance-playbook.md for domain-specific checks.

3. Choose The Smallest Useful Fix

  • Database: indexes, eager loading, joins, batching, pagination, field selection, avoiding N+1.
  • Backend: reduce redundant work, stream or queue heavy work, avoid large in-memory operations, cache carefully.
  • Frontend: reduce unnecessary renders, split data, virtualize large lists, lazy load, memoize where useful, optimize images/fonts.
  • Build/tests: cache dependencies, batch or reuse validated setup, isolate shared-state tests, sweep concurrency gradually, and avoid unnecessary full rebuilds. Do not weaken authentication, authorization, realtime, or other behavior under test merely to make a suite faster.

4. Verify Improvement

  • Rerun the same measurement.
  • Compare before/after using the same data and environment when possible.
  • When concurrency exposes a failure, reproduce and fix the focused case before rerunning the full benchmark. Do not hide races or failed requests by only increasing timeouts or retries.
  • Verify service health, cleanup, state restoration, and process termination on success, failure, and handled interruption where the workflow mutates state.
  • Add regression coverage or guardrails when practical.
  • Keep improvements within the agreed correctness, freshness, accessibility, and UX requirements. Obtain a decision for a material tradeoff not already accepted.
  • Complete required checks and reuse valid focused evidence. Broaden measurements or tests only when the performance claim or an unresolved regression risk needs them, within the agreed budget.

Reporting

Report:

  • Baseline and after measurement.
  • Benchmark envelope, repetitions or sample size, and any rejected runs.
  • Bottleneck identified.
  • Change made.
  • Verification command, profiler, screenshot, or metric.
  • Tradeoffs, cache invalidation rules, and remaining risks.

References

  • references/performance-playbook.md: database, backend, frontend, asset, build, test, and caching performance checks.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

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

Що робить навичка ШІ Performance Optimization?

Measure and improve latency, resource use, queries, rendering, or build/test throughput. Use when performance is the primary problem; preserve correctness and compare equivalent workloads.

Навіщо використовувати Performance Optimization у TypingMind?

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

Як встановити Performance Optimization у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/thienanblog/awesome-ai-agent-skills/tree/main/plugins/project-development-skills/skills/performance-optimization. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

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

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

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

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Performance Optimization — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Performance Optimization?

Так. Навичку опубліковано на GitHub: thienanblog, за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

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

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

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

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

Усі

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

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