Agent skill

Rulesync

by dyoshikawa in dyoshikawa/rulesync

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source.

MITAuto-check passedAgent Workflows

Install Rulesync

skills CLI
$ npx skills add dyoshikawa/rulesync --skill rulesync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dyoshikawa/rulesync rulesync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rulesync .claude/skills/rulesync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rulesync
GitHub stars
1.5k
Token cost
~890 tokens
SKILL.md length
264 words
Files
1
Skills in repo
40
Repo updated
First seen
Licence
MIT

At a glance

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source.

  • Works in 4 steps: Init - rulesync init creates… → Write rules - Add shared AI rules in… → Generate - rulesync generate produces… → …
  • Syncing AI rules
  • SKILL.md covers Quick Start, Core Workflow, Key Commands and Detailed Reference
  • Calls npm

What it does

Rulesync is an agent skill from dyoshikawa/rulesync. Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: A Utility CLI for AI Coding Agents. The licence is MIT.

When your agent uses it

  • Syncing AI rules
  • Running rulesync commands
  • Generating rule files
  • Managing shared AI coding configurations

Example prompts

  • “Use the rulesync skill to generate and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools…”
  • “/rulesync”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Init - rulesync init creates rulesync.jsonc config and .rulesync/ directory with sample rules
  2. Write rules - Add shared AI rules in .rulesync/rules/, MCP configs in .rulesync/mcp/, commands in .rulesync/commands/
  3. Generate - rulesync generate produces tool-specific files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, etc.)
  4. Verify - rulesync generate --dry-run previews changes; --check validates files are up to date (useful in CI)

What it can do on your machine

Read from SKILL.md and the folder at commit f14b5bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rulesync loads about 890 tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 264 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~890

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dyoshikawa/rulesync at commit f14b5bd, republished under its MIT licence (© dyoshikawa). 264 words, ~890 tokens.

Download SKILL.mdSave it as .claude/skills/rulesync/SKILL.md (or your agent's skills folder).
name
rulesync
description
Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.
targets
*

Rulesync

Rulesync generates and synchronizes AI rule configuration files across 20+ coding tools (Claude Code, Cursor, Copilot, Cline, Gemini CLI, and more) from a single set of unified rule files in .rulesync/.

Quick Start

bash
# Install
npm install -g rulesync

# New project: initialize config, rules, and directory structure
rulesync init

# Import existing AI tool configs into unified format
rulesync import --targets claudecode    # From CLAUDE.md
rulesync import --targets cursor        # From .cursorrules
rulesync import --targets copilot       # From .github/copilot-instructions.md

# Generate tool-specific configs from unified rules
rulesync generate --targets "*" --features "*"

Core Workflow

  1. Init - rulesync init creates rulesync.jsonc config and .rulesync/ directory with sample rules
  2. Write rules - Add shared AI rules in .rulesync/rules/, MCP configs in .rulesync/mcp/, commands in .rulesync/commands/
  3. Generate - rulesync generate produces tool-specific files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, etc.)
  4. Verify - rulesync generate --dry-run previews changes; --check validates files are up to date (useful in CI)

Key Commands

CommandPurpose
rulesync initScaffold project with config and sample rules
rulesync generate --targets "*" --features "*"Generate all tool configs from unified rules
rulesync import --targets <tool>Import existing tool config into unified format
rulesync fetch owner/repoFetch skills from a remote repository
rulesync installInstall skill sources declared in rulesync.jsonc
rulesync generate --checkCI check that generated files are up to date
rulesync generate --dry-runPreview changes without writing files
rulesync generate --watchRegenerate whenever source files change
rulesync docs [document]Print bundled documentation
rulesync docs --search <text>Search the bundled documentation

Detailed Reference

The complete Rulesync documentation is bundled with the CLI. Consult it with rulesync docs before answering Rulesync-specific questions or performing unfamiliar Rulesync operations — it is the canonical detailed reference.

  • rulesync docs — list every available document identifier
  • rulesync docs <document> — print one document, e.g. rulesync docs faq or rulesync docs guide/configuration
  • rulesync docs --search <text> — ranked full-text search across the documentation, e.g. rulesync docs --search "global mode"

Useful starting points: getting-started/quick-start, guide/configuration, reference/cli-commands, reference/supported-tools, reference/file-formats, faq.

© dyoshikawa, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/rulesync of dyoshikawa/rulesync.

Open the folder on GitHubat commit f14b5bd

Compare with similar skills

Rulesync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rulesync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rulesync this skilldyoshikawa/rulesync1.5k—~890Automated safety check: PassMIT
Using Agent Skillsaddyosmani/agent-skills102k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0
Writing For Agentsbestofjs/bestofjs3.1k17 repos~2.7kAutomated safety check: PassMIT

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    102k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 17 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from dyoshikawa/rulesync

All 40 skills in this repo
  • Rulesync Feature Research

    dyoshikawa/rulesync

    Maps rulesync feature implementations to upstream coding-agent documentation.

    1.5k GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Babysit Dependabot PR

    dyoshikawa/rulesync

    Babysit a Dependabot dependency-bump PR all the way to merge: verify the author is the genuine Dependabot bot, diagnose and resolve any CI failure (excluding or fixing a breaking bump when needed)…

    1.5k GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Commit Push PR

    dyoshikawa/rulesync

    Commit current changes, push to remote, and create or update a pull request.

    1.5k GitHub stars~458 tokensUpdated 2 days ago
    Auto-check passed
  • Git Worktree Runner

    dyoshikawa/rulesync

    Manages git worktrees using git-worktree-runner (gtr). An agent skill from dyoshikawa/rulesync.

    1.5k GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check: notes
  • Goal PR

    dyoshikawa/rulesync

    Drive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge.

    1.5k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Goal Release

    dyoshikawa/rulesync

    Cut a release end to end: use the draft-release skill to open the release PR and draft GitHub release, wait for CI to turn green, run the merge-pr skill to merge the release PR, then update the…

    1.5k GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Rulesync

What does Rulesync do?

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Rulesync is an agent skill from dyoshikawa/rulesync.md) across 20+ coding tools from a single source.

When should I use Rulesync?

Rulesync fits situations like: syncing AI rules; running rulesync commands; generating rule files; managing shared AI coding configurations.

How do I install Rulesync in Claude Code?

Run `npx skills add dyoshikawa/rulesync --skill rulesync -a claude-code`. Or copy the skill folder (skills/rulesync in dyoshikawa/rulesync) into .claude/skills/rulesync in your project. Claude Code loads it when a task matches its description.

How do I install Rulesync in Codex?

Run `npx skills add dyoshikawa/rulesync --skill rulesync -a codex`. Or copy the skill folder (skills/rulesync in dyoshikawa/rulesync) into .agents/skills/rulesync in your project. Codex loads it when a task matches its description.

Can I use Rulesync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dyoshikawa/rulesync --skill rulesync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rulesync, .gemini/skills/rulesync, .github/skills/rulesync and .opencode/skills/rulesync in your project.

What does Rulesync need to run?

Going by SKILL.md and its folder, Rulesync needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Rulesync access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Rulesync safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rulesync use?

Rulesync is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rulesync use?

About 890 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rulesync?

Skills that share tags, products or a category with Rulesync: Using Agent Skills (addyosmani/agent-skills, 102k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars) and Task Observer (rebelytics/one-skill-to-rule-them-all, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rulesync?

dyoshikawa (a GitHub user) maintains it in dyoshikawa/rulesync, which has 1,502 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 5, 2026.

Source: dyoshikawa/rulesync on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.