Claude's rules just leaked

I am not a huge fan of writing my own rules, but I know many of you are, so I felt you’d find this useful :slight_smile: perhaps as a montivation on how to do wording, or how to write rules etc.

Claude has released a npm module, and inside of it the following “rules” can be found.

There are more rules, for different use cases - error states, need-more-info states etc, but this is the big one, the happy-path one.

How does this compare with your own rules?
Have fun!

Edit: the source code can be found at @anthropic-ai/claude-code - npm but is quite unreadable so I extracted it above.

2 Likes

That’s actually gold man, thanks for sharing!

1 Like