ruler-rules-init

Bootstrap Ruler-based rules with templates and project detection.

2|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/Adonis0123/adonis-skills --skill ruler-rules-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruler-rules-init
Source: https://github.com/Adonis0123/adonis-skills/tree/main/skills/ruler-rules-init
Command: npx skills add https://github.com/Adonis0123/adonis-skills --skill ruler-rules-init

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Migrate and bootstrap Ruler-based AI rules across repositories with English-first templates, preset-based project detection, and safe, idempotent setup. Use when creating or standardizing .ruler/* files, generating AGENTS.md/CLAUDE.md, wiring ruler:apply into package.json, adding generated-file ignores in .gitignore, and designing applyTo scoping patterns such as ** and web/**.

Core Features & Use Cases

  • Safe, template-driven scaffolding that standardizes Ruler integration across multi-repo or single-repo setups.
  • Preset-based project detection (auto / base / nextjs / monorepo / node-lib) and idempotent application to minimize drift.
  • Automated wiring of ruler:apply, AGENTS.md, CLAUDE.md, and .gitignore updates, plus optional skills-sync integration.
  • Works for both monorepos (Turbo / pnpm) and standalone repositories, with mode audit/apply support.

Quick Start

Run the bootstrap tool to generate Ruler templates, wire ruler:apply into package.json, and update .gitignore and agent files.

Frequently Asked Questions about ruler-rules-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap Ruler rules across multiple repositories?

Bootstrapping Ruler rules across multiple repositories involves applying template-driven scaffolding to standardize `.ruler/*` file generation. This process uses preset-based project detection and wires ruler:apply into package.json for safe, idempotent setup across monorepos.

What is the best way to standardize AGENTS.md and CLAUDE.md generation?

The best way to standardize AGENTS.md and CLAUDE.md generation is through automated Ruler integration with preset-based project detection. This safely generates agent files and applies applyTo scoping patterns like `**` or `web/**` to minimize configuration drift.

Can I use preset-driven scaffolding for a pnpm monorepo?

Yes, preset-driven scaffolding supports a pnpm monorepo. The bootstrap tool handles both monorepo (Turbo / pnpm) and standalone repositories, applying auto-detection with presets like monorepo or node-lib to wire configurations safely.

How does idempotent setup prevent configuration drift in Ruler?

Idempotent setup prevents configuration drift in Ruler by ensuring repeated applications of the bootstrap tool produce the same result without overwriting manual changes. It safely applies templates and updates `.gitignore` while standardizing `.ruler/*` files across runs.

Why do I need to add generated-file ignores in .gitignore for Ruler?

You need to add generated-file ignores in `.gitignore` for Ruler to prevent committing auto-generated files like AGENTS.md or CLAUDE.md into version control. The bootstrap tool automatically wires these `.gitignore` updates to keep your repository clean and standardized.

When should I use applyTo scoping patterns like web/** in Ruler?

You should use applyTo scoping patterns like `web/**` or `**` in Ruler when you need to target specific directories or the entire repository for AI rules. Designing these patterns during the bootstrap process ensures rules apply only to the intended project scopes safely.