Coding & Developmentβ¨geminiπ€claudeβ¨οΈcursorπuniversal
AI Rules Sync
Synchronize, manage, and share your ai rules, skills, commands, subagents (Cursor, Claude Code, Copilot, OpenCode, Trae AI, Codex, Gemini CLI, Warp) with ease.
Quick Start
Install this Skill
npx skills add lbb00/ai-rules-sync# AI Rules Sync [](https://www.npmjs.com/package/ai-rules-sync) [](https://github.com/lbb00/ai-rules-sync/blob/master/LICENSE) [](https://www.npmjs.com/package/ai-rules-sync) [English](./README.md) | [δΈζ](./README_ZH.md) **AI Rules Sync (AIS)** - Synchronize, manage, and share your AI agent rules across projects and teams. Stop copying `.mdc` files around. Manage your rules in Git repositories and sync them via symbolic links. **Supports:** Cursor (rules, commands, skills, subagents), GitHub Copilot (instructions, prompts, skills, agents), Claude Code (rules, skills, subagents), Trae (rules, skills), OpenCode (commands, skills, agents, tools), Codex (rules, skills), Gemini CLI (commands, skills, agents), Warp (rules via AGENTS.md, skills), and universal AGENTS.md. --- ## Table of Contents - [Why AIS?](#why-ais) - [Quick Start](#quick-start) - [Installation](#installation) - [Supported Tools](#supported-tools) - [Core Concepts](#core-concepts) - [Basic Usage](#basic-usage) - [Tool-Specific Guides](#tool-specific-guides) - [Advanced Features](#advanced-features) - [Configuration Reference](#configuration-reference) - [Architecture](#architecture) --- ## Why AIS? - **π§© Multi-Repository**: Mix rules from company standards, team protocols, and open-source collections - **π Sync Once, Update Everywhere**: One source of truth, automatic updates across all projects - **π€ Team Alignment**: Share coding standards instantly, onboard new members with one command - **π Privacy First**: Keep sensitive rules local with `ai-rules-sync.local.json` - **π οΈ Git Integration**: Manage repositories directly through CLI (`ais git`) - **π Extensible**: Plugin architecture for adding new AI tools --- ## Quick Start ### Scenario 1: Use Existing Rules **You have a rules repository and want to use its rules in your project.** ```bash # 1. Install AIS npm install -g ai-rules-sync # 2. Go to your project cd your-project # 3. Add a rule (IMPORTANT: specify repository URL the first time) ais cursor add react -t https://github.com/your-org/rules-repo.git # Done! The rule is now linked to your project ``` **What just happened?** - AIS cloned the repository to `~/.config/ai-rules-sync/repos/` - Set it as your current repository - Created a symlink: `rules-repo/.cursor/rules/react` β `your-project/.cursor/rules/react` - Saved the configuration to `ai-rules-sync.json` **Next time**, you can omit the `-t` flag: ```bash ais cursor add vue ais cursor add testing ``` ### Scenario 2: Share Your Existing Rules **You have rules in your project and want to share them via a repository.** ```bash # 1. Install AIS npm install -g ai-rules-sync # 2. Create a rules repository (or use existing one) # Option A: Create new repository git init ~/my-rules-repo ais use ~/my-rules-repo # Option B: Use existing repository ais use https://github.com/your-org/rules-repo.git # 3. Import your existing rule cd your-project ais cursor rules import my-custom-rule # Done! Your rule is now in the repository and linked to your project ``` **What just happened?** - AIS copied `your-project/.cursor/rules/my-custom-rule` to the repository - Created a git commit - Replaced the original with a symlink - Saved the configuration to `ai-rules-sync.json` **Optional: Push to remote** ```bash ais cursor rules import my-rule --push # or manually: ais git push ``` --- ## Installation ```bash npm install -g ai-rules-sync ``` **Verify installation:** ```bash ais --version ``` **Optional: Enable tab completion** ```bash ais completion install ``` --- ## Supported Tools | Tool | Type | Mode | Default Source Directory | File Suffixes | Documentation | |------|------|------|--------------------------|---------------|---------------| | Cursor | Rules | hybrid | `.cursor/rules/` | `.mdc`, `.md` | [Docs](https://cursor.com/docs/context/rules) | | Cursor | Commands | file | `.cursor/commands/` | `.md` | [Docs](https://cursor.com/docs/context/commands) | | Cursor | Skills | directory | `.cursor/skills/` | - | [Docs](https://cursor.com/docs/context/skills) | | Cursor | Subagents | directory | `.cursor/agents/` | - | [Docs](https://cursor.com/docs/context/subagents) | | GitHub Copilot | Instructions | file | `.github/instructions/` | `.instructions.md`, `.md` | [Docs](https://docs.github.com/copilot) | | GitHub Copilot | Prompts | file | `.github/prompts/` | `.prompt.md`, `.md` | [Docs](https://docs.github.com/copilot) | | GitHub Copilot | Skills | directory | `.github/skills/` | - | [Docs](https://docs.github.com/en/copilot/using-github-copilot/using-extensions-to-integrate-external-tools-with-copilot-chat) | | GitHub Copilot | Agents | file | `.github/agents/` | `.agent.md`, `.md` | [Docs](https://docs.github.com/copilot) | | Claude Code | Rules | file | `.claude/rules/` | `.m ... (truncated)
Repository
11stars
0forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
π€claudeπuniversal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
πuniversal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
β¨geminiπ€claudeπ¬gptπuniversal
524
34
View
misakanet-failure-memory
Coding & Developmentπ A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
π€claudeβ¨οΈcursorπuniversal
424
158
View