关于
The verify skill runs the repository's build and release scripts end-to-end in an isolated environment without network access. It's designed for testing changes to CLI-related scripts like download_cli.py and build_wheel.py safely. This prevents accidental overwrites of local binaries by using stubbed commands and isolated environments.
快速安装
Claude Code
推荐npx skills add anthropics/claude-agent-sdk-python -a claude-code/plugin add https://github.com/anthropics/claude-agent-sdk-pythongit clone https://github.com/anthropics/claude-agent-sdk-python.git ~/.claude/skills/verify在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Verifying the build scripts
The SDK itself is a library (drive it through import claude_agent_sdk), but
the scripts/ directory is a set of CLIs run by the release workflows.
Verify them by running them, not by importing them.
NEVER run the real installer
scripts/download_cli.py shells out to curl https://claude.ai/install.sh | bash
(and the PowerShell equivalent). Running it for real overwrites the claude
binary on the developer's machine. Do not run bash install.sh, and do not
invoke download_cli.py with latest/stable (or any case variant) against
the real network.
Instead, put stub curl / bash / powershell on a temp PATH and drive the
script under env -i with an isolated HOME (so find_installed_cli() cannot
discover the real binary and copy it into src/claude_agent_sdk/_bundled/).
The harness
SB=$(mktemp -d); mkdir -p $SB/stub $SB/home $SB/repo/src/claude_agent_sdk
cp scripts/{download_cli.py,build_wheel.py,update_cli_version.py,_cli_version_validation.py} $SB/repo/scripts/
printf '__cli_version__ = "2.1.208"\n' > $SB/repo/src/claude_agent_sdk/_cli_version.py
cat > $SB/stub/curl <<'EOF'
#!/bin/bash
out=""; prev=""; for a in "$@"; do [ "$prev" = "-o" ] && out="$a"; prev="$a"; done
echo "[stub curl] argv: $*" >> "$MARKER"
[ -n "$out" ] && printf '%b' "${CURL_BODY:-#!/bin/bash\necho hi\n}" > "$out"
exit ${CURL_EXIT:-0}
EOF
cat > $SB/stub/bash <<'EOF'
#!/bin/bash
{ echo "[stub bash] argc=$#"; for a in "$@"; do echo " <$a>"; done; } >> "$MARKER"
EOF
chmod +x $SB/stub/*
cd $SB/repo
env -i HOME=$SB/home PATH=$SB/stub:/usr/bin:/bin MARKER=$SB/m \
CLAUDE_CLI_VERSION=2.1.208 .venv/bin/python scripts/download_cli.py
run_command() captures the child's output, so the stubs must log to a
$MARKER file — printing to stderr is swallowed.
Flows worth driving
update_cli_version.py <version>— the whole validator surface is reachable here: a concrete version writes the file;latest/stable,v2.1.207,next,2.1, and a quote-breakout string each exit 1 with a distinct message and leave the file untouched.build_wheel.py --skip-sdist— reads the pin, then chains intodownload_cli.py. Rewrite_cli_version.pyin the sandbox to a moving tag / single quotes / garbage / delete it: each must fail before any subprocess is spawned.--cli-version <v>bypasses the pin (intentional escape hatch; the release workflow does not use it).download_cli.py— setCURL_BODYto an HTML error page or an empty string to prove the body check refuses it with no retry; empty thePATHto prove a missingcurlfails fast in one attempt;CURL_EXIT=22to prove a genuine transient failure still retries 3×.- The Windows path is unreachable on Linux. It is behind
platform.system() == "Windows". Drive it with a small runner thatpatch.object(m.platform, "system", return_value="Windows")and a stubpowershellthat reads the-Commandtext and honours$env:CLAUDE_CLI_INSTALL_SCRIPT. This is the one place where forcing the platform is legitimate.
Gotchas
${CURL_BODY:-default}treats an empty body as unset. Use a separate stub that does: > "$out"to test the empty-body branch.- The retry path really sleeps (jitter up to 5s, then 2s + 4s). A full three-attempt run takes ~10s; budget for it rather than assuming a hang.
GitHub 仓库
常见问题
什么是 verify Skill?
verify 是一个 Claude Skill,作者为 anthropics。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 verify 相关的任务。
如何安装 verify?
使用本页的安装命令:将 verify 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。
verify 属于哪个分类?
verify 属于元分类。
verify 可以免费使用吗?
可以。verify 已收录在 AIMCP,可免费安装。
相关推荐技能
Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
