This skill is the entry point for bootstrapping a fresh project with
the codex-workflow scaffolding. It applies the baseline migration
(migrations/0000-baseline.md) and any additional migrations that
have shipped between scaffolder versions, leaving the project at the
current scaffolder version.
When to invoke
User asks to set up the workflow on a project that does not yet have
a .codex/workflow-version.txt file. The trigger skill's
agentic-apps-workflow does NOT auto-route to setup — setup is an
explicit, user-driven act because it modifies project-side files
(AGENTS.md, .planning/config.json, .codex/) that the user expects to
review.
What this skill does
Stage A — Pre-flight
Verify Codex CLI.codex --version must succeed.
Verify scaffolder install. Confirm
${CODEX_HOME:-$HOME/.codex}/skills/agentic-apps-workflow/SKILL.md
exists. If not, instruct the user to clone codex-workflow and run
bash install.sh from its root before retrying.
Verify project state.
Project must be a git repo (test -d .git).
Project must NOT already have .codex/workflow-version.txt. If
it does, route the user to $update-codex-agenticapps-workflow
and stop.
Check optional gates. Run the optional_for detection
commands from 0000-baseline.md and record the user's choice for
each (e.g. Option A vs Option B install).
Stage B — Gather placeholder values
Ask the user the questions in 0000-baseline.md Step 1's
placeholder table:
Project name
Repo URL (autofilled from git remote get-url origin if
available; otherwise prompt)
LLM provider (anthropic / openai / google / other / none)
For optional values, accept defaults if the user says "default" or
skips:
design-critique quality bar (default 90)
impeccable-audit quality bar (default 90)
QA viewports (default 1280, 390)
DB blocking severity (default Critical, High)
Stage C — Apply the baseline migration
Walk migrations/0000-baseline.md step by step. For each
step:
Run the idempotency check. If it returns 0, log "skipped
(already applied)" and continue.
Run the pre-condition. If it fails, error out with the
pre-condition's specific message.
Show the user the apply block. In default-on-confirm
interactive mode, dry-run the whole chain first; in
--no-confirm mode, apply each step automatically.
Apply the patch. For Step 1 (workflow-config.md), substitute
placeholders with the values from Stage B.
On failure: prompt the user with retry / skip-with-warning /
rollback options per the atomicity contract in
migrations/README.md.
Skip Step 6 (global AGENTS.md additions) if the user picked
Option B (per-project install) in Stage A's optional gate
detection.
Stage D — Post-checks and commit
Run all post-checks from 0000-baseline.md:
.codex/workflow-config.md exists and has no unsubstituted
{{...}} placeholders
.planning/config.json is valid JSON with the expected hook
keys
AGENTS.md contains the BEGIN: agentic-apps-workflow marker
docs/decisions/README.md exists
.codex/workflow-version.txt reads 0.1.0
Atomic commit. All baseline-migration changes go in a single
commit:
Next step: run $gsd-discuss-phase 1 to start a planning
session for the first phase
Future scaffolder updates: run
$update-codex-agenticapps-workflow periodically; the skill
reads .codex/workflow-version.txt and applies pending
migrations
Required evidence (per spec/06)
.codex/workflow-version.txt exists with content 0.1.0
.planning/config.json is valid JSON with all hooks keys from
the template
The atomic commit is on the project's current branch with the
expected files staged
Failure modes
Re-running on an installed project. The pre-flight check
catches this; never auto-overwrite. Route to
$update-codex-agenticapps-workflow.
Scaffolder not installed. Surface the install path; do not
silently skip steps that depend on the scaffolder.
Half-applied migration. Per the atomicity contract, prompt
user (retry / skip / rollback). Do not auto-rollback without
consent — the user may prefer partial-state recovery.
Forgetting Step 6 distinction. Option A (global) and Option B
(per-project) are mutually exclusive for this step. Skip Step 6
cleanly when the user picked Option B.
Notes for the Codex host
The default $CODEX_HOME is ~/.codex. Migrations use the
${CODEX_HOME:-$HOME/.codex} form so users with a non-default
$CODEX_HOME get the same behavior.
The templates/ directory referenced from migrations lives at
${CODEX_HOME:-$HOME/.codex}/skills/setup-codex-agenticapps-workflow/templates/.
install.sh symlinks the scaffolder's top-level templates/ to
this path so migrations can cp from a stable location.
"Project name detection" can also pull from
package.json::name, pyproject.toml::project.name,
Cargo.toml::package.name — surface those as a prefilled
default in the question rather than always asking from scratch.
1---2name: agenticapps-eu-codex-workflow-setup-codex-agenticapps-workfl3description: setup-codex-agenticapps-workflow4---56# setup-codex-agenticapps-workflow78This skill is the entry point for bootstrapping a fresh project with9the codex-workflow scaffolding. It applies the baseline migration10(`migrations/0000-baseline.md`) and any additional migrations that11have shipped between scaffolder versions, leaving the project at the12current scaffolder version.1314## When to invoke1516User asks to set up the workflow on a project that does not yet have17a `.codex/workflow-version.txt` file. The trigger skill's18`agentic-apps-workflow` does NOT auto-route to setup — setup is an19explicit, user-driven act because it modifies project-side files20(AGENTS.md, .planning/config.json, .codex/) that the user expects to21review.2223## What this skill does2425### Stage A — Pre-flight26271. **Verify Codex CLI.** `codex --version` must succeed.282. **Verify scaffolder install.** Confirm29 `${CODEX_HOME:-$HOME/.codex}/skills/agentic-apps-workflow/SKILL.md`30 exists. If not, instruct the user to clone codex-workflow and run31 `bash install.sh` from its root before retrying.323. **Verify project state.**33 - Project must be a git repo (`test -d .git`).34 - Project must NOT already have `.codex/workflow-version.txt`. If35 it does, route the user to `$update-codex-agenticapps-workflow`36 and stop.374. **Check optional gates.** Run the `optional_for` detection38 commands from `0000-baseline.md` and record the user's choice for39 each (e.g. Option A vs Option B install).4041### Stage B — Gather placeholder values42435. **Ask the user** the questions in `0000-baseline.md` Step 1's44 placeholder table:45 - Project name46 - Repo URL (autofilled from `git remote get-url origin` if47 available; otherwise prompt)48 - Client (internal / external name)49 - Budget tier (free / paid / enterprise)50 - Backend language (Go / Python / TypeScript / Rust / Other)51 - Frontend stack (or "none" if backend-only)52 - Database (or "none")53 - LLM provider (anthropic / openai / google / other / none)5455 For optional values, accept defaults if the user says "default" or56 skips:57 - design-critique quality bar (default 90)58 - impeccable-audit quality bar (default 90)59 - QA viewports (default 1280, 390)60 - DB blocking severity (default Critical, High)6162### Stage C — Apply the baseline migration63646. **Walk `migrations/0000-baseline.md` step by step.** For each65 step:66 - Run the **idempotency check**. If it returns 0, log "skipped67 (already applied)" and continue.68 - Run the **pre-condition**. If it fails, error out with the69 pre-condition's specific message.70 - Show the user the **apply** block. In default-on-confirm71 interactive mode, dry-run the whole chain first; in72 `--no-confirm` mode, apply each step automatically.73 - Apply the patch. For Step 1 (workflow-config.md), substitute74 placeholders with the values from Stage B.75 - On failure: prompt the user with retry / skip-with-warning /76 rollback options per the atomicity contract in77 `migrations/README.md`.787. **Skip Step 6** (global AGENTS.md additions) if the user picked79 Option B (per-project install) in Stage A's optional gate80 detection.8182### Stage D — Post-checks and commit83848. **Run all post-checks** from `0000-baseline.md`:85 - `.codex/workflow-config.md` exists and has no unsubstituted86 `{{...}}` placeholders87 - `.planning/config.json` is valid JSON with the expected hook88 keys89 - `AGENTS.md` contains the `BEGIN: agentic-apps-workflow` marker90 - `docs/decisions/README.md` exists91 - `.codex/workflow-version.txt` reads `0.1.0`929. **Atomic commit.** All baseline-migration changes go in a single93 commit:9495 ```bash96 git add .codex/ .planning/ AGENTS.md docs/decisions/97 git commit -m "chore: install codex-workflow v0.1.0"98 ```9910010. **Surface follow-ups.** Tell the user:101 - The project is now at `codex-workflow v0.1.0`102 - Next step: run `$gsd-discuss-phase 1` to start a planning103 session for the first phase104 - Future scaffolder updates: run105 `$update-codex-agenticapps-workflow` periodically; the skill106 reads `.codex/workflow-version.txt` and applies pending107 migrations108109## Required evidence (per spec/06)110111- `.codex/workflow-version.txt` exists with content `0.1.0`112- `.planning/config.json` is valid JSON with all `hooks` keys from113 the template114- `AGENTS.md` contains the marker pair115 `<!-- BEGIN: agentic-apps-workflow sections -->` ... `<!-- END: agentic-apps-workflow sections -->`116- `docs/decisions/README.md` exists117- The atomic commit is on the project's current branch with the118 expected files staged119120## Failure modes121122- **Re-running on an installed project.** The pre-flight check123 catches this; never auto-overwrite. Route to124 `$update-codex-agenticapps-workflow`.125- **Scaffolder not installed.** Surface the install path; do not126 silently skip steps that depend on the scaffolder.127- **Half-applied migration.** Per the atomicity contract, prompt128 user (retry / skip / rollback). Do not auto-rollback without129 consent — the user may prefer partial-state recovery.130- **Forgetting Step 6 distinction.** Option A (global) and Option B131 (per-project) are mutually exclusive for this step. Skip Step 6132 cleanly when the user picked Option B.133134## Notes for the Codex host135136- The default `$CODEX_HOME` is `~/.codex`. Migrations use the137 `${CODEX_HOME:-$HOME/.codex}` form so users with a non-default138 `$CODEX_HOME` get the same behavior.139- The `templates/` directory referenced from migrations lives at140 `${CODEX_HOME:-$HOME/.codex}/skills/setup-codex-agenticapps-workflow/templates/`.141 `install.sh` symlinks the scaffolder's top-level `templates/` to142 this path so migrations can `cp` from a stable location.143- "Project name detection" can also pull from144 `package.json::name`, `pyproject.toml::project.name`,145 `Cargo.toml::package.name` — surface those as a prefilled146 default in the question rather than always asking from scratch.147148---149> Source: [agenticapps-eu/codex-workflow](https://github.com/agenticapps-eu/codex-workflow) — distributed by [TomeVault](https://tomevault.io).150<!-- tomevault:4.0:skill_md:2026-05-23 -->
Run npx skillmds@latest add tomevault-io/agenticapps-eu-codex-workflow-setup-codex-agenticapps-workfl in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
setup-codex-agenticapps-workflow It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.