Our review
Synchronizes shared rules from a central directory into agent context files.
Strengths
- Centralized rule management preventing duplication
- Automated and ordered propagation of updates
- Built-in timestamp for traceability
- Clear and extensible file structure
Limitations
- Requires a working Python environment
- Limited to files under shared-rules/ directory
- Does not handle conflicts if files are manually altered
When you need to maintain consistent rules across multiple agents or contexts.
For one-off changes that don't require centralized governance.
Security analysis
SafeThe skill instructs running a local Python script to synchronize rule files. It does not contain destructive commands, exfiltration attempts, or obfuscated payloads. The script itself is not provided, but the skill description does not introduce direct risks.
No concerns found
Examples
/sync-rulesI've updated the shared rules. Please run /sync-rules to propagate changes to all agent context files.name: sync-rules description: Synchronize shared rules into agent context files and headers. version: 1.1.0 tags: [rules, governance, sync] owner: orchestration status: active
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
-
Read shared rules:
shared-rules/ ├── core-rules.md ├── coding-standards.md ├── guardrails.md ├── cli-reference.md ├── lessons-learned.md └── agent-overrides/ └── claude.md -
Assemble CLAUDE.md:
- Start with claude-specific header
- Append shared rules in order
- Add lessons learned at end
-
Update timestamp:
<!-- AUTO-GENERATED from shared-rules/ --> <!-- Last synced: 2026-01-22 12:00:00 -->
Execution
python scripts/sync-rules.py
Or manually:
- Read all files from
shared-rules/ - Concatenate in order
- Write to
CLAUDE.md
File Order
agent-overrides/claude.md- Claude-specific rules (header)core-rules.md- Core workflow rulescoding-standards.md- Coding guidelinesguardrails.md- Safety guardrailscli-reference.md- CLI tool referencelessons-learned.md- Lessons from past issues
Validation
After sync, verify:
- [ ] CLAUDE.md updated
- [ ] Timestamp current
- [ ] No merge conflicts
- [ ] Rules are complete
Outputs
- Updated
CLAUDE.mdand 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 git
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.