A month ago, a stranger opened a pull request on my pull-up timer. Since then, I've had two pull requests merged into mssql, the SQL Server driver for Node.js, and a third is lined up.
What got me from one to the other wasn't a clever trick. It was one prompt, and then a better version of it.
How it started
I attempted 2,000 pull-ups in a day, and failed. The next morning I open-sourced the timer I'd built for it, put it on Vercel, and kept using it every week. (I wrote about that here.)
I tagged a few issues good first issue. Soon after, someone I'd never met opened a pull request with a feature I hadn't thought of: selectable formats for the session summary. It came with tests and a clear description of how they'd checked it. I merged it.
They were clearly using a cloud coding agent to find and fix issues. So I tried the same setup myself, and the thought that stuck with me was: someone spent their spare AI capacity on my project. Where could I spend mine?
Prompt #1: "based on my stack"
I asked ChatGPT Codex (SOL 6.2), running in the cloud:
can you search and suggest 4-5 repositories with good first issues that we can contribute to? based on my stack It came back with five repositories that matched my stack (TypeScript, React, Node.js), each with a good first issue and an honest assessment of how hard it was. I picked a small React component library and fixed an accessibility bug in it.
It worked. But something was off. These were repos that looked like mine. I'd never used any of them. I had no real reason to care if they broke.
Prompt #2: "something I actually use"
So I narrowed it down:
something that i use on [my project] My project is an internal app I build for the school I work at. This time the agent read its package.json and looked for open issues in my actual dependencies. The top of the list was mssql, the driver it uses to talk to SQL Server, every day, for every page.
That changes everything about a contribution:
- You already understand the bugs. You've probably hit some of them.
- You have a reason to care. Your fix ships into your own app on the next upgrade.
- The maintainers get a real user, not a drive-by.
If you want to try it, here's a cleaner version of what I ended up asking:
Look at the package.json files in this repo. For the libraries my project depends on directly, find open issues labelled "good first issue" or "help wanted". Shortlist 4-5. For each one, tell me why it fits me, whether someone already has a linked PR, and how active the maintainers are. Don't write any code yet. Fig 1 - Same agent, two prompts. Only the second one pointed at code I actually run.
The human part: checking for other people's work
The agent's first two suggestions were mssql issues #1933 and #1935. It flagged, honestly, that it hadn't confirmed whether anyone was already working on them. I checked, and both had related pull requests open.
I pushed back, and it looked again, more carefully. Two better candidates came up:
- #1770: pool timeouts said "operation timed out for an unknown reason", without saying the request was waiting for a database connection.
- #1837: when a pool is closed, requests waiting for a connection fail with a bare
Error('aborted')that you can't tell apart from anything else.
Remember those four issue numbers. They come back.
Contribution 1: a better timeout message (#1952)
I told the agent to go ahead with #1770. It wrote failing tests first, then the fix, then ran the lint and all 286 unit tests. It couldn't fork the upstream repository for me, so I did that myself, and it pushed the branch and opened a draft PR.
The fix is one line in the pool's acquire path:
if (err instanceof tarn.TimeoutError) { err.message = `Failed to acquire a connection from the pool: ${err.message}` } So the error now reads:
Failed to acquire a connection from the pool: operation timed out for an unknown reason The maintainer raised a point I hadn't considered: someone's code out there might be matching on the exact text of that error. We talked it through. The original text is still there, word for word, so a check like message.includes('operation timed out') keeps working.
It was merged on 4 November with a "welcome!", and shipped in mssql 12.7.14.
Fig 2 - Who did what on the first PR. The agent did the typing; the fork, the review and the conversation were mine.
"Where else can I help?"
After the merge, I left a comment: I use this library in a self-hosted app at a school, this was my first contribution, and if there's anywhere you'd like me to focus, I'm happy to be steered.
The maintainer pointed me to #1933 and #1935, the same two issues I'd skipped because of the related PRs. With the maintainer's blessing, and the codes they wanted written in the issue, they were no longer a risk of stepping on someone's toes.
Fig 3 - The four issues the agent found turned into my whole roadmap, including the two I skipped.
Contribution 2: no more TypeError (#1954)
If you create a Request or PreparedStatement without a connection pool and run it, you got a TypeError: Cannot read properties of undefined from deep inside the library. Not a helpful message, and not something your error handling expects.
The fix makes those cases fail the way the rest of the library does, with a proper error and a code (ENOCONN). It came with 13 unit tests and a separate docs: commit for the README.
This one taught me more about working in someone else's codebase:
- Other people's PRs move under you. While mine was open, another contributor's PR fixed a related issue, which made one of my README notes wrong. I dropped it before the maintainer had to ask.
- Give the maintainer the decision, not a fait accompli. There were two reasonable error codes for one case. I picked one, explained the other in the PR description, and let the maintainer choose. They kept mine.
- A second reviewer helps. I ran CodeRabbit locally on the branch before marking it ready.
Merged on 19 November, shipped in 12.7.16.
What's next: #1837
That leaves the last of the four: the aborted wait when a pool closes. It touches the same code as my first PR, but it's a design decision (which error code? keep the message?), so I've asked the maintainer how they'd like it done before writing anything.
What the AI did, and what I did
The AI was fast at the parts that used to keep me out of unfamiliar codebases:
- reading the code and finding where a bug lives;
- writing the failing tests first, then the fix;
- running the lint and the test suite, every time;
- drafting PR descriptions.
What stayed with me:
- choosing which issue to take, and checking nobody else had it;
- forking, and deciding when a PR was ready for the maintainer;
- the design choices, and every comment to the maintainer, in my own words;
- reviewing every line before it went out.
The maintainer reviewed every line too. That part doesn't get automated, and it shouldn't.
Give it a go
If you pay for an AI subscription and don't use all of it, point it at the libraries you depend on.
- Start from your own
package.json, not from "my stack". - Check for existing work before writing code: linked PRs, claim comments, recent activity.
- Keep the first PR small. A better error message is a perfectly good first contribution.
- Ask the maintainer where to help next. Mine pointed me to my second PR.
- Read the contributing guide, including what it says about AI-assisted contributions.
A stranger's pull request started this. Somewhere, a library you use every day has an issue with your name on it.
What's the library you use most that you've never looked inside?


