Maintenance-focused prompting asks an AI coding assistant to optimize for the people who will read, operate, and change the code later. It makes concerns such as naming, comments, logging, monitoring, and documentation explicit instead of leaving them implicit. section 9.6.1
Prompt for a future maintenance team
Implement this feature assuming it will be maintained by a different team in 6 months. Include: clear naming, comprehensive comments, logging, monitoring, and documentation. section 9.6.1
Other maintenance-oriented prompt clauses make requirements concrete:
- Request Python 3.10+ type hints and Google-style docstrings for generated classes. section 9.6.1
- Specify cache invalidation rules, including price changes, a one-hour TTL, and bulk invalidation during sales events. section 9.6.1
- State authentication threats such as replay, timing, brute-force, and XSS-based token theft. section 9.6.1
