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.
10 minReady

Write Your Site Rules

Give Codex a short set of rules it can reuse for every remaining site task.

site instructionscontent ruleslaunch checks

Watch, then try

13|寫下專案規則(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,限 15 行:網站入口 index.html,繁體中文,無外部套件與網路資源,保留手機版、CTA、主題按鈕可辨識名稱,真實檢查指令 python3 check_site.py 與 git diff --check;瀏覽器人工驗證獨立列出,不能假稱跑過;不要更動外部帳號或送信。只建立這個規則檔,其他不變。顯示檔案供審查。'

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

Plain-language explanation

Your personal site now has a clear voice and visual style. AGENTS.md is where you record the small set of rules Codex should keep following as you finish it.

For my-brand-site, useful rules include keeping the one-file structure, preserving your tone, checking narrow screens, and reporting what was verified.

Why it matters

The last few site edits should feel like the same project, even when they happen in a new Codex task.

Common beginner mistake

A common mistake is pasting generic npm or framework rules into a site that only contains index.html.

Good prompt

Codex, inspect my-brand-site and draft a concise AGENTS.md. Keep the current one-file site, preserve its friendly personal voice, require no horizontal overflow at mobile width, keep controls accessible, and list only verification steps this project can really run. Do not invent npm commands.

Try this

Write five rules that would keep the next change consistent with the site you already built.

Completion checklist

  • The rules refer to the real my-brand-site structure and checks.
  • The rules protect the site's voice, layout, and accessibility.

Sources

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.
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