# Command Code Formatter

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

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

## Enable the Target

```yaml
targets:
  - command-code
```

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

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

## At a Glance

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

## Output Files

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

## Output Versions

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

## MCP and Hooks

| Block         | Support       |
| ------------- | ------------- |
| `@mcpServers` | Not supported |
| `@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           | No        |
| Single File Output         | Yes       |
| Multiple Rule Files        | Yes       |
| Workflow Files             | No        |
| Nested Directory Structure | No        |
| YAML Frontmatter           | Yes       |
| Description in Frontmatter | Yes       |
| 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             | Yes       |
| 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)