{
  "enabled": true,
  "name": "Update Docs on Code Change",
  "description": "Monitors Python source files and prompts agent to update README.md or docs folder when code changes are saved",
  "version": "1",
  "when": {
    "type": "fileEdited",
    "patterns": [
      "*.py",
      "requirements.txt",
      "pyproject.toml",
      "alembic.ini"
    ]
  },
  "then": {
    "type": "askAgent",
    "prompt": "A source file was just modified. Review the changes and update the documentation in README.md to reflect any new features, API changes, configuration updates, or important implementation details. Keep the documentation clear, accurate, and up-to-date."
  }
}