README and Developer Guides
Write the front door and the working manual for contributors: a README, a tested quickstart, developer guides, contribution rules, and troubleshooting that a newcomer can follow on a clean machine.
Introduction
A new engineer’s first day is a documentation test. Can they clone the repository, run the application and the tests, understand where things live, and make a small change, all without interrupting a colleague?
Every question they have to ask a person is a documentation defect. The README and developer guides are the documents that decide whether that first day takes an hour or a week.
Learning Objectives
- Write a README that answers the first questions every reader has.
- Create a quickstart that works on a clean machine and measure it.
- Organize developer guides: setup, workflow, testing, conventions, and releasing.
- Write contribution guidelines that reduce review friction.
- Write troubleshooting guides from symptoms to fixes.
- Keep setup instructions and automation in agreement.
- Use AI as a new-hire simulator and as a drafting assistant.
1. The README: The Front Door
A README is read first, often by someone deciding whether the project is relevant. It must answer, quickly:
- What is this? One or two sentences.
- Who is it for, and what is its status?
- How do I run it? The shortest path to seeing it work.
- How do I use or integrate it? Links to deeper documentation.
- How do I contribute or get help?
Keep it short and link outward. A README that tries to hold everything becomes unmaintainable.
2. A README Structure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SignalDesk
SignalDesk turns scattered customer feedback into evidence-backed
product insights for small B2B software teams.
Status: pilot (v0.1.0). The API may change before 1.0.
## Features
- Import feedback from CSV files, with validation and duplicate handling
- Workspace-scoped access to feedback
- Evidence-linked summaries (experimental)
## Quickstart
Prerequisites: Python 3.12, Docker, and make.
git clone https://example.com/signaldesk.git
cd signaldesk
make setup # install dependencies, start database
make run # start the API on http://localhost:8000
make test # run the fast test suite
Open http://localhost:8000/docs to see the API. Expected: the
interactive documentation page loads.
## Documentation
- Getting started (tutorial): docs/getting-started/
- API reference and guides: docs/api/
- Architecture: docs/architecture/overview.md
- Decisions: docs/architecture/decisions/
- Developer guide: docs/guides/developer-guide.md
## Contributing
See CONTRIBUTING.md. Questions? Open a discussion or contact the team.
## License
[License name]
Notes:
- Show expected results after commands, so that readers know they succeeded.
- State prerequisites with versions.
- Put status and stability honestly near the top.
- Use a badge or link for build status only if you will keep it accurate.
- Do not put marketing in a developer README. State what it does.
3. A Quickstart That Works
A quickstart is a tutorial for new contributors. Like every tutorial, it must guarantee success.
Principles:
- Few steps, each verifiable. Every step ends with something the reader can see.
- One path. Do not offer five installation methods; pick the supported one and link alternatives.
- Automate the steps. A
make setup(or script, or dev container) is better than twelve pasted commands, because automation can be tested and documentation then says “run this.” - No hidden prerequisites. State operating system, tool versions, accounts, and credentials needed, and say how to get them.
- Use safe defaults. A sample configuration with fake values, never real secrets.
- Measure it. Track time to first success on a clean machine. Set a target (for example, under 30 minutes, an illustrative figure) and watch it.
Test the quickstart on a clean environment (a fresh container or virtual machine) on every release, or automatically in CI. Your own machine has years of accumulated state that hides missing steps.
4. The Developer Guide
The README gets people started. The developer guide is the manual for working on the project. Split it into pages by task, not into one long file.
| Page | Contents |
|---|---|
| Setup and environment | Detailed setup, configuration, dev containers, test data |
| Project layout | Where things live and why; link to architecture documentation |
| Daily workflow | Branching, commits, pull requests, review expectations |
| Running and debugging | Run services, view logs, attach a debugger |
| Testing | How to run each level, where tests live, test data; link to the QA strategy |
| Coding conventions | Style, naming, error handling; what a linter enforces vs what humans judge |
| Database and migrations | Create, apply, and roll back migrations |
| Working with AI assistants | Approved tools, what may be shared, review rules for generated code |
| Releasing | Versioning, release notes, what the pipeline does (expanded in the DevOps course) |
| Troubleshooting | Symptom-based guide (below) |
Write them as how-to guides: start from the goal (“Add a database migration”), give numbered steps with expected results, and link to explanation. Link to the QA strategy for test policy instead of copying it.
5. CONTRIBUTING.md
Contribution guidelines turn unwritten rules into written ones, and reduce friction for both contributors and reviewers.
Include:
- How to find work and how to propose a change.
- Branch and commit message conventions.
- What a good pull request contains: description, tests, documentation updates, ADR where relevant.
- The checks that must pass and how to run them locally.
- Review expectations: who reviews, how long it takes, and how to respond to feedback.
- Code of conduct and how to report problems.
- For AI-assisted contributions: disclosure expectations, and that the author remains responsible for correctness, licensing, and security of what they submit.
6. Troubleshooting Guides
Newcomers hit the same problems. Write them down in the form people search: by symptom.
1
2
3
4
5
6
7
8
9
### `make setup` fails with "port 5432 already in use"
**Cause:** Another PostgreSQL instance is running on the default port.
**Fix:**
1. Stop the other instance, or
2. Set `DB_PORT=5433` in `.env` and rerun `make setup`.
**Check:** `make db-status` prints "ready".
Collect them from real questions: chat messages, onboarding notes, and pull request comments. When a question is asked twice, add it. Ask each new engineer to add one entry they wished had existed.
7. Keeping Instructions and Automation in Agreement
Instructions drift from reality when they are separate from the thing they describe.
- Prefer commands over prose.
make setupdocuments itself; its internals can change without the page changing. - Make documentation reference real targets. A check can scan the docs for
make <target>and verify that each target exists. - Keep a single list of prerequisites, in a version file or tool configuration, and have the documentation show the same list.
- Run the quickstart in CI from a clean container (lesson 3).
- Document scripts’
--helprather than duplicating options in prose.
8. Onboarding as a Test
Make onboarding an ongoing experiment:
- Give a new engineer only the README and the guides.
- Ask them to narrate their confusion and note every question they ask a person.
- Time the stages: environment running, tests passing, first small change merged.
- Turn each stumble into a documentation fix the same week.
- Repeat with each newcomer; the trend in time-to-first-merged-change is a useful health signal.
9. Using AI for README and Guides
Draft from the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Act as a technical writer creating a README and developer guide.
Inputs:
- Repository tree, build and dependency files, Makefile or scripts,
and configuration examples: [paste]
- Output of running the setup commands on a clean machine: [paste]
- Existing notes and onboarding questions: [paste]
- Style guide and glossary: [paste]
Tasks:
1. Draft the README following the structure above, using only
commands and tool versions that appear in the inputs.
2. Draft a troubleshooting page from the onboarding questions and
from errors in the output.
3. List information needed but missing from the inputs, as
questions.
4. List commands, paths, and versions in your draft that you could
not confirm.
Act as a new hire. This is the most useful application.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
You are a new backend engineer on day one with Linux, Git, and
Docker installed, and nothing else. Follow the README literally,
one command at a time.
For every step:
- State what you would run and what you expect to happen.
- Stop and report when a step is ambiguous, assumes something not
stated, or when the expected result is not described.
At the end, list: missing prerequisites, undefined terms, steps
that depend on state from earlier steps, and the three biggest
obstacles to being productive in the first hour.
Do not use outside knowledge to fill gaps.
The simulation finds missing explanations, not wrong commands. Only a real clean-machine run does that, so run it, and let the simulation guide where to look.
10. Practical Exercise
For SignalDesk (or your project):
- Write the README with the structure in section 2.
- Create or fix automation so that
setup,run, andtestcommands work from a fresh clone. - Run the quickstart on a clean environment, record each failure, and fix the documentation or the automation.
- Write the developer guide pages: setup, project layout, workflow, testing, conventions, migrations, AI assistant rules, and releasing.
- Write CONTRIBUTING.md.
- Write at least ten troubleshooting entries from real or likely problems.
- Run the new-hire simulation prompt and fix what it finds.
- Have a real newcomer try it, time the stages, and apply their feedback.
- Add a CI check that runs the quickstart and verifies that documented
maketargets exist.
Verification
You are ready to continue when:
- A person with only the README can get the system running and the tests passing without help.
- Time to first success is measured and meets your target.
- Every command and prerequisite in the documents was run on a clean environment.
- Developer guides are organized by task and link to, instead of duplicating, other documentation.
- CONTRIBUTING.md states what a good pull request contains and which checks must pass.
- Troubleshooting entries are organized by symptom, and each was reproduced.
- Automation checks that documented targets and versions are real.
Key Takeaways
- The README is the front door; keep it short, honest, and focused on first success.
- A quickstart is a tutorial and must be tested on a clean machine.
- Automate steps so that documentation can say “run this” and stay true.
- Write developer guides by task and troubleshooting by symptom.
- AI is most useful as a new-hire simulator; real clean-machine runs find the real errors.
What’s Next?
So far, our readers have been developers. Next, we write for the people the product is actually for: administrators and analysts who need to import feedback and trust the results, and who do not care how the system is built.