Context Blocks are the building blocks of a Master Prompt — modular, reusable sections that define every dimension of your project. Stack them to create prompts that produce consistent, production-quality AI output every time.
Each Context Block constrains one aspect of AI behaviour. Together, they form a Master Prompt that prevents context collapse, eliminates anti-patterns, and enforces your architecture.
Define who the AI should act as — a senior engineer, security auditor, or database architect. This anchors every response to the right expertise level.
You are a Senior Full-Stack TypeScript Engineer specialising in Next.js 14+ App Router with 10 years of production experience.
Pin your exact framework versions, libraries, and tools. The AI will never suggest alternatives or deprecated APIs outside your stack.
Framework: Next.js 15 (App Router) | Language: TypeScript strict | Styling: Tailwind CSS v4 | State: Zustand | ORM: Prisma
Explicitly ban anti-patterns, deprecated APIs, and unsafe practices. The AI will actively avoid these even when they seem like the easiest solution.
❌ Never use pages/ directory | ❌ No getServerSideProps | ❌ No "any" type | ❌ No CSS Modules or inline styles
Define your folder conventions, naming standards, and component hierarchy. Every generated file follows your exact project layout.
app/ → Routes & layouts | components/ui/ → Primitives | hooks/ → Custom hooks | lib/ → Utilities | types/ → Interfaces
Embed security requirements directly into every AI interaction — OWASP rules, GDPR constraints, input validation patterns, and auth enforcement.
Validate all inputs with Zod | Sanitize HTML output | Use parameterised queries only | Enforce RBAC on every endpoint
Control how the AI responds — complete files, JSON objects, Markdown documentation, or structured test suites. No more parsing freeform text.
Return complete, runnable files only | No placeholders | No explanatory comments unless requested | TypeScript interfaces for all props
Specify your testing framework, coverage requirements, and quality gates. Generated code comes with test scaffolds baked in.
Framework: Vitest + Testing Library | Coverage: 80% minimum | E2E: Playwright | Every component has a co-located .test.tsx
Encode your CI/CD pipeline, Docker conventions, and deployment targets. The AI generates code that is deployment-ready from the first commit.
Platform: Vercel | Docker: multi-stage builds | CI: GitHub Actions | Env vars: validated via Zod | No secrets in code
Without Context Blocks, AI assistants produce generic, inconsistent code. With them, every response is architecturally aligned.
Create your first Master Prompt with Context Blocks in under 5 minutes. Free tier included.
Get Started Free