一键导入
py2rs-env-bootstrap
[DRAFT] 跑通迁移 seam 的最小环境。根据项目选择 FFI、CLI、service、Tauri command、library 或 pipeline adapter,并证明参数、返回值、错误、日志和并发边界可用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[DRAFT] 跑通迁移 seam 的最小环境。根据项目选择 FFI、CLI、service、Tauri command、library 或 pipeline adapter,并证明参数、返回值、错误、日志和并发边界可用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | py2rs-env-bootstrap |
| description | [DRAFT] 跑通迁移 seam 的最小环境。根据项目选择 FFI、CLI、service、Tauri command、library 或 pipeline adapter,并证明参数、返回值、错误、日志和并发边界可用。 |
本阶段只证明“旧/新实现能通过选定 seam 被稳定调用”。不要开始业务迁移。
从 py2rs-dep-align 的记录读取 seam 类型、applied rewrite profile、crate
reconnaissance status、实际依赖和 preference deviations。偏好采集本身不能代替
这份单元级依赖记录。还要读取 execution policy、canonical shared dependency
registry,以及并行模式下 coordinator 分配的 Cargo build slot。Confirm the
unit's behavior_verification names an independently comparable legacy public
seam.
ffi: Python 调 Rust extension。cli: legacy caller 调 Rust binary 或反向包装。service: HTTP/gRPC/API boundary。tauri-command: desktop command facade。library: Rust crate API 被旧入口调用。pipeline: data stage adapter with fixtures.不要为不需要的 seam 建 demo。
每种 seam 都必须证明:
Use project conventions. If none exist:
bootstrap/
README.md
run_all.sh
cases/
hello_roundtrip.*
error_mapping.*
concurrent_calls.*
For Python FFI projects, the old maturin + pyo3 demo is still valid. For Tauri or service projects, use command/API fixtures instead.
Record results in the manifest or a Stage 0 file:
env_bootstrap:
status: done
seam: tauri-command
dependency_record: "rewrite-records/example-dependencies.yaml"
applied_profile: standard
crate_reconnaissance: complete
behavior_verification:
legacy_public_seam: "tauri command input/output/error boundary"
required_observations:
- command roundtrip
- error projection
comparison_policy:
default: exact
tolerances: []
evidence: []
canonical_dependencies:
- "manifest/shared-dependencies.yaml#burn-missing-capability"
cargo_build_evidence: "coordinator build record or serial command output"
cases:
roundtrip: PASS
error_mapping: PASS
trace_context: PASS
repeated_calls: PASS
rollback: PASS
notes:
- "New backend can be called behind existing command facade."
py2rs-dep-align.blocked, or required evidence is missing: do not
bootstrap the Rust path. Return to reconnaissance/dependency alignment.py2rs-dep-align; do not silently add a different framework here./tmp or an agent-private copy: reject it and
return to dependency alignment so the implementation is promoted into the
canonical project root.NOTES.md and the dependency record.complete, policy_rejected, manual, or explicitly
user_disabled; the last case remains visible as residual risk.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 创建冲突依赖副本。