create_or_update_rule
Record patterns, decisions, or changes by creating or updating documentation to keep it current for future agents.
Instructions
Create or update documentation as you discover new patterns, decisions, or changes. Use this to keep docs current for future agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title for display and search | |
| topics | No | Optional topical tags to group related documents | |
| content | Yes | Full markdown content of the documentation | |
| category | No | Optional category label for this document | |
| fileName | Yes | Documentation file name. Must end with .md. Example: "api-patterns.md" | |
| keywords | No | Search keywords. Include technologies, patterns, and concepts covered | |
| alwaysApply | No | Mark this doc as always-apply guidance for every task | |
| description | No | Brief summary of the document's purpose | |
| filePatterns | No | Optional file globs for contextual docs. Examples: ["**/*.test.js"] |