perf-profile
Qué hace
Esta skill busca partes lentas de un juego y ordena formas de acelerarlas según los presupuestos de rendimiento del proyecto. Sirve para desarrolladores que trabajan en la tasa de fotogramas, el tiempo de carga o la memoria.
Cuándo usarla
- ✓Cuando un juego va lento o pierde fotogramas y el equipo necesita encontrar la causa.
- ✓Cuando un desarrollador quiere medir el rendimiento frente a los presupuestos del proyecto.
- ✓Cuando un equipo necesita una lista ordenada de optimizaciones antes de una versión.
Link de la skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/perf-profile/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi juego pierde fotogramas en la escena de la ciudad. Encuentra los cuellos de botella y ordena las mejoras.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill lee la salida del perfilador y la configuración de rendimiento, mide los resultados frente a los presupuestos y produce una lista ordenada de recomendaciones. Si no hay datos del perfilador, informa de que no puede ejecutarse.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Necesito primero datos del perfilador?
Sí. La skill necesita la salida del perfilador para medir frente a los presupuestos, y avisa de que no puede ejecutarse sin ella.
¿Qué son los presupuestos de rendimiento?
Son límites objetivo, como el tiempo por fotograma o la memoria, que el proyecto fija de antemano.
¿Arregla los problemas por sí misma?
Su resultado es una lista ordenada de recomendaciones para que el equipo actúe.
Detalles
Descripción original del autor
Performance profiling — find bottlenecks, measure against budgets, produce ranked optimization recommendations.
Popularidad
- Estrellas en GitHub
- 33 mil
- Posición en el ranking
- #8466
- Licencia
- MIT
- Actualizada
- 18/10/2026
Comentarios
- …
Más skills de este repositorio
adopt
33 milComprueba si los documentos de un juego existente siguen los formatos de la plantilla del estudio y escribe un plan de migración numerado para corregir las lagunas.
architecture-decision
33 milRedacta un registro de decisión de arquitectura para una elección técnica, con contexto, alternativas y consecuencias, revisado por los roles técnicos adecuados.
architecture-review
33 milComprueba que tus decisiones técnicas cubren todos los requisitos de diseño, no entran en conflicto y encajan con el motor, con un veredicto claro.
art-bible
33 milRedacta una biblia de arte que define la identidad visual de tu juego, para que la producción de recursos siga un único conjunto claro de reglas de estilo.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.