Repository navigation
feat(codex): install native CRG skill with safe CLI fallback - #1066
Ethereal49 wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved safety issues remain in manifest handling, fallback read-only behavior, repository validation, Windows executable parsing, and conflicting skill-directory installation.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds a Codex-native global skill with CODEX_HOME support, MCP-first behavior, and a CLI fallback.
Changes:
- Adds Codex skill assets, metadata, and wrapper routing.
- Integrates installation, ownership tracking, and cleanup.
- Adds lifecycle tests and Codex/Windows/WSL documentation.
| File | Summary |
|---|---|
tests/test_uninstall.py |
Tests Codex cleanup behavior. |
tests/test_skills.py |
Tests installation safety and idempotence. |
tests/test_platform_lifecycle.py |
Tests Codex lifecycle artifacts. |
tests/test_documentation.py |
Validates documentation coverage. |
tests/test_codex_skill_wrapper.py |
Tests fallback routing and mutation rejection. |
tests/test_cli_install.py |
Tests CLI installation integration. |
tests/conftest.py |
Isolates CODEX_HOME in tests. |
README.md |
Documents Codex skill usage. |
docs/USAGE.md |
Documents runtime and path behavior. |
docs/COMMANDS.md |
Updates command documentation. |
code_review_graph/uninstall.py |
Cleans Codex configuration and owned files. |
code_review_graph/skills.py |
Integrates Codex home and skill handling. |
code_review_graph/codex_skill.py |
Installs and manages skill assets and manifests. |
code_review_graph/cli.py |
Routes Codex skill installation. |
code_review_graph/assets/code-review-graph/SKILL.md |
Defines Codex workflow and safety rules. |
code_review_graph/assets/code-review-graph/scripts/crg_readonly.py |
Provides CLI fallback routing. |
code_review_graph/assets/code-review-graph/agents/openai.yaml |
Provides Codex UI metadata. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Hi @tirth8205, Codex is helping Ethereal49 follow up on this PR. Could you confirm whether the Codex-native skill change is still in scope for #841, or whether you would like any changes before reviewing #1066? Ethereal49 is happy to adjust it. |
|
Thank you for this PR. I tested install, uninstall, the wrapper and the read-only commands. Before I can merge it, please fix these:
After you push the fix, I will test it again. |


Linked issue
Closes #841. Related implementation: #846 by CissiBot.
What & why
Install a Codex-native global skill under the active
CODEX_HOME, with UI metadata, MCP-first guidance, and a bounded CLI fallback for graph queries. Installation, reinstall and uninstall preserve user content, reject unsafe manifest paths, and honorCODEX_HOMEfor the skill, MCP config and hooks. The docs cover refreshing Codex and separate Windows/WSL runtimes.The fallback validates repository paths and executable arguments and does not create a graph when none exists. Graph commands retain the established one-time migration of
repo/.code-review-graph.dbwhen the default data directory is in use; an external environment or registry data directory does not consume that legacy graph.The Codex skill installer excludes
__pycache__directories and.pyc/.pyofiles that pip generates after installing the wheel, so caches are neither copied nor recorded in the ownership manifest. Tests cover all four reported legacy query commands, missing graphs, external data directories, and installation from an actual pip-installed wheel.Validation
Local validation on macOS with Python 3.13.12: