perf-profile
Fungsinya
Skill ini mencari bagian game yang lambat dan memberi peringkat cara mempercepatnya terhadap anggaran performa yang ditetapkan untuk proyek. Cocok untuk pengembang yang bekerja pada frame rate, waktu muat, atau memori.
Kapan dipakai
- βSaat sebuah game berjalan lambat atau kehilangan frame dan tim perlu menemukan penyebabnya.
- βSaat seorang pengembang ingin performa diukur terhadap anggaran proyek.
- βSaat sebuah tim membutuhkan daftar optimasi berperingkat sebelum rilis.
Link skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/perf-profile/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βGame saya kehilangan frame di adegan kota. Temukan hambatannya dan beri peringkat perbaikannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membaca keluaran profiler dan pengaturan performa, mengukur hasilnya terhadap anggaran, lalu menghasilkan daftar rekomendasi berperingkat. Jika tidak ada data profiler, skill melaporkan bahwa ia tidak bisa berjalan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys performance.enforce,automation,workflow
Resolved above β use as-is. No block β defaults in
.claude/docs/config-resolution.md.
Performance Profile
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always Β· guided major-only Β· autonomous logs and proceeds;
automation_always_ask categories always prompt).
Insufficient input β check this before producing any report
If the inputs this skill needs do not exist, the answer is "could not run" β not a filled-in report. Check first, and stop if the check fails.
- List the inputs this skill reads (data files, prior reports, profiler output, test results, registries, source code).
- For each, record
FOUNDorABSENTβ not "assumed present". - If any input required for a section is ABSENT, that section is
NOT ASSESSED β NO DATA. Do not estimate it, do not infer it from an adjacent artifact, and do not leave a mandated cell to be filled by whoever reads the template next. - If every required input is ABSENT, stop and report
NOT ASSESSED β NO DATAas the whole verdict, naming what was missing and which skill produces it.
A verdict of NOT ASSESSED is a success. It is the correct, useful answer to
"what does the data say?" when there is no data. The failure mode this prevents is
specific: a report whose verdict enum has no "could not run" state produces
false clean passes β an asset audit returning COMPLIANT on a project with no
assets and no standards, or a performance profile reporting ">99% headroom against
a 16.67ms budget" with zero profiler data and no budget ever set.
Absence of evidence is never evidence of absence. A scan that finds no matches because there are no files to scan has not verified anything. Say which of the two happened β a reader cannot tell from a green result.
Phase 0: Resolve Budget Enforcement
performance.enforce decides what a budget violation means in this run. It
does not change which budgets are measured β performance.target_framerate,
frame_budget_ms, draw_call_limit and memory_ceiling_mb are profiled the
same way at every level:
| Value | Effect on this profile's findings |
|---|---|
warn (default) |
Violations are reported as findings. They do not block; CI logs them without failing. |
block |
Violations are blockers. Say so explicitly in the report β a block project treats an over-budget system as release-stopping, and /gate-check will FAIL the Polish gate on it. |
off |
Budgets are informational only. Still report measured values, but do not raise violations as findings or recommendations to fix. |
Only warn, block and off are recognized. Surface any other value to the
user and fall back to warn rather than guessing.
The value is locally overridable (
/settings --local performance.enforce=block), so use the resolved block above rather than readingproject.yamlβ a teammate's stricter local setting is meant to bite on their machine only.
Phase 1: Determine Scope
Read the argument:
- System name β focus profiling on that specific system
fullβ run a comprehensive profile across all systems
Phase 2: Load Performance Budgets
Read the committed budgets from config first β they are the project's record of what it agreed to, and design docs are the fallback, not the source:
bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" get_effective_yaml_key performance.target_framerate
bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" get_effective_yaml_key performance.frame_budget_ms
bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" get_effective_yaml_key performance.draw_call_limit
bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" get_effective_yaml_key performance.memory_ceiling_mb
Run each line as its own plain command, one key per call: the helper moves to
the project root itself, so it works when the session was started in a
subfolder, and this skill pre-approves that form only (a source or cd ... &&
wrapper asks the user every time). Empty output means that budget is not set.
Resolve these budgets from
project.yaml, not from prose. Phase 0 above states these four budgets "are profiled the same way at every level". A user who setperformance.target_framerate: 60inproject.yamlhas it ignored if
Pertanyaan umum
Apakah saya perlu data profiler dulu?
Ya. Skill membutuhkan keluaran profiler untuk mengukur terhadap anggaran, dan ia melaporkan bahwa tidak bisa berjalan tanpanya.
Apa itu anggaran performa?
Itu adalah batas target untuk hal seperti waktu frame atau memori yang ditetapkan proyek sejak awal.
Apakah skill ini memperbaiki masalahnya sendiri?
Keluarannya adalah daftar rekomendasi berperingkat untuk ditindaklanjuti tim.
Detail
Deskripsi asli dari pembuat
Performance profiling β find bottlenecks, measure against budgets, produce ranked optimization recommendations.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8466
- Lisensi
- MIT
- Diperbarui
- 18/10/2026
Komentar
- β¦
Skill lain dari repositori ini
adopt
33kMemeriksa apakah dokumen proyek game yang sudah ada mengikuti format template studio, lalu menulis rencana migrasi bernomor untuk memperbaiki celah yang ditemukan.
architecture-decision
33kMenulis catatan keputusan arsitektur untuk pilihan teknis, mencakup konteks, alternatif, dan konsekuensi, dengan tinjauan dari peran teknis yang tepat.
architecture-review
33kMemeriksa bahwa keputusan teknis Anda mencakup setiap kebutuhan desain, tidak saling bertentangan, dan sesuai versi mesin, dengan vonis lulus atau kekhawatiran yang jelas.
art-bible
33kMenulis art bible yang mendefinisikan identitas visual game Anda, sehingga produksi aset mengikuti satu rangkaian aturan gaya yang jelas.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.