---
name: "Project rules as .cursor/rules/*.mdc (always / globs / intelligent / manual)"
description: "Use when project rules must live as .cursor/rules/*.mdc (always / globs / intelligent / manual)."
---

# Project rules as .cursor/rules/*.mdc (always / globs / intelligent / manual)

## When
Use when the team needs versioned rules that are not a SKILL.md procedure.

## Stop
Never put procedures that should be skills into alwaysApply rules. Keep under 500 lines. Never modify generated dist/build.

## Steps
1. All source files must include the company copyright header
2. When you are unsure about implementation details, read the relevant
3. Never modify generated files in the `dist/` or `build/` directories
4. Use named exports, not default exports
5. Co-locate styles in a module CSS file next to the component
6. Keep components under 200 lines. Extract subcomponents into the same
7. Prefer composition over prop drilling. Pass children or render props
8. Define each service in its own file under `src/services/`

## Load
.cursor/rules/*.mdc. /create-rule.
