[PRs #2–#3] A File Uploaded and Deleted Minutes Later
- What changed: A rules file was uploaded to the repository, and after finding the same content already existed, it was removed in two PRs.
- Decision: It was decided that one PR carries only one thing, and that overlaps are checked before uploading.
- Still unknown: This post is a record of that time, so the current repository may differ.
At my request, Claude uploaded one file to the repository, and a few minutes later, again at my request, deleted it. It was a small matter involving two PRs (requests to merge a change), but the lesson was clear.
The first PR, uploading
At my request, Claude uploaded a skill file (.claude/skills/karpathy-guidelines/SKILL.md, 2.5KB) from the andrej-karpathy-skills repository that Claude had copied to my computer the day before. A skill is a guide Claude follows for a particular kind of task. The folder existed only on my computer and not in the repository. Once it is uploaded, the same skill applies even if I get the project on another computer.
- Before uploading, Claude read the file to the end to make sure it held no sensitive values such as passwords or keys. It is the English original under the MIT license (a condition that lets you use it freely as long as you credit the source), so Claude judged that uploading it was fine.
- Claude also knew, and had told me earlier, that a Korean version of the same Karpathy principles was already in CLAUDE.md, so the two overlapped. But Claude did not clean that up in this PR. It uploaded the file as it was and said so in the PR description. The goal was to keep one thing per PR.
The second PR, cleaning up the overlap
I asked for the overlap to be cleaned up. Deleting a file is a big change, so Claude showed me the options and a plan first, and I decided which side to keep.
- Kept: the Korean version in CLAUDE.md. It is read in every conversation (a skill is only called up when writing code). Being in Korean, it also fits my “explain in plain language” rule.
- Dropped: the English skill file. It is not always read, and it is in English.
- I chose to have the two lines that existed only in the skill moved into CLAUDE.md, and Claude moved them. “Do not add error handling for situations that cannot happen” and “do not refactor (clean up internals without changing how it looks) code that is not broken”.
How I checked
- Claude compared the two files line by line, and the only content that existed solely in the skill was those two lines.
- Before committing, Claude compared the change to confirm it was just “two lines added plus the skill deleted”.
- This repository has no automated checks (CI, tests that run automatically on every push), so the check result count was zero.
What I learned
- Because the file was uploaded first and the overlap cleanup was left for later, there was one more PR. If the overlap had been resolved before uploading, two PRs would not have been needed. “One thing per PR” is not always right, and when you already know something overlaps, resolving it before uploading is better.
- Deletion is hard to undo, but the file remains in git’s history (the first PR’s commit), so I can recover it if needed.
- The second PR took less than ten seconds from creation to merge, because I had said to proceed straight through creating the PR, merging it and returning to
main.