docs-sync-hook.kiro.hook 890 B

1234567891011121314151617181920
  1. {
  2. "enabled": true,
  3. "name": "Documentation Sync",
  4. "description": "Monitors all source files (HTML, CSS, JavaScript) and assets in the repository and triggers documentation updates in README.md when changes are detected",
  5. "version": "1",
  6. "when": {
  7. "type": "userTriggered",
  8. "patterns": [
  9. "*.html",
  10. "styles/*.css",
  11. "scripts/*.js",
  12. "assets/**/*.svg",
  13. "*.md"
  14. ]
  15. },
  16. "then": {
  17. "type": "askAgent",
  18. "prompt": "Source files have been modified in this web application project. Please review the changes and update the README.md file to reflect any new features, API changes, or architectural modifications. Ensure the documentation accurately describes the current state of the application, including any new components, styling changes, or functionality updates. Focus on keeping the user-facing documentation clear and up-to-date."
  19. }
  20. }