---
title: openplanr rules
description: "openplanr rules: Generate project guidance for host-native coding agents. Subcommands: generate."
url: https://openplanr.dev/docs/cli/rules
updated: 2026-10-06
related:
  - https://openplanr.dev/docs/cli/spec.md
  - https://openplanr.dev/docs/cli/checklist.md
  - https://openplanr.dev/docs/cli/status.md
---

# openplanr rules

Generate project guidance for host-native coding agents

```text
openplanr rules [options] [command]
```

## openplanr rules generate

Generate rule files for configured AI CLIs

```text
openplanr rules generate [options]
```

Options:

- `--target <target>`: specific target: cursor, claude, codex, or all; default `"all"`
- `--scope <scope>`: rule set to generate: agile (default), pipeline, or all; default `"agile"`
- `--dry-run`: show what would be generated without writing files; default `false`
