Install
$ agentstack add skill-hasna-skills-deploy ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
deploy
Description
Deployment automation skill for EC2 instances. Automates git pull, service restart, and health checks for configured hosts.
Category
DevOps / Deployment / Automation
Commands
deploy
Deploy to one or more hosts with git pull, service restart, and health check.
bun run src/index.ts deploy [options]
Options:
--all- Deploy to all configured hosts--parallel, -p- Deploy to multiple hosts in parallel--skip-health- Skip health check after deployment--skip-restart- Skip service restart (only pull code)--verbose, -v- Show detailed output--dry-run- Preview deployment without making changes--force, -f- Force deployment even if already up-to-date
list / hosts
List all configured deployment hosts.
bun run src/index.ts list
health
Run health check on a deployed service.
bun run src/index.ts health
status
Check systemd service status on a host.
bun run src/index.ts status
Dependencies
- Bun: Runtime environment
- SSH: Configured SSH access to target hosts
- Git: Git repositories on target hosts
- systemd: For service management (optional)
Integration
Use Cases
- Manual Deployments: Deploy latest code to any environment on demand
- CI/CD Pipeline: Automate deployments from GitHub Actions
- Health Monitoring: Check service status and health endpoints
- Multi-Environment: Support for lab, staging, and production environments
Example: Deploy from Local
# Deploy single host
bun run src/index.ts deploy lab-mcp
# Deploy multiple hosts sequentially
bun run src/index.ts deploy lab-mcp prod-skill
# Deploy all hosts in parallel
bun run src/index.ts deploy --all --parallel
# Deploy with verbose logging
bun run src/index.ts deploy lab-mcp --verbose
Example: CI/CD Integration
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy
run: |
cd deploy
bun install
bun run src/index.ts deploy lab-mcp
Configuration
Hosts are configured in src/hosts.ts:
{
name: 'Display Name',
sshHost: 'ssh-config-hostname',
deployPath: '/opt/myapp',
service: 'myapp.service',
healthUrl: 'http://localhost:PORT/health',
gitRepo: 'git@github.com:org/repo.git',
gitBranch: 'main',
user: 'ec2-user'
}
Supported Hosts
- lab-mcp: Lab environment for MCP services
- prod-skill: Production skill server
Deployment Process
- SSH to target host
- Pull latest code from configured branch
- Restart systemd service (if configured)
- Run health check (if configured)
- Report results with detailed status
Requirements
- SSH keys configured in
~/.ssh/config - Git SSH access to repositories
- Sudo permissions for service management
- Health endpoints (optional)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: hasna
- Source: hasna/skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.