/newrule
is a slash command that lets you teach Cline your preferred way of working. It creates a markdown file in your .clinerules
directory that acts like persistent instructions for how Cline should behave when helping with your projects.
Think of it as setting up house rules that Cline will always follow, so you don’t have to repeat your preferences in every conversation.
/newrule
Slash Command/newrule
in the chat.clinerules
directory that will automatically be loaded for future conversations/newrule
when I was fed up with repeating the same instructions on every new task. I had specific preferences for how I wanted my React components structured, which testing library to use, and even my preferred variable naming style.
Instead of typing these preferences each time, I just used /newrule
and worked with Cline to create a detailed rule file. We built a markdown file that covered everything from code organization to my preference for functional components over class components.
Now whenever I chat with Cline about my React project, it automatically follows these guidelines without me having to remind it. The best part is that I can create different rule files for different projects, so Cline adapts to whatever codebase I’m working on.
/newrule
to make my development smoother: