THE GITHTML FIELD GUIDE
Write README troubleshooting for the first setup failures
Document the few setup failures new users actually encounter, using recognizable symptoms, a discriminating check, and a safe next step. Keep broad incident response elsewhere. A good README troubleshooting entry helps readers decide which problem they have before suggesting changes, and tells them what non-sensitive evidence to collect if they need help.
Choose failures from evidence, not imagination
Review recent support questions, installation issues, and clean-environment testing notes. Select failures that occur before the first useful result and that the README can reasonably help diagnose. Do not create a long catalog of hypothetical errors merely to appear comprehensive. Name symptoms in the words a newcomer sees, including a short exact message when appropriate. Distinguish two errors that look similar but have different causes, such as a missing executable and a command run from the wrong directory. Record the environment scope of each explanation so a platform-specific workaround is not presented as universal advice.
Use a symptom-check-result pattern
For each entry, state what the reader observes, what a read-only check can establish, and what result points to the next action. The scaffold below leaves project-specific commands for verified values. Avoid first steps that delete caches, reinstall everything, or weaken security settings. Those interventions can erase useful evidence or create new problems. Explain what a successful check should show and when the reader should stop rather than continue through unrelated fixes. Link to deeper troubleshooting only after identifying the relevant branch. A small table can summarize symptoms, but the actual diagnostic instructions need enough room for conditions and limits.
### Symptom: [exact safe error excerpt]
Applies to: [versions and platforms]
Check: [read-only diagnostic]
Expected observation: [healthy result]
Next step: [conditional action]
Escalate with: [non-sensitive evidence]Make escalation easy without collecting secrets
When local checks do not resolve the issue, ask for the tool version, operating system, command context, sanitized error, and expected versus observed behavior. Tell users not to post tokens, private configuration, or customer data. Provide a support route whose audience and visibility are clear. Review the section when a new release changes error messages or prerequisites. Remove obsolete workarounds rather than leaving a maze of historical fixes. Test the entries with someone unfamiliar with the code and see whether they choose the right branch. The section succeeds when it reduces guesswork, not when every possible failure has a paragraph. Give each entry a last-verified context when behavior is version-sensitive. This helps maintainers remove workarounds that solved an older release but now send users toward the wrong diagnosis.
- Select a small set of observed first-run failures and preserve their recognizable symptoms.
- Start with read-only checks that distinguish causes before recommending changes.
- State stop conditions and link to the correct deeper guide.
- Provide a sanitized support-evidence checklist with an explicit warning against sharing secrets.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.