Forkable Codex skill starter for rapidly prototyping AI apps.
This repo is meant to be copied, forked, and adapted. It gives you a small starter set of Codex-specific skills plus helper scripts so you can go from idea to working prototype quickly.
The core loop is:
idea -> spec -> scaffold -> implement
This repo gives you a practical starting point for Codex App workflows:
- fork it to create your own skill repo
- use the included Python scripts to create a new prototype subfolder or repo with the right starter skills installed
- start from a chat prompt or drop in an
idea.mdfile and usespec-to-prototypeto shape the first spec - iterate on the spec until it is strong enough to build
- use the scaffold and implementation skills to turn that spec into a prototype
If you like, pair this with Codex plan mode to build the spec and implementation plan together before writing code.
This repository is the source of truth for a small Codex skill chain:
spec-to-prototypeTurns a rough idea into an execution-readySPEC.mdwith scope, work packages, dependency order, and binary success criteria.scaffold-ai-prototypeScaffolds a Next.js + AI SDK starter that matches the selected prototype pattern.ai-prototype-patternsImplements or extends the product using the right AI SDK interaction pattern.refresh-ai-sdk-skillsHelps maintain this skill repo against upstream AI SDK, AI Elements, and shadcn/ui changes.
These are not generic prompts. They are intended for Codex App and Codex skill workflows.
Fork this repo
->
Create a prototype folder or repo with the helper script
->
Install the core skills into .codex/skills/
->
Start with an idea in chat or idea.md
->
Use spec-to-prototype to create and refine SPEC.md
->
Use scaffold-ai-prototype to generate the starter
->
Use ai-prototype-patterns to implement the product
->
Repeat until the prototype is ready
flowchart LR
A["Fork this repo"] --> B["Create a prototype repo or subfolder"]
B --> C["Install core Codex skills with the Python scripts"]
C --> D["Start from chat or idea.md"]
D --> E["spec-to-prototype<br/>create and refine SPEC.md"]
E --> F["scaffold-ai-prototype<br/>generate the starter"]
F --> G["ai-prototype-patterns<br/>implement the prototype"]
G --> H["Iterate with Codex chat or plan mode"]
H --> I["Add your own skills, or open a PR / issue"]
Use this repo if you:
- build AI prototypes regularly
- use the Codex App or another Codex-compatible local skill workflow
- want a reusable starter set instead of rebuilding your prototyping process every time
- want a repo you can fork and extend with your own Codex skills
Prerequisites:
- Python 3.10+
- Git if you want the helper script to initialize repos
- Codex App or another environment that can use local Codex skills
Create a fresh prototype repo:
python3 scripts/prototype_create.py ../prototypes/my-ideaInstall skills into an existing repo:
python3 scripts/prototype_init.py ../prototypes/my-ideaThen in the target repo:
- start a Codex chat with your idea, or add an
idea.md - use
spec-to-prototypeto generateSPEC.md - iterate on the spec until the scope and plan are clear
- use
scaffold-ai-prototype - use
ai-prototype-patterns
| Skill | Purpose | Typical output |
|---|---|---|
spec-to-prototype |
Product/spec shaping | SPEC.md with scope, work packages, and success criteria |
scaffold-ai-prototype |
Starter generation | Pattern-aligned Next.js + AI SDK scaffold |
ai-prototype-patterns |
Feature implementation | Concrete code changes for the chosen interaction pattern |
refresh-ai-sdk-skills |
Repo maintenance | Drift review and updates for this skill system |
The shared pattern vocabulary is:
chattool-calling-chatgenerative-uistructured-generationserver-workflowagent-loopvoice
The skills in this repo are designed to work with a small, practical open-source stack for AI prototypes:
next: app shell, routing, API handlers, and build pipelinereact: interactive UIai: core AI SDK server primitives such asstreamText,generateText,tool(), andOutput.object()@ai-sdk/react: client hooks such asuseChatandexperimental_useObjectzod: shared typed contracts for structured outputs and tool inputsai-elements: optional UI building blocks for chat, tool, reasoning, confirmation, and speech flows@ai-sdk/gateway: default provider path@ai-sdk/google,@ai-sdk/anthropic,@ai-sdk/openai,@ai-sdk/groq: optional provider packages depending on the prototype
In practice, the skills use those packages together like this:
flowchart LR
A["spec-to-prototype"] --> B["scaffold-ai-prototype"]
B --> C["Next.js + React app"]
B --> D["AI SDK packages"]
B --> E["Optional AI Elements UI"]
C --> F["ai-prototype-patterns"]
D --> F
E --> F
F --> G["Routes using `ai` primitives"]
F --> H["UI using `@ai-sdk/react`"]
F --> I["Schemas using `zod`"]
G --> J["Provider package and model"]
That is the main reason this repo works well as a starter: the skills are not isolated prompts, they are a coordinated system built around a shared package stack and shared implementation patterns.
This repo is designed to be extended.
You can:
- add your own Codex skills in your fork
- keep private team-specific skills in your forked copy
- open issues to request new skills or workflow improvements
- submit PRs if you want to improve the shared starter set
The best default is usually:
- keep this repo or your fork as the skill source of truth
- create separate prototype repos as needed
- install only the skills each prototype actually needs
scripts/prototype_create.py: create a new prototype repo and install skillsscripts/prototype_init.py: install, link, or refresh skills in an existing reposcripts/validate_skills.py: validate the skills, docs, and required release filesscripts/export_open_source_repo.py: create a clean publishable copy of the repo
Script docs:
docs/prototype-create.mddocs/prototype-init.mddocs/rapid-prototyping-setup.mddocs/export-open-source.md
Run:
python3 scripts/validate_skills.pyRecommended verification:
python3 scripts/validate_skills.py
python3 scripts/prototype_create.py /tmp/codex-prototype-create-test --force
python3 scripts/prototype_init.py /tmp/codex-prototype-create-test --mode sync --skills core- The skills are intentionally opinionated.
- They are optimized for Codex workflows, not every agent runtime.
- They help bootstrap prototypes quickly, but downstream app quality still depends on implementation and review.
- Upstream AI SDK and AI Elements APIs can drift, so maintenance still matters.