Agent Rule Pilot for Openclaw

A centralized management tool for AI coding agent rules that synchronizes configurations across multiple platforms from a single Markdown file.

singggggyee
v1.0.0
Apr 5, 2026
0
657
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install agent-rule-pilot

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install agent-rule-pilot using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Agent Rule Pilot?

Agent Rule Pilot is a specialized utility designed to eliminate the friction of managing multiple AI instruction files. In modern development environments, developers often use several tools simultaneously, such as Cursor, Claude Code, and Windsurf, each requiring its own configuration file. This skill allows you to maintain a single source of truth in a RULES.md file and automatically propagates those instructions to all supported agents.

As a core part of the Openclaw Skills ecosystem, it ensures that your AI assistants stay updated with your latest project guidelines, coding standards, and architectural preferences. By automating the synchronization process, it prevents configuration drift and ensures a consistent experience regardless of which AI agent you are interacting with.

Agent Rule Pilot Use Cases

  • Keeping project rules synchronized across Cursor, Claude Code, and GitHub Copilot simultaneously.
  • Automatically generating a starter set of coding rules by detecting the project's primary language and framework.
  • Auditing existing configuration files to identify and resolve inconsistencies through drift checks.
  • Migrating instruction sets from one AI agent format to another without manual reformatting.

How Agent Rule Pilot Works

  1. The skill first scans the repository to detect existing configuration files and the presence of a RULES.md master file.
  2. If a RULES.md exists, it parses the content and identifies any agent-specific overrides using comment markers.
  3. It compares the state of individual agent files (like .cursorrules or CLAUDE.md) against the master file to identify drift.
  4. Before applying updates, the skill generates a diff to show exactly what changes will be made to each configuration file.
  5. Upon user confirmation, it writes the formatted rules to the respective locations while maintaining valid JSON or Markdown syntax for each platform.

Agent Rule Pilot Setup

To start using this skill within your project, you can use the following commands:

# Generate a new RULES.md based on your project structure
openclaw run "create RULES.md"

# Synchronize your master rules to all detected agents
openclaw run "sync my agent configs"

# Check if any agent configs have diverged from the master file
openclaw run "check config drift"

Agent Rule Pilot Data Schema & Taxonomy

Agent Rule Pilot interacts with several specific file types to manage your Openclaw Skills environment:

File Path Description Format
RULES.md The primary source of truth for all coding instructions. Markdown
CLAUDE.md Instructions specific to Claude Code. Markdown
.cursorrules Configuration for the Cursor IDE. Markdown
.github/copilot-instructions.md Rules for GitHub Copilot. Markdown
.windsurfrules Configuration for the Windsurf editor. Markdown
.sourcegraph/cody.json Configuration for Sourcegraph Cody. JSON

The skill identifies agent-specific blocks within the master file using the following syntax: <!-- agent:name --> content <!-- /agent:name -->.

Agent Rule Pilot Advanced Features

  • Smart project detection that analyzes package.json, Cargo.toml, or go.mod to suggest relevant best practices.
  • Bi-directional extraction allowing you to create a master RULES.md file from existing scattered configuration files.
  • Per-agent overrides that allow you to specify instructions that only apply to a single tool like Claude Code.
  • Automated format validation to ensure that JSON-based configurations remain syntactically correct after updates.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*