⚡ PromptLoot

Home › Coding & Cursor Rules

Coding & Cursor Rules templates

Rules files and prompts for Cursor, Claude Code, and vibe coding.

Cursor Rules for Next.js + TypeScript

A .cursorrules file that keeps Cursor writing clean, typed Next.js App Router code.

Cursor Rules for Python Projects

Rules that make AI editors write typed, tested, modern Python.

Vibe Coding Project Kickoff Prompt

Turn a fuzzy app idea into a scoped plan before the AI writes any code.

Debug Any Error Prompt

Paste an error and get the root cause, a fix, and a way to prevent it.

AI Code Review Prompt

Get a senior-engineer style review of a diff or file.

Generate Unit Tests Prompt

Get thorough unit tests, including edge cases, for any function.

Explain This Codebase Prompt

Onboard yourself to an unfamiliar repo fast.

Safe Refactor Prompt

Refactor messy code without changing behavior.

AGENTS.md Starter Template for Claude Code, Codex & Cursor

A drop-in AGENTS.md (or CLAUDE.md) that tells coding agents how your repo works, how to verify changes, and what never to touch.

One Rules File for Claude Code, Codex, Cursor & Gemini

Stop CLAUDE.md, AGENTS.md, GEMINI.md, and Cursor rules drifting apart: one AGENTS.md source of truth plus tiny pointer files for every agent.

Cursor Rules Not Working? .mdc Fix Checklist + Starter Rules

Why Cursor ignores your rules (plain .md files, missing frontmatter, wrong globs) plus a correct .mdc starter pack you can copy into .cursor/rules/.

Audit Untrusted AGENTS.md, CLAUDE.md & SKILL.md Files

Security checklist prompt: scan an untrusted AGENTS.md, CLAUDE.md, .cursor rule, or agent skill for hidden installs, exfiltration, and prompt injection before Claude Code or Codex follows it.

Lean CLAUDE.md: Trim a Bloated Rules File to 40 Lines

Your agent ignores half of a long CLAUDE.md or AGENTS.md. This prompt cuts it to a lean core (stack, commands, a few never-do rules) and moves the rest into imported files.

Remove-and-Add-Back Test for CLAUDE.md & AGENTS.md Rules

Find out which rules in your CLAUDE.md, AGENTS.md, or Cursor rules actually change what the agent does: strip them, rerun real tasks, and add back only the rules that earn their place.

Generate AGENTS.md or CLAUDE.md From Your Repo

A prompt that makes your coding agent read the repo, ask only what it can't find out, run every command it plans to write down, and save a short, accurate AGENTS.md or CLAUDE.md.

Design SKILL.md: Stop Your Vibe-Coded Site Looking AI-Made

A SKILL.md you drop into Claude Code, Codex, or Cursor so AI-built landing pages stop looking generic: a real design system, banned defaults, and a self-review before it ships.

Vibe-Coded App Security Review: Keys, Auth, RLS & Limits

Security pass for apps built with AI coding agents: exposed API keys, browser-only logic, missing auth checks, Supabase RLS gaps, and missing rate limits.

This Codebase Is Yours: Ownership Rules for Coding Agents

Rules-file lines that tell Claude Code, Codex, or Cursor it owns the code, so it edits and removes code instead of bolting on duplicate functions and wrappers.

Rules File Drift Check: Is Your AGENTS.md Lying to the Agent?

A prompt that checks CLAUDE.md, AGENTS.md, GEMINI.md, and Cursor rules against the real code and against each other, and flags stale or contradictory lines before your agent follows them.

Wireframe-First UI Brief: Plan Screens Before Vibe Coding

A prompt that has Claude Code, Cursor, Codex, or Lovable sketch rough text wireframes and screen states first, so you pick a layout before any code locks it in.

DESIGN.md UI Rules: Stop Agents Reverting Your Layout Fixes

A DESIGN.md and rules block that records locked UI decisions, so Claude Code, Codex, and Cursor stop undoing alignment, spacing, and style fixes you made.

Graduate a Vibe-Coded Prototype: Production Readiness Prompt

Turn a vibe-coded app or internal tool people now rely on into maintainable software: a spec from real behavior, tests, monitoring, backups, and an owner.

One-Page Product Spec: Write It Before the First AI Prompt

A fill-in one-page spec with a worked booking-app example, so Claude Code, Cursor, Codex, or Lovable builds what you meant, not just what you typed.

Check Current Docs First: Stop Agents Using Outdated APIs

Rules that make Claude Code, Cursor, and Codex check your installed versions and current docs before calling any API, cite the version, and flag deprecations.

Minimal Diff Rules: Stop AI Agents Rewriting Unrelated Code

Rules for Claude Code, Cursor, and Codex: change only what you asked, no drive-by renames, refactors, or reformatting, and list every changed file.

More categories: AI Agents · Gaming · Content & Social · Business

Sponsor this page · Reach builders who use AI daily. Get details

Get 3 new templates every week

Free. Unsubscribe anytime.