Config prompts
# Project rules [ONE SENTENCE: what this project is and who uses it.] ## Stack - [FRAMEWORK + VERSION] - [LANGUAGE + STRICTNESS, e.g. "TypeScript, strict mode"] - [DATABASE / ORM] - Package manager: [pnpm / npm / uv / cargo]. Use it; do not switch. ## Commands - Install: `[COMMAND]` - Dev: `[COMMAND]` - Typecheck: `[COMMAND]` - Test: `project.md
Windsurf Rules Template
A workspace rules file for Windsurf and Cascade: stack facts, verification commands, and the boundaries the agent must not cross.
# [PROJECT NAME] [One sentence: what this is, who uses it, and what it must never get wrong.] ## Stack and versions - [LANGUAGE + VERSION] - [FRAMEWORK + VERSION] - [DATABASE, QUEUE, KEY SERVICES] Check the manifest ([package.json / pyproject.toml / go.mod]) before assuming a library is available. Your memory of a library's API is a hyGEMINI.md
GEMINI.md Template
A context file for Gemini CLI and Gemini Code Assist: project facts, commands, conventions, and explicit limits on what the agent may do.
--- name: Plain technical description: Terse engineering reports. Answer first, evidence attached, unverified claims labeled. --- Report like an engineer handing work to a colleague who will be paged if it breaks. # Answer first Lead with the result or the direct answer. Context comes after, and only when it changes what the reader wouplain-technical.md
Claude Code Output Style
An output style that makes a coding agent report like a senior engineer: what changed, what was verified, what is still unproven.
--- description: Review a pull request and report severity-ranked findings argument-hint: <pr-number-or-url> allowed-tools: Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checks:*), Read, Grep, Glob --- Review pull request $1. ## Gather 1. `gh pr view $1` for the description, and `gh pr diff $1` for the changes. 2. `gh pr checks $1pr-review.md
PR Review Slash Command
A /pr-review command that fetches a pull request, reviews it against the repo's real conventions, and posts findings with severity.
# Project: [APP NAME] [One sentence: what this app is and who uses it.] ## Commands - Dev server: `pnpm dev` - Type check: `pnpm typecheck` - Tests: `pnpm test` (single file: `pnpm test path/to/file.test.ts`) - Lint + format: `pnpm lint` Always run typecheck and the relevant tests before declaring a change done. ## Architecture - [FRACLAUDE.md
CLAUDE.md Template for Web Apps
A battle-tested CLAUDE.md starting point for TypeScript web apps: commands, conventions, and guardrails Claude Code actually follows.
# AGENTS.md ## Setup ```bash [INSTALL COMMAND, e.g. pnpm install] [ENV SETUP, e.g. cp .env.example .env] ``` ## Verify your changes Run these before finishing any task: a task is not done if any of them fail: ```bash [TYPECHECK COMMAND] [TEST COMMAND] [LINT COMMAND] ``` ## Project rules - [MOST IMPORTANT CONSTRAINT, e.g. "All API routeAGENTS.md
Minimal AGENTS.md Template
A lean AGENTS.md that works across Codex, Cursor, Copilot, and Gemini CLI: setup, verification, and the rules agents break most.
--- description: TypeScript + React conventions for this codebase globs: ["**/*.ts", "**/*.tsx"] alwaysApply: true --- - Use TypeScript strict mode idioms: no `any`, no non-null assertions (`!`), narrow with type guards instead. - React components are function declarations, props typed inline or with an interface directly above the compotypescript-react.mdc
Cursor Rules for TypeScript + React
A focused .cursor/rules file that stops the most common Cursor mistakes in TypeScript React codebases without bloating context.
--- description: Create a conventional commit from staged changes allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git commit:*) argument-hint: [optional extra context for the message] --- ## Context - Current status: !`git status --short` - Staged changes: !`git diff --staged` - Recent commit style: !`git logcommit.md
/commit Slash Command
A Claude Code /commit slash command that reads the staged diff, writes a conventional commit message, and can't touch anything but git.
# Copilot instructions for [PROJECT NAME] [One sentence: what this project is.] ## Stack - [LANGUAGE + VERSION, FRAMEWORK + VERSION, e.g. "TypeScript 5, Next.js 16 App Router, Tailwind 4"] - [DATABASE/ORM, e.g. "Postgres via Drizzle: schema in db/schema.ts"] - [TEST RUNNER, e.g. "vitest; tests live next to source as *.test.ts"] ## Howcopilot-instructions.md
Copilot Instructions Template
A .github/copilot-instructions.md that gives GitHub Copilot your stack, conventions, and boundaries in the short, explicit form it follows best.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"[/absolute/path/this/server/may/access]"
]
},
"postgres-readonly": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
.mcp.jsonMCP Server Config Template
An annotated .mcp.json covering both stdio and HTTP transports, environment-variable secrets, and the mistakes that break MCP setups.
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path // empty' | xargs -r npx prettier --write --ignore-unknown"
}
]
}
],
"PreToolUse": [
{
"matcher": "Edisettings.jsonClaude Code Hooks Template
The two highest-value Claude Code hooks: auto-format every file the agent edits, and hard-block edits to paths that must never be touched.
--- description: Python + FastAPI conventions for this codebase globs: ["**/*.py"] alwaysApply: false --- - Python 3.12+ idioms: type hints on every function signature (parameters and return), | unions over Optional, pathlib over os.path, f-strings over format(). - FastAPI routes: async def by default; use sync def ONLY for CPU-bound worpython-fastapi.mdc
Cursor Rules for Python + FastAPI
A scoped .mdc rules file for FastAPI codebases: Pydantic v2 discipline, async correctness, and the mistakes AI assistants actually make in Python.
--- description: Fix a GitHub issue end to end, implement, verify, and open a PR argument-hint: [issue-number] [optional extra context] allowed-tools: Bash(gh issue view:*), Bash(gh pr create:*), Bash(git checkout:*), Bash(git add:*), Bash(git commit:*), Bash(git push:*) disable-model-invocation: true --- ## Context - Issue: !`gh issuefix-issue.md
/fix-issue Slash Command
A Claude Code slash command that takes a GitHub issue number and runs the full loop: read, locate, implement, test, and open a PR that closes it.
# ROOT FILE: AGENTS.md at the repository root: # [MONOREPO NAME] [One sentence: what this monorepo contains, e.g. "pnpm workspace: customer web app, public API, and shared packages."] ## Map - `apps/web` ([Next.js customer app]) has its own AGENTS.md - `apps/api` ([Fastify service]) has its own AGENTS.md - `packages/ui`: [shared componAGENTS.md
AGENTS.md for Monorepos
The root + per-package AGENTS.md pattern for monorepos: nearest-file-wins scoping that keeps agent instructions relevant to the code being edited.