Feature Scaffold From Session
This skill creates a new feature-workspace scaffold from prior Codex session history.
The intended output is a targeted planning control plane, that can transition to implementation and testing phases to become a finished automation framework. Aim is, in utopian scenario, with detailed feature.md and scaffold, the project can be automated end-to-end via iterative phases by codex within a planning prompt, implementation prompt loop, and validation prompt loop.
Use This Skill When
- the user has already explored a feature in past Codex sessions
- the user wants a fresh directory that captures that work cleanly
- the user wants the initial phase only:
.codex/
AGENTS.md
feature.md
Do not generate later-phase files such as design.md as detailed design documentation, tasks.md as complete task breakdown, testplan.md as comprehensive test plan, or progress_log.md as progress log, these are to be generated by codex session later, and updated as needed.
Required Inputs
- one or more session IDs
- target output directory
If the output directory is missing, ask for it.
Workflow
- Read the requested prior session or sessions.
- Extract the feature goal, constraints, scope boundaries, terminology, relevant repos, and known risks.
- Create a targeted workspace scaffold in the target directory.
- Generate:
AGENTS.md
context.md
feature.md
.codex/README.md
.codex/config.toml
- Generate
.codex/roles/ only if multiple distinct roles materially improve the workflow. Roles can be but are not limited to orchestrator/owner, context-mapper, designer, implemention_planner, tester, validator, critic all with feedback loops.
- Generate
.codex/prompts/ only if multiple distinct prompts materially improve the workflow. Prompts can be but are not limited to planning, implementation, validation, etc, with explicit invocations for sub-agents.
- After you are done, HUMAN workflow should look like:
- Review scaffold, and especially
feature.md.
- Start the planning phase in a codex session with this as working directory, project as a path argument instead in the prompt, by running the planning prompt, and then review the generate
design.md , tasks.md, testplan.md, progress_log.md
- Update
feature.md as needed based on the planning phase outputs
- Continue with implementation and testing phases
Output Requirements
AGENTS.md
Must define:
- the purpose of the folder
- which files to read first
- what later outputs are expected in future phases
- the workflow order
- scope expectations
- quality bar
context.md
Must define:
- extracted context from the source sessions
- enough information along with
feature.md so that human can start the planning phase in a codex session
feature.md
Must define:
- summary
- required behavior
- constraints
- in-scope and out-of-scope items
- design expectations
- testing expectations
- expected deliverables for later phases
.codex/config.toml
Keep it minimal and practical. It should describe:
- project name
- project root
- feature file location
- expected later outputs
- whether design should come before implementation
Guardrails
- Preserve important technical constraints from the source sessions.
- Prefer explicit requirements over generic filler.
- Do not invent implementation certainty where the source sessions were still exploratory.
- Do not initialize git anywhere unless the user explicitly asks for that phase.
- Do not create a large framework. Create a clean starting workspace.
Style
The scaffold should feel ready to use in another project:
- portable
- direct
- low ceremony
- concrete enough to guide the next Codex run
1---2name: feature-scaffold-from-session3description: Use when the user wants to turn one or more prior Codex sessions into a fresh feature workspace containing a targeted .codex control plane, AGENTS.md, and feature.md for a new planning cycle.4---56# Feature Scaffold From Session78This skill creates a new feature-workspace scaffold from prior Codex session history.910The intended output is a targeted planning control plane, that can transition to implementation and testing phases to become a finished automation framework. Aim is, in utopian scenario, with detailed feature.md and scaffold, the project can be automated end-to-end via iterative phases by codex within a planning prompt, implementation prompt loop, and validation prompt loop.1112## Use This Skill When1314- the user has already explored a feature in past Codex sessions15- the user wants a fresh directory that captures that work cleanly16- the user wants the initial phase only:17 - `.codex/`18 - `AGENTS.md`19 - `feature.md`2021Do not generate later-phase files such as `design.md` as detailed design documentation, `tasks.md` as complete task breakdown, `testplan.md` as comprehensive test plan, or `progress_log.md` as progress log, these are to be generated by codex session later, and updated as needed.2223## Required Inputs2425- one or more session IDs26- target output directory2728If the output directory is missing, ask for it.2930## Workflow31321. Read the requested prior session or sessions.332. Extract the feature goal, constraints, scope boundaries, terminology, relevant repos, and known risks.343. Create a targeted workspace scaffold in the target directory.354. Generate:36 - `AGENTS.md`37 - `context.md`38 - `feature.md`39 - `.codex/README.md`40 - `.codex/config.toml`415. Generate `.codex/roles/` only if multiple distinct roles materially improve the workflow. Roles can be but are not limited to orchestrator/owner, context-mapper, designer, implemention_planner, tester, validator, critic all with feedback loops.426. Generate `.codex/prompts/` only if multiple distinct prompts materially improve the workflow. Prompts can be but are not limited to planning, implementation, validation, etc, with explicit invocations for sub-agents. 437. After you are done, HUMAN workflow should look like:44 - Review scaffold, and especially `feature.md`.45 - Start the planning phase in a codex session with this as working directory, project as a path argument instead in the prompt, by running the planning prompt, and then review the generate `design.md` , `tasks.md`, `testplan.md`, `progress_log.md`46 - Update `feature.md` as needed based on the planning phase outputs47 - Continue with implementation and testing phases4849## Output Requirements5051### `AGENTS.md`5253Must define:5455- the purpose of the folder56- which files to read first57- what later outputs are expected in future phases58- the workflow order59- scope expectations60- quality bar6162### `context.md`6364Must define:6566- extracted context from the source sessions67- enough information along with `feature.md` so that human can start the planning phase in a codex session6869### `feature.md`7071Must define:7273- summary74- required behavior75- constraints76- in-scope and out-of-scope items77- design expectations78- testing expectations79- expected deliverables for later phases8081### `.codex/config.toml`8283Keep it minimal and practical. It should describe:8485- project name86- project root87- feature file location88- expected later outputs89- whether design should come before implementation9091## Guardrails9293- Preserve important technical constraints from the source sessions.94- Prefer explicit requirements over generic filler.95- Do not invent implementation certainty where the source sessions were still exploratory.96- Do not initialize git anywhere unless the user explicitly asks for that phase.97- Do not create a large framework. Create a clean starting workspace.9899## Style100101The scaffold should feel ready to use in another project:102103- portable104- direct105- low ceremony106- concrete enough to guide the next Codex run