AGENT SKILL
preserve-api-contract
Check that a repair does not unintentionally change public signatures, return types, errors, or compatibility.
- License 许可
- MIT
- 所属仓库
- syr-cn/PluginRSI
- 最近更新
- 2026-10-18
- Stars
- ★ 61
- Forks
- 1
01 前言 Front Matter
- name
- preserve-api-contract
- description
- Check that a repair does not unintentionally change public signatures, return types, errors, or compatibility.
02 资源文件 4
- 脚本__init__.py—
- 参考文档asset.yaml567 B
- 脚本implementation.py564 B
- 参考文档plugin.yaml869 B
03 SKILL.md 正文
Preserve API Contract
Internal ID: S18
Category: patching
Tier: core
Output: ContractAssessment
Activate when
- The workflow reaches the
patchingstage and the required inputs are present.
Applicable roles
- Solver
- Verifier
- Critic
Required inputs
candidate_patchpublic_interfacesissue_profile
Optional inputs
downstream_references
Procedure
- Identify public or externally consumed symbols touched by the patch.
- Compare signatures, return semantics, exceptions, serialization, and ordering.
- Search direct downstream usage when the contract is not explicit.
- Mark intentional issue-required changes separately from regressions.
Verification
- Every touched public contract has a preservation or intentional-change judgment.
- Compatibility risks have evidence.
Stop conditions
- No unresolved unintended contract change remains.
Constraints
- Do not block changes explicitly required by the issue.
- Do not infer public status solely from naming.
Allowed tools
symbol_searchtext_searchgit_diffread_range
Provenance
Synthesized from design patterns in aider, openhands-agent-sdk.
This file is a normalized reusable abstraction, not a verbatim copy of an upstream skill.
04 同仓库更多 Skills
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
trajectory-to-lesson
Extract a bounded transferable procedure or anti-pattern from a completed trajectory.
★ 61
test-output-interpretation
Turn noisy command output into a localized failure signature without overclaiming.
★ 61
symbol-localization
Rank functions, classes, methods, or configuration blocks inside selected files.
★ 61