codex-environments — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited codex-environments (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Bundled commands use $PLUGIN_ROOT ($env:PLUGIN_ROOT in PowerShell; same path suffix) for the plugin root. Set it once: the host's plugin-root variable when defined (Claude Code: PLUGIN_ROOT="$CLAUDE_PLUGIN_ROOT"), otherwise this plugin's absolute root path.
Manages repo-local Codex app environments: usually .codex/environments/environment.toml plus optional project scripts called by actions.
For long-running action patterns, port cleanup, detailed editing rules, verification depth, and common failure modes, read $PLUGIN_ROOT/references/environment-actions.md.
Create or edit a Codex environment when the user wants a repeatable Codex app action — Run, Test, Preview, Open Simulator, Start Dev Server, Launch Browser — or a stable local workflow behind a Codex Run button.
Prefer a repo-local environment when:
Do not create an environment for a one-off command, destructive operation, secret setup, or workflow that still needs product decisions. Give the command directly unless repeatability is the point.
If the environment file already exists, update it instead of creating a parallel file. Preserve unrelated actions and setup script content.
Use this structure:
version = 1
name = "project-name"
[setup]
script = ""
[[actions]]
name = "Run"
icon = "run"
command = '''
cd /absolute/project/root
./scripts/run-local.sh
'''Existing files may contain optional action fields such as platform = "darwin"; preserve them when still correct.
Use absolute project paths inside actions unless the action is guaranteed to be launched from the repo root. Do not commit personal paths into shared templates or plugin source.
Keep environment.toml small. If an action needs more than a few lines, create a repo-local script such as scripts/run-dev.sh and call it from the action.
Use scripts for:
In scripts:
#!/usr/bin/env bash and set -euo pipefail;PORT="${APP_PORT:-3000}";/tmp/project-name.log;Avoid putting secrets, tokens, cookies, auth headers, API keys, passwords, or signing material into environment.toml. Reference ignored local files or existing env vars instead.
Before editing:
If a file says THIS IS AUTOGENERATED, still follow the user's direct request, but keep the patch minimal and be ready for future regeneration. Prefer changing the script called by the action when possible.
Use apply_patch for manual edits. Preserve unrelated user changes. Add scripts under the project, usually scripts/, and keep environment.toml as the small launcher surface.
After edits, validate at the right depth:
bash -n scripts/name.sh.chmod +x scripts/name.sh for direct scripts.For long-running scripts, use a bounded smoke run from Codex, verify readiness in another check, then terminate the process you started. Use the reference for foreground log streaming and port cleanup patterns.
Report exact commands that passed and any commands not run.
suspended (tty output): background process wrote to TTY.event not found in zsh: pasted command contains !.127.0.0.1: server exited after launch.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.