Setup template
Skill ColourfulMelon/shadcn-template/.claude/skills/setup-template
Customize this shadcn/ui + Next.js template for a brand-new project — site metadata, typed env schemas, favicon, sitemap, and the Header/Footer layout. Run once right after cloning.From its SKILL.md
npx -y skills add ColourfulMelon/shadcn-template --skill setup-templateAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.9 KB, as published. Nobody here has run it
Set up this template for a new project
Walk the user through turning this starter into their project. Work top-to-bottom; after each step, show the diff and confirm before moving on. Ask for any value you don't have (site name, URL, author, social handle, brand color) instead of guessing.
1. Site metadata — metadata.ts
export const siteMetadata (typed by the SiteMetadata interface) drives Open Graph,
Twitter cards, the oEmbed JSON, <html lang>, and theme color. Replace the placeholder
values:
title,description,siteNameauthor,authorUrltwitterHandle(include the@, or leave''to omit twitter:site/creator)themeColorlight/dark values if they no longer match the site's background colorsimage— the 1200×630 social share image (url,width,height,alt)type,lang,locale,colorSchemeif not the defaults
Leave url: productionUrl alone — it resolves from the environment (step 4).
2. Environment schemas — lib/client-env.ts and lib/server-env.ts
Both are Zod schemas parsed at import time, so a missing/invalid var fails fast.
lib/server-env.ts: add each server-only var toserverEnvSchema(the file isimport 'server-only', so it can never reach the browser).lib/client-env.ts: add eachNEXT_PUBLIC_*var toclientEnvSchemaand to the object passed to.parse({ ... })— Next.js only inlines statically-referencedprocess.env.NEXT_PUBLIC_*, so each one must be listed explicitly.
3. .env
Copy .env.example to .env. Add any new vars from step 2 to both .env and
.env.example (with placeholder values in the example). .env is gitignored; never
commit real secrets.
4. Site URL
The canonical URL is derived from NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL, which
Vercel provides as a hostname. The app prepends https://. Set the hostname in .env
for local development.
5. Favicon & assets — public/
Replace public/favicon.ico. Add the social share image referenced in metadata.ts
(or keep the placehold.co URL until you have one). Remove the ###Add Media Here###
placeholder.
6. Layout — components/Header.tsx and components/Footer.tsx
Replace the placeholder Header/Footer with the real navigation/branding. Keep them as
Server Components unless they need interactivity (then add "use client").
7. Verify
Run and confirm all pass:
pnpm lint # Biome
pnpm typecheck # tsc --noEmit
pnpm build # generates oembed.json + sitemap + robots.txt, then next build
Then delete the "After cloning — to do" checklist from README.md and update the README
to describe the actual project.