一键导入
verify
Run comprehensive pre-PR verification (tests, lint, format, docs sync, security scan, diff review). Use before creating PRs or after significant changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run comprehensive pre-PR verification (tests, lint, format, docs sync, security scan, diff review). Use before creating PRs or after significant changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | verify |
| description | Run comprehensive pre-PR verification (tests, lint, format, docs sync, security scan, diff review). Use before creating PRs or after significant changes. |
| allowed-tools | Bash, Read, Grep, Glob |
| user-invocable | true |
Comprehensive verification loop adapted from flatrick/everything-claude-code verification-loop pattern.
docker compose run --rm app python -c "import agent_orchestrator; print('OK')"
If this fails, STOP and fix before continuing.
docker compose run --rm lint
Report all lint errors. Fix before continuing.
docker compose run --rm format
bash scripts/typecheck.sh --changed
Static type gate via Pyright — the same engine as the editor's Pylance,
so CLI/CI/editor agree. ruff and pytest do NOT type-check; this is the
only step that catches wrong-attribute access, a BaseException slipping an
except Exception, or a bad argument type. The gate is incremental: only
Python files changed vs the base are checked, so a file you touch must be
type-clean even though the tree still carries a pre-existing backlog
(scripts/typecheck.sh --all shows the full count). Fix any error before
continuing — this is the check that's easy to skip from the CLI and bites in
review.
docker compose run --rm test
Report:
# Check for secrets in tracked files
grep -rn "sk-\|api_key\s*=\s*['\"]" --include="*.py" src/ tests/ 2>/dev/null | head -10
# Check for hardcoded passwords
grep -rn "password\s*=\s*['\"]" --include="*.py" src/ 2>/dev/null | grep -v "test\|example\|orchestrator" | head -10
git diff --stat
git diff HEAD --name-only
Review each changed file for:
After running all phases, produce a verification report:
VERIFICATION REPORT
==================
Import: [PASS/FAIL]
Lint: [PASS/FAIL] (details)
Format: [PASS/FAIL]
Tests: [PASS/FAIL] (X passed, Y warnings)
Security: [PASS/FAIL] (X issues)
Diff: [X files changed]
Overall: [READY/NOT READY] for PR
Issues to Fix:
1. ...