app-foundation
Skill2 starsChanged 35 days agoMITView on GitHub
Create a new web product foundation (Next.js + TypeScript + Tailwind + Postgres via Drizzle) that every other skill in skill-deploy-share builds on. Use when the user wants to start a new project, website, app, shop or SaaS from scratch, says "start a new project" or "set up a foundation for my shop", or another skill requires app-foundation.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- heymegabyte/agent-skillstheir own version, first seen Nov 28, 2026
- heymegabyte/claude-skillstheir own version, first seen Nov 28, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- heymegabyte/agent-skills★ 30same name
- heymegabyte/claude-skills★ 30same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/app-foundation/template/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/app-foundation/template/CLAUDE.mdCLAUDE.md
- auth-loginSkill
- db-backupSkill
- db-connectSkill
- deploy-cloudflareSkill
- domain-setupSkill
- email-sendSkill
- env-secretsSkill
- file-uploadSkill
- github-vercel-deploySkill
- launch-kitSkill
- ops-dashboardSkill
- pay-checkoutSkill
- pay-subscriptionSkill
- pay-webhookSkill
- uptime-alertSkill
- warehouse-siteSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Where should the folder go?: Default to a new folder named after the product, inside the folder the user is working in.
- Distinctive: line 23
If the user already answered either one, don't ask it again.
- Very specific: line 81
Use the github-vercel-deploy skill (episode 001).
- Very specific: line 90
After installing a skill, add it to stack.json → installed.
- Distinctive: line 91
Don't use platform-only APIs, so the project keeps deploying to both Vercel and Cloudflare.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
app-foundation
Goal: in one step, the user gets a new project that runs locally, deploys to Vercel or Cloudflare, and is ready for the other skills in this repo (database, login, payments, orders...) to stack on top. Follow ../../STACK.md.
The user is probably not a programmer. Speak plainly, keep questions to a minimum, and never ask for passwords or secret keys in the chat.
1. Ask two things (one message)
- What's the product called? Chinese is fine. It's shown on the homepage and in page titles.
- Where should the folder go? Default to a new folder named after the product, inside the folder the user is working in.
If the user already answered either one, don't ask it again.
2. Check the computer
node -v # needs v20.9 or newer
npm -v
git --version- Node missing or too old: tell the user to install the LTS version from https://nodejs.org, and say that after installing they need to open a new terminal / restart the AI tool so PATH refreshes. Then check again.
- git missing: it's fine for now, because it's only needed to deploy. Mention it at the end.
3. Create the project
Resolve the script path relative to this SKILL.md:
node <skill-dir>/scripts/create.mjs --dir "<folder>" --name "<product name>" --jsonThe script:
- copies
template/into the folder - fills in the name
- writes
stack.json - copies
.env.exampleto.env.local - runs
npm install - makes the first git save point
It refuses to overwrite a folder that isn't empty (exit 10). In that case, ask for a new folder name. Don't install into an existing project automatically.
| Exit | Meaning | Do |
| 0 | created | continue |
| 3 | Node/npm too old or missing | step 2 |
| 4 | npm install failed | show the last lines; usually it's the network. Retry once with npm install in the folder |
| 10 | folder not empty | ask for another name |
| 64 | bad arguments | fix the command |
4. Show it running
cd "<folder>"
npm run devOpen http://localhost:3000, in the browser tool if you have one, and confirm the homepage shows the product name and the "Next steps" checklist. Also check http://localhost:3000/api/health, which returns "ok": true.
5. Tell the user (short, plain)
- Where the project is, and that it's running at http://localhost:3000.
- What they have: a working website foundation. It isn't connected to a database yet, so nothing is stored, and that's expected.
- What to say next:
- "Use github-vercel-deploy to deploy this project to GitHub and Vercel" (episode 001) to put it online.
- "Use db-connect to connect a free database to my project" (episode 003) to save data.
Deploying it
Use the github-vercel-deploy skill (episode 001). Vercel detects Next.js by itself; no settings to change. The first deploy can spend several minutes on "Installing dependencies" (no build cache yet) — tell the user that's normal; later deploys are much faster. Check https://<project>.vercel.app/api/health afterwards.
Rules for everything built on this foundation
These rules are also written into the project's own AGENTS.md, so any AI that opens the project follows them:
- Tables go in
src/db/schema/<system>.ts, prefixed with the system name (e.g.orders_), and are exported fromsrc/db/schema/index.ts. - Systems talk through
emitEvent()and thecore_eventstable. They never write each other's tables. - Secrets live only in environment variables, documented in
.env.example. - After installing a skill, add it to
stack.json→installed. - Don't use platform-only APIs, so the project keeps deploying to both Vercel and Cloudflare.
Check an existing project
node <skill-dir>/scripts/create.mjs --check --dir "<folder>"Other skills run this before installing; exit 3 means app-foundation isn't installed there.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

