Files
claude-task-master/.kiro/hooks/tm-import-cleanup-on-delete.kiro.hook
Ralph Khreish e5440dd884 feat: Add Kiro hooks and configuration for Taskmaster integration
- Introduced multiple Kiro hooks to automate task management workflows, including:
  - Code Change Task Tracker
  - Complexity Analyzer
  - Daily Standup Assistant
  - Git Commit Task Linker
  - Import Cleanup on Delete
  - New File Boilerplate
  - PR Readiness Checker
  - Task Dependency Auto-Progression
  - Test Success Task Completer
- Added .mcp.json configuration for Taskmaster AI integration.
- Updated development workflow documentation to reflect new hook-driven processes and best practices.

This commit enhances the automation capabilities of Taskmaster, streamlining task management and improving developer efficiency.
2025-07-22 21:37:12 +03:00

19 lines
946 B
Plaintext

{
"enabled": true,
"name": "[TM] Import Cleanup on Delete",
"description": "Clean up imports when files are deleted",
"version": "1",
"when": {
"type": "fileDeleted",
"patterns": [
"**/*.{js,ts,jsx,tsx,py,go,rs,java,cpp,c,h,hpp,cs,rb,php,swift,kt}",
"!**/node_modules/**",
"!**/vendor/**",
"!**/.git/**"
]
},
"then": {
"type": "askAgent",
"prompt": "A source file was just deleted. Please:\n\n1. Based on the file type, search for all references to this file across the codebase (imports, includes, requires, use statements, etc.)\n2. Comment out or remove these references using the appropriate syntax for each language\n3. Check if any tasks mention this file and add a note about its deletion\n4. If this deletion completes a 'remove' or 'refactor' task, ask if it should be marked as done\n\nNote: Reference patterns vary by language (import/from, #include, require, use, etc.)"
}
}