# Cursor Formatter

<!-- generated:start:overview -->
<!-- Auto-generated by `pnpm docs:formatters`. Do not edit manually. -->

| Property          | Value                                  |
| ----------------- | -------------------------------------- |
| **Tier**          | Custom                                 |
| **Main output**   | `.cursor/rules/project.mdc`            |
| **Dot directory** | `.cursor/`                             |
| **Skills**        | Yes (`.agents/skills/<name>/SKILL.md`) |
| **Agents**        | Yes (`.cursor/agents/<name>.md`)       |
| **Commands**      | Yes (`.cursor/commands/<name>.md`)     |
| **Local files**   | No                                     |

<!-- generated:end:overview -->

## Output Files

<!-- generated:start:output-files -->
<!-- Auto-generated by `pnpm docs:formatters`. Do not edit manually. -->

| File              | Path                             | Purpose                                   |
| ----------------- | -------------------------------- | ----------------------------------------- |
| Main instructions | `.cursor/rules/project.mdc`      | Primary rule file                         |
| Lifecycle hooks   | `.cursor/hooks.json`             | Project hooks in `full` mode              |
| Skills            | `.agents/skills/<name>/SKILL.md` | Reusable skill definitions in `full` mode |
| Commands          | `.cursor/commands/<name>.md`     | Slash commands                            |
| Agents            | `.cursor/agents/<name>.md`       | Agent configurations                      |
| MCP servers       | `.cursor/mcp.json`               | MCP server config in `full` mode          |
| Plugins           | `.cursor/plugins.json`           | Plugin config in `full` mode              |

<!-- generated:end:output-files -->

## Supported Features

<!-- generated:start:features -->
<!-- Auto-generated by `pnpm docs:formatters`. Do not edit manually. -->

| Feature                    | Supported |
| -------------------------- | --------- |
| Markdown Output            | Yes       |
| MDC Format                 | Yes       |
| Code Blocks                | Yes       |
| Mermaid Diagrams           | Yes       |
| Single File Output         | Yes       |
| Multiple Rule Files        | Yes       |
| Workflow Files             | No        |
| Nested Directory Structure | Yes       |
| YAML Frontmatter           | Yes       |
| Description in Frontmatter | Yes       |
| Globs in Frontmatter       | Yes       |
| Activation Type            | Yes       |
| Glob Pattern Targeting     | Yes       |
| Always Apply Rules         | Yes       |
| Manual Activation          | Partial   |
| Auto/Model Activation      | Partial   |
| Structured Examples        | Yes       |
| Character Limit Validation | No        |
| Content Section Splitting  | Yes       |
| Guard Dependencies         | No        |
| Context File Inclusion     | Yes       |
| @-Mentions                 | Planned   |
| Tool Integration           | Partial   |
| Path-Specific Rules        | Yes       |
| Prompt Files               | No        |
| Slash Commands             | Yes       |
| Skills                     | Yes       |
| Agent Instructions         | Yes       |
| Local Memory               | No        |
| Nested Memory              | Planned   |

<!-- generated:end:features -->

## Limitations & Quirks

- Uses MDC (Markdown Components) format with YAML frontmatter including `description`, `globs`, and `alwaysApply`
- Supports `modern`, `multifile`, `legacy`, `agents-md`, and `full` output modes
- Commands go to `.cursor/commands/*.md` for slash command support
- `@shortcuts` with multi-line content become command files
- The `.cursorrules` file (`legacy` mode) is deprecated; `.cursor/rules/*.mdc` is preferred
- `full` mode adds commands, `.agents/skills/<name>/SKILL.md`, and `.cursor/agents/<name>.md`
- Agent `model` values become model ids without a snapshot date, such as `claude-sonnet-4-5`; `inherit` is written as is (see [Model Catalog](https://getpromptscript.dev/reference/models/index.md#target-model-names))
- `@hooks` emits `.cursor/hooks.json` only in `full` mode; other modes report `PS4002` and omit hooks
- Supports `@file` and `@folder` context references in rules
- Nested directory rules are supported

## Example Output

```
project-root/
├── .cursor/
│   ├── rules/
│   │   ├── project.mdc               # Main rules (MDC format)
│   │   └── frontend.mdc              # Path-specific rules
│   └── commands/
│       └── review.md                  # Slash command
```

## Official Documentation

- [Cursor Rules](https://docs.cursor.com/context/rules-for-ai)
- [Cursor Commands](https://cursor.com/changelog/1-6)