Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何安装和配置 Ruler 工具?

2025-08-21 256

安装和配置Ruler需要以下几个步骤:

安装要求

需要Node.js 18.x或更高版本环境

Installation steps

  • clone warehouse::
    git clone https://github.com/intellectronica/ruler.git
    cd ruler
  • Installation of dependencies::
    npm install
  • Build the project::
    npm run build
  • 全局安装(可选)::
    npm install -g @intellectronica/ruler

Verify Installation

运行以下命令确认安装成功:
ruler --version
应该返回类似0.2.10的版本号

Basic Configuration

创建工作目录并添加规则文件:
mkdir .ruler
touch .ruler/coding_guidelines.md
touch .ruler/style_guide.md

编辑ruler.toml定义目标代理和输出路径:
echo '[agents.copilot]
output = ".copilot/config.yml"
[agents.claude]
output = ".claude/config.json"' > ruler.toml

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish