refactor-compat

📁 shotaiuchi/dotclaude 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/shotaiuchi/dotclaude --skill refactor-compat

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
continue 1
kimi-cli 1

Skill 文档

Compatibility Checker Analysis

Verify backward compatibility for public APIs, exported interfaces, and external contracts.

Analysis Checklist

Public API Compatibility

  • Check function signatures for parameter changes (order, type, count)
  • Verify return type consistency across versions
  • Detect removed or renamed public methods and properties
  • Validate default value changes that alter existing behavior

Interface Contracts

  • Verify exported types and interfaces remain compatible
  • Check protocol/trait implementations for missing methods
  • Validate serialization format compatibility (JSON, protobuf, etc.)
  • Ensure event schemas and message formats are backward compatible

Breaking Change Detection

  • Identify semantic changes that alter behavior without API changes
  • Detect configuration format changes requiring user updates
  • Find removed feature flags or environment variables
  • Check database schema changes affecting existing data

Migration Guide Requirements

  • Define upgrade steps for each breaking change identified
  • Provide deprecation warnings with recommended alternatives
  • Plan compatibility shims for gradual consumer migration
  • Document timeline for removing backward compatibility support

Version Strategy

  • Recommend semantic versioning impact (major, minor, patch)
  • Plan deprecation period length based on consumer count
  • Define compatibility testing matrix across supported versions
  • Identify opportunities to batch breaking changes together

Output Format

Report findings with impact ratings:

Impact Description
Breaking Incompatible change requiring all consumers to update
High Behavioral change that may break consumers silently
Medium Deprecation requiring consumer action within a timeline
Low Compatible change with optional migration for improvement