Communityコーディング&開発github.com

path-types

Codexリポジトリ内でオペレーティングシステムのパスに使用するRust型を選択します。新しいパスを保持する型を定義する際や既存の型を明示的に移行する際に使用します。

path-types とは?

このスキルは、Codexリポジトリにおいて、オペレーティングシステムのパスを表現するためのRust型を適切に選択・移行するためのガイドラインを提供します。主に、URI移行中の後方互換性を保つために`LegacyAppPathString`をアプリサーバーのプロトコル型で使用し、内部では`PathUri`に変換して利用します。execサーバーでは`PathUri`を標準とし、両サーバー間の依存関係では`PathUri`やユースケースを分離するAPIを推奨します。さらに、モデルが生成するツール呼び出し引数では、通常の`String`としてデシリアライズし、機能固有のパス処理コードを使用します。移行にあたっては、既存クライアントとの互換性維持、URIの安全な変換、エラー時の適切な振る舞い(セキュリティ関連ではfail-closed、UI/診断ではfail-open)など、10以上の要件を遵守する必要があります。このスキルはCline、Codex、Cursor、Windsurf、Genkitで動作し、開発者がパス型を扱う際の一貫性と安全性を確保するのに役立ちます。

対応~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 を使用します。
  • 実行サーバーのプロトコル型では、PathUri を使用します。内部では、必要に応じて PathUri または AbsolutePathBuf を使用します。
  • 両サーバーで共有される依存関係では、PathUri またはユースケースを分離する個別のAPIを使用します。
  • モデルが生成することが期待されるツール呼び出し引数は、機能固有のパス処理コードを持つ通常の String として逆シリアル化する必要があります。

移行要件

コードを上記のガイドラインに準拠させるように移行する際は、以下の要件に留意してください。

  • 既存のアプリサーバークライアントは、レガシーなネイティブパス文字列を送受信し続ける
  • アプリサーバーは、異種プラットフォームのパスURIを保持および操作できる
  • 実行サーバー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.

関連スキル