搜索

PythonReactSEOPDF
GitHub Skill

open-changed-files-review

Open files edited by Codex in VSCode after making changes, using the bundled open-changed-files script (silent no-op when unavailable).

graysurf☆ 2 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Open Changed Files Review

Contract

Prereqs:

  • zsh available on PATH.
  • Optional: VSCode CLI code (missing → script no-ops).
  • $CODEX_HOME/skills/tools/devex/open-changed-files-review/scripts/open-changed-files.zsh available.

Inputs:

  • File paths touched in the current run (preferred).
  • Optional: CODEX_OPEN_CHANGED_FILES_MAX_FILES to cap opened files.

Outputs:

  • Opens the requested files in VSCode (best-effort).
  • If VSCode/tool unavailable: silent no-op (still provides a paste-ready command in chat when used manually).

Exit codes:

  • 0: success or no-op
  • non-zero: invalid usage or unexpected runtime failure

Failure modes:

  • VSCode CLI code not installed or not on PATH.
  • Input paths do not exist (script filters to existing files).

Use this skill when Codex has edited files and you want to immediately open the touched files in Visual Studio Code for human review.

Inputs

  • A list of file paths that were modified/added in this Codex run (preferred; does not require git).

Workflow

  1. Build a de-duplicated list of existing files from the touched paths.
  2. Determine the cap:
    • Default: CODEX_OPEN_CHANGED_FILES_MAX_FILES=50
    • If there are more files than the cap: open the first N and mention that it was truncated.
  3. Prefer running:
    • $CODEX_HOME/skills/tools/devex/open-changed-files-review/scripts/open-changed-files.zsh --max-files "$max" --workspace-mode pwd -- <files...>
  4. If VSCode CLI code (or the tool) is unavailable: silent no-op (exit 0, no errors), but still print a paste-ready manual command plus the file list for the user.

Paste-ready command template

$CODEX_HOME/skills/tools/devex/open-changed-files-review/scripts/open-changed-files.zsh --max-files "${CODEX_OPEN_CHANGED_FILES_MAX_FILES:-50}" --workspace-mode pwd -- <files...>

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-02
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!