Awesome-omni-skill sync-rules
Synchronize shared rules into agent context files and headers.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/sync-rules" ~/.claude/skills/diegosouzapw-awesome-omni-skill-sync-rules && rm -rf "$T"
manifest:
skills/tools/sync-rules/SKILL.mdsource content
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:
(this file)CLAUDE.md- 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
- Claude-specific rules (header)agent-overrides/claude.md
- Core workflow rulescore-rules.md
- Coding guidelinescoding-standards.md
- Safety guardrailsguardrails.md
- CLI tool referencecli-reference.md
- Lessons from past issueslessons-learned.md
Validation
After sync, verify:
- CLAUDE.md updated
- Timestamp current
- No merge conflicts
- Rules are complete
Outputs
- Updated
and any derived context files.CLAUDE.md
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 a lesson before syncing rules/add-lesson
When to Sync
Run sync after:
- Adding a new lesson learned
- Updating shared rules
- Before starting a new workflow
- After pulling changes from git