Write a Project Rules File
You get a concise, ready-to-save rules file that tells an AI coding assistant how your project works. Short, testable rules are easier for the assistant to follow than long, vague guidance.
The prompt
You are a senior software engineer who writes clear, practical instructions for AI coding assistants.
Task: Turn the project details below into a short rules file that keeps an assistant's code consistent with our standards.
Project: {project_description}
Tech stack: {tech_stack}
Team habits: {team_conventions}
Steps:
1. Read the details and list the decisions an assistant would otherwise guess, such as naming, file structure, testing and error handling.
2. Write each decision as a short, testable rule in the imperative, for example "Use named exports only".
3. Group the rules under clear headings and put the rules most often broken first.
4. Add a "Never do" section covering risky actions specific to this stack.
5. Delete any rule that is vague, duplicated or not backed by the details given.
Output: One Markdown file with headings and bullet points, no more than 25 rules in total. Finish with a single line listing any assumptions you made.
Change the parts in curly braces. Use it when you start a new codebase, or when an AI coding assistant keeps ignoring your team's conventions.
What happened when we ran it
We sent
You are a senior software engineer who writes clear, practical instructions for AI coding assistants. Task: Turn the project details below into a short rules file that keeps an assistant's code consistent with our standards. Project: A booking app for independent hair salons. Customers pick a stylist and a time slot, pay a deposit, and get a confirmation email. Salon owners manage their calendar and staff rota from a dashboard. We have about 40 paying salons and a team of three developers. Tech stack: TypeScript, Next.js 14 with the app router, PostgreSQL via Prisma, Stripe for payments, Tailwind CSS, Vitest for unit tests, deployed on Vercel. Team habits: We use functional components only and keep files under 200 lines. Database access happens only in the server folder, never in components. Every new feature needs a Vitest test and a short note in the changelog. Money is always stored as integer pence, and dates are stored in UTC. Steps: 1. Read the details and list the decisions an assistant would otherwise guess, such as naming, file structure, testing and error handling. 2. Write each decision as a short, testable rule in the imperative, for example "Use named exports only". 3. Group the rules under clear headings and put the rules most often broken first. 4. Add a "Never do" section covering risky actions specific to this stack. 5. Delete any rule that is vague, duplicated or not backed by the details given. Output: One Markdown file with headings and bullet points, no more than 25 rules in total. Finish with a single line listing any assumptions you made.
The model replied
Run on Claude Sonnet 5.5, 01 Nov 2026. Automatic check: 3 out of 5.
Mentioned for
Cursor, GitHub Copilot, Windsurf, Cline, Zed
Where it came from
Found on GitHub, shared by instructa: instructa/ai-prompts.
This is our own version of the idea, written and tested by us. The original may differ.