← Back to context

Comment by EdwardDiego

12 hours ago

I've put some stuff in my global Claude.md to avoid things like...

* Claude trying to install packages into my Python system interpreter - (always use uv and venvs)

* Claude pushing to main - (don't push to main ever)

* When creating a PR, completely ignoring how to contribute (always read CONTRIBUTING.md when creating a PR)

* Yellow ANSI text in console output - (Color choices must be visible on both dark and light backgrounds)

Because I got sick of repeating myself about the basics.

Mine has "always run `task build` before claiming a task as done"

For all of my projects task build runs linters, tests and builds the project with as little output as possible on a happy path.

This catches a bunch of "it's a pre-existing issue" stuff from Claude. Sometimes I ask it to run build first, then start implementing just so that it can prove to itself that no, it wasn't a pre-existing issue, you broke something.