deploy-agent
What it does
This skill guides the deployment of a Bindu agent to a local, staging or production environment, with safety checks along the way. It is for developers who build agents with Bindu and need to ship them.
When to use it
- ✓When you are ready to deploy a Bindu agent to a local, staging or production environment.
- ✓When you want health checks run after a deployment is made.
- ✓When you need a record of what was deployed and a way to roll back if the deployment fails.
Skill link
https://github.com/GetBindu/Bindu/blob/main/.agents/skills/deploy-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Deploy my Bindu agent to staging, run the checks, and tell me whether it is healthy.”
5 new skills a week. 1 minute to read.
How it works
The skill checks the environment settings and runs tests and pre-deployment checks first. It then deploys the agent, runs health checks, and writes a deployment record.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Will it deploy if the tests fail?
No. The skill says deployment must not go ahead without passing tests.
What deployment strategies does it mention?
It names rolling, blue-green and canary strategies as options you can choose.
What happens if a deployment fails?
The skill says it supports rollback when a deployment does not succeed.
Details
Original description by the author
Deploy Bindu agents to various environments with safety checks and verification
repo: GetBindu/Bindu
Popularity
- GitHub stars
- 10k
- Ranking position
- #12033
- License
- —
- Updated
- 9/6/2026
Comments
- …
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.