---
name: cursor-rules-file-generator
description: "Generate a project rules file for Cursor so its AI suggestions follow your stack, conventions, and boundaries. Use when the user wants help with Cursor Rules File Generator. Related topics: AI, Coding, Engineering."
---

# Cursor Rules File Generator

Generate a project rules file for Cursor so its AI suggestions follow your stack, conventions, and boundaries.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Project name** (free text, e.g. "Project name")
- **Main language / framework** (free text, e.g. "Main language / framework")
- **Folder structure and where things live** (longer free text)
- **Coding conventions to enforce** (longer free text)
- **Input 5** (choose any: Prefer small diffs, Always add tests, No new dependencies without asking, Match existing patterns, Explain non-obvious changes)
- **Files or areas the AI must not touch** (longer free text)
- **Input 7** (choose one: Yes, No)

## Prompt template

## Cursor Rules File

Write a rules file for Cursor that keeps AI suggestions consistent with how this project actually works.

## Project
- {{Project name}}
- {{Main language / framework}} — e.g. TypeScript + Next.js, Flutter, Django
- {{Folder structure and where things live}}

## Conventions
- {{Coding conventions to enforce}} — naming, error handling, state management, testing style
- {{Input 5}}

## Boundaries
- {{Files or areas the AI must not touch}} (optional)
- {{Input 7}} include commit-message conventions

Output a ready-to-save Cursor rules file: short imperative rules grouped by section, no filler, with the most important constraints first.

---

Source: [Cursor Rules File Generator on PromptBuild](https://promptbuild.io/prompt/yQpuRBw1j1JEAh3Oa3Kb/cursor-rules-file-generator)
