Skill1.3k repo starsupdated today
spk-doctrine-semantic-compression
This skill applies semantic compression techniques through the Randy Reducer agent to reduce code size while preserving functionality. Use it when refactoring to eliminate redundancy, dead code, or duplicate logic across a codebase, provided that existing behavior can be verified and protected during the reduction process.
Install in Claude Code
Copygit clone --depth 1 https://github.com/Priivacy-ai/spec-kitty /tmp/spk-doctrine-semantic-compression && cp -r /tmp/spk-doctrine-semantic-compression/src/doctrine/skills/spk-doctrine-semantic-compression ~/.claude/skills/spk-doctrine-semantic-compressionThen start a new Claude Code session; the skill loads automatically.
Definition
SKILL.md
# spk-doctrine-semantic-compression Use this skill when the user asks to reduce, simplify, deduplicate, delete dead code, or refactor while preserving existing behavior. ## Flow 1. Load agent profile `randy-reducer`. 2. Load paradigm `semantic-compression`. 3. Map the behavioral envelope before editing. 4. Find exact, parameterized, structural, and semantic redundancy. 5. Extract one implementation per concept or delete proven dead weight. 6. Consolidate competing behavioral paths behind one canonical owner. 7. Verify equivalence and report evidence plus residual risk. ## Stop Conditions - Protected behavior is unknown. - Verification evidence is unavailable for non-trivial deletion. - The request is actually feature expansion, not reduction.