[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-82898":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":28,"discoverSource":29},82898,"codex-windows-fast-patch-skill","chen0416ccc-cpu\u002Fcodex-windows-fast-patch-skill","chen0416ccc-cpu","此skills用于指导智能体在 Windows 上恢复 Codex Desktop 升级后失效的本地补丁和能力开关。（Computer Use，插件，fast mode等问题）支持每次使用前自动将skills更新到最新版。\u002FThese skills are designed to guide the agent in restoring local patches and feature toggles that have been disabled or invalidated following a Codex Desktop upgrade on Windows. Supports auto-updating translations.","",null,"PowerShell",492,52,2,1,0,30,270,378,190,92.15,false,"main",[],"2026-06-12 04:01:39","# Codex Windows Fast Patch Skill\n\n语言：中文 | [English](README.en.md)\n\n这是 `codex-windows-fast-patch` skill 的公开版本，用于指导智能体在 Windows 上恢复 Codex Desktop 升级后失效的本地补丁和能力开关。\n\n## 主要功能\n\n- 在 Codex Desktop 升级后重新应用 Windows MSIX 补丁。\n- 修复 Fast Mode 无法使用，并在修复后验证请求是否真的带上 `service_tier=priority`。\n- 注册和修复本地插件市场配置。\n- 修复本地插件市场清单目录结构。\n- 刷新 Windows Computer Use 兼容文件。\n- 解除 Computer Control 页面里 `Any App` \u002F `任意应用` 被组织或地区门控禁用的问题。\n- 修复 Codex 移动版 \u002F 连接页远程控制设置在未授权时跳转、报错或卡住退不出的问题。\n- 在覆盖 `config.toml` 前自动生成一次时间戳备份，降低配置误写风险。\n- 每次正式使用前自动尝试从 GitHub 同步最新版，让本地 skill 尽量保持具备处理新问题的最新工作流；网络不可用时不会强制中断。\n\n## 平台支持\n\n当前只支持 Windows。\n\n这个 skill 依赖 Windows Store \u002F MSIX 包结构、PowerShell、`Get-AppxPackage`、`makeappx.exe`、`signtool.exe`、Windows 用户环境变量，以及 Windows Computer Use helper 路径。\n\n不要在 macOS 上直接运行。macOS 需要单独的实现流程，例如处理 Codex `.app` 包、ASAR 解包和重打包、`codesign` 或 quarantine、shell 脚本，以及 macOS 自己的 Computer Use 可用性门控。\n\n## 文件说明\n\n- `SKILL.md`：Agent skill 主说明。\n- `agents\u002Fopenai.yaml`：agent 配置。\n- `scripts\u002Frepatch-codex-windows.ps1`：工作流参考脚本。\n- `scripts\u002Fpatch_codex_fast_mode_windows_msix.ps1`：MSIX \u002F ASAR 补丁参考实现。\n- `scripts\u002Finstall-computer-use-local.ps1`：Windows Computer Use 本地兼容文件安装和校验参考实现。\n- `scripts\u002Fmanage-codex-backups.ps1`：本机 Codex 配置、MCP、skills 和 marketplaces 的备份管理脚本。\n- `scripts\u002Fupdate-skill-from-github.ps1`：使用前尽力同步 GitHub 最新版的自更新脚本。\n- `references\u002Frestriction-debug-cases.md`：限制解除、Computer Use、移动入口和 CPA Fast Mode 的按需诊断案例。\n\n## 安装\n\n先克隆仓库，然后在仓库根目录打开 PowerShell，只复制 skill 需要的文件：\n\n```powershell\n$source = (Get-Location).ProviderPath\nif (-not (Test-Path -LiteralPath (Join-Path $source 'SKILL.md'))) {\n  throw '请在 codex-windows-fast-patch-skill 仓库根目录运行此命令。'\n}\n\n$dest = Join-Path $env:USERPROFILE '.codex\\skills\\codex-windows-fast-patch'\nNew-Item -ItemType Directory -Force -Path $dest | Out-Null\n\nCopy-Item -Force -LiteralPath (Join-Path $source 'SKILL.md') -Destination $dest\nCopy-Item -Recurse -Force -LiteralPath (Join-Path $source 'agents') -Destination $dest\nCopy-Item -Recurse -Force -LiteralPath (Join-Path $source 'scripts') -Destination $dest\nCopy-Item -Recurse -Force -LiteralPath (Join-Path $source 'references') -Destination $dest\n```\n\n安装到 Codex 后，重启 Codex，让它重新加载 skill 元数据。\n\n## 使用\n\n安装后，让支持 Agent Skills 的智能体使用 `codex-windows-fast-patch` 工作流处理当前机器上的 Codex Desktop 问题。\n\n这个 skill 支持自更新：智能体每次正式使用前都会先尝试从 GitHub 检查并同步最新版，不需要你反复回到 GitHub 手动拉取更新。这样本地 skill 可以尽量跟上最新出现的问题和对应工作流；如果网络不可用、GitHub 访问失败或下载失败，更新步骤会被跳过，智能体应继续使用当前本地版本处理问题。\n\n这些脚本是参考实现和操作模板，不是跨所有机器都能直接运行的一键方案。实际处理时应先读取 `SKILL.md`，检查当前机器的 Codex 安装方式、MSIX 包路径、ASAR 内容、签名工具、插件目录和 Computer Use 文件状态，再决定执行、改写或只借鉴其中的步骤。\n\n一个典型请求是：`使用 codex-windows-fast-patch 这个 skill，检查并修复这台 Windows 机器上的 Codex Desktop Fast Mode、插件市场和 Computer Use 可用性问题。`\n\n## 备份管理\n\n修复脚本在写入 `config.toml` 前会自动把旧文件备份到 `.codex\\backups\\config\\`。如果要手动备份或迁移本机 Codex 的关键状态，可以使用独立备份脚本：\n\n```powershell\npowershell -NoProfile -ExecutionPolicy Bypass -File \"$env:USERPROFILE\\.codex\\skills\\codex-windows-fast-patch\\scripts\\manage-codex-backups.ps1\" -Action Backup\n```\n\n列出现有备份：\n\n```powershell\npowershell -NoProfile -ExecutionPolicy Bypass -File \"$env:USERPROFILE\\.codex\\skills\\codex-windows-fast-patch\\scripts\\manage-codex-backups.ps1\" -Action List\n```\n\n从某个备份恢复：\n\n```powershell\npowershell -NoProfile -ExecutionPolicy Bypass -File \"$env:USERPROFILE\\.codex\\skills\\codex-windows-fast-patch\\scripts\\manage-codex-backups.ps1\" -Action Restore -BackupPath \"\u003Cbackup path>\"\n```\n\n默认备份自定义 skills、marketplaces、`config.toml`、解析出的 `mcp_servers.json` 和 `chrome-native-hosts.json`，并排除 `.git`、`node_modules`、构建产物和虚拟环境等容易变大的目录。需要完整离线依赖副本时再加 `-IncludeDependencyDirs`；插件缓存和 `.tmp\\bundled-marketplaces` 也可能较大，需要时再加 `-IncludePluginCache` 或 `-IncludeTmpBundledMarketplaces`。\n\n## CPA 上游配置\n\n如果 Codex 请求的上游是 CPA，仅在本地把请求改成 `service_tier=priority` 还不够。还需要在 CPA 的覆盖规则中，对承接 Codex 的模型强制覆盖参数：`service_tier`、类型为字符串、值为 `priority`，这样上游才会真正按 Fast \u002F Priority 路径处理。\n\n图中的模型名只是示例，实际应按 CPA 中当前承接 Codex 的模型填写。\n\n![CPA 覆盖规则示例](assets\u002Fcpa-override-rule.svg)\n\n## 致谢\n\n感谢 [LinuxDo community](https:\u002F\u002Flinux.do\u002F) 中相关讨论和反馈对这个工作流的启发。\n","该项目旨在指导智能体在Windows系统上恢复Codex Desktop升级后失效的本地补丁和功能开关。核心功能包括重新应用MSIX补丁、修复Fast Mode问题、注册与修复插件市场配置等，并支持自动更新至最新版本，确保能够处理新出现的问题。项目使用PowerShell编写，适用于需要维护或恢复Codex Desktop相关功能的场景，如解决Fast Mode无法使用、插件市场目录结构损坏等问题。通过自动生成时间戳备份减少配置误写风险，同时提供详细的脚本说明和操作指南，便于用户根据具体环境进行调整和执行。","2026-06-11 04:09:33","CREATED_QUERY"]