From f89b1055a97253e928b8975ce4398d473b406d40 Mon Sep 17 00:00:00 2001 From: Adam Perry Date: Mon, 15 Jun 2026 17:03:27 +0000 Subject: [PATCH 1/2] add Codex path type skill --- .codex/skills/codex-path-types/SKILL.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .codex/skills/codex-path-types/SKILL.md diff --git a/.codex/skills/codex-path-types/SKILL.md b/.codex/skills/codex-path-types/SKILL.md new file mode 100644 index 000000000000..30a18bb82380 --- /dev/null +++ b/.codex/skills/codex-path-types/SKILL.md @@ -0,0 +1,18 @@ +--- +name: codex-path-types +description: Choose Rust path types that meet Codex's compatibility requirements. Use when defining new path-bearing Rust types or when explicitly asked to migrate existing types in app-server, exec-server, or dependencies shared by them. +--- + +# Codex Path Types + +Apply this guidance when defining new types. Change existing code only when explicitly requested, +and keep edits minimal and proportional. Treat these rules as the target state of an ongoing +migration; if compliance is difficult, ask the user how to proceed. + +- In app-server protocol types, use `ApiPathString` for backwards compatibility during the URI + migration. At the protocol boundary, convert it to `PathUri` and use `PathUri` internally. For + host-local logic, such as some config values, use `AbsolutePathBuf` or `PathBuf` instead. +- In exec-server protocol types, use `PathUri`. Internally, use `PathUri` or `AbsolutePathBuf` as + appropriate. +- In dependencies shared by both servers, use `PathUri` or separate APIs that decouple their use + cases. From eef164fc47cc62ea0a7d5283dcf3310c54d8045f Mon Sep 17 00:00:00 2001 From: Adam Perry Date: Mon, 15 Jun 2026 17:09:24 +0000 Subject: [PATCH 2/2] rename skill to path-types --- .codex/skills/{codex-path-types => path-types}/SKILL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .codex/skills/{codex-path-types => path-types}/SKILL.md (73%) diff --git a/.codex/skills/codex-path-types/SKILL.md b/.codex/skills/path-types/SKILL.md similarity index 73% rename from .codex/skills/codex-path-types/SKILL.md rename to .codex/skills/path-types/SKILL.md index 30a18bb82380..e604ce79bf1e 100644 --- a/.codex/skills/codex-path-types/SKILL.md +++ b/.codex/skills/path-types/SKILL.md @@ -1,9 +1,9 @@ --- -name: codex-path-types -description: Choose Rust path types that meet Codex's compatibility requirements. Use when defining new path-bearing Rust types or when explicitly asked to migrate existing types in app-server, exec-server, or dependencies shared by them. +name: path-types +description: Choose Rust types for operating system paths across the Codex repository. Use when defining new path-bearing types or explicitly migrating existing ones. --- -# Codex Path Types +# Path Types Apply this guidance when defining new types. Change existing code only when explicitly requested, and keep edits minimal and proportional. Treat these rules as the target state of an ongoing