Aller au contenu
Skillpedia
Programmation générale33k · #8466

perf-profile

Ce qu’il fait

Cette skill recherche les parties lentes d'un jeu et classe les moyens de les accélérer par rapport aux budgets de performance fixés pour le projet. Elle s'adresse aux développeurs qui travaillent sur la fréquence d'images, le temps de chargement ou la mémoire.

Quand l’utiliser

  • ✓Quand un jeu tourne lentement ou perd des images et que l'équipe doit en trouver la cause.
  • ✓Quand un développeur veut mesurer la performance par rapport aux budgets du projet.
  • ✓Quand une équipe a besoin d'une liste classée d'optimisations avant une sortie.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/perf-profile/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mon jeu perd des images dans la scène de la ville. Trouve les goulots d'étranglement et classe les corrections.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill lit les résultats du profileur et les réglages de performance, mesure les résultats par rapport aux budgets, et produit une liste classée de recommandations. Si aucune donnée de profileur n'existe, elle indique qu'elle n'a pas pu s'exécuter.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Ai-je besoin d'abord des données du profileur ?

Oui. La skill a besoin des résultats du profileur pour mesurer par rapport aux budgets, et elle signale qu'elle ne peut pas fonctionner sans eux.

Que sont les budgets de performance ?

Ce sont des limites cibles, comme le temps par image ou la mémoire, que le projet fixe à l'avance.

Corrige-t-elle elle-même les problèmes ?

Son résultat est une liste classée de recommandations que l'équipe doit mettre en œuvre.

Détails

Description originale de l’auteur

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

repo: Donchitos/Claude-Code-Game-Studios

Popularité

Étoiles GitHub
33k
Position au classement
#8466
Licence
MIT
Mis à jour
18/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires