本文へスキップ
Skillpedia
一般的なプログラミング33k · #8466

perf-profile

できること

このスキルは、ゲームの遅い部分を探し、プロジェクトに設定された性能予算と照らし合わせて、高速化の方法を順位付けします。フレームレート、読み込み時間、メモリに取り組む開発者のためのものです。

使う場面

  • ✓ゲームの動きが遅く、フレーム落ちの原因を見つける必要があるとき。
  • ✓開発者が、性能をプロジェクトの予算と照らし合わせて測りたいとき。
  • ✓リリース前に、最適化の順位付けされた一覧が必要なとき。

スキルのリンク

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/perf-profile/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/perf-profile/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“都市のシーンでフレームが落ちます。ボトルネックを見つけて、修正を順位付けしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、プロファイラーの出力と性能設定を読み、結果を予算と比べて測定します。その後、推奨事項の順位付けされた一覧を作ります。プロファイラーのデータがなければ、実行できなかったと報告します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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.

  1. List the inputs this skill reads (data files, prior reports, profiler output, test results, registries, source code).
  2. For each, record FOUND or ABSENT — not "assumed present".
  3. 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.
  4. If every required input is ABSENT, stop and report NOT ASSESSED — NO DATA as 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 reading project.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 set performance.target_framerate: 60 in project.yaml has it ignored if

よくある質問

プロファイラーのデータが必要ですか?

はい。予算と比較するにはプロファイラーの出力が必要で、ない場合は実行できないと報告します。

性能予算とは何ですか?

フレーム時間やメモリなどについて、プロジェクトが事前に設定する目標の上限です。

問題を自分で修正しますか?

出力は、チームが取り組むための順位付けされた推奨事項の一覧です。

詳細

作者による元の説明

Performance profiling — find bottlenecks, measure against budgets, produce ranked optimization recommendations.

repo: Donchitos/Claude-Code-Game-Studios

人気

GitHubのスター
33k
ランキング
#8466
ライセンス
MIT
更新日
2026/10/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル