用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arklexai/arksim --skill pre-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pre-review |
| description | Check your branch before opening a PR (lint, test, title validation) |
| disable-model-invocation | true |
| context | fork |
| agent | Explore |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
Run local checks on the current branch before opening a pull request.
Gather branch context
BRANCH=$(git branch --show-current)
BASE="main"
git log --oneline "$BASE"..HEAD
git diff --stat "$BASE"..HEAD
Group changed files by area
arksim/), tests (tests/), docs (docs/), config, otherDraft and validate title
^(feat|fix|docs|chore|ci|build|refactor|test|perf|style|revert)(\([a-z][a-z0-9_-]*\))?!?: .+$Run ruff check
ruff check . 2>&1
Run ruff format check
ruff format --check . 2>&1
Run unit tests
pytest tests/unit/ -x --tb=short 2>&1
Check code quality in diff
.py files in the diff, verify:
# SPDX-License-Identifier: Apache-2.0 header presentfrom __future__ import annotations presentCheck changelog
[Unreleased]Print a readiness checklist:
Pre-review checklist
--------------------
[ ] Branch: <branch-name>
[x] Ruff check: PASS / FAIL (N issues)
[x] Ruff format: PASS / FAIL (N files)
[x] Unit tests: PASS / FAIL (N passed, N failed)
[x] License headers: PASS / FAIL / N/A
[x] Future annotations: PASS / FAIL / N/A
[x] Type hints: PASS / WARN / N/A
[x] Absolute imports: PASS / FAIL / N/A
[x] Changelog updated: YES / NO / N/A
[x] Suggested title: <title>
Ready to open PR: YES / NO
Use when the user wants to re-evaluate a previous arksim simulation with different metrics, thresholds, or judge model without re-running the agent. Cheaper than re-simulating.
Use when the user wants to inspect arksim evaluation results, debug specific failures turn by turn, or compare two runs to measure improvement.
Use when the user wants to generate, edit, or extend arksim test scenarios. Reads the agent's source code to derive realistic scenarios; can build regression scenarios from past failures.
基于 SOC 职业分类