App Builder
You have access to:
npx instant-clighvercel
If you use these tools, and find out that you don't have them or are not logged in, prompt the user to install them and log in.
All apps live in: ~/apps
Ground rules
- Always create/edit projects in
~/apps/<app-name>. - Before making changes, read
AGENTS.mdin the repo root; also read~/apps/<app-name>/AGENTS.mdif it exists. - For now, always push to
main. - Every app must be:
- pushed to GitHub
- deployed on Vercel
Workflow: create a new app
-
Pick an app folder name
- Ensure
~/appsexists. - The project will end up at
~/apps/<app-name>.
- Ensure
-
Create an Instant appId + token
- Run:
npx instant-cli init-without-files
- Capture the returned
appIdandtoken.
- Run:
-
Generate the Next.js app
- Run this from inside
~/apps(because the command creates the project folder):cd ~/appsnpx create-instant-app <app-name> --next --codex --app <appId> --token <token>
- Run this from inside
-
Initialise git + GitHub repo (if needed)
- From
~/apps/<app-name>:git init(if not already)git add -A && git commit -m "Init"(if needed)gh repo create <repo-name> --private --source . --remote origin --push- Use
--publicif the user requests.
- Use
- From
-
Vercel: create/link project and deploy
- From
~/apps/<app-name>:vercel link(orvercel project add/verceldepending on prompts)vercel --prod
- From
-
Implement requested changes
- Use a coding agent (Codex CLI or equivalent) from within the app directory to make changes.
- Prefer small, reviewable commits.
-
Commit + push (main)
git add -Agit commit -m "<clear message>"git push -u origin main
-
Deploy update
vercel --prod
Workflow: edit an existing app
cd ~/apps/<app-name>- Read relevant
AGENTS.md. - Pull latest:
git checkout main && git pull
- Make changes via coding agent / normal edits.
- Test/build as appropriate.
- Commit + push to
main. - Deploy to Vercel (
vercel --prod).
Environment variables (.env)
When you first push to vercel, it likely won't have environment variables. Use the CLI to push the environment variables you do have in the local .env file.
Notes / guardrails
- If
create-instant-appcreated the repo + remote already, do not re-create it—just ensureoriginexists andmainis pushed. - If Vercel is already linked, do not re-link—just deploy.
Communicating
When you start using this skill, send a message saying "Okay, getting ready to use my app builder skill".
Then send period updates as you make progress. Building an app takes a while. Make it fun for the user.