OpenGemini Next.js Bestpractice Builder
by @hiromps
Build and document a solo SaaS project using a fixed Next.js/Tailwind/Prisma stack, with FastAPI only for Python workloads and strict architecture rules.
clawhub install opengemini-next-js-bestpractice-builder๐ About This Skill
name: opengemini-nextjs-bestpractice-builder description: Build opinionated SaaS projects for solo developers with OpenClaw as orchestrator and Gemini CLI as planning and generation copilot, using a fixed best-practice stack: Next.js App Router, Tailwind, shadcn/ui, Neon PostgreSQL, Prisma 6, Clerk, Resend, Stripe, Cloudflare R2, PostHog, Sentry, Vercel, and FastAPI only for Python-required workloads. Use when the user wants to brainstorm, define, scaffold, document, structure, or implement a SaaS with this exact stack and project layout.
Purpose
ๅบๅฎในใฟใใฏใฎๅไบบ้็บSaaSใใใใฌใชใ่จญ่จใจๅฎ่ฃ ใซใผใซใง็ซใกไธใใใ ๆ่ก่ชฌๆใงใฏใชใใๅฎ่ฃ ๆใฎ่กๅๅบๆบใจใใญใธใงใฏใๆง้ ใๅผทๅถใใใใใฎ SkillใUse when
Do not use when
Project assumptions
Rules
GEMINI.md ใซ source of truth ใๆ่จใใWorkflow
1. product goal ใจ MVP ใๆด็ใใ 2.references/project-bootstrap-checklist.md ใ็ขบ่ชใใ
3. scripts/bootstrap_tree.sh ใง็ๆณๆงๆใไฝใ
4. scripts/generate_gemini_md.sh ใง GEMINI.md ใไฝใ
5. scripts/generate_project_docs.sh ใง docs ใ็ๆใใ
6. docs ใ source of truth ใซใใฆๅฎ่ฃ
ใธ้ฒใ
7. project-level skills ใๅฟ
่ฆใซๅฟใใฆ่ฃๅผทใใChecklist
GEMINI.md ใใใใdocs/requirements.md ใใ docs/db-schema.md ใพใงๆใฃใฆใใใskills/*/SKILL.md ใๅ
ฑ้ใใณใใฌใผใใซๆฒฟใฃใฆใใใCommon pitfalls
Output expectations
GEMINI.mdSource of truth order
When generating or updating project files, treat these as the source of truth in order:
1. docs/requirements.md
2. docs/scope.md
3. docs/architecture.md
4. docs/conventions.md
5. docs/decisions/*.md
6. docs/notes/brainstorming.md is reference only
Fixed stack policy
Backend boundary
Default backend logic lives in Next.js route handlers or server actions. FastAPI exists only for AI, batch jobs, heavy processing, or Python-specific integrations.
Never do
Target project structure
Generate or align toward this structure:
my-saas/
โโ GEMINI.md
โโ src/
โ โโ app/
โ โโ components/
โ โโ features/
โ โโ lib/
โ โโ server/
โ โโ hooks/
โ โโ types/
โโ backend/
โ โโ fastapi/
โ โโ app/
โ โโ tests/
โ โโ pyproject.toml
โโ prisma/
โ โโ schema.prisma
โ โโ migrations/
โ โโ seed.ts
โโ public/
โโ tests/
โ โโ unit/
โ โโ integration/
โ โโ e2e/
โโ docs/
โ โโ requirements.md
โ โโ scope.md
โ โโ architecture.md
โ โโ conventions.md
โ โโ integrations.md
โ โโ db-schema.md
โ โโ decisions/
โ โโ notes/
โ โโ brainstorming.md
โโ .gemini/
โ โโ commands/
โโ skills/
โ โโ nextjs/SKILL.md
โ โโ clerk/SKILL.md
โ โโ prisma/SKILL.md
โ โโ shadcn/SKILL.md
โ โโ stripe/SKILL.md
โ โโ resend/SKILL.md
โ โโ posthog/SKILL.md
โ โโ sentry/SKILL.md
โ โโ r2/SKILL.md
โ โโ fastapi/SKILL.md
โ โโ api-security/SKILL.md
โ โโ vercel/SKILL.md
โโ scripts/
What this skill should produce
For a new project, aim to create at least:
GEMINI.mddocs/requirements.mddocs/scope.mddocs/architecture.mddocs/conventions.mddocs/integrations.mddocs/db-schema.mddocs/notes/brainstorming.mdprisma/schema.prismasrc/backend/fastapi/.env.exampleReferences
Read when needed:
references/doc-templates.mdreferences/integration-rules.mdreferences/project-bootstrap-checklist.mdreferences/project-skill-template.mdPublish readiness notes
This skill is strongest when used with Gemini CLI plus OpenClaw file and shell control, and optionally ACP for large implementation loops.
The project-level skills/*/SKILL.md files should be implementation policies, not generic framework notes.
Before publishing or using this for a real project, verify:
skills/*/SKILL.md files follow the shared template shape