the9ball/.dotfiles/wsl-codex-exec
Claude Code and agent skill by the9ball/.dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Run the Aqua management Codex on the WSL side once non-interactively from the Windows version of Codex. It is used only when the user explicitly asks to run Codex on the WSL side, for example, `WSL側のCodexで実行して`; it is not started implicitly.
Install
npx vskill@latest install the9ball/.dotfiles/wsl-codex-execSKILL.md
The same SKILL.md was published earlier as the9ball/.dotfiles/wsl-codex-exec.
One-time execution of WSL side Codex
This skill passes a single request from the Windows version of Codex to the regular Codex CLI on the WSL side. It is triggered only if the user specifies $wsl-codex-exec or explicitly asks to run Codex on the WSL side, for example, WSL側のCodexで実行して. It is not implicitly activated from normal requests, verification, reviews, or script execution.
Target
- Run Aqua management
codex execin WSL once. - Return stdout, stderr, and exit code as is to the caller.
- Use the dedicated
CODEX_HOMEand the Aqua-managed CLI on the WSL side.
The following are not covered by this skill.
- Launching the interactive TUI. A person runs it directly in the WSL terminal.
- Launching
codex remote-control(use the existingcodex-wsl/start-codex-wsl.shfor that). login,logout,update, installation, plugin changes, settings changes.- Starting additional Codex processes without the user's explicit consent.
Prerequisite documents
The following documents are authoritative for the WSL regular CLI, the dedicated CODEX_HOME, the Aqua settings, and the distribution assumptions.
- repository-root relative
codex-wsl/SETUP.md - repository-root relative
codex-wsl/CODEX_HOME.md
The Skill wrapper does not parse Markdown at runtime; it validates and uses the values defined in these documents. When changing CODEX_HOME, the Aqua deployment, the repository location, or the target distribution, update the wrapper and the prerequisite documents at the same time.
Fixed execution environment
A wrapper within WSL sets the following values:
AQUA_GLOBAL_CONFIG=$HOME/.dotfiles/aqua.yamlPATH=$HOME/.local/share/aquaproj-aqua/bin:$PATHCODEX_HOME=$HOME/.codex-wsl- Executable file
$HOME/.local/share/aquaproj-aqua/bin/codex - Working directory
$HOME/.dotfiles
Do not pass the Windows-side HOME, CODEX_HOME, or authentication files as arguments. Specify the WSL distribution Ubuntu-20.04 explicitly, to match the current setup. If the name does not exist, stop without automatically selecting another distribution.
Execution steps
- Fix the user's explicit request as a single non-interactive task.
- Don't embed the user body in Bash's
-cand use the following fixed bridge:
~powershell $fixedBashCommand = 'exec "$HOME/.dotfiles/link-targets/agents/skills/wsl-codex-exec/scripts/run-codex-exec.sh" "$@"' & wsl.exe --distribution 'Ubuntu-20.04' --exec /bin/bash --noprofile --norc -c $fixedBashCommand wsl-codex-exec [codex-exec-options] - ~
- The request body is passed from standard input, and
-is used to specify the prompt forcodex exec.
Pass only user-specified options as separate arguments to [codex-exec-options]. The exec subcommand itself is not written here, because the wrapper adds codex exec.
example:
~powershell $prompt = @' In the Codex on the WSL side, inspect the current working tree read-only and report only the results. '@ $prompt | & wsl.exe --distribution 'Ubuntu-20.04' --exec /bin/bash --noprofile --norc -c $fixedBashCommand wsl-codex-exec --sandbox read-only - ~
Arguments are always treated as "$@" on the Bash side. Do not use $*, eval, string concatenated commands, or bash -c / bash -lc with user body.
Safety and failure handling
Wrapper behavior:
- The wrapper exits with a non-zero status if the Aqua configuration, the dedicated
CODEX_HOME, the working directory, or the Aqua-managed Codex executable does not exist. - The wrapper itself does not install, log in, create directories, background the invocation, or retry it. It invokes Codex once with the supplied arguments using
exec, without processing Codex's stdout, stderr, or exit status.
Caller requirements:
- Pass only user-specified options. Do not automatically add privilege-relaxation options such as
--dangerously-bypass-approvals-and-sandbox,--dangerously-bypass-hook-trust, or--approve-for-me. - Run WSL startup, Codex execution, and exit-code collection as one synchronous operation. Do not background or detach the invocation, leave processes running, or automatically rerun a failed request. Return stdout, stderr, and exit code unchanged.
- Do not save credentials, tokens, or
CODEX_HOMEcontents in the repository.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglink-targets/agents/skills/wsl-codex-exec/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/the9ball/.dotfiles/wsl-codex-exec)