Agent context library

Production-ready context files for terminal agents.

Copy battle-tested `CLAUDE.md` and `GEMINI.md` scaffolds for real stacks instead of rebuilding the same project memory from scratch on every repo.

12Total templates
8CLAUDE.md
4GEMINI.md
10Playbooks queued
Template directory

Keep the routing logic. Replace the blank page problem.

Choose the template family first, then copy a starting point with enough context to keep the agent productive from the first prompt.

Filter library

Browse every template family without leaving the page.

12 total
CLAUDE.md
Prompt context0 stars

Next.js App Router

Production-ready CLAUDE.md for Next.js 15 App Router with TypeScript, Tailwind, and Server Components.

# Project Overview
Next.js 15 application using the App Router, TypeScript, and Tailwind CSS.

## Tech Stack
#nextjs#react#typescript+1
View Template
CLAUDE.md
Prompt context0 stars

Node.js Microservice

CLAUDE.md for Node.js REST APIs with Fastify, TypeScript, Docker, and OpenAPI documentation.

# Project Overview
Node.js microservice using Fastify, TypeScript, and Postgres. Exposed as a REST API with OpenAPI docs.

## Tech Stack
#nodejs#fastify#typescript+2
View Template
CLAUDE.md
Prompt context0 stars

Monorepo (Turborepo)

CLAUDE.md for Turborepo monorepos with pnpm workspaces, shared packages, and coordinated deploys.

# Project Overview
Turborepo monorepo with pnpm workspaces. Contains multiple apps and shared packages.

## Structure
#monorepo#turborepo#pnpm+1
View Template
CLAUDE.md
Prompt context0 stars

Rust CLI Tool

CLAUDE.md for Rust CLI applications using clap, anyhow error handling, and cargo-dist for releases.

# Project Overview
Rust CLI tool. Binary crate targeting Linux, macOS, and Windows.

## Tech Stack
#rust#cli#cargo
View Template
CLAUDE.md
Prompt context0 stars

Python Data Science

CLAUDE.md for data science projects with pandas, scikit-learn, Jupyter notebooks, and reproducible pipelines.

# Project Overview
Python data science project. Reproducible analysis pipelines with Jupyter notebooks and scikit-learn.

## Tech Stack
#python#data-science#jupyter+2
View Template
CLAUDE.md
Prompt context0 stars

DevOps / Kubernetes

CLAUDE.md for DevOps projects covering Kubernetes manifests, Terraform infrastructure, and CI/CD pipelines.

# Project Overview
Infrastructure-as-code repository. Kubernetes manifests, Terraform modules, and GitHub Actions pipelines.

## Structure
#kubernetes#terraform#devops+1
View Template
CLAUDE.md
Prompt context0 stars

Open Source Library

CLAUDE.md for open source npm or cargo packages with semantic versioning, changelogs, and contributor workflows.

# Project Overview
Open source library published to npm (or crates.io). Community-maintained.

## Conventions
#library#npm#open-source+1
View Template
CLAUDE.md
Prompt context0 stars

Startup MVP

CLAUDE.md for fast-moving startup MVPs — ship-first conventions with quality guardrails that scale.

# Project Overview
Early-stage startup MVP. The goal is to ship fast and validate with real users. Quality matters where it counts.

## Tech Stack
#startup#nextjs#supabase+2
View Template
GEMINI.md
Prompt context0 stars

Python FastAPI

GEMINI.md for Python FastAPI services with Pydantic v2, async routes, and Google Cloud integrations.

# Project Overview
Python FastAPI service. Async REST API with Pydantic v2 validation and optional Google Cloud integrations.

## Tech Stack
#python#fastapi#google-cloud+1
View Template
GEMINI.md
Prompt context0 stars

Go Microservice

GEMINI.md for Go microservices with net/http, structured logging, and Google Cloud Run deployment.

# Project Overview
Go microservice. HTTP API designed for Cloud Run deployment with minimal dependencies.

## Tech Stack
#go#microservice#cloud-run+1
View Template
GEMINI.md
Prompt context0 stars

Flutter Mobile App

GEMINI.md for Flutter applications with Riverpod, Firebase, and Google Play/App Store deployment.

# Project Overview
Flutter mobile application targeting Android and iOS. Firebase backend, Riverpod state management.

## Tech Stack
#flutter#dart#firebase+1
View Template
GEMINI.md
Prompt context0 stars

Django REST API

GEMINI.md for Django REST Framework projects with JWT auth, Celery tasks, and PostgreSQL.

# Project Overview
Django REST Framework API. JWT authentication, async task queue with Celery, PostgreSQL database.

## Tech Stack
#python#django#drf+2
View Template
CLAUDE.md
Prompt context0 stars

Next.js App Router

Production-ready CLAUDE.md for Next.js 15 App Router with TypeScript, Tailwind, and Server Components.

# Project Overview
Next.js 15 application using the App Router, TypeScript, and Tailwind CSS.

## Tech Stack
#nextjs#react#typescript+1
View Template
CLAUDE.md
Prompt context0 stars

Node.js Microservice

CLAUDE.md for Node.js REST APIs with Fastify, TypeScript, Docker, and OpenAPI documentation.

# Project Overview
Node.js microservice using Fastify, TypeScript, and Postgres. Exposed as a REST API with OpenAPI docs.

## Tech Stack
#nodejs#fastify#typescript+2
View Template
CLAUDE.md
Prompt context0 stars

Monorepo (Turborepo)

CLAUDE.md for Turborepo monorepos with pnpm workspaces, shared packages, and coordinated deploys.

# Project Overview
Turborepo monorepo with pnpm workspaces. Contains multiple apps and shared packages.

## Structure
#monorepo#turborepo#pnpm+1
View Template
CLAUDE.md
Prompt context0 stars

Rust CLI Tool

CLAUDE.md for Rust CLI applications using clap, anyhow error handling, and cargo-dist for releases.

# Project Overview
Rust CLI tool. Binary crate targeting Linux, macOS, and Windows.

## Tech Stack
#rust#cli#cargo
View Template
CLAUDE.md
Prompt context0 stars

Python Data Science

CLAUDE.md for data science projects with pandas, scikit-learn, Jupyter notebooks, and reproducible pipelines.

# Project Overview
Python data science project. Reproducible analysis pipelines with Jupyter notebooks and scikit-learn.

## Tech Stack
#python#data-science#jupyter+2
View Template
CLAUDE.md
Prompt context0 stars

DevOps / Kubernetes

CLAUDE.md for DevOps projects covering Kubernetes manifests, Terraform infrastructure, and CI/CD pipelines.

# Project Overview
Infrastructure-as-code repository. Kubernetes manifests, Terraform modules, and GitHub Actions pipelines.

## Structure
#kubernetes#terraform#devops+1
View Template
CLAUDE.md
Prompt context0 stars

Open Source Library

CLAUDE.md for open source npm or cargo packages with semantic versioning, changelogs, and contributor workflows.

# Project Overview
Open source library published to npm (or crates.io). Community-maintained.

## Conventions
#library#npm#open-source+1
View Template
CLAUDE.md
Prompt context0 stars

Startup MVP

CLAUDE.md for fast-moving startup MVPs — ship-first conventions with quality guardrails that scale.

# Project Overview
Early-stage startup MVP. The goal is to ship fast and validate with real users. Quality matters where it counts.

## Tech Stack
#startup#nextjs#supabase+2
View Template
GEMINI.md
Prompt context0 stars

Python FastAPI

GEMINI.md for Python FastAPI services with Pydantic v2, async routes, and Google Cloud integrations.

# Project Overview
Python FastAPI service. Async REST API with Pydantic v2 validation and optional Google Cloud integrations.

## Tech Stack
#python#fastapi#google-cloud+1
View Template
GEMINI.md
Prompt context0 stars

Go Microservice

GEMINI.md for Go microservices with net/http, structured logging, and Google Cloud Run deployment.

# Project Overview
Go microservice. HTTP API designed for Cloud Run deployment with minimal dependencies.

## Tech Stack
#go#microservice#cloud-run+1
View Template
GEMINI.md
Prompt context0 stars

Flutter Mobile App

GEMINI.md for Flutter applications with Riverpod, Firebase, and Google Play/App Store deployment.

# Project Overview
Flutter mobile application targeting Android and iOS. Firebase backend, Riverpod state management.

## Tech Stack
#flutter#dart#firebase+1
View Template
GEMINI.md
Prompt context0 stars

Django REST API

GEMINI.md for Django REST Framework projects with JWT auth, Celery tasks, and PostgreSQL.

# Project Overview
Django REST Framework API. JWT authentication, async task queue with Celery, PostgreSQL database.

## Tech Stack
#python#django#drf+2
View Template
Playbooks are coming in Q2 2026

Playbooks are multi-step agent workflows — not just context files. Each one defines a repeatable process (code review, triage, sprint planning) that different agents execute autonomously.

01
Code Review Playbook

Automated PR review with inline suggestions, coverage checks, and style enforcement.

ETA: Q2 2026
02
PR Description Generator

Auto-generate structured PR descriptions from git diff with impact summary and test plan.

ETA: Q2 2026
03
Bug Triage Playbook

Reproduce, isolate, and document bugs end-to-end with reproduction steps and root cause analysis.

ETA: Q2 2026
04
Architecture Decision Records

Template-driven ADR generation with trade-off analysis and decision log.

ETA: Q3 2026
05
Sprint Planning Assistant

Convert a backlog into sprint-ready tickets with estimates, acceptance criteria, and dependency mapping.

ETA: Q3 2026
06
Security Audit Playbook

Systematic OWASP Top 10 scan with remediation steps and severity ratings.

ETA: Q3 2026
07
Performance Profiling Playbook

Profile, benchmark, and identify bottlenecks across frontend and backend layers.

ETA: Q4 2026
08
Database Migration Playbook

Safe migration workflow with rollback plan, zero-downtime strategies, and validation steps.

ETA: Q4 2026
09
Incident Response Playbook

Structured runbook for on-call incidents: triage, escalation, mitigation, and post-mortem.

ETA: Q4 2026
10
Dependency Upgrade Playbook

Automated changelog review, breaking change detection, and staged upgrade plan.

ETA: Q1 2027
After the template

Context files set the floor. Guides extend the workflow.

Start with a stable project brief, then layer in practical guides when the workflow needs custom tooling, verification, or deeper domain knowledge.

FAQ

Frequently Asked Questions

A CLAUDE.md file is a project-level context file that tells Claude Code how to behave in your repository. It defines coding conventions, project structure, preferred tools, and workflow rules so the agent produces consistent, on-brand output from the first prompt.

Browse the template library, find one that matches your stack (e.g. Next.js, Rust, Python), and copy it into your project root as CLAUDE.md or GEMINI.md. Customise the sections to match your repo's conventions, then start prompting — the agent will follow the context automatically.

CLAUDE.md is read by Claude Code (Anthropic's terminal agent) and GEMINI.md is read by Gemini CLI (Google's terminal agent). Both serve the same purpose — giving the agent project context — but each follows the format conventions of its respective tool.

Yes, every template on CmdBrief is free to copy and use. They are community-contributed and editorially reviewed for quality and completeness.

Playbooks are multi-step agent workflows coming in Q2 2026. Unlike static context files, playbooks define repeatable processes — such as code review, bug triage, or sprint planning — that AI agents execute autonomously from start to finish.