Codex Plugin Repair Windows Skill logo

Codex Plugin Repair Windows Skill

Community
chrichuang218
codex-plugin-repair-windows-skill

Repair Windows Codex Desktop bundled plugin state after app updates, especially Chrome, Computer Use, openai-bundled marketplace, native host, chrome/latest, and user-profile plugin cache issues. Use when Windows 版 Codex 更新后 Chrome 插件或 Computer Use 插件消失、不可用、未 installed/enabled、native host 异常、openai-bundled 缺失、latest 链接损坏,或 Computer Use runtime 无法启动。User-profile repair only; do not MSIX repatch.

Overview

Publisherchrichuang218
Repositorycodex-plugin-repair-windows-skill
Skill namecodex-plugin-repair-windows-skill
Stars
30
Forks
2
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by chrichuang218 on GitHub. Read the source before you install it.

Installation

Install the Codex Plugin Repair Windows Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/chrichuang218/codex-plugin-repair-windows-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/chrichuang218/codex-plugin-repair-windows-skill.git \
  .claude/skills/codex-plugin-repair-windows-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Plugin Repair Windows Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Plugin Repair Windows Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Plugin Repair Windows Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Windows Codex 插件修复

适用范围

用于修复 Windows 版 Codex Desktop 更新后,用户目录里的 bundled 插件状态异常。重点处理 ~/.codex 插件缓存、openai-bundled marketplace 指向、Chrome native messaging 注册、chrome-native-hosts.json,config.toml 里的插件启用状态,以及便携版 Codex 的 cua_node 运行时依赖解析问题。

不要调用 MSIX repatch 脚本,不要编辑 C:\Program Files\WindowsApps。除非运行时验证明确出现 OS error 740 或 spawn setup refresh 失败,否则不要修改 [windows] sandbox。

工作流

  1. 在 PowerShell 中运行内置脚本:
powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-plugin-repair-windows-skill\scripts\repair-openai-bundled-plugins.ps1"
  1. 阅读脚本末尾的 JSON summary。
  2. 如果 marketplaceMirrorManifest 为 false,但 marketplaceManifest 为 true 且 toml.openaiBundledMarketplace.source 指向当前 Desktop resources\plugins\openai-bundled,这是可接受状态。便携版 Codex 下不要强行依赖 .codex\.tmp\bundled-marketplaces\openai-bundled,该目录可能被 Desktop 同步逻辑覆盖成残缺镜像。
  3. 如果 computerUseHelper 为 false,先确认当前版本是否已经改为 scripts\computer-use-client.mjs + @oai\sky 运行时。新版 Computer Use 不一定在插件目录内包含 helper_transport.js。
  4. 如果 computerUseRuntimeExe 或 cuaNodeSetupOk 为 false,优先修复 cua_node\bin\node_modules 中 %40... / %24... 编码路径导致的 Node 模块解析问题。
  5. 如果 sandbox 启动失败并出现 OS error 740,再备份 config.toml 后考虑设置 [windows] sandbox = "unelevated"。不要预先盲改。

脚本会修复什么

  • 备份 config.toml、.codex-global-state.json、chrome-native-hosts.json 和已有本地 marketplace 状态。
  • 自动发现当前 Desktop resources 路径,支持 AppX 安装和 D:\...\versions\current\resources 这类便携版/自定义安装。
  • 将当前 Desktop 包内置的 openai-bundled marketplace 增量同步到 ~/.codex\.tmp\bundled-marketplaces\openai-bundled 作为备份镜像。
  • 确保 [marketplaces.openai-bundled] 指向当前 Desktop 的稳定 bundled 源目录 resources\plugins\openai-bundled,避免便携版环境中 .tmp 镜像被覆盖成残缺目录后导致 Browser / Chrome / Computer Use 插件不可发现。
  • 将 chrome@openai-bundled 安装或刷新到 ~/.codex\plugins\cache\openai-bundled\chrome\<version>,并更新 chrome\latest。
  • 如果当前 bundled marketplace 里有 computer-use,同步到 ~/.codex\plugins\cache\openai-bundled\computer-use\<version>,并更新 computer-use\latest。
  • 修复 cua_node\bin\node_modules 中 URL 编码目录或文件名导致的 Node 解析失败:
    • %40oai、%40statsig、%40npmcli 等目录补充为对应 @... junction。
    • %24... 文件补充为对应 $... hardlink。
  • 运行当前 Desktop 自带的 cua_node\bin\setup.ps1,验证 @oai/sky、codex-computer-use.exe、helper_transport.js、npm 和 node_repl.exe。
  • 修复 config.toml 中失效的 notify = [...codex-computer-use.exe, "turn-ended"] 路径,指向当前 cua_node runtime。
  • 运行 Chrome 插件自带的 installManifest.mjs,写入 native host manifest 和 HKCU Chrome 注册表项。
  • 用当前有效路径更新 ~/.codex\chrome-native-hosts.json。
  • 启用 [plugins."chrome@openai-bundled"],并在可用时启用 [plugins."computer-use@openai-bundled"],同时保留原有配置。
  • 验证 Chrome native host manifest、Chrome Extension 安装状态、Computer Use helper 路径和 TOML 语法。

验证预期

成功修复后,summary 中通常应看到:

  • marketplaceManifest = true
  • chromeLatest = true
  • chromeBrowserClient = true
  • nativeHostManifestOk = true
  • chromeExtensionInstalled = true
  • chromeEnabledInConfig = true
  • browserEnabledInConfig = true
  • computerUseEnabledInConfig = true when Computer Use is installed
  • computerUseClient = true
  • computerUseRuntimeExe = true
  • cuaNodeSetupOk = true,非 DiagnoseOnly 模式下应为 true
  • toml.openaiBundledMarketplace.source 指向当前 Desktop resources\plugins\openai-bundled

修复后提醒用户重启 Codex Desktop 和 Chrome,让两个应用重新加载 native host 和插件状态。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codex Plugin Repair Windows Skill AI skill do?

Repair Windows Codex Desktop bundled plugin state after app updates, especially Chrome, Computer Use, openai-bundled marketplace, native host, chrome/latest, and user-profile plugin cache issues. Use when Windows 版 Codex 更新后 Chrome 插件或 Computer Use 插件消失、不可用、未 installed/enabled、native host 异常、openai-bundled 缺失、latest 链接损坏,或 Computer Use runtime 无法启动。User-profile repair only; do not MSIX repatch.

Why use Codex Plugin Repair Windows Skill on TypingMind?

Because you install it once and use it with any model. Codex Plugin Repair Windows Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Plugin Repair Windows Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/chrichuang218/codex-plugin-repair-windows-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codex Plugin Repair Windows Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Plugin Repair Windows Skill?

As many as you like. As long as a model supports skills, you can use Codex Plugin Repair Windows Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Plugin Repair Windows Skill AI skill free?

Yes. It is published on GitHub by chrichuang218 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇