Community코딩 & 개발github.com

경로 타입

Codex 저장소 전체에서 운영체제 경로에 적합한 Rust 타입을 선택합니다. 새로운 경로 포함 타입을 정의하거나 기존 타입을 명시적으로 마이그레이션할 때 사용하세요.

경로 타입란 무엇인가요?

이 스킬은 Codex 저장소에서 새로운 경로 관련 타입을 정의하거나 기존 코드를 URI 기반 경로 처리로 마이그레이션할 때 따라야 할 지침을 제공합니다. 코드베이스가 점진적으로 `PathUri`와 `AbsolutePathBuf` 같은 강력한 타입으로 이전되는 과정에서 일관된 타입 선택을 보장합니다. 주요 지원 대상은 Codex의 app-server와 exec-server이며, 각각의 프로토콜 타입과 내부 로직에서 서로 다른 경로 표현(레거시 문자열, file:// URI 등)을 적절히 사용해야 합니다. 이 스킬은 마이그레이션 요구 사항(예: 기존 클라이언트와의 호환성 유지, 보안 경로 오류 처리, 지속적 저장소에서 URI 미사용 등)을 명확히 정의하며, 경로 변환의 손실을 허용하되 실제 사용자에게 올바르게 동작하도록 설계되었습니다.

지원 대상~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/openai/codex/tree/main/.codex/skills/path-types

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

경로 타입은(는) 무엇을 하나요?

새로운 타입을 정의할 때는 이 지침을 적용하세요. 명시적으로 요청된 경우에만 기존 코드를 변경하고, 수정은 최소화하고 비례하게 유지하세요. 이 규칙을 진행 중인 마이그레이션의 목표 상태로 취급하십시오. 준수가 어려울 경우 사용자에게 어떻게 진행할지 물어보세요.

  • 앱-서버 프로토콜 타입에서는 URI 마이그레이션 중 이전 버전과의 호환성을 위해 LegacyAppPathString을 사용합니다. 프로토콜 경계에서 이를 PathUri로 변환하고 내부적으로 PathUri를 사용합니다. 일부 설정 값과 같은 호스트-로컬 로직의 경우 대신 AbsolutePathBuf 또는 PathBuf를 사용합니다.
  • exec-서버 프로토콜 타입에서는 PathUri를 사용합니다. 내부적으로는 적절히 PathUri 또는 AbsolutePathBuf를 사용합니다.
  • 두 서버가 공유하는 종속성에서는 PathUri 또는 사용 사례를 분리하는 별도의 API를 사용합니다.
  • 모델이 생성할 것으로 예상되는 도구 호출 인수는 일반 String으로 역직렬화하고 기능별 경로 처리 코드를 사용해야 합니다.

마이그레이션 요구 사항

코드를 위 지침에 맞게 마이그레이션하는 동안 다음 요구 사항을 염두에 두십시오:

  • 기존 앱-서버 클라이언트는 레거시 네이티브 경로 문자열을 계속 보내고 받습니다.
  • 앱-서버는 외부 플랫폼 경로 URI를 유지하고 조작할 수 있습니다.
  • exec-서버 API는 file:// URI를 사용합니다.
  • 로컬 전용 작업은 모델에 표시되는 텍스트를 변경해서는 안 됩니다.
  • 모델 도구 인수는 모든 OS에 대한 원시 상대 경로나 절대 경로를 포함할 수 있습니다.
  • 경로 추론은 관련 환경이 온라인 상태가 되기 전에 작동해야 합니다.
  • URI는 실행기의 경로 규칙이나 운영체제를 명시적으로 인코딩할 수 없습니다.
  • 사용자가 환경의 OS/경로 규칙을 명시적으로 구성해서는 안 됩니다.
  • URI는 아직 롤아웃, 데이터베이스 또는 다른 지속적 저장소에 저장되지 않아야 합니다.
  • 경로 변환 오류: 보안 관련 경로는 실패-폐쇄, UI/진단은 실패-개방 처리합니다.
  • 로컬 헬퍼보다 PathUri나 LegacyAppPathString에 대한 작고 집중된 메서드를 선호합니다.
  • 진단에서 PathUri 값을 URI로 표현합니다.

경로와 URI 간 변환이 실제 사용자에게 올바르게 동작하는 한 어느 정도 손실이 있어도 괜찮습니다.

URI로 마이그레이션할 때 새로운 중요한 실패 모드를 추가해서는 안 됩니다. 이전에는 무오류였던 일부 위치에 오류를 표시해야 할 필요가 있지만 최소한으로 유지해야 합니다.

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.

관련 스킬