home/dot_claude/skills/ruleset-optimization/SKILL.md
Guidelines for optimizing Claude rulesets and instruction files (CLAUDE.md, settings.json) using context efficiency principles. Includes strategies for skill extraction, progressive disclosure, token savings calculation, and deduplication. Manually invoke when optimizing rulesets, reducing context size, extracting content to skills, or improving ruleset organization.
npx skillsauth add salverius-tech/dotfiles ruleset-optimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Auto-activate when: Working with CLAUDE.md, settings.json, SKILL.md files, .claude/ directory, or when user mentions ruleset optimization, context efficiency, skill extraction, token savings, or improving Claude Code configuration.
This skill provides comprehensive guidelines for optimizing Claude rulesets to minimize context usage while maximizing effectiveness.
PRIMARY GOAL: Minimize baseline context, maximize signal-to-noise ratio.
Core Strategy:
Is content >200 tokens?
├─ No → Keep in CLAUDE.md
└─ Yes → Is it procedural?
├─ No → Keep in CLAUDE.md (policy)
└─ Yes → Is it used <70% of sessions?
├─ No → Keep in CLAUDE.md (always needed)
└─ Yes → Extract to skill (saves tokens)
Formula: tokens × (1 - usage_frequency)
Priority thresholds:
Report format:
Personal vs Project Rulesets:
Across Skills:
---
name: skill-name
description: Clear description of when to activate and what it contains.
---
# Skill Title
Brief introduction and purpose.
## Core Content
[Domain-specific guidance]
Auto-activation triggers:
Manual invocation:
Before: 6,000 tokens baseline (all loaded) After: 4,000 tokens baseline + 1,500 tokens in skills (selective) Result: 33% baseline reduction, 25-33% typical session savings
Compound benefits:
This skill is manually invoked when optimizing rulesets or organizing Claude instructions.
For command usage, see:
/optimize-ruleset - Analyze and optimize current ruleset/analyze-permissions - Review permission patternstools
Use when creating, reviewing, measuring, updating, or pruning Hermes skills and bundles.
tools
Design and verify Hermes cron jobs and recurring automation. Use when creating, editing, reviewing, pausing, or debugging scheduled Hermes tasks.
testing
Inspect, modify, test, and review Git repositories without unintended commits or destructive changes. Use for repository work, reviews, branch operations, or release preparation.
tools
Install, inspect, enable, load, and verify Hermes plugins and companion services. Use when a Hermes plugin, bridge, gateway integration, or plugin-provided tool is missing or unreliable.