zero2codex
OpenAI Codex workflow course

Course goal: ship your personal brand site

Build a personal brand site with Codex

Keep improving one project from an empty folder to a responsive one-page site with an introduction, projects, and contact details. Every lesson adds a visible result or a check toward that finish line.

Curriculum

Personal brand site build path

01

Start With Codex

Set up Codex and build the hero section of your personal brand site.

0/4
05

Lock In Your Site Rules

Write project rules that preserve the site's content and visual style.

0/3
Write Your Site RulesWrite an AGENTS.md for my-brand-site so later edits keep the same voice, layout, and checks.Separate Site And Section RulesKeep permanent site rules separate from one-time requests for the Projects or Contact section.Turn Site Mistakes Into RulesTurn missed labels, broken links, or mobile overflow into rules that prevent the same problem next time.
8 minReady

Turn Site Mistakes Into Rules

Make the next my-brand-site edit safer by recording one useful lesson from this build.

site mistakesspecific rulesrepeatable checks

Watch, then try

15|把驗收經驗留下來(CLI 版・19 秒)

真實 CLI 輸出檢視器與本機網站錄影,非 Codex 原生介面;繁中字幕、無旁白,等待區段已剪接。

zero2codex
MP4

Step-by-step

  1. 沿用前一課的 my-brand-site,或從下方練習檔取用本課 before 起點。
  2. 在專案目錄執行本片 CLI 指令;本課權限為 workspace-write。
  3. 核對實際輸出與結束碼,不把文字回報當成瀏覽器操作證據。
  4. 補上可重複使用的規則,不堆疊重複條文。
跟著本片操作:CLI 指令與練習檔(繁體中文)

這是本課的 CLI 替代實作路徑;下方概念課程仍保留其他介面的說明。先安裝並登入 Codex CLI,在 my-brand-site 資料夾內執行下列 macOS/Linux 指令。影片將真實 CLI JSON 事件排版成易讀畫面,下列指令使用一般 CLI 輸出;不是 Codex 原生介面,等待區段已剪接。

codex exec --ephemeral --ignore-user-config --sandbox workspace-write '讀 AGENTS.md,若沒有『新增互動控制必須有可辨識名稱,並用鍵盤 Tab/Enter 驗證』這條,新增一條等義簡短規則;已有等義內容就不要重複。只改 AGENTS.md。顯示 git diff -- AGENTS.md 並回報。'

下載逐課練習檔與實際結果(ZIP)

Plain-language explanation

Look back at the site issues you already found: a vague button label, a broken section link, or content that overflowed on mobile. One real mistake can become one useful future rule.

A good rule says when it applies, what Codex must do, and how to check the result.

Why it matters

The site gets easier to maintain because the project remembers what went wrong during the first build.

Common beginner mistake

A rule such as “make the site better” is too vague to prevent the same bug.

Good prompt

Codex, the my-brand-site theme button was unclear without visible text. Add one concise AGENTS.md rule: whenever an icon-only control changes, keep an accessible name and verify it in the browser. Do not duplicate an existing rule.

Try this

Turn one mobile, link, or accessibility issue from this site into a single testable rule.

Completion checklist

  • The rule prevents a problem that actually appeared in the site.
  • The rule includes a trigger and a way to verify the result.

Sources

08

Finish And Deliver The Site

Polish independent tasks in parallel, then complete one final acceptance review.

0/3

Practice lab

Copyable Codex prompts

Plan before coding

Codex, inspect the relevant files first, then propose a plan. Do not edit until the plan names tests and verification steps.

Verification checklist

  • Relevant files are named before edits begin.
  • The plan includes tests and verification commands.

Verify a UI change

Codex, start the dev server, open the route in the browser, check desktop and mobile layouts, then report the exact evidence.

Verification checklist

  • Desktop and mobile states are checked in the browser.
  • The final note includes exact evidence.

Review focused risk

Codex, review the uncommitted diff. Focus on behavioral regressions, missing tests, and accessibility issues. Do not modify files.

Verification checklist

  • Findings lead with severity and file references.
  • Unchanged files are left untouched.
Every good Codex request says what to change, what to preserve, and how to prove it worked.

Reference

Codex concepts to keep nearby