> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dev-workflows.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bridges

> How rules are compiled to each editor's native format

A bridge is an adapter that translates your rules into the format a specific AI editor expects. Each bridge is a single file that implements the same interface.

## How It Works

```
.dwf/rules/ (YAML) → Bridge → Editor config file
```

Bridges **only translate format**. They don't add new rules, logic, or intent.

## Available Bridges

### Claude Code

**Output:** `CLAUDE.md` at project root

Rules are grouped by scope as H2 sections, each rule as a bullet point. Content wrapped in `<!-- BEGIN/END dev-workflows -->` markers.

### Cursor

**Output:** `.cursor/rules/devworkflows.mdc`

Includes MDC frontmatter with `alwaysApply: true`. Same scope grouping as Claude.

### Gemini CLI

**Output:** `GEMINI.md` at project root

Identical format to Claude Code. Gemini CLI consumes `GEMINI.md` with the same markdown format.

### Windsurf

**Output:** `.windsurf/rules/devworkflows.md`

Rules are grouped by scope as H2 sections, each rule as a bullet point. The entire file is managed by dev-workflows — do not edit manually. If the compiled output exceeds 6,000 characters, the CLI warns that Windsurf may truncate the content.

### VS Code / GitHub Copilot

**Output:** `.github/copilot-instructions.md`

Same Markdown format as Claude and Gemini. Content wrapped in `<!-- BEGIN/END dev-workflows -->` markers to preserve any manual instructions you've added to the file.

## Adding More Bridges

The bridge interface is simple. Each bridge defines an `id`, `outputPaths`, and a `compile()` function that takes rules and config and returns a `Map<filePath, content>`.
