Open source · Works with every AI coding tool

Your AI is smart. It just doesn't know your project.

One file that tells every AI your stack, your patterns, your rules—before it writes a single line. Switch tools anytime. Your spec follows.

$npx codespec init
Get Early Access

Claude Code · Cursor · Windsurf · Continue.dev · any MCP-compatible tool

.codespec.yaml
spec:
  name: my-saas
  version: "1.0.0"

stack:
  languages: [TypeScript]
  frameworks: [Next.js 16, React 19]
  databases: [PostgreSQL 18]

patterns:
  - name: Server-side auth
    applies_to: "**/*.ts"
    rule: Always validate auth server-side

constraints:
  - name: No any types
    severity: error
    rule: Never use TypeScript 'any'

The real cost

AI writes fast. It also forgets fast.

Every new session is amnesia. Your AI builds a React form with client-side auth—when you decided on server-side three weeks ago. The code works. It just doesn't match anything else in your project.

Boilerplate, every session

You paste the same context, same rules, same "don't use any types" message. Every. Single. Time.

Brand? What brand?

Your landing page says one thing. Your dashboard says another. AI doesn't know your voice, colors, or tone.

Security as an afterthought

Vibe coders ship fast. Auth on the client. Secrets in the repo. No RLS. The AI didn't know any better.

Context windows aren't free

Pasting your system prompt eats tokens. That's your money and your context window — gone before you start.

Current workarounds — all broken

.cursorrulesCursor-only. Switch tools and it's gone.
CLAUDE.mdClaude-only. Freeform text, no structure.
System promptsManually pasted. Eats your context window.

The gap: LLMs are brilliant at writing code. They're terrible at knowing your standards. CodeSpec is the spec layer that travels with you—regardless of which AI you use tomorrow.

The format

One YAML file. Infinite AI sessions.

Check .codespec.yaml into your repo. Your stack, rules, brand, and architecture decisions auto-load into every AI tool that supports MCP. No pasting. No forgetting.

stack

No more “we use Next.js, not Remix” corrections.

stack:
  languages: [TypeScript]
  frameworks: [Next.js 16, React 19]
  databases: [PostgreSQL 18 + RLS]
  tools: [Tailwind, shadcn/ui]

patterns

Your architecture rules, enforced before a line is written.

patterns:
  - name: Server-side auth
    applies_to: "**/*.ts"
    rule: >
      Always validate auth server-side.
      Never check auth client-side.

constraints

Guardrails the AI cannot cross. Period.

constraints:
  - name: No any types
    severity: error
    rule: No TypeScript 'any'
  - name: Auth required
    severity: error
    rule: All API routes check auth

decisions

Why you chose Supabase. Why server components. It's all here.

decisions:
  - date: "2026-01-15"
    decision: Use Supabase RLS
    reason: Prevents client bypass
  - date: "2026-02-01"
    decision: Server Components
    reason: Better SEO, less JS

brand + inject

Consistent voice, consistent colors. Every page, every component, every AI session.

brand:
  voice: Professional, direct, no jargon
  colors:
    primary: "#1A56DB"
    secondary: "#0E7C3A"

inject:
  - files: "src/app/**/page.tsx"
    context: >
      Use Server Components by default.
      Fetch data server-side, pass as props.

How it works

Set up once. Never explain again.

60 seconds to configure. Every AI session after that starts with full project context—automatically.

1

Describe your project

Run the wizard. Pick a starter spec or write your own in 5 minutes.

$ npx codespec init

? Preset: Next.js + Supabase
? Add brand section: Yes

✓ Created .codespec.yaml
2

Connect once

Add one line to your AI tool's config. That's it. MCP handles the rest.

// claude_desktop_config
{
  "mcpServers": {
    "codespec": {
      "command": "codespec-mcp"
    }
  }
}
3

Build with confidence

Ask for anything. The AI already knows your rules. No boilerplate. No re-explaining.

> Add a payments page

Using Stripe (per your spec).
Server-side auth via middleware.
shadcn/ui components. Your brand.

✓ Matches your project spec

Why CodeSpec

Not locked to one tool. Ever.

Use Claude today, Cursor tomorrow, something new next month. Your project spec doesn't care. It works everywhere.

Auto-injects via MCP

Your AI reads the spec before you type a word. Stack, patterns, constraints, brand—all there, automatically.

CLI in 60 seconds

Init wizard, validation, and export. Pick a starter spec or build your own from the terminal.

Tool-agnostic

Not a Cursor plugin. Not a Claude extension. An open standard that works with any MCP-compatible AI.

Stack & extend

Start with a community spec. Layer your overrides on top. Security baseline + SaaS starter + your brand = done.

No account needed

Works entirely offline. A YAML file in your repo—that's the whole thing. Cloud sync is optional for teams.

Fully open source

MIT-licensed server and CLI. The spec format is CC BY 4.0. No vendor lock-in, no surprises.

Spec marketplace

Skip the architecture phase

Battle-tested specs built by developers who've shipped. Install one, customize it, and your AI writes production-grade code from session one. Free community specs for everyone—premium specs included with Pro.

nextjs-saas-starter

by CodeSpec

Free

App Router, server auth, Stripe integration, Supabase RLS. Skip weeks of boilerplate decisions.

Next.jsSupabaseStripe

fastapi-backend

by CodeSpec

Free

SQLAlchemy, Alembic migrations, JWT auth, structured logging. Production-grade from line one.

PythonFastAPIPostgreSQL

security-baseline

by CodeSpec

Free

Server-side auth, input sanitization, OWASP rules, webhook verification. The spec your vibe-coded app needs.

SecurityAuthOWASP

react-native-mobile

by Community

Pro

Typed navigation, offline-first sync, platform-specific patterns. Stop the AI from writing web code for mobile.

React NativeExpo

soc2-compliance

by SecureKit

Pro

Audit logging, encryption standards, access control rules. Pass your audit without hiring a consultant.

ComplianceEnterprise

shopify-storefront

by Community

Pro

Hydrogen + Oxygen patterns, Shopify API standards, checkout flow constraints. E-commerce without the guesswork.

ShopifyE-commerce
Stack SpecsSecurity SpecsBrand SpecsDomain SpecsCompliance Specs

More specs added every week. Request one in our community.

Pricing

The core is free. Seriously.

The spec format, MCP server, and CLI are open source and free forever. Pro adds smart alerts—like knowing when Next.js ships a new version while your spec still references the old one—plus cloud sync and unlimited projects.

Free

$0forever

Everything you need to start. No card required.

  • 3 projects
  • All free community specs
  • MCP server (full, no limits)
  • CLI tool (full, no limits)
  • Offline-first, no account needed
Get Started

Pro

$14/mo

Unlimited projects, smart alerts, and cloud sync.

  • Unlimited projects
  • All premium marketplace specs
  • Security vulnerability alerts
  • Version update notifications
  • Auto-suggestions on your specs
  • Cloud sync across devices
  • Private specs
  • Share with up to 3 people
Join Waitlist

Team

$39/mo

Enforce standards across your entire team.

  • Everything in Pro
  • 10 team members
  • Shared team spec registry
  • Team-wide security alerts
  • Dependency update dashboard
  • Role-based access control
  • Audit logs
Join Waitlist

Enterprise

Custom

SSO, compliance, and dedicated support.

  • Everything in Team
  • Unlimited members
  • SSO / SAML
  • Custom security policies
  • On-premise registry
  • Dedicated CSM + SLA
Contact Sales

Your AI is ready.
Give it the playbook.

Early access is opening soon. Be the first to stop re-explaining your codebase.

No spam. Just launch updates and early access.