Skip to content

Commit 7c785b8

Browse files
committed
fix(ci): support .codex-plugin manifests in version check, add Codex install/migrate prompts
1 parent 67a743f commit 7c785b8

2 files changed

Lines changed: 36 additions & 5 deletions

File tree

.github/workflows/plugin-version-check.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ jobs:
9595
echo ""
9696
echo "=== Checking $plugin_name ==="
9797
98+
# Check both Claude (.claude-plugin) and Codex (.codex-plugin) manifest paths
9899
PLUGIN_JSON="plugins/${plugin_name}/.claude-plugin/plugin.json"
100+
if [ ! -f "$PLUGIN_JSON" ]; then
101+
PLUGIN_JSON="plugins/${plugin_name}/.codex-plugin/plugin.json"
102+
fi
99103
100104
if [ ! -f "$PLUGIN_JSON" ]; then
101105
echo "❌ ERROR: No plugin.json found for $plugin_name!"
102-
echo "Plugin changes detected but plugin.json is missing at: $PLUGIN_JSON"
106+
echo "Checked: plugins/${plugin_name}/.claude-plugin/plugin.json and plugins/${plugin_name}/.codex-plugin/plugin.json"
103107
ALL_PASSED=false
104108
continue
105109
fi
@@ -115,10 +119,16 @@ jobs:
115119
echo "plugin.json: ${BASE_PLUGIN_VERSION:-new} → $PR_PLUGIN_VERSION"
116120
echo "marketplace.json: ${BASE_MARKETPLACE_VERSION:-new} → $PR_MARKETPLACE_VERSION"
117121
118-
# Check if plugin exists in marketplace
122+
# Check if plugin exists in Claude marketplace
123+
# Codex plugins use .agents/plugins/marketplace.json (no version field) and are exempt
119124
if [ "$PR_MARKETPLACE_VERSION" == "null" ] || [ -z "$PR_MARKETPLACE_VERSION" ]; then
120-
echo "❌ ERROR: Plugin $plugin_name not found in marketplace.json!"
121-
echo "Please add an entry for $plugin_name in $MARKETPLACE_JSON"
125+
echo "ℹ️ Plugin $plugin_name not in Claude marketplace ($MARKETPLACE_JSON)"
126+
echo " Checking if it has its own manifest..."
127+
if [ -f "$PLUGIN_JSON" ]; then
128+
echo "✅ $plugin_name has manifest at $PLUGIN_JSON (version: $PR_PLUGIN_VERSION)"
129+
continue
130+
fi
131+
echo "❌ ERROR: Plugin $plugin_name not found in any marketplace!"
122132
ALL_PASSED=false
123133
continue
124134
fi

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,28 @@ rm -rf /tmp/smart-ralph
9898
codex_hooks = true
9999
```
100100

101-
See [`plugins/ralph-specum-codex/README.md`](plugins/ralph-specum-codex/README.md) for agent configs and migration from older installs.
101+
**Or just ask Codex to do it for you:**
102+
103+
Install prompt:
104+
```text
105+
Install the Smart Ralph Codex plugin from repo tzachbon/smart-ralph.
106+
The plugin is at plugins/ralph-specum-codex. Copy it to my personal
107+
plugins directory at ~/.codex/plugins/ralph-specum-codex, create a
108+
personal marketplace entry at ~/.agents/plugins/marketplace.json,
109+
and restart Codex.
110+
```
111+
112+
Migrate prompt (if upgrading from the old `platforms/codex/` skills):
113+
```text
114+
Migrate from the old Smart Ralph Codex skills to the new plugin.
115+
Remove all ralph-specum* skills from ~/.codex/skills/ and
116+
$CODEX_HOME/skills/. Then install the Smart Ralph plugin from
117+
repo tzachbon/smart-ralph at plugins/ralph-specum-codex into
118+
my personal plugins directory. Create the marketplace entry
119+
and restart Codex.
120+
```
121+
122+
See [`plugins/ralph-specum-codex/README.md`](plugins/ralph-specum-codex/README.md) for agent configs and full details.
102123

103124
<details>
104125
<summary>Migrating from old skills (platforms/codex/)?</summary>

0 commit comments

Comments
 (0)