Reduce Similarities — Development skill for Claude Code
Run similarity-ts.
How to install Reduce Similarities
Installs to ~/.claude/commands/christopherkahler-ccusage-reduce-similarities.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ChristopherKahler/ccusage/HEAD/.claude/commands/reduce-similarities.md -o ~/.claude/commands/christopherkahler-ccusage-reduce-similarities.md Restart Claude Code, or start a new session, for it to be picked up.
What Reduce Similarities does
Run `similarity-ts .` to detect semantic code similarities. Execute this command, analyze the duplicate code patterns, and create a refactoring plan. Check `similarity-ts -h` for detailed options.
Alternatives in Development
- Quick Plan — Create a detailed implementation plan based on the user's requirements provided through the USER_PROMPT variab 3.4k ★
- Translation Execute — 智能执行文件翻译, 可独立使用或由 /translation-detect 自动衔接调用 695 ★
- Memory Search — Search through Claude's persistent memories for specific content, patterns, or keywords 332 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Detect Duplicate
Check if a new issue is a duplicate of an existing one
Search Vault
Quick search across Obsidian vault using keywords or semantic similarity
Correlation Check
Analyze portfolio correlations, detect regime breaks, and identify hidden exposures
Code Refactoring
Orchestrate large structural code refactors combining semantic search
Code Refactoring Plan
Analyze code smells and technical debt, producing a prioritized refactoring roadmap.
Agent Engagesubagents
Search through your agents and skills and make a detailed plan to execute the user's query. Use the agents to
Related Agents
Code Refactor Agent
Duplicate code detection and refactoring specialist. Uses similarity-rs for semantic similarity detection and
Duplicate PR
Detects and marks duplicate pull requests across repositories using code similarity analysis and cross-referen
Auto Discovery
Automated agent that discovers non-obvious cross-domain connections by analyzing conceptual relationships beyo