sync-rules
Synchronize shared rules into agent context files and headers.
Best use case
sync-rules is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Synchronize shared rules into agent context files and headers.
Teams using sync-rules should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/sync-rules/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How sync-rules Compares
| Feature / Agent | sync-rules | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Synchronize shared rules into agent context files and headers.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Sync Rules Skill
Synchronize shared rules from `shared-rules/` to all agent context files.
## Overview
This skill propagates rules from the central `shared-rules/` directory to:
- `CLAUDE.md` (this file)
- Project-level context files
- Agent-specific overrides
## Usage
```
/sync-rules
```
## Prerequisites
- Python environment available to run `scripts/sync-rules.py`.
## How It Works
1. **Read shared rules**:
```
shared-rules/
├── core-rules.md
├── coding-standards.md
├── guardrails.md
├── cli-reference.md
├── lessons-learned.md
└── agent-overrides/
└── claude.md
```
2. **Assemble CLAUDE.md**:
- Start with claude-specific header
- Append shared rules in order
- Add lessons learned at end
3. **Update timestamp**:
```markdown
<!-- AUTO-GENERATED from shared-rules/ -->
<!-- Last synced: 2026-01-22 12:00:00 -->
```
## Execution
```bash
python scripts/sync-rules.py
```
Or manually:
1. Read all files from `shared-rules/`
2. Concatenate in order
3. Write to `CLAUDE.md`
## File Order
1. `agent-overrides/claude.md` - Claude-specific rules (header)
2. `core-rules.md` - Core workflow rules
3. `coding-standards.md` - Coding guidelines
4. `guardrails.md` - Safety guardrails
5. `cli-reference.md` - CLI tool reference
6. `lessons-learned.md` - Lessons from past issues
## Validation
After sync, verify:
- [ ] CLAUDE.md updated
- [ ] Timestamp current
- [ ] No merge conflicts
- [ ] Rules are complete
## Outputs
- Updated `CLAUDE.md` and any derived context files.
## Error Handling
- If sync fails, stop and fix the script or inputs before continuing.
- If timestamps are stale, rerun the sync to avoid mismatched rules.
## Examples
```
/sync-rules
```
## Related Skills
- `/add-lesson` - Add a lesson before syncing rules
## When to Sync
Run sync after:
- Adding a new lesson learned
- Updating shared rules
- Before starting a new workflow
- After pulling changes from gitRelated Skills
sync-skills
Use when syncing skills from local folders, GitHub URLs, or skillsmp.com pages to multiple AI coding tool directories
publishing-rules
Rules for publishing Chrome extensions to the Chrome Web Store, ensuring proper submission guidelines are followed.
portable-skills-and-rules
Defines SKILL.md structure, valid frontmatter fields, and cross-tool setup for Claude Code, Cursor, OpenCode, and Cline. ALWAYS read before creating or editing any SKILL.md file. This skill should be used when "writing a skill", "creating a skill", "editing a skill", "skill frontmatter", "SKILL.md format", "AGENTS.md", "CLAUDE.md", or setting up skills across multiple AI tools.
install-rules
Install rules from this project or a specified Git repo into Cursor or Trae IDE. Use when the user wants to add project/global rules to their editor from ai-cortex rules/ or another repository.
daggerheart-core-rules
Comprehensive guide to the Daggerheart Tabletop Roleplaying Game (TTRPG). Use this skill when users ask questions about Daggerheart rules, character creation, classes, gameplay mechanics, GM guidance, adversaries, or lore.
ckeditor-rules
Defines CKEditor is being used for text editing
build-notes-file-rules
Enforces rules for creating and managing build notes files within the /ProjectDocs/Build_Notes/ directory, including naming conventions, content structure, and update frequency.
async-sync-advisor
Guides users on choosing between async and sync patterns for Lambda functions, including when to use tokio, rayon, and spawn_blocking. Activates when users write Lambda handlers with mixed workloads.
async-interview-automation
Automate Async Interview tasks via Rube MCP (Composio). Always search tools first for current schemas.
aisync
Sync AI coding sessions from 14 tools (Claude Code, Codex, Cursor, Aider, Cline, Gemini CLI, Continue, Copilot, Roo Code, Windsurf, Zed AI, Amp, OpenCode, OpenRouter) to Obsidian vault as markdown notes. Use when user wants to backup, export, or sync their AI chat sessions to Obsidian, set up automatic syncing, check sync status, or troubleshoot sync issues. Handles secret redaction automatically. Cross-platform (macOS, Linux, Windows).
ai-rules-adapter-builder
Add rules or skills adapters for a new AI tool and wire config, CLI, completion, and tests.
tauri-security-rules
Security-related rules for Tauri application development.