fix(ci): flag CLAUDE_PROJECT_DIR in skill fences with Codex rewrite guidance

This commit is contained in:
Matt Van Horn committed 2026-09-25 06:44:12 -07:00
1 parent 9c45149bae
commit da5757b6ff
5 files changed
+98 -7

No files matched your search

+7 -2
View File
@@ -26,7 +26,9 @@ sees `.agents/skills/`. This script is the cross-tree gate:
1. Claude-only substitutions in executable `bash` / `sh` / `zsh` fences
(`$CLAUDE_SESSION_ID`, `$CLAUDE_SKILL_DIR`, `$CLAUDE_PLUGIN_ROOT`,
`$ARGUMENTS`) fail. Codex leaves those tokens as literal text.
`$CLAUDE_PROJECT_DIR`, `$ARGUMENTS`) fail. Codex leaves those tokens
as literal text. In a Codex copy, rewrite `$CLAUDE_PROJECT_DIR` to
`$(pwd)` or an explicit path.
2. A Codex copy may only use `name`, `description`, `metadata`, `license`,
and `allowed-tools`. `origin: ECC` may stay on the canonical `skills/`
copy and must be stripped on the Codex copy.
@@ -75,6 +77,7 @@ forbidden pattern:
echo "$CLAUDE_SESSION_ID"
ls "$CLAUDE_SKILL_DIR"
node "$CLAUDE_PLUGIN_ROOT/scripts/setup.js" $ARGUMENTS
cd "$CLAUDE_PROJECT_DIR"
```
Do not add `version:` or `origin:` to a Codex copy under `.agents/skills/`.
@@ -86,7 +89,9 @@ every `skills/` entry to have a Cursor copy.
- Keep canonical `origin: ECC` if the CONTRIBUTING template calls for it.
- Drop `origin`, `version`, and `argument-hint` on the Codex copy.
- Show host-portable commands in bash fences (`npx`, `ecc`, or a resolved
root). Mention Claude env vars in prose, not in executable fences.
root). Rewrite `$CLAUDE_PROJECT_DIR` in Codex copies to `$(pwd)` or an
explicit path. Mention other Claude env vars in prose, not in executable
fences.
- Run this script before `npm test` when the change is a new skill.
- Use `--inventory` to see checklist warning volume without failing the tree.