Acerca de
La habilidad de verificación ejecuta los scripts de construcción y despliegue del repositorio de principio a fin en un entorno aislado sin acceso a red. Está diseñada para probar cambios en scripts relacionados con la CLI, como download_cli.py y build_wheel.py, de manera segura. Esto evita sobrescrituras accidentales de binarios locales mediante el uso de comandos simulados y entornos aislados.
Instalación rápida
Claude Code
Recomendadonpx 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/verifyCopia y pega este comando en Claude Code para instalar esta habilidad
Documentación
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.
Repositorio GitHub
Preguntas frecuentes
¿Qué es el Skill verify?
verify es un Skill de Claude creado por anthropics. Los Skills agrupan instrucciones y recursos que Claude carga cuando los necesita para realizar tareas relacionadas con verify sin indicaciones adicionales.
¿Cómo instalo verify?
Usa los comandos de instalación de esta página: añade verify a Claude Code como plugin o clona su repositorio en tu directorio de skills y reinicia Claude para cargarlo.
¿A qué categoría pertenece verify?
verify pertenece a la categoría Meta.
¿Se puede usar verify gratis?
Sí. verify aparece en AIMCP y se puede instalar gratis.
Habilidades relacionadas
Esta habilidad proporciona una configuración probada en producción para Content Collections, una herramienta centrada en TypeScript que transforma archivos Markdown/MDX en colecciones de datos con tipado seguro mediante validación Zod. Úsala al construir blogs, sitios de documentación o aplicaciones Vite + React con mucho contenido para garantizar seguridad de tipos y validación automática de contenido. Abarca todo, desde la configuración del plugin de Vite y compilación MDX hasta la optimización de despliegue y validación de esquemas.
Esta habilidad permite a los desarrolladores crear aplicaciones con la plataforma de mercados de predicción Polymarket, incluyendo la integración de API para operaciones y datos de mercado. También proporciona transmisión de datos en tiempo real a través de WebSocket para monitorear operaciones en vivo y actividad del mercado. Úsela para implementar estrategias de trading o crear herramientas que procesen actualizaciones de mercado en tiempo real.
Esta habilidad ayuda a los desarrolladores a crear complementos de OpenCode que se conectan a más de 25 tipos de eventos, como comandos, archivos y operaciones LSP. Proporciona la estructura del complemento, las especificaciones de la API de eventos y los patrones de implementación para módulos en JavaScript/TypeScript. Úsala cuando necesites interceptar, monitorear o extender el ciclo de vida del asistente de IA de OpenCode con lógica personalizada basada en eventos.
SGLang es un framework de alto rendimiento para el servicio de LLM que se especializa en generación rápida y estructurada para JSON, expresiones regulares y flujos de trabajo de agentes utilizando su caché de prefijos RadixAttention. Ofrece una inferencia significativamente más rápida, especialmente para tareas con prefijos repetidos, lo que lo hace ideal para salidas complejas y estructuradas, y conversaciones multiturno. Elige SGLang sobre alternativas como vLLM cuando necesites decodificación restringida o estés construyendo aplicaciones con uso extensivo de prefijos compartidos.
