generate_rules
Create AI rule files for code editors to configure ContextStream's persistent memory and code intelligence features within development projects.
Instructions
Generate AI rule files for editors (Cursor, Cline, Kilo Code, Roo Code, Claude Code, Aider). Defaults to the current project folder; no folder_path required when run from a project. Supported editors: codex, cursor, cline, kilo, roo, claude, aider, antigravity
Input Schema
TableJSON 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 ContextStream block in existing rule files (default: true). User content outside the block is preserved. | |
| 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 |