AI Prompts, Rules & Model Context Protocol Templates
Production-ready .cursorrules guidelines, CLAUDE.md developer instructions, Model Context Protocol (MCP) server stacks, and OpenAI structured output schemas.
Production .cursorrules Specification for Full-Stack TypeScript
Hardened, battle-tested .cursorrules for Next.js, TypeScript, Tailwind CSS, and SQLite with strict code invariants.
# .cursorrules - Production Full-Stack TypeScript Guidelines
You are an expert principal software engineer specializing in TypeScript, Next.js, Tailwind CSS, and SQLite.
## Code Quality & Architecture Invariants
- Prefer explicit types over any....
Claude Code & AI Assistant Instructions (CLAUDE.md)
Standardized CLAUDE.md developer guide with build steps, testing guidelines, code architecture, and style conventions.
# CLAUDE.md - Development & Project Guidance
This file provides architectural guidelines and operational instructions for Claude Code and autonomous agent assistants working in this repository.
## Commands & Workflows
- Development Server: npm run...
Model Context Protocol (MCP) Server Docker & SSE Setup
Production Docker Compose and configuration for hosting an MCP server over Server-Sent Events (SSE).
version: '3.8'
services:
mcp-server:
image: node:20-alpine
container_name: mcp-knowledge-server
restart: unless-stopped
working_dir: /app
environment:
- NODE_ENV=production
- PORT=8080
- MCP_TRANSPORT=sse
...
OpenAI & Anthropic Strict Structured Outputs JSON Schema
Strict JSON Schema definitions for LLM function calling, data extraction, and deterministic JSON responses.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExtractedTechnicalSnippet",
"type": "object",
"additionalProperties": false,
"required": ["title", "language", "code", "explanation", "tags", "confidence_score"],
...
PostgreSQL with pgvector & Redis RAG Embedding Stack
Docker Compose configuration with PostgreSQL 16, pgvector extension, HNSW indexing, and Redis cache for AI embeddings.
version: '3.8'
services:
pgvector-db:
image: pgvector/pgvector:pg16
container_name: postgres-pgvector
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-vector_user}
POSTGRES_PASSWORD:...