sync-rules

Installation
SKILL.md

Sync rules

Solves the "same rules file copy-pasted into N repos, now I have to edit N places" problem. Canonical rule files live in this skill's rules/ folder (versioned in the claude-plugins repo — the source of truth). This skill never syncs blindly: it decides which canonical rules are relevant to the current project, then asks the user to approve the selection with a checkbox-style question before writing anything.

Paths in this skill are relative to the skill's own directory (given to you when the skill is invoked), not the target project. The bundled script finds the target project root itself by walking up from the current working directory to the nearest .git.

Steps

  1. Get the status of every canonical rule against this repo, without writing anything:

    node "<skill-dir>/scripts/sync-rules.mjs" --list
    
Installs
2
GitHub Stars
1
First Seen
Jul 25, 2026
sync-rules — janszewczyk/claude-plugins