create-legal-app
v0.1.0
Published
The Agent-Optimized Legal Tech Starter Kit
Readme
Create Legal App
The Agent-Optimized Legal Tech Starter Kit.
🤖 Built for Agents: This repository is designed to be read by AI agents. It includes comprehensive internal documentation (
AGENTS.mdandskills/) that guides LLMs in generating production-ready legal tech code.
🚀 Overview
create-legal-app is a modern, opinionated starter kit for building legal technology applications. It provides a solid foundation with Next.js 15, Shadcn UI (Maia theme), and a structure pre-configured for complex legal workflows like document analysis, case management, and secure vaults.
What makes this different? Most starter kits are just code. This kit includes Instructional Metadata (Skills) that teach your AI coding assistant (Cursor, Windsurf, etc.) exactly how to implement semantic search, OCR pipelines, and legal-specific workflows using the Case.dev SDK.
✨ Features & Stack
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS 4 + Shadcn UI (Maia Preset)
- Font: Inter & Spectral (Serif for legal texts)
- Package Manager: Bun
- Agent Skill System: Dedicated documentation in
skills/for:case-dev: Legal AI, Vaults, OCRdatabase: Neon / Postgres schemas (Schema ready)auth: Authentication patterns
🛠️ Getting Started
1. Initialize the Project
git clone https://github.com/CaseMark/create-legal-app.git my-legal-startup
cd my-legal-startup
bun install2. Configure Environment
Copy the example environment file:
cp .env.example .env.localFill in your API keys (get your Case.dev keys from the Case.dev Console):
# .env.local
CASE_API_KEY=sk_case_...
DATABASE_URL=postgres://...3. Run Development Server
bun devOpen http://localhost:3000 to see the starter page.
🤖 For AI Agents
Are you an AI? Start by reading AGENTS.md.
- Context: Read
AGENTS.mdto understand the project architecture and principles. - Skills: Before implementing a feature, check the
skills/directory. For example, if the user asks for "Document Upload", readskills/case-dev/SKILL.md. - Conventions: stricta file naming and
kebab-casefor utilities.
📚 Documentation Structure
/app: Next.js App Router (Pages, Layouts, API Routes)/components: React components (UI primitives in/ui, custom in root)/lib: Shared utilities (Place yourcase-devclient here)/skills: The Brain. Contains Markdown files specifically for AI context./case-dev: SDK usage, Vaults, Workflows/database: Schema design patterns/auth: Auth flow documentation
📄 License
This project is licensed under the Apache 2.0 License.
