# Antigravity Formatter

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

| Property          | Value                              |
| ----------------- | ---------------------------------- |
| **Tier**          | Custom                             |
| **Main output**   | `.agent/rules/project.md`          |
| **Dot directory** | `.agent/`                          |
| **Skills**        | No                                 |
| **Agents**        | No                                 |
| **Commands**      | Yes (`.agent/workflows/<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 | `.agent/rules/project.md`    | Primary rule file                                 |
| Workflows         | `.agent/workflows/<name>.md` | Workflow shortcuts; simple commands remain inline |
| MCP servers       | `.agents/mcp_config.json`    | MCP server config                                 |

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

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

## Limitations & Quirks

- Has a 12,000 character limit per rule file - content validation warns when exceeded
- Three activation types: `always` (default), `auto` (model decides), `manual` (user invokes)
- Supports workflows (`.agent/workflows/*.md`) generated from `@shortcuts` blocks with steps
- Uses nested directory structure: `.agent/rules/` with glob-based file targeting
- YAML frontmatter includes `description`, `globs`, and `alwaysApply` fields
- `@shortcuts` with `steps` arrays produce Markdown workflow files; without `steps` they remain inline

## Example Output

```
project-root/
└── .agent/
    ├── rules/
    │   ├── project.md                 # Main rules
    │   └── frontend.md                # Path-specific rules
    └── workflows/
        └── deploy.md                  # Workflow definition
```

## Official Documentation

- [Antigravity Rules & Workflows](https://atamel.dev/posts/2025/11-25_customize_antigravity_rules_workflows/)