distill-rules
Review routing corrections and propose updates to vault CLAUDE.md routing rules.
Install
npx skills add https://github.com/technicalpickles/pickled-claude-plugins/tree/main/plugins/second-brain/skills/distill-rules
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install technicalpickles-pickled-claude-plugins@llmmart
git clone https://github.com/technicalpickles/pickled-claude-plugins.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole technicalpickles/pickled-claude-plugins collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Distill Rules
Review accumulated routing corrections in .routing-memory.md and propose updates to the vault's CLAUDE.md routing rules.
See ../obsidian/references/routing-memory.md for correction format and learning loop.
Process
Read
.routing-memory.mdfrom vault rootRead vault CLAUDE.md
Analyze corrections for patterns:
- Group corrections by destination
- Identify repeated corrections (same type of note going to same destination)
- Look for corrections that contradict existing CLAUDE.md rules
Propose updates:
- New edge case mappings for disambiguation sections
- New category table entries
- New learned patterns for
.routing-memory.md - Corrections to existing rules that have been consistently overridden
Present proposals to user:
Found {n} patterns in {m} corrections: 1. Add edge case: "{scenario}" -> {destination} Based on: {n} corrections over {date range} 2. Add to category table: "{tool}" under {area} Based on: {n} corrections 3. Update rule: "{old rule}" -> "{new rule}" Based on: consistently overridden {n} times Apply these updates? (A) Apply all (B) Review individually (C) Skip for nowApply selected updates:
- Edit vault CLAUDE.md with new rules
- Move applied corrections to an
## Archivedsection in.routing-memory.md - Promote stable patterns to
## Patterns Learned
Constraints
- Never auto-apply. Always present proposals for approval.
- Preserve existing CLAUDE.md structure and formatting
- Archive corrections, don't delete them (audit trail)
- Only propose rules backed by multiple corrections (minimum 2)
Files (pickled-claude-plugins)
-
SKILL.md 2.1 KB
--- name: distill-rules description: Review routing corrections and propose updates to vault CLAUDE.md routing rules. allowed-tools: - Read(~/.claude/vaults/**/CLAUDE.md) - Read(~/.claude/vaults/**/.routing-memory.md) - Write(~/.claude/vaults/**/CLAUDE.md) - Write(~/.claude/vaults/**/.routing-memory.md) - Edit(~/.claude/vaults/**/CLAUDE.md) - Edit(~/.claude/vaults/**/.routing-memory.md) - Bash(npx @techpickles/sb:*) --- # Distill Rules Review accumulated routing corrections in `.routing-memory.md` and propose updates to the vault's CLAUDE.md routing rules. See `../obsidian/references/routing-memory.md` for correction format and learning loop. ## Process 1. Read `.routing-memory.md` from vault root 2. Read vault CLAUDE.md 3. Analyze corrections for patterns: - Group corrections by destination - Identify repeated corrections (same type of note going to same destination) - Look for corrections that contradict existing CLAUDE.md rules 4. Propose updates: - New edge case mappings for disambiguation sections - New category table entries - New learned patterns for `.routing-memory.md` - Corrections to existing rules that have been consistently overridden 5. Present proposals to user: ``` Found {n} patterns in {m} corrections: 1. Add edge case: "{scenario}" -> {destination} Based on: {n} corrections over {date range} 2. Add to category table: "{tool}" under {area} Based on: {n} corrections 3. Update rule: "{old rule}" -> "{new rule}" Based on: consistently overridden {n} times Apply these updates? (A) Apply all (B) Review individually (C) Skip for now ``` 6. Apply selected updates: - Edit vault CLAUDE.md with new rules - Move applied corrections to an `## Archived` section in `.routing-memory.md` - Promote stable patterns to `## Patterns Learned` ## Constraints - Never auto-apply. Always present proposals for approval. - Preserve existing CLAUDE.md structure and formatting - Archive corrections, don't delete them (audit trail) - Only propose rules backed by multiple corrections (minimum 2)
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.