CommunityProgramación y desarrollogithub.com

tipos-de-ruta

Elige tipos de Rust para rutas del sistema operativo en el repositorio de Codex. Úsalo al definir nuevos tipos con rutas o migrar explícitamente los existentes.

¿Qué es tipos-de-ruta?

Esta habilidad proporciona una guía detallada para elegir y migrar tipos de Rust relacionados con rutas del sistema operativo dentro del repositorio de Codex. Es útil para desarrolladores que trabajan con los servidores `app-server` y `exec-server`, asegurando compatibilidad hacia atrás durante la migración de URIs. Soporta tipos como `LegacyAppPathString`, `PathUri` y `AbsolutePathBuf`, y define reglas claras para el manejo de argumentos de herramientas del modelo, conversión de errores y almacenamiento persistente. La guía también incluye requisitos de migración, como mantener cadenas nativas en clientes existentes, usar URIs en APIs internas y evitar almacenar URIs en bases de datos hasta nuevo aviso. El objetivo es lograr un estado objetivo de migración sin introducir modos de fallo significativos.

Compatible con~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/openai/codex/tree/main/.codex/skills/path-types

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Tipos de Ruta

Aplica esta guía al definir nuevos tipos. Modifica código existente solo cuando se solicite explícitamente, y mantén las ediciones mínimas y proporcionales. Trata estas reglas como el estado objetivo de una migración en curso; si el cumplimiento es difícil, pregunta al usuario cómo proceder.

  • En tipos de protocolo de app-server, usa LegacyAppPathString para compatibilidad hacia atrás durante la migración de URI. En el límite del protocolo, conviértelo a PathUri y usa PathUri internamente. Para lógica local del host, como algunos valores de configuración, usa AbsolutePathBuf o PathBuf.
  • En tipos de protocolo de exec-server, usa PathUri. Internamente, usa PathUri o AbsolutePathBuf según corresponda.
  • En dependencias compartidas por ambos servidores, usa PathUri o APIs separadas que desacoplen sus casos de uso.
  • Los argumentos de llamada a herramientas que se espera que genere el modelo deben deserializarse como Strings normales con código de manejo de rutas específico de la función.

Requisitos de migración

Ten en cuenta estos requisitos al migrar código para que cumpla con las pautas anteriores:

  • los clientes existentes de app-server siguen enviando y recibiendo cadenas de rutas nativas heredadas
  • app-server puede conservar y manipular URIs de rutas de plataformas externas
  • las APIs de exec-server usan URIs file://
  • la operación solo local no debe cambiar el texto visible para el modelo
  • los argumentos de herramienta del modelo pueden contener rutas relativas o absolutas sin procesar para cualquier SO
  • el razonamiento sobre rutas debe funcionar antes de que el entorno relacionado esté en línea
  • los URIs no pueden codificar explícitamente la convención de ruta o el sistema operativo del ejecutor
  • los usuarios no deben configurar explícitamente el SO o la convención de ruta del entorno
  • los URIs no deben almacenarse aún en despliegues, bases de datos u otro almacenamiento persistente
  • errores de conversión de ruta: cierre seguro para rutas críticas de seguridad, apertura segura para IU/diagnóstico
  • prefiere métodos pequeños y enfocados en PathUri o LegacyAppPathString sobre ayudantes locales
  • representa los valores de PathUri como URIs en diagnósticos

Está bien si la conversión entre rutas y URIs es algo imprecisa siempre que haga lo correcto para usuarios reales.

Migrar a URIs no debería agregar modos de fallo significativos. Necesitaremos mostrar errores en algunos lugares que antes eran infalibles, pero debe mantenerse al mínimo.

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

code-review

Run a final code review on a pull request

code-review-change-size

Change size guidance (800 lines)

code-review-context

Model visible context

code-review-testing

Test authoring guidance

codex-bug

Diagnose GitHub bug reports in openai/codex. Use when given a GitHub issue URL from openai/codex and asked to decide next steps such as verifying against the repo, requesting more info, or explaining why it is not a bug; follow any additional user-provided instructions.

codex-issue-digest

Run a GitHub issue digest for openai/codex by feature-area labels, all areas, and configurable time windows. Use when asked to summarize recent Codex bug reports or enhancement requests, especially for owner-specific labels such as tui, exec, app, or similar areas.

codex-pr-body

Update the title and body of one or more pull requests.

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

openai/babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

openai-docs

Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; use OpenAI docs MCP tools for non-Codex docs questions, use the Codex manual helper first for broad Codex self-knowledge, and restrict fallback browsing to official OpenAI domains.

openai/test-tui

Guide for testing Codex TUI interactively

plugin-creator

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

pushing-ci-changes

Pushing GitHub Actions changes, resolving push rejection, requesting upload exceptions.

remote-tests

Testing against remote executors in integration tests.

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.

skill-installer

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

test-tui

Guide for testing Codex TUI interactively

update-v8-version

Update Codex's pinned `v8` / `rusty_v8` versions, validate the release-candidate path, and investigate failed V8 canary or artifact builds. Use when asked to bump V8, update `rusty_v8` artifacts, prepare or validate a V8 release candidate, check `v8-canary`, or diagnose why a V8 version update no longer builds.

Skills relacionados