Bench note
Connector pinouts in the repo before the repair
You will forget which pin is ground. Not today, not next week, but the Tuesday night three months from now when the sensor stops talking and you need to probe voltages without destroying anything.
A text file beats archaeology
Create PINOUTS.md in your project root. One connector per heading. Pin 1 at the top, physical orientation noted, voltage levels explicit. If the connector is keyed, say which way. If it isn't keyed and should have been, admit that too.
Every custom cable, every board-to-board header, every screw terminal that carries more than ground. When you write "3V3" instead of "3.3V", future-you will parse it correctly. When you write "SDA (pull-up on main board)", you won't spend twenty minutes with the multimeter proving the obvious.
The photo that saves the evening
Phone camera, decent light, ruler in frame for scale. Drop the image in a docs/hardware/ folder and link it from the pinout file. Mark pin 1 with a bright dot in your image editor if the silkscreen is ambiguous.
If you're feeling precise, ASCII art works—o for used pins, . for no-connect. It renders in every text editor made since 1987. You can read it over SSH when the board is in another room and you're not moving from this chair.
Voltage domains matter more than you think
Document what each pin expects and what it outputs. "5V input" is different from "5V-tolerant input on a 3.3V rail." Write the current budget if you know it. Write the fusing if it exists. When your I²C line is pulled to 5V because you forgot the level shifter, the README won't judge you—but it will tell you where to look.
Cross-reference your schematic filename and commit hash. If the circuit changes, update the pinout doc in the same commit. Treat them as coupled artifacts. Schematic rot is real; documentation drift is worse.
When the connector lives on a daughter board
Note the mating connector part number. Note the crimp tool you used. Note the wire gauge. Six months later, you'll want to build a second cable, and "some JST thing" is not a searchable term. Neither is "the red-handled crimper."
If you're disciplined about commit messages, link the pinout doc in the commit that adds the connector footprint. If you're less disciplined, link it when you realize the oversight. No shame, just correction.
The ContentMine team keeps connector genealogy in their hardware repos for the same reason: you write it once and query it forever. It's the same muscle as help text—small up-front cost, infinite future dividend.
Maintenance notes belong here too
If pin 4 has a loose solder joint you've reflowed twice, document that. If the ribbon cable only seats properly when you push from the left side, write it down. If the connector will accept the plug backwards and let the magic smoke out, scream it in all caps.
Your documentation should sound like you're briefing the person who has to fix this in the dark while you're on vacation. Because eventually, that person is you.