💻 Coding Prompt
The Advanced Mobile Developer's Guide to Writing a README for Error Handling Systems in Education Using Claude
Advanced strategies for Education — write a README for error handling implementations and make the codebase maintainable
The Prompt
You are a senior mobile engineer with 14 years of experience building production-grade education apps, implementing error handling architectures, and maintaining codebases across distributed development teams. Help me write a README so I can make the codebase maintainable.
My situation:
Mobile platform and stack: [e.g., React Native with TypeScript / Swift with UIKit / Kotlin with Jetpack Compose]
Education app type: [e.g., student learning platform / classroom management tool / adaptive quiz engine]
Error handling architecture: [e.g., centralized error boundary with logging / per-module try-catch with retry logic / global crash reporter integrated with Sentry]
High bug rate source: [e.g., unhandled async errors in lesson loading / silent failures in progress sync / inconsistent error states across navigation flows]
Current README state: [e.g., does not exist / covers setup only / last updated 18 months ago]
Team composition reading this README: [e.g., 2 senior devs, 4 mid-level, 1 junior / offshore contractors onboarding monthly / open source contributors with no prior context]
Maintainability goal: [e.g., any developer can trace a production bug to its source within 30 minutes / new contributors can add a feature without breaking error handling patterns]
Deliver:
A README architecture section: document the error handling system in full — the decision to use this pattern, the layers it covers, what it deliberately does not handle, and where the boundaries are
A bug reproduction guide embedded in the README: a step-by-step protocol for reproducing the most common categories of production bugs in this education app, written so a developer who did not write the code can follow it without asking questions
An error handling contract definition: specify what every function in the codebase must do when it encounters an error — return type, logging requirement, user-facing message standard, and escalation path — as a formalized README section
A new contributor onboarding sequence: a 5-step path through the codebase that a new mobile developer follows on day one to understand the error handling system without reading every file
A known failure mode catalog: document the top 7 recurring bug categories in the education app, their root cause in the error handling layer, their detection signal, and the fix pattern — formatted as a searchable reference section
A README maintenance protocol: define who updates which section, what triggers an update, and how to version the README alongside code changes — so the document does not become stale within one sprint
A testing standards section: specify the error handling test requirements — which error paths must have unit tests, which need integration tests, and the minimum coverage threshold before a PR can merge
A decision log appendix: document the 3 most consequential error handling architecture decisions made in this codebase — what was considered, what was chosen, and what would need to change for the decision to be revisited
Write the error handling contract in output #3 before drafting any other section — a README built on an undefined contract produces documentation that describes behavior rather than enforcing it.
💡 How to use this prompt
- Start with output #5 — the known failure mode catalog. On a codebase with a high production bug rate, the most valuable documentation is not how the system works when it is healthy — it is a precise record of how it fails. Build this section first and the rest of the README organizes itself around real problems.
- The most common mistake is writing a README that documents the ideal error handling behavior rather than the actual behavior. Developers read the README, follow it, and then encounter a production bug that the README said should not be possible. Document what the code does, not what it was supposed to do.
- Claude outperforms ChatGPT on this task because it follows multi-step instructions more precisely and maintains consistent tone across long outputs. Use Claude for the full draft, then paste into ChatGPT if you need a faster, shorter variation.
Best Tools for This Prompt
🤖 Best AI Coding Tools for This Prompt
Tested & reviewed — run this prompt with the best AI tools
About This Coding AI Prompt
This free Coding prompt is designed for Claude and works with any modern AI assistant including ChatGPT, Claude, Gemini, and more. Simply copy the prompt above, paste it into your preferred AI tool, and customize the bracketed sections to fit your specific needs.
Coding prompts like this one help you get better, more consistent results from AI tools. Instead of starting from scratch every time, you can use this tested prompt as a foundation and adapt it to your workflow. Browse more Coding prompts →