Multi-model / General prompts
Prompts that work across models: frameworks, patterns and habits for getting better answers from any AI.
-
Master Prompt to Generate AGENTS.md From Scratch
Use this meta-prompt to inspect any existing codebase and synthesize a clean, hand-curated AGENTS.md that respects every constraint in the 2026 coding config specification. …
-
Cursor Security Rules for Auth Directories
Configure a .cursor/rules/security-auth.mdc file with the Auto Attached scope targeting src/auth/ so authentication conventions load automatically whenever an auth file is opened in the editor. File: .cursor/rules/securi
-
Agent Persistence With Build and Typecheck Verification
Pair GPT-4.1 and Gemini 3's agentic persistence directives (keep going until the query is completely resolved and verified) with the build and type-check commands in AGENTS.md. …
-
Subdirectory Override Hierarchy in Codex CLI and Claude Code
Both Codex CLI and Claude Code load configuration files hierarchically from the project root down to the working directory, where nearer subdirectory rules override higher-level rules. Use subdirectory AGENTS.md or CLAUD
-
Windsurf Manual @ Rule Activation
Use Windsurf's Manual activation scope (triggered via @ mention in prompts) for specialized workflows like release checklists so they do not consume your 12,000-character combined active rule budget during normal coding.
-
AGENTS.md Fallback for Open-Source Repos
Because Claude Code automatically falls back to reading AGENTS.md if no CLAUDE.md is present, and Codex CLI, Cursor, Continue.dev, Aider, and OpenHands all support AGENTS.md natively, shipping a single well-crafted ./AGE
-
Prevent Stale Agent Instructions After a Stack Update
DeployHQ's guide emphasizes that incorrect context is worse than no context: always update your AI configuration files immediately when changing your tech stack or build tooling. …
-
Mathstral 7B: Mathematical Computation Prompts
For open-source mathematical computations, Mistral offers Mathstral 7B. Prompt it with explicit step-by-step derivation formatting and low temperature (0.1–0.2). …
-
Document Non-Obvious Conventions for AI Coding Agents
Use your config file to state critical, non-obvious conventions the AI might miss from looking at a single file: named vs. default exports, standard API response shapes, migration file locations, and environment variable
-
Map a Monorepo in AGENTS.md
Provide a high-level mapping of directories in AGENTS.md—especially for monorepos—separating apps, shared packages, and infrastructure. …
-
Pin Your Tech Stack and Versions in Agent Rules
Including your exact framework, language, styling tools, database, and deployment target versions in AGENTS.md or CLAUDE.md prevents the AI from guessing legacy syntax. …
-
GitHub Copilot Prompt Files in .github/prompts
Keep single-use task instructions out of persistent config files and store reusable workflows in a custom prompts/ folder inside the dot directory so you can trigger them manually in chat via @prompts/my-custom-workflow.
-
Cursor Model Decision Scope: Prevent Context Bloat
Use Cursor's Model Decision activation scope with a clear rule description so specialized rules are loaded only when the AI determines the task requires them. File: .cursor/rules/chart-components.mdc (Scope: Model Decisi
-
Windsurf Rules Character Limits: 6,000 and 12,000
Windsurf's .windsurf/rules/ directory (supporting Always On, Manual via @, or Model Decision scopes) enforces strict character limits: a maximum of 6,000 characters per individual rule file and 12,000 characters for tota
-
Migrate .cursorrules to .cursor/rules MDC Files
While Cursor supports a legacy root .cursorrules file, the recommended format is the .cursor/rules/ directory containing .mdc (Markdown+) files generated via /rules. Configure each .mdc file with one of four activation s
-
Keep CLAUDE.md Under 300 Lines With AGENTS.md
Because Claude Code's system prompt already consumes 50 instructions of the model's 150–200 instruction budget, keep CLAUDE.md under 300 lines. Maintain AGENTS.md (supported by Codex CLI, Cursor, Claude Code as fallback,
-
Coding Agent Instruction Limit: Stay Under 150-200
DeployHQ's guide notes that frontier LLMs reliably follow only around 150–200 instructions total, and configuration files over 500 lines risk instruction drift or truncation. Exclude code formatting rules (indentation, t