npm i -g rules-cli
then rules add starter/nextjs-rules
rules
is a CLI built for managing rules across any AI IDE. Rules are markdown files that encode workflows, preferences, tech stack details, and more in plain natural language so you can get better help from LLMs.
rules
rules
CLI can be installed using NPM:
rules add
. For example:
.rules
folder.
You can also download from GitHub rather than the rules registry:
rules render
. For example,
.rules/
into a .cursor/rules/
folder. rules
currently supports the following formats:
.continue/rules/*.md
(Continue Dev rules).cursor/rules/*.mdc
(Cursor rules).windsurf/rules/*.md
(Windsurf rules)CLAUDE.md
(Claude Code single file).github/instructions/*.instructions.md
(GitHub Copilot instructions)AGENT.md
(Codex single file).clinerules/*.md
(Cline rules).sourcegraph/*.rule.md
(Sourcegraph Cody rules)AGENT.md
(Amp single file)rules publish
:
rules add <name-of-rules>
.
You can use our template repository to automate publishing with GitHub Actions.
rules
makes it easy to give your users the best experience.
rules add <name-of-rules>
command in your documentationrules
is open-sourced under the Apache 2.0 license. If you’re interested in contributing, learn more here.