---
title: "Cursor Project Rules (.cursor/rules/*.mdc): mga path at format · DotsAgent"
description: "Kung saan matatagpuan ang .cursor/rules/*.mdc, ang format at frontmatter nito, kung paano pinagsasama ang mga global at nested na kopya, at kung aling mga tool ang nagbabasa nito. Sinuri noong 2026-10-01."
url: https://dotsagent.io/fil/instructions/files/cursor-rules
---

.cursor/rules/*.mdc

# Cursor Project Rules (.cursor/rules/*.mdc): lokasyon at kung paano ito binabasa ng mga tool

Ang Cursor Project Rules ay mga .mdc file sa .cursor/rules/ na ang frontmatter ang nagtatakda kung kailan isasama ang bawat rule. Binabasa rin ng Cursor ang AGENTS.md, pati ang User Rules at Team Rules na itinakda sa labas ng repository.

## Lokasyon

- .cursor/rules/**/*.mdc; pinapayagan ang mga subfolder. Hindi pinapansin ang mga plain .md file sa .cursor/rules.
- AGENTS.md sa root at sa mga nested folder.
- User Rules na itinakda sa mga setting ng Cursor.
- Team Rules na itinakda sa dashboard ng team.

## Format

Markdown na may YAML frontmatter; kailangan ang .mdc extension. Palaging isinasama ng alwaysApply: true ang rule; isinasama ito ng globs kapag may katugmang file sa context at nakatakda ang alwaysApply: false; kung description lang ang naroon, ang Agent ang magpapasya. Kung wala ang mga ito, gagana lang ang rule kapag binanggit mo ito gamit ang @.

Mga frontmatter key: `description``globs``alwaysApply`

`.cursor/rules/*.mdc`

```
---
description: React component conventions
globs: src/components/**/*.tsx
alwaysApply: false
---

- One component per file, with a named export matching the file name.
- Type props with an interface named after the component plus Props.
- Use the existing CSS modules; no inline style objects.
- Follow @src/components/Button.tsx as the reference pattern.
```

## Pagkakasunod-sunod at pagsasama

Team Rules, kasunod ang Project Rules, saka ang User Rules. Pinagsasama ang lahat ng naaangkop na rule, at mananaig sa salungatan ang naunang pinagmulan; hindi maaaring i-off ang mga ipinapatupad na Team Rules. Pinagsasama ang mga nested na AGENTS.md file sa mga parent nito, at mananaig ang mas espesipikong file.

## Mga tool na nagbabasa nito

| Tool | Suporta |
| --- | --- |
| [Cline](https://docs.cline.bot/features/cline-rules) | Nakakakita ng legacy na .cursorrules file. |

## Mga tip

- Paghiwalayin ng mga kuwit ang ilang glob sa globs field.
- Panatilihing wala pang 500 linya ang bawat rule at gumamit ng @filename para tumukoy sa mga file sa halip na i-paste ang mga ito.
- Hindi naaapektuhan ng mga rule ang Cursor Tab, at hindi naaangkop ang User Rules sa Inline Edit.
- Hindi na binabanggit sa docs ng Cursor ang lumang .cursorrules file; ilipat ito sa .cursor/rules/.

Bumuo ng AGENTS.md at mga katugmang rule file para sa limang tool gamit ang iisang form. [Buksan ang AGENTS.md generator →](https://dotsagent.io/fil/instructions)

## Iba pang file ng mga instruction

[AGENTS.md](https://dotsagent.io/fil/instructions/files/agents-md)

[CLAUDE.md](https://dotsagent.io/fil/instructions/files/claude-md)

[GEMINI.md](https://dotsagent.io/fil/instructions/files/gemini-md)

[.github/copilot-instructions.md](https://dotsagent.io/fil/instructions/files/github-copilot-instructions)

[.devin/rules/*.md](https://dotsagent.io/fil/instructions/files/windsurf-rules)

[.clinerules/](https://dotsagent.io/fil/instructions/files/cline-rules)

[~/.openclaw/workspace/AGENTS.md](https://dotsagent.io/fil/instructions/files/openclaw-workspace)

## Mga source

1. [cursor.com](https://cursor.com/docs/context/rules)/docs/context/rules

Independent na sanggunian para sa mga gumagawa ng AI agent. Hindi kami kaanib ng alinman sa mga vendor na nakalista rito.

© 2026 DotsAgent · Sinuri ang mga detalye noong Oktubre 1, 2026
