sr-compat-check

Audit API surfaces against stored baselines and generate migration plans.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/fjpulidop/specrails-core --skill sr-compat-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sr-compat-check
Source: https://github.com/fjpulidop/specrails-core/tree/main/templates/skills/sr-compat-check
Command: npx skills add https://github.com/fjpulidop/specrails-core --skill sr-compat-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

sr:compat-check — Snapshot the API surface and detect breaking changes against a prior baseline. Generates a migration guide when breaking changes are found.

Core Features & Use Cases

  • Analyze the current contract surface (CLI flags, template placeholders, command names, argument flags, agent names, and config keys).
  • Compare against a stored baseline, classify changes by severity, and generate a migration guide when breaking changes are found.
  • Supports phased operation with --diff, --snapshot, --since, --propose, and --dry-run to manage compatibility workflows.

Quick Start

Run the sr-compat-check workflow to snapshot the current surface and diff it against the latest baseline.

Frequently Asked Questions about sr-compat-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect breaking changes in my CLI flags and config keys?

To detect breaking changes in CLI flags and config keys, snapshot your current API surface and diff it against a stored baseline. The tool validates inputs, computes diffs, and classifies changes into breaking and advisory categories.

What is API surface compatibility checking for codebases?

API surface compatibility checking audits defined contract surfaces like command names, argument flags, and template placeholders against a prior baseline. It identifies backwards incompatible modifications and generates migration plans when breaking changes are detected.

How do I generate a migration plan for API surface changes?

You generate a migration plan for API surface changes by running a diff against your stored baseline with the propose flag. The tool validates the current contract surface, categorizes modifications by severity, and produces a guide for migrating affected code.

Can I check compatibility for agent names and template placeholders?

Yes, you can check compatibility for agent names and template placeholders. The tool audits these defined surface elements alongside CLI flags and config keys, computing diffs against a baseline to ensure backwards compatibility.

Does this compatibility checking tool support dry-run workflows?

Yes, the compatibility checking tool supports dry-run workflows. It offers phased operation through flags like snapshot, diff, since, propose, and dry-run to manage and validate API contract changes before applying them.

What is the best way to automate backwards compatibility checks for APIs?

The best way to automate backwards compatibility checks for APIs is to snapshot the current surface and compare it against a stored baseline. This automated diffing process classifies changes by severity and generates migration plans when needed.