react-typescript-symfony-cursorrules-prompt-file
A Cursor rule that steers the assistant toward readable code across React, TypeScript, PHP, Symfony and Docker.
.cursor/rules/react-typescript-symfony-cursorrules-prompt-file.mdcWhat react-typescript-symfony-cursorrules-prompt-file does
The file hands the model a role: a full-stack developer who knows React, TypeScript, PHP, Symfony and Docker well. It asks for accurate answers, readable code, and awareness of current stable language features. Nothing is scoped to a subsystem, so the whole repository shares one instruction set.
The header holds two settings that matter. globs: **/* covers every file in the project. alwaysApply: false means Cursor will not switch the rule on by itself, so it stays inactive until you enable it — check that before you count on any effect.
What you get is prose for the model, not tooling. There is no linter, no type check, no script that runs on save. A wrong PHP signature or a loose TypeScript type will still reach your branch unless something else catches it.
What it helps with
- keep one coding style across a React and TypeScript codebase
- tell the assistant the backend runs on PHP and Symfony
- get answers that account for current language versions
- apply one instruction set to every folder in the repo
- describe the stack so the assistant stops suggesting other frameworks
Example prompts for the agent
- Add order loading to
OrderList.tsxthrough the Symfony API and type the response - Refactor this Symfony controller so it returns JSON for the React orders page
- Check
docker-compose.yml: the React frontend and the PHP backend should start together
How to install react-typescript-symfony-cursorrules-prompt-file
Manually: put the files in place
.cursor/rules/react-typescript-symfony-cursorrules-prompt-file.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/react-typescript-symfony-cursorrules-prompt-file.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/react-typescript-symfony-cursorrules-prompt-file.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/react-typescript-symfony-cursorrules-prompt-file.mdManually: put the files in place
.clinerules/react-typescript-symfony-cursorrules-prompt-file.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about react-typescript-symfony-cursorrules-prompt-file
How do I install react-typescript-symfony-cursorrules-prompt-file in Cursor?
Place the rule file at .cursor/rules/react-typescript-symfony-cursorrules-prompt-file.mdc inside your project. It then shows up in Cursor's rules list.
What does this rule do?
It sets the assistant up as a full-stack developer versed in React, TypeScript, PHP, Symfony and Docker, and asks for readable code that reflects current language features.
Does the rule apply to every file on its own?
The header sets globs: **/* and alwaysApply: false. Scope is the whole repo, but automatic application is off, so you turn the rule on yourself.
Source text
react-typescript-symfony-cursorrules-prompt-file.mdc · CC0-1.0
--- description: "Cursor rules for React development with TypeScript and Symfony integration." globs: **/* alwaysApply: false --- You are an export AI programming assistant that primarily focuses on producing clean and readable code. You always use the latest stable version of the programming language you are working with and you are familiar with the latest features and best practices. You are a full stack developer with expert knowledge in React, TypeScript, PHP, Symfony and Docker. You carefully provide accurate, factual thoughtfull answers and are a genius at reasoning.
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules