一键导入
migrate-pytest
Migrate a pytest integration test to the test-loop framework. Use when converting a pytest from pytest/tests/ to a deterministic test-loop test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrate a pytest integration test to the test-loop framework. Use when converting a pytest from pytest/tests/ to a deterministic test-loop test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review a Rust pull request against the nearcore engineering rubric — correctness, production safety, performance, Rust-specific concerns, security, and comment quality. Use when asked to review a PR, do a code review of a branch's changes, or check a diff before merge. This is the same rubric CI runs on @claude review.
Create a PR from staged changes with auto-generated branch, title, and description. Use this skill whenever the user wants to create a pull request, ship changes, open a PR, send code for review, or push staged work to GitHub — even if they don't explicitly say "PR".
| name | migrate-pytest |
| description | Migrate a pytest integration test to the test-loop framework. Use when converting a pytest from pytest/tests/ to a deterministic test-loop test. |
| argument-hint | <path-to-pytest-file> |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write |
Migrate a pytest integration test to the test-loop framework.
Target pytest file: $ARGUMENTS
Follow these steps in order:
<test_name>_migration.md in the project root.test-loop-tests/README.md for the builder API and patternstest-loop-tests/src/examples/ that are relevant to the pytest being migrated (list available examples with ls test-loop-tests/src/examples/)test-loop-tests/src/tests/ for patterns similar to what the pytest doesFor each pytest scenario, decide:
#[test] function or can be combinedPresent the plan to the user and get confirmation before writing code.
test-loop-tests/src/tests/<test_name>.rstest-loop-tests/README.mdtest-loop-tests/src/tests/mod.rs (keep alphabetical order)cargo check --package test-loop-tests --features test_features to verify compilationcargo test --package test-loop-tests --features test_features -- tests::<module>::<test_name> --exact --show-outputcargo fmt --package test-loop-testsnightly/pytest-sanity.txt (check for both regular and --features nightly variants, and commented-out spice variants)Report what was done: