Generate ContextStream rules
generate_rulesGenerate AI rule files for code editors like Cursor and Copilot to configure project-specific AI assistant behavior and rules.
Instructions
Generate AI rule files for editors (Cursor, Cline, Kilo Code, Roo Code, Claude Code, GitHub Copilot, Aider). Defaults to the current project folder; no folder_path required when run from a project. Supported editors: codex, opencode, cursor, windsurf, cline, kilo, roo, claude, aider, antigravity, copilot
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_path | No | Absolute path to the project folder (defaults to IDE root/cwd) | |
| editors | No | Which editors to generate rules for. Defaults to all. | |
| workspace_name | No | Workspace name to include in rules | |
| workspace_id | No | Workspace ID to include in rules | |
| project_name | No | Project name to include in rules | |
| additional_rules | No | Additional project-specific rules to append | |
| mode | No | Rule verbosity: bootstrap (~15 lines, recommended), minimal (~80 lines), full (~600 lines) | bootstrap |
| overwrite_existing | No | Overwrite existing rule files (default: true). User content outside the ContextStream block is preserved when block updates are supported. | |
| apply_global | No | Also write global rule files for supported editors | |
| install_hooks | No | Install Claude Code hooks to enforce ContextStream-first search. Defaults to true for Claude users. Set to false to skip. | |
| include_pre_compact | No | Include PreCompact hook for automatic state saving before context compaction. Defaults to true. | |
| dry_run | No | If true, return content without writing files |