debugging
Qué hace
Esta herramienta te ayuda a encontrar y corregir errores en programas de computadora. Investiga el comportamiento real del programa para descubrir la causa del problema, en lugar de adivinar solo a partir del código.
Cuándo usarla
- ✓Cuando un programa se cierra de forma inesperada.
- ✓Cuando un programa no funciona como esperas, pero no muestra un error claro.
- ✓Cuando un programa va lento o no responde.
Link de la skill
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/debugging/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 programa en Python se cierra cuando intento guardar un archivo. ¿Me ayudas a averiguar por qué?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta primero revisa cómo se comporta el programa en tiempo real para entender el problema. Después, usa guías específicas del lenguaje o del tipo de programa para encontrar la solución exacta y asegurarse de que el error no vuelva a aparecer.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Debugging
You are a hypothesis-driven debugger. Two disciplines apply regardless of language, runtime, or whether you have source:
- Runtime truth beats code reading. Every claim about why the bug happens must come from observed state — never from a plausible story spun from reading code.
- Leave no trace. Debugging creates artifacts. Every artifact is journaled and removed before you call the task done.
The rest of this file is a map. The knowledge is in references/. This file cannot teach you how to debug — it can only tell you which reference will, for your exact situation.
🚨 READ THE REFERENCES. THIS IS NOT OPTIONAL.
This skill is intentionally small. Ninety percent of what you need to know lives in
references/. If you skim this file and start working without opening the references, you will reattach a debugger the wrong way, miss a silent-failure pattern you've never seen before, waste an hour on a source-map gotcha, or invent a worse version of a tool that already solves your problem.Every reference below is mandatory when its scenario applies. "I know this language" is not an exemption. The references exist because every runtime and every specialist tool has at least one gotcha that silently wastes hours, and you will not know which gotcha until you read the file.
The gate rule: before you run a command from a given reference's domain, you must have read that reference in this session. Re-reading across sessions is cheap. Guessing is expensive.
Runtime Setup — MANDATORY READING BEFORE ATTACHING
The methodology is language-agnostic. The commands to launch, attach, breakpoint, and inspect are not. Open the matching reference before Phase 0. Not during. Not after.
| Your runtime is… | Open this before attaching anything | Non-negotiable because… |
|---|---|---|
| Python (CPython, pytest, asyncio, Django, FastAPI) | 📖 references/runtimes/python.md | pdb vs ipdb vs debugpy vs pytest --pdb all have different attach semantics. Async code needs special breakpoint handling. Wrappers like poetry run swallow flags. |
| Node.js / tsx / ts-node / Bun / Deno (running source) | 📖 references/runtimes/node.md | tsx + node inspect CLI has a silent source-map failure — breakpoints by line number do not fire. You will not notice unless you read this first. |
| Rust (cargo, tokio, panics) | 📖 references/runtimes/rust.md | Release builds strip symbols. Tokio tasks need tokio-console. The borrow checker makes dbg! the faster tool most of the time. |
| Go (goroutines, dlv, pprof, race) | 📖 references/runtimes/go.md | Goroutine leaks and recovered panics are silent by default. dlv has a specific port convention. go test -race is the first thing to run, not the last. |
| Native binary / stripped C/C++ / no source | 📖 references/runtimes/native-binary.md | The workflow (triage → dynamic → static → scripted repro) is counterintuitive if you've never done it. strings -n 8 silently drops short interpolations like ${x} — read bytes directly for any extraction that matters. macOS adds SIP / Mach-O / lldb specifics that don't apply on Linux. |
| Bundled-app binary (Bun SEA, Node SEA, Deno compile, pkg, nexe, Electron, Tauri, PyInstaller) | 📖 references/runtimes/bundled-js-binary.md | These look like Mach-O / ELF but their high-level source is recoverable with the right per-bundler tool — Ghidra is overkill. Source-format reality varies: Bun/pkg/nexe/Electron-asar are usually plaintext; Node SEA with code-cache, PyInstaller .pyc, and Deno eszip need extra tooling; Tauri's Rust core still needs native-binary.md. Workflow: identify bundler → locate bundle → extract with the bundler-specific tool → grep. |
If you cannot honestly say you just opened the reference for your runtime, open it now.
🚨 Native binary vs bundled binary — check before committing:
file ./targetcalls them both Mach-O / ELF. The 30-second discriminator isdu -h ./target(50 MB+ suspect bundled) plusstrings -n 12 ./target | rg -iE 'bun|node_modules|webpack|esbuild|deno|pkg/lib|electron|pyinstaller|nexe|NODE_SEA_FUSE|tauri'. If hits → bundled-js-binary.md. If clean → native-binary.md.
…
Preguntas frecuentes
¿Necesito ser programador para usarla?
No necesitas ser experto, pero tener una idea básica de lo que debería hacer el programa te ayudará mucho a identificar el problema.
¿Funciona con cualquier tipo de programa?
Sí. Tiene guías para varios lenguajes de programación y tipos de programas, incluidos los que no tienen código fuente visible.
¿Qué son las 'referencias'?
Son guías detalladas que explican cómo usar herramientas específicas para cada tipo de problema o lenguaje de programación. Es importante consultarlas antes de empezar.
Detalles
Descripción original del autor
Runs a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.
Popularidad
- Estrellas en GitHub
- 70 mil
- Posición en el ranking
- #3132
- Licencia
- NOASSERTION
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
comment-checker
70 milAyuda a tu agente a entender y responder al feedback de revisores automáticos de comentarios. Útil para procesar resultados de revisiones automáticas de código o contenido.
lcx-contribute-bug-fix
70 milAyuda a tu agente a aportar correcciones de errores a proyectos relacionados con LazyCodex. Crea incidencias o pull requests para garantizar la calidad del código.
lcx-doctor
70 milPermite a tu agente comprobar el estado de las instalaciones de LazyCodex y Codex CLI. Es útil si el sistema se comporta de forma extraña tras actualizaciones o cambios.
lcx-report-bug
70 milAyuda a tu agente a reportar errores en detalle para proyectos LazyCodex. Crea incidencias con información útil para que los desarrolladores solucionen el problema.
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.