agent-guidelines
Installation
SKILL.md
Agent Guidelines & Operational Rules
1. The "Constitution" & Project Identity
Project Name: NextBlock CMS Mandate: Build a premium, Open-Core Next.js CMS. Core Stack: Next.js (App Router), Supabase, Tailwind CSS, Tiptap v3.
Critical Rules
- Strict Separation:
libs/uiandlibs/dbmust be publishable as standalone packages. They cannot depend onapps/nextblock. - Open-Core Model: The core is open-source (AGPL); premium extensions (like E-Commerce) are source-available but license-gated.
- Distribution: Users get a standalone app via
npm create nextblock.
2. Operational Rules (Global Context)
- Context First: Before answering complex questions, always check
docs/ARCHITECTURE.md,docs/README.mdand relevant linked docs. - Strict Types: Always use
strict: trueTypeScript. Noanyunless absolutely unavoidable and documented. - Target the App, Not the Template: NEVER edit files in
apps/create-nextblock/templates/nextblock-templatedirectly. Always make changes inapps/nextblock(the core app). The template is synced from the core app via scripts.