senternet-site-framework

Selects, records, and translates the Vite or Next.js framework track for Senternet marketing sites.

Updated May 8, 2026
One-click install
npx skills add https://github.com/MattSenter/senternet-site-skills --skill senternet-site-framework-mattsenter
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: senternet-site-framework
Source: https://github.com/MattSenter/senternet-site-skills/tree/main/.claude/skills/senternet-site-framework
Command: npx skills add https://github.com/MattSenter/senternet-site-skills --skill senternet-site-framework-mattsenter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Marketing site projects built with AI skills often fail because the framework in use is ambiguous — a Vite-specific step run against a Next.js repo breaks the build. This Skill establishes a single source of truth for which framework track a site runs on, how to detect it in an existing repo, and how to translate every site convention between tracks. ## Core Features & Use Cases - Track Selection Guidance: Provides decision criteria for choosing between the vite track (Vite + React + TypeScript on Firebase Hosting) and the nextjs track (Next.js App Router on Firebase App Hosting). - Automatic Track Detection: Detects the active framework from .site-framework.json, next.config.ts, vite.config.ts, or package.json dependencies, and records the result so later skills never guess. - Convention Translation Map: Maps every site concern — routing, metadata, sitemaps, CSP, env vars, images, deploys — between the two tracks so skill steps written for one track work on the other. - Use Case: Before running any site-building skill on an unfamiliar repo, run this contract first to confirm the framework, write .site-framework.json, and avoid applying Vite-only steps like Puppeteer prerendering to a Next.js project. ## Quick Start Ask the assistant to read the site framework contract and detect which framework track this repository uses before running any other site skill.

Frequently Asked Questions about senternet-site-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between Vite and Next.js for a marketing site?▼

Default to Vite with static prerendering on Firebase Hosting for marketing sites. Choose Next.js on Firebase App Hosting only when you need server rendering, same-codebase API endpoints, per-request logic like geo redirects, or middleware-based nonce CSPs.

How to detect which framework an existing repo uses?▼

Check for .site-framework.json first, then look for next.config.ts or a next dependency for Next.js, or vite.config.ts and a vite devDependency for Vite. If both configs exist with no marker file, stop and ask which is authoritative.

Does Next.js on Firebase App Hosting support monorepos?▼

Yes, but npm, pnpm, or yarn workspaces alone fail to build on App Hosting. A monorepo needs Turborepo or Nx on top, with a root turbo.json, a single lockfile, and the backend root pointed at the app directory.

Can I use Astro or SvelteKit with these site skills?▼

Only the vite and nextjs tracks are implemented. Astro and SvelteKit static builds map onto the vite track, while SSR frameworks map onto nextjs, but each skill's steps must be translated by hand using the convention map.

Why should I not run a Puppeteer prerender step on a Next.js site?▼

Next.js already emits fully rendered HTML through its built-in static rendering, so a Puppeteer prerender pass is redundant. Running Vite-specific steps against a Next.js repo produces worse results than skipping the step entirely.