plan-then-code

agent
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Gecti
  • Code scan — Scanned 2 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

A Codex skill that forces Claude to plan first (PRD, specs, 30-500 question requirements interview) before Codex writes code. Two-stage AI coding workflow on top of Trellis. Bilingual EN/ZH.

README.md

Big Project Workflow Skill

English | 简体中文

A two-stage AI coding workflow for medium and large projects:
Claude Code CLI plans, Codex implements, Trellis
remembers.
Inspired by a developer's post about a successful
Opus + Codex + Trellis run (the original thread is gone), packaged as a
portable OpenAI Codex Skill.

The whole operational contract lives in SKILL.md. This
README is for the developer who installs the skill.

Why this skill

  • Two-stage handoff. Claude writes Project Brief, requirements
    questionnaire (30-500 questions), PRD, specs, roadmap. Codex reads
    those and implements vertical slices.
  • Real questionnaire, not a wishlist. The Stage 1 prompt forces a
    structured questionnaire before any PRD writing — by far the biggest
    reason this workflow outperforms ad-hoc prompting. Once it is generated,
    the user must choose full guided answering or explicitly authorize
    default-assisted answering; Claude cannot quietly default most questions.
  • Durable long-run execution when needed. Stage 2 remains one stage:
    ordinary slices use Normal Execution; lengthy or resumable slices use
    Long-Run Execution with a lightweight evidence ledger and final review.
  • Trellis-native. No reinventing of .trellis/spec/ or
    .trellis/tasks/; Trellis owns project memory, this skill only
    orchestrates.
  • Safety first. Refuses system-drive bootstrap on Windows, never commits
    secrets, never weakens tests, uses placeholders in shareable files.
  • Cross-platform. One Python script, runs on Windows / macOS /
    Linux / WSL.

Requirements

Tool Why
Codex CLI Loads this skill
Claude Code CLI Stage 1 planning
Node.js (LTS) Trellis runtime
Trellis CLI .trellis/ workspace
Python 3.9+ Bootstrap script
Git Version control
codex-autoresearch (optional) Stage 2 research gate for high-risk slices

Install Trellis (pin a version with --trellis-version if you want):

npm install -g @mindfoldhq/trellis@latest

If you do not want npm globals on the system drive, configure
npm config set prefix to a directory on another drive before
installing.

Optional: install codex-autoresearch if your project is likely to hit
unfamiliar APIs, security-sensitive code, complex migrations, LLM
provider differences, or measurable optimization goals:

$skill-installer install https://github.com/leo-lilinxiao/codex-autoresearch

After installing, restart Codex. This skill's Stage 2 handoff template
will detect that codex-autoresearch is available and reference it in
the Research Gate. Tiny / straightforward slices should still skip
research — see SKILL.md § Optional Research Gate.

Enable Codex skill loading per the
official docs.

Install

Clone or download this repository, then copy the folder into your Codex
skills directory:

PowerShell:

$SkillRoot = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME ".codex" }
Copy-Item -Recurse big-project-workflow-skill (Join-Path $SkillRoot "skills/big-project-workflow")

Bash / zsh:

cp -r big-project-workflow-skill "${CODEX_HOME:-$HOME/.codex}/skills/big-project-workflow"

Restart Codex so the skill list refreshes. Trigger it with anything
that mentions a "big project workflow", "PRD", "non-system-drive
project", "Trellis bootstrap", or 大项目工作流.

Quick Start (3 steps)

1. Bootstrap

PowerShell:

$SkillRoot = (Join-Path ${env:CODEX_HOME ?? "$HOME/.codex"} "skills/big-project-workflow")

python (Join-Path $SkillRoot "scripts/bootstrap.py") `
  --root "D:\codex-projects" `
  --name "my-project" `
  --developer "<your-name>" `
  --brief "One paragraph about the project goal"

Bash / zsh:

SKILL_ROOT="${CODEX_HOME:-$HOME/.codex}/skills/big-project-workflow"

python3 "$SKILL_ROOT/scripts/bootstrap.py" \
  --root "$HOME/codex-projects" \
  --name "my-project" \
  --developer "<your-name>" \
  --brief "One paragraph about the project goal"

2. Stage 1 — Claude plans

Open the project in interactive Claude Code (not claude -p headless
mode — Stage 1 needs you to answer the structured questionnaire):

cd D:\codex-projects\my-project
claude
cd ~/codex-projects/my-project
claude

In the Claude Code session, say:

Read docs/claude/00-prd-spec-prompt.md and run Stage 1.

Claude inspects the project, confirms the questionnaire size (tiny /
small / medium / large), generates the questionnaire, then asks whether
you want to answer question by question or explicitly authorize proposed
defaults for unanswered items. Only after that choice does it capture
answers and write PRD / specs / roadmap / kickoff task / Codex handoff doc.
To pick a planning model use /model inside the session;
prefer Opus-class with 1M context (e.g. claude-opus-4-7[1m]).

3. Stage 2 — Codex implements

Open Codex in the project, then ask:

Read docs/codex/00-implementation-handoff.md and implement the
first vertical slice from the generated roadmap.

Codex outputs a Task Plan, builds the smallest runnable slice, runs
verification, and reports results. For a long or resumable slice it may use
the generated docs/codex/01-execution-ledger-template.md as a checkpoint
ledger inside Stage 2.

Terminology

Term Meaning
Phase 0 Inspect an existing repository and route to the right next step
Bootstrap Create the scaffold only; it is not completed planning
Stage 1 Claude and the user establish scope, requirements, specs, and roadmap
single-shot / iterative Whether this run ships the whole requested scope or only v1
Stage 2 Codex implements roadmap slices and verifies them
Normal Execution / Long-Run Execution Two execution modes within Stage 2, not additional stages
first runnable vertical slice The smallest end-to-end working implementation path

Use v1 scope for iterative product scope and first runnable vertical slice for the first coding task. This skill does not use MVP as an
operational term because it blurs those two concepts.

Bootstrap script flags

Flag Default Notes
--name required Project folder name
--root BIG_PROJECT_ROOT env, first non-system drive on Windows, else ~/codex-projects Parent folder
--developer TRELLIS_DEVELOPER env or OS user Used by Trellis
--brief empty One-paragraph goal embedded in templates
--trellis-version latest Used in the printed install hint when Trellis is missing
--platforms codex Comma-separated; Trellis 0.4+ generates .claude/ by default
--trellis-bin auto-detect Explicit path to the trellis binary
--allow-system-drive off Required on Windows when targeting the system drive (e.g. C:)
--skip-trellis off Skip the trellis init step
--language auto Output language for templates and next-steps. auto checks BIG_PROJECT_LANGUAGE / LANG / LC_ALL / system locale; Chinese locales map to zh-CN, others to en. Pass en or zh-CN to force.

Troubleshooting

trellis not found. The script prints the install command and
exits cleanly. Run npm install -g @mindfoldhq/trellis@<version> (or
your preferred version) and re-run the script.

Project went to the system drive by accident. The script refuses
system-drive targets on Windows unless --allow-system-drive is passed.
Set BIG_PROJECT_ROOT to your preferred drive once and forget it.

claude not found. Install Claude Code CLI.
Stage 1 requires the interactive claude REPL (not claude -p) so
the questionnaire phase has a human to talk to. If you cannot install
Claude Code locally, paste docs/claude/00-prd-spec-prompt.md into any
interactive Claude session and follow the same flow.

Want a different Trellis platform combination. Use
--platforms codex,claude,cursor etc. See
Trellis docs for the supported flags.

File map

big-project-workflow/
├── SKILL.md                         # The Codex contract (load this)
├── README.md                        # You are here (English)
├── README.zh-CN.md                  # 中文版 README
├── LICENSE                          # MIT
├── agents/openai.yaml               # UI metadata for the Codex skill chip
├── scripts/bootstrap.py             # Cross-platform project bootstrap
├── assets/templates/                # Bootstrap templates + optional long-run ledgers
└── references/                      # Loaded on demand by Codex / Claude
    ├── handoff-flow.md              # Per-document field checklists + spec examples
    ├── safety-rules.md              # Extended safety + Review Mode template
    ├── llm-spec-checklist.md        # LLM project-specific checklist
    └── SKILL.zh-CN.md               # Chinese reading version of SKILL.md

Publish safety

If you fork or republish this skill, follow the Publish Safety Gate at
the bottom of SKILL.md: scan for personal absolute paths, local
usernames, machine-specific tool directories, tokens, API keys, and
private project names. Replace any user-specific value with a
placeholder.

License

MIT — see LICENSE.

Credits

  • Workflow distilled from a developer's shared post about a successful
    Opus + Codex + Trellis run.
  • Trellis by mindfold-ai.
  • Codex Skills format by OpenAI.

Yorumlar (0)

Sonuc bulunamadi