Codex Cloud Environment Setup: Setup Script, Env Vars and a Smoke Test
Has Codex inspect your repo and write an idempotent setup script, an env var list with safe placeholders, the secrets and network access to configure, and a smoke test for cloud tasks.
You getthe setup script, an env var table (Name, Placeholder, Secret yes or no, Where it is read), the network list, the smoke test commands, and a short guide to telling a setup…
The prompt
mkdir -p .agents/skills/codex-cloud-environment-setup-setup-script-env-vars-and-a-smoke && curl -sL "https://prompts-gpt.com/prompts/codex-cloud-environment-setup-setup-script-env-vars-and-a-smoke-test/raw" -o .agents/skills/codex-cloud-environment-setup-setup-script-env-vars-and-a-smoke/SKILL.mdYou are Codex, working in this repository. Prepare what a Codex cloud environment needs to run this repo, so cloud tasks stop failing at install.
Steps:
1. Detect the runtimes and versions (from .nvmrc, .tool-versions, pyproject.toml, go.mod and similar), the package manager and lockfile, the services tests need (Postgres, Redis, queues), and the fastest test command.
2. Write scripts/codex-setup.sh: safe to run twice, pins runtime and tool versions, installs from the lockfile only, and stops with a clear message on the first error.
3. List the environment variables the app reads, with safe placeholder values for tests. Separately list the real secrets I must add in the Codex environment settings, and flag any the tests need after setup, because secrets are only available to the setup script, not the agent. Never copy values from .env files.
4. List the network access setup needs (package registries, domains) and whether tasks need internet after setup.
5. Write a smoke test: install, build, then one fast test.
Rules: do not change application code; if a service cannot run in the container, say so and suggest a mock or a skip flag instead of guessing.
Output format: the setup script, an env var table (Name, Placeholder, Secret yes or no, Where it is read), the network list, the smoke test commands, and a short guide to telling a setup failure (missing runtime, package, env var or service) from a real code failure. Check setting names against the current Codex docs.Run in the Codex CLI or desktop app in your repo, then paste the script and variables into the Codex cloud environment settings. Run the smoke test as your first cloud task.
Keep exploring
More like this
Headless Claude Code Script for CI: claude -p Task With Exit Codes and Output Checks
Writes a CI step that runs Claude Code non-interactively with claude -p, scoped tools, a turn limit and JSON output, and fails safely on errors, with a dry-run mode and secrets kept out of the repo.
Codebase Tour for a Specific Task
Explores a repo through the lens of your task and explains the architecture, key files and data flow, then says where to start.
Lean CLAUDE.md Generator from Repo Inspection
Claude Code inspects your repository and writes a CLAUDE.md under 200 lines with verified commands first, checkable conventions, anti-patterns and the reasons behind key decisions.
Explain a Codebase Folder to a New Developer on Their First Day
Produces an onboarding guide for one folder of a codebase: what it does, how data moves through it, the files to read first and the traps a new developer should avoid.
Build a 60-Day New Manager Onboarding Checklist for First-Time Managers
Get a week-by-week 60-day checklist for a new manager, sorted into people, process and admin tasks, each with an owner and a verifiable done-check.
Turn a Task Description Into a Step-by-Step SOP a New Hire Can Follow
You get a complete standard operating procedure with verb-first numbered steps, decision points, a quality checklist and a common-mistakes table.
- Build a 30-60-90 Day Onboarding Plan with Weekly Goals and Owners
- Create a Volunteer Onboarding Guide and First-Shift Checklist
- Write a Welcome DM and First-Week Onboarding Plan for Your Discord or Community
- Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
- Build an Interactive 30-60-90 Day Onboarding Roadmap Infographic in HTML
- Draft a Clear Remote and Hybrid Work Policy from Your Company's Rules