deploy-agent
Qué hace
Esta skill guía el despliegue de un agente de Bindu en un entorno local, de pruebas o de producción, con comprobaciones de seguridad durante el proceso. Es para desarrolladores que crean agentes con Bindu y necesitan publicarlos.
Cuándo usarla
- ✓Cuando estás listo para desplegar un agente de Bindu en un entorno local, de pruebas o de producción.
- ✓Cuando quieres que se ejecuten comprobaciones de estado tras un despliegue.
- ✓Cuando necesitas un registro de lo desplegado y una forma de revertir si el despliegue falla.
Link de la skill
https://github.com/GetBindu/Bindu/blob/main/.agents/skills/deploy-agent/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Despliega mi agente de Bindu en pruebas, ejecuta las comprobaciones y dime si está sano.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill revisa primero la configuración del entorno y ejecuta las pruebas y las comprobaciones previas al despliegue. Después despliega el agente, ejecuta las comprobaciones de estado y escribe un registro del despliegue.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Deploy Agent Skill
Overview
Deploy a Bindu agent to a target environment (local, staging, production) with comprehensive safety checks.
Inputs
- Environment name (local, staging, production)
- Agent configuration file path
- Optional: deployment strategy (rolling, blue-green, canary)
Safety
- Never deploy without passing tests
- Verify environment variables before deployment
- Run health checks after deployment
- Generate deployment artifacts
- Support rollback if deployment fails
Execution Contract
- Validate environment configuration
- Run pre-deployment checks
- Apply database migrations
- Deploy agent
- Verify deployment health
- Generate deployment record
Steps
1. Pre-Deployment Validation
# Check environment
ENVIRONMENT=$1
if [ -z "$ENVIRONMENT" ]; then
echo "Error: Environment required (local, staging, production)"
exit 1
fi
# Validate tests pass
echo "==> Running tests..."
uv run pytest || { echo "❌ Tests failed"; exit 1; }
# Validate pre-commit hooks
echo "==> Running pre-commit hooks..."
uv run pre-commit run --all-files || { echo "❌ Pre-commit hooks failed"; exit 1; }
# Check for uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
echo "⚠️ Warning: Uncommitted changes detected"
read -p "Continue anyway? (y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
2. Environment Configuration
# Load environment-specific config
case $ENVIRONMENT in
local)
export STORAGE_BACKEND=memory
export SCHEDULER_BACKEND=memory
export PORT=3773
;;
staging)
export STORAGE_BACKEND=postgres
export SCHEDULER_BACKEND=redis
export DATABASE_URL=$STAGING_DATABASE_URL
export REDIS_URL=$STAGING_REDIS_URL
export PORT=3773
;;
production)
export STORAGE_BACKEND=postgres
export SCHEDULER_BACKEND=redis
export DATABASE_URL=$PROD_DATABASE_URL
export REDIS_URL=$PROD_REDIS_URL
export PORT=8080
;;
*)
echo "Error: Unknown environment $ENVIRONMENT"
exit 1
;;
esac
# Verify required variables
required_vars=("STORAGE_BACKEND" "SCHEDULER_BACKEND")
for var in "${required_vars[@]}"; do
if [ -z "${!var}" ]; then
echo "Error: $var not set"
exit 1
fi
done
3. Database Migrations
# Run migrations for postgres backend
if [ "$STORAGE_BACKEND" = "postgres" ]; then
echo "==> Running database migrations..."
# Check current migration
CURRENT=$(uv run alembic current 2>&1)
echo "Current migration: $CURRENT"
# Upgrade to head
uv run alembic upgrade head || { echo "❌ Migration failed"; exit 1; }
# Verify migration
NEW_CURRENT=$(uv run alembic current 2>&1)
echo "New migration: $NEW_CURRENT"
fi
4. Deploy Agent
# Local deployment
if [ "$ENVIRONMENT" = "local" ]; then
echo "==> Starting local agent with tunnel..."
uv run bindu serve --launch &
AGENT_PID=$!
echo "Agent PID: $AGENT_PID"
sleep 5
fi
# Staging/Production deployment
if [ "$ENVIRONMENT" != "local" ]; then
echo "==> Deploying to $ENVIRONMENT..."
# Docker deployment
if command -v docker &> /dev/null; then
# Build image
docker build -t bindu-agent:$ENVIRONMENT .
# Stop old container
docker stop bindu-agent-$ENVIRONMENT 2>/dev/null || true
docker rm bindu-agent-$ENVIRONMENT 2>/dev/null || true
# Start new container
docker run -d \
--name bindu-agent-$ENVIRONMENT \
-p $PORT:8080 \
-e DATABASE_URL="$DATABASE_URL" \
-e REDIS_URL="$REDIS_URL" \
-e STORAGE_BACKEND="$STORAGE_BACKEND" \
-e SCHEDULER_BACKEND="$SCHEDULER_BACKEND" \
bindu-agent:$ENVIRONMENT
CONTAINER_ID=$(docker ps -qf "name=bindu-agent-$ENVIRONMENT")
echo "Container ID: $CONTAINER_ID"
else
# Direct deployment
uv run bindu serve &
AGENT_PID=$!
echo "Agent PID: $AGENT_PID"
fi
sleep 10
fi
5. Health Verification
# Determine health URL
if [ "$ENVIRONMENT" = "local" ]; then
HEALTH_URL="http://localhost:3773/health"
else
HEALTH_URL="http://localhost:$PORT/health"
fi
# Wait for agent to be ready
echo "==> Waiting for agent to be ready..."
MAX_RETRIES=30
RETRY_COUNT=0
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
Preguntas frecuentes
¿Se desplegará si fallan las pruebas?
No. La skill indica que el despliegue no debe continuar sin pasar las pruebas.
¿Qué estrategias de despliegue menciona?
Nombra como opciones las estrategias por fases, azul-verde y canario.
¿Qué pasa si un despliegue falla?
La skill indica que admite la reversión cuando un despliegue no se completa correctamente.
Detalles
Descripción original del autor
Deploy Bindu agents to various environments with safety checks and verification
repo: GetBindu/Bindu
Popularidad
- Estrellas en GitHub
- 10 mil
- Posición en el ranking
- #12033
- Licencia
- —
- Actualizada
- 6/9/2026
Comentarios
- …
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.