| name | docs |
| description | Update project documentation when features are added or changed. Use after modifying CLI commands, OPA rules, MCP tools, or the development workflow. |
| paths | opa/rego/**, cmd/**, docs/**, README.md, MCP_INTEGRATION.md, CONTRIBUTING.md |
Review recent code changes and update all relevant documentation:
-
Rule documentation (docs/content/en/rules/<rule_id>.md):
-
README.md — Update if CLI commands, flags, or usage patterns changed
-
MCP_INTEGRATION.md — Update if MCP tools were added, removed, or changed
-
CONTRIBUTING.md — Update if development workflow, testing, or build process changed
-
Structured finding metadata (docs/content/en/structured-finding-metadata.md) — Update if finding JSON fields changed
Read the changed files first to understand what needs documenting, then make the updates.