# Qwen Code Formatter

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

PromptScript compiles your `.prs` sources to native Qwen Code configuration. The main output is `.qwen/rules/project.md`. It is not enabled by default, add it to `targets` to use it.

## Enable the Target

```yaml
targets:
  - qwen-code
```

Pick an output version when you need more than the default:

```yaml
targets:
  - qwen-code:
      version: full
```

## At a Glance

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

## Output Files

| File              | Path                           | Purpose                    |
| ----------------- | ------------------------------ | -------------------------- |
| Main instructions | `.qwen/rules/project.md`       | Primary rule file          |
| Skills            | `.qwen/skills/<name>/SKILL.md` | Reusable skill definitions |

## Output Versions

| Version          | Output                                                                 |
| ---------------- | ---------------------------------------------------------------------- |
| `simple`         | Single .qwen/rules/project.md file                                     |
| `multifile`      | .qwen/rules/project.md + .qwen/mcp.json (skills via full mode)         |
| `full` (default) | .qwen/rules/project.md + .qwen/skills/<name>/SKILL.md + .qwen/mcp.json |

## MCP and Hooks

| Block         | Support                 |
| ------------- | ----------------------- |
| `@mcpServers` | `.qwen/mcp.json` (json) |
| `@hooks`      | Not supported           |

Native hook reference: <https://promptscript.dev/docs/guides/hooks/>

## Supported Features

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

## See Also

- [Platform matrix](https://getpromptscript.dev/reference/formatters/index.md)
- [Configuration reference](https://getpromptscript.dev/reference/config/index.md)
- [Target platforms and output families](https://getpromptscript.dev/features/target-platforms/index.md)