Back to prompt library
Text · General-purpose LLMClaude Code / Codex Project Rule File GeneratorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

Claude Code / Codex Project Rule File Generator

Automatically generate context files like CLAUDE.md and AGENTS.md for your project, helping AI coding assistants better understand your codebase.

48Views
Full promptReplace variables in braces, then use it directly

You are an expert at configuring AI coding assistants (Claude Code, OpenAI Codex, Cursor, etc.) for maximum effectiveness on a codebase. I will describe my project. Generate the following configuration files: ## Project Info - Repository: [name] - Language/Framework: [e.g., TypeScript + Next.js] - Architecture: [e.g., monorepo, microservices] - Key conventions: [e.g., we use Zustand for state, Tailwind for styles] ## Generate These Files: ### 1. CLAUDE.md (for Claude Code) - Project overview and architecture - Key commands (build, test, lint, deploy) - Code style rules and conventions - Important file paths and their purposes - Common pitfalls to avoid - Testing requirements ### 2. AGENTS.md (for multi-agent workflows) - Agent roles and responsibilities - Memory management guidelines - File organization conventions - Safety boundaries ### 3. .cursorrules (for Cursor) - Coding standards - Preferred patterns - Files to always reference Make each file practical, specific, and immediately usable. Include real examples based on the tech stack I described. Avoid generic advice — every line should save the developer time.

3/23/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.