THE GITHTML FIELD GUIDE
Keep README configuration short without hiding required settings
Put only the settings needed for the first useful result in the README, then link to a complete configuration reference. Clearly distinguish required values, defaults, and optional overrides. Explain where each setting comes from and when it takes effect, but do not duplicate an entire reference that will drift independently from the software.
Separate first-run needs from the full settings catalog
Inventory the settings used by the quickstart and identify which the user must supply. A default that works for the sample does not necessarily suit production. State the intended scope of the example before listing values. Keep advanced tuning, compatibility switches, and experimental settings in the detailed reference unless they change whether the basic path succeeds. Avoid a giant environment-variable table near the top of the README. That can make an otherwise simple project look impossible to start while still failing to explain the handful of values that actually matter. Link directly to the relevant reference section.
Document each essential value precisely
For every first-run setting, give its exact name, where it is read, whether it is required, its verified default if any, and an example that contains no secret. Explain the distinction between an unset value and an explicitly empty value when the application treats them differently. If several configuration sources can supply the same setting, point to the documented precedence rather than assuming environment variables always win. The scaffold below intentionally leaves the default field unresolved until verified. Do not fill unknown defaults with plausible values. Tell readers whether a change requires a restart or is picked up dynamically only when that behavior is established.
| Setting | Required | Default | Purpose |
| --- | --- | --- | --- |
| SAMPLE_MODE | [verify] | [verify] | Selects the documented sample behavior |
Full precedence and validation rules: [configuration reference](docs/configuration.md).Keep the summary synchronized through a clear owner
Choose one authoritative reference for the complete configuration contract and make the README a curated entry point. Review both when adding or changing a required setting. Test the quickstart with only the documented values, without relying on a maintainer's existing environment. Search the sample files for stale names and values that contradict the README. If a setting contains a credential, explain the approved provisioning mechanism without publishing a real credential or implying that a committed sample is secure storage. A short accurate summary is more useful than a copied reference table whose details slowly become inconsistent across several files.
- List only values needed for the first-run path and link deeper tuning separately.
- Verify names, defaults, precedence, and reload behavior from the implementation or maintained contract.
- Test with a clean environment containing only documented settings.
- Assign one authoritative reference and review all summaries when its contract changes.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.