一键导入
py2rs-review-r0-behavior
[DRAFT] 第 0 轮行为一致性门禁。对一个迁移单元或已收批的 review batch,独立证明旧实现与新实现在选定 public seam 后行为一致;不写生产代码,只运行/补充对比证据并输出报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[DRAFT] 第 0 轮行为一致性门禁。对一个迁移单元或已收批的 review batch,独立证明旧实现与新实现在选定 public seam 后行为一致;不写生产代码,只运行/补充对比证据并输出报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review one mvsep-rs rewrite batch quality gate without writing production code. Use when the user asks for behavior parity review, error tracing review, async or ergonomics review, data structure or algorithm review, Rust style audit, frontend UX audit, or promotion readiness for a mvsep-rs migration batch.
Expand dependency sources and align canonical shared capabilities, Rust crate reuse, adapters, hand-written Burn gaps, fixtures, and bootstrap records for Vocal2Midi. Use before implementation when imports, native/FFI sources, dependency mismatch, shared model prerequisites, temporary dependency copies, Cargo coordination, or manifest re-cut decisions affect a unit.
Review one Vocal2Midi Rust migration unit quality gate without writing production code. Use for Python/Rust behavior parity, dependency/seam, error tracing, data/algorithm, Rust style, architecture, ergonomics, or promotion readiness.
Coordinate the Vocal2Midi Python-to-Rust rewrite. Use when the user asks to continue, plan, route, re-cut, shard, implement, audit, promote, choose serial or coordinated-parallel execution, or select the next migration unit; when shared Burn gaps, dependency source expansion, capability coverage, or workflow may change the manifest inventory.
Implement exactly one confirmed Vocal2Midi Rust migration unit as the writer role. Use when dependency discovery has accepted the boundary, canonical dependencies, and legacy public behavior seam, and the user asks to add fixtures, port behavior, or prepare one unit for review. Do not use for review-only or shared dependency coordination requests.
[DRAFT] 消费 crate reconnaissance 或用户手动生态证据,按 NOTES.md 中的偏好对齐 Python/Rust 或 legacy/Rust 依赖。覆盖 canonical shared dependencies、crate/backend/adapter/手写能力组合、manifest 重切、seam、验证和桥接;用于避免串行或并行 writer 创建冲突依赖副本。
| name | py2rs-review-r0-behavior |
| description | [DRAFT] 第 0 轮行为一致性门禁。对一个迁移单元或已收批的 review batch,独立证明旧实现与新实现在选定 public seam 后行为一致;不写生产代码,只运行/补充对比证据并输出报告。 |
R0 是所有后续优化的前置 gate。目标不是让 Rust 更好看,而是证明:
legacy behavior == rewritten behavior
Read first:
behavior_verification, including the legacy public seam, observations,
comparison policy and fixture evidenceDo not rely on the writer's explanation when code, tests or docs can answer.
Review through the project's accepted seam:
Do not force py/ and rs/ paths if the project uses another architecture.
behavior_verification names an independently comparable legacy
public seam. Reject missing seams and evidence that substitutes Rust-only or
circular output for legacy behavior.pass, pass-with-followups or fail for each unit.verified; the orchestrator updates manifest after required reports pass.Use the project report convention. If none exists:
reviews/YYYY-MM-DD-<unit-or-batch-id>-behavior.md
Required sections: