You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
					
						
							6.9 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							6.9 KiB
						
					
					
				ChatGPT Improvement Directives Template
Created: 2025-10-14 06:44:58 UTC
Author: Matthew Raymer
🎯 Instructions for ChatGPT
Please analyze the DailyNotification plugin codebase and provide specific, actionable improvement directives. Focus on:
- Code Quality & Architecture
 - Performance Optimization
 - Security & Production Readiness
 - Testing & Quality Assurance
 - User Experience
 - Maintainability & Scalability
 
📋 Analysis Framework
1. Code Quality Assessment
Please evaluate:
- Method Complexity: Are methods too long or complex?
 - Error Handling: Is error handling comprehensive and consistent?
 - Code Duplication: Are there repeated patterns that can be extracted?
 - Naming Conventions: Are class/method names clear and consistent?
 - Documentation: Is inline documentation adequate?
 
Provide specific recommendations for:
- Refactoring opportunities
 - Utility class extractions
 - Code organization improvements
 - Documentation enhancements
 
2. Performance Analysis
Please analyze:
- Database Operations: Are queries optimized?
 - Memory Usage: Are there memory leaks or excessive allocations?
 - Background Work: Is WorkManager usage optimal?
 - AlarmManager: Are alarms scheduled efficiently?
 - Storage Operations: Can file I/O be optimized?
 
Provide specific recommendations for:
- Performance bottlenecks
 - Optimization strategies
 - Caching implementations
 - Resource management improvements
 
3. Security Review
Please assess:
- Input Validation: Are all inputs properly validated?
 - Data Storage: Is sensitive data stored securely?
 - API Calls: Are network requests secure?
 - Error Messages: Do error messages leak sensitive information?
 - Permission Handling: Are permissions properly managed?
 
Provide specific recommendations for:
- Security vulnerabilities
 - Data protection measures
 - Input sanitization
 - Secure coding practices
 
4. Testing Strategy
Please evaluate:
- Test Coverage: What areas need more testing?
 - Test Quality: Are tests comprehensive and reliable?
 - Edge Cases: What edge cases are missing?
 - Automation: What can be automated?
 - CI/CD: How can testing be integrated?
 
Provide specific recommendations for:
- Unit test implementations
 - Integration test strategies
 - Edge case testing
 - Automated testing setup
 
5. User Experience
Please analyze:
- Permission Flow: Is the permission request flow smooth?
 - Error Messages: Are error messages user-friendly?
 - Feedback: Do users get adequate feedback?
 - Accessibility: Are there accessibility considerations?
 - Performance: Does the app feel responsive?
 
Provide specific recommendations for:
- UX improvements
 - User education features
 - Feedback mechanisms
 - Accessibility enhancements
 
6. Maintainability
Please assess:
- Code Organization: Is the code well-organized?
 - Dependencies: Are dependencies properly managed?
 - Version Compatibility: How can we handle Android version differences?
 - Future Extensibility: How can we add new features?
 - Documentation: Is documentation adequate for maintenance?
 
Provide specific recommendations for:
- Code organization improvements
 - Dependency management
 - Version compatibility strategies
 - Extensibility patterns
 
📊 Expected Output Format
For each area, please provide:
Priority Level
- High: Critical issues that must be addressed
 - Medium: Important improvements that should be prioritized
 - Low: Nice-to-have enhancements
 
Specific Recommendations
- What: Exact changes to make
 - Why: Rationale for the change
 - How: Implementation approach
 - Impact: Expected benefits
 
Code Examples
- Before: Current implementation
 - After: Improved implementation
 - Explanation: Why the change improves the code
 
Implementation Steps
- Step 1: First action to take
 - Step 2: Next steps in sequence
 - Dependencies: What needs to be done first
 - Testing: How to verify the improvement
 
🎯 Focus Areas
Immediate Improvements (High Priority)
- Performance Optimization: Identify and fix performance bottlenecks
 - Security Hardening: Address security vulnerabilities
 - Error Handling: Improve error handling consistency
 - Testing Coverage: Add missing unit tests
 
Medium-term Enhancements
- Code Refactoring: Extract utilities and reduce complexity
 - User Experience: Improve permission flows and feedback
 - Documentation: Enhance developer documentation
 - Monitoring: Add production monitoring capabilities
 
Long-term Strategic Improvements
- Architecture Evolution: Plan for future feature additions
 - Cross-platform Consistency: Ensure iOS parity
 - Scalability: Plan for increased usage
 - Maintenance: Improve long-term maintainability
 
📝 Specific Questions
Architecture Questions
- How can we reduce the complexity of 
DailyNotificationPlugin.java? - Are there better patterns for handling Android version differences?
 - How can we improve the separation of concerns?
 - What utility classes should we extract?
 
Performance Questions
- How can we optimize database operations?
 - Are there memory leaks or excessive allocations?
 - How can we improve background work efficiency?
 - What caching strategies should we implement?
 
Security Questions
- What security vulnerabilities exist?
 - How can we improve input validation?
 - Are there data privacy concerns?
 - How can we secure network communications?
 
Testing Questions
- What unit tests are missing?
 - How can we improve test reliability?
 - What edge cases need testing?
 - How can we automate testing?
 
User Experience Questions
- How can we improve the permission request flow?
 - Are error messages user-friendly?
 - How can we provide better feedback?
 - What accessibility improvements are needed?
 
🎯 Success Criteria
A successful analysis should provide:
- Specific, Actionable Recommendations: Not vague suggestions
 - Prioritized Improvements: Clear priority levels
 - Implementation Guidance: How to implement changes
 - Code Examples: Before/after code samples
 - Impact Assessment: Expected benefits of changes
 - Testing Strategy: How to verify improvements
 
📋 Deliverables Expected
- Executive Summary: High-level improvement priorities
 - Detailed Analysis: Specific recommendations for each area
 - Implementation Plan: Step-by-step improvement roadmap
 - Code Examples: Before/after implementations
 - Testing Strategy: How to verify improvements
 - Risk Assessment: Potential issues with changes
 
This template provides ChatGPT with a structured framework for analyzing the DailyNotification plugin and providing specific, actionable improvement directives.