fix-finding
Qué hace
Esta skill corrige un hallazgo de seguridad concreto en el código con un cambio mínimo y comprueba que la corrección funciona. Es para desarrolladores que quieren una reparación revisada y puntual en vez de una reescritura amplia.
Cuándo usarla
- ✓Cuando pides corregir y verificar una vulnerabilidad de seguridad validada o plausible.
- ✓Cuando quieres un cambio mínimo que cierre un límite de seguridad sin alterar el comportamiento normal.
- ✓Cuando sospechas que el código ya es seguro y quieres demostrarlo con pruebas.
Link de la skill
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/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
“Corrige la vulnerabilidad de recorrido de rutas en el manejador de subida de archivos y ejecuta las comprobaciones para confirmar que está cerrada.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA lee primero el código afectado, quién lo llama y sus pruebas, y clasifica el estado actual. Después hace el cambio más pequeño que encaje con el repositorio y ejecuta las comprobaciones que exige el modo de verificación elegido.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Fix Finding
Before choosing paths or saving retained output, read ../../references/artifact-storage.md and follow its storage policy.
Objective
Turn a current security finding into a minimal, validated code change. If the code is already safe, prove that and report that no change was needed.
Classify the current state from evidence, close the broken security boundary, preserve legitimate behavior, and pass the checks required by the selected verification mode. Prefer the smallest repository-native change that meets those requirements.
Verification Mode
Use standard verification unless the caller explicitly selects verificationMode: static. The selected mode applies throughout this skill, including delegated reviews and workbench stages; pass it to every delegated agent.
In static mode, assess source and diff evidence only. Do not install dependencies or run builds, tests, reproducers, or the application, including when validation instructions request them. Repository-reading tools remain available. State that runtime checks were not performed; do not count them as passed or require them for this assessment. Missing runtime tooling alone is not a blocker, but a material gap in the source evidence still requires blocked.
Patch Contract
Before editing, inspect the affected implementation, its direct callers, nearby helpers, and relevant existing tests. Establish from repository evidence:
- the attacker-controlled input and concrete source-to-sink path or broken control
- the security invariant and narrowest shared enforcement boundary
- legitimate behavior, APIs, error semantics, and compatibility constraints that must remain
- the closest existing implementation, validation, and error-handling precedents
Treat the finding as a data-flow and boundary problem, not merely the named input example. Check equivalent encodings, parser forms, aliases, callers, sinks, and every representation or copy of security-sensitive state that could bypass the proposed change. Handle unsafe state explicitly; do not silently accept, truncate, or reinterpret it into another reachable form.
Implementation Workflow
- Trace the reported path and inspect only the context needed to identify the real shared boundary. Return
no_changewhen repository evidence shows that the reported path is already safe; do not make a speculative change. - In standard mode, when feasible, run the smallest high-signal reproduction through that boundary and one legitimate control through the same path.
- Implement the smallest repository-native fix at the shared boundary. Prefer nearby helpers and established APIs. Do not broaden into unrelated redesign, cleanup, or sibling findings.
- Before verification, challenge the patch rather than defending it: inspect every direct caller of each changed helper and both outcomes of each changed condition. Look for one sibling path, representation, or copy that still reaches the vulnerable sink and one ordinary or default input that the patch newly rejects or reinterprets; revise the implementation if either exists.
- In standard mode, verify the resulting change:
- inspect the final diff and run the narrowest syntax, import, build, or type check relevant to it
- rerun the security trigger or strongest focused substitute and review one alternate malicious input class
- rerun the legitimate control, nearest existing tests, and the owning package's applicable required checks
In static mode, use these verification gates instead: inspect the final diff; trace the original exploit path and relevant alternate inputs through the changed control; then inspect callers and existing tests as source to establish that legitimate behavior and compatibility remain intact. Cite the source evidence for each gate and identify anything it cannot establish.
Return blocked if the vulnerability may be real, but essential evidence, tooling, access, or a product or compatibility decision is missing, so a safe fix cannot be responsibly completed or verified.
Review the fix
Challenge the patch for surviving bypasses and regressions in legitimate behavior. Use independent investigation or review when the complexity, uncertainty, or security impact warrants it. Give a fresh read-only reviewer the finding, repository root, authorized scope, repository policy, verification mode, and candidate diff so they can assess it from source without the author's rationale or claimed test results. If delegati
Preguntas frecuentes
¿Corrige también errores normales?
No. Solo sirve para vulnerabilidades de seguridad, no para correcciones generales de errores ni problemas de diseño.
¿Puede comprobar una corrección sin ejecutar el código?
Sí. Un modo estático evalúa solo las pruebas del código fuente y del diff, sin instalar dependencias ni ejecutar pruebas.
¿Qué pasa si el código ya es seguro?
La skill lo demuestra con las pruebas y comunica que no hacía falta ningún cambio.
Detalles
Descripción original del autor
Use only when the user explicitly asks to fix and verify a validated or plausible security vulnerability. Do not use for ordinary bug fixes, correctness or design review findings, general validation, or full PR, commit, branch, patch, or repository scans.
repo: openai/codex-security
Popularidad
- Estrellas en GitHub
- 11 mil
- Posición en el ranking
- #11752
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
assess-patch-risk
11 milAyuda a tu agente a juzgar cuán arriesgado es un parche de código antes de fusionarlo, revisando qué afecta, qué pruebas lo cubren y si se puede revertir.
attack-path-analysis
11 milAyuda a tu agente a seguir un hallazgo de seguridad desde su punto de entrada hasta su objetivo, y después juzgar el impacto real y si debe informarse.
cloud-findings
11 milPermite que tu agente lea los hallazgos de seguridad, los informes y el estado de escaneo ya existentes de tu cuenta conectada de Codex Security Cloud, sin cambiar nada.
deep-security-scan
11 milAyuda a tu agente a ejecutar un escaneo de seguridad profundo, de varias pasadas, sobre un repositorio o una carpeta, repitiendo comprobaciones independientes y combinando los hallazgos validados.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.