Codex AGENTS.md 產生器:把專案規則寫成 Codex 看得懂的指引檔
讓 Codex 訪談你的專案,再產出一份結構化、不囉嗦的 AGENTS.md,把建置/測試指令、程式風格、commit 規範、禁區一次寫清楚,每次開工自動載入。
Codex 每次開工都先讀 AGENTS.md。這支讓它先訪談你的 repo,再寫出一份精煉、可直接落地的指引檔——建置指令、測試方式、風格、commit 格式、禁碰區一次到位,不再每次重複交代。
[ Log in to see the full prompt ]Sign up free to see the full prompt, copy it, save it, and join the discussion. Free content unlocks on login; Pro content is a separate subscription.
何時用:剛把 Codex 接上一個既有 repo、或團隊想統一「Codex 開工該知道的事」時。為何有效:Codex 每次啟動會把從 git root 到當前目錄的 AGENTS.md 串起來當系統指引,這支強制它『先讀你的 repo 再下筆』,而不是憑空生一份漂亮但錯誤的設定檔——錯的 build 指令比沒有還糟。技巧:① 先讓它調查 package.json / CI / lockfile 抓出真實指令,再只問你它查不到的事,省掉來回;② 要求對不確定的指令留 TODO(owner) 而非編造,符合『誠實>花俏』;③ commit 格式寫進 AGENTS.md 是最有效的一招(它是 Codex 產出 commit 風格的主分類依據)。進階:子目錄規則不同時讓它建巢狀 AGENTS.md,保持 root 精簡(預設約 32 KiB 上限)。
# AGENTS.md ## Project overview luvai-stock-app — a Taiwan-equities analytics site (technical + institutional flow + AI). Next.js 15 (App Router) + TypeScript, deployed to Cloudflare Workers via OpenNext, data in D1. ## Setup & commands | Task | Command | |------|---------| | Install | `npm ci` | | Dev | `npm run dev` | | Build | `npm run build` | | Typecheck | `npx tsc --noEmit` | | Lint | `npm run lint` | | Deploy | `npm run deploy` | ## Commit & PR rules - Conventional Commits: `feat(scope): ...`, `fix(scope): ...`, `chore: ...`. - Before opening a PR: `npx tsc --noEmit` and `npm run lint` must pass. ## Guardrails / do-not-touch - Never edit `migrations/` files that are already applied to prod — add a new one. - Do not touch credit/entitlement logic in `lib/entitlements.ts` without asking. TODO(owner): confirm whether `npm test` or `npm run test:ci` is the canonical suite — both exist in package.json.
Suno Engineer's Mindset: 4 Steps to a Song That Doesn't Sound Like AI
A studio engineer's breakdown of Suno's fatal weaknesses (fried vocals, high-frequency artifacts), plus a 4-step DAW workflow and a Suno Studio cleanup prompt.
5 Claude Weekly Workflows That Stuck After 6 Months
Proposal generator / meeting processor / content repurposer / Friday review / shutdown reset — out of 40 I tried, only these 5 survived, each saving 30+ minutes per run.