devops-fullstack
DevOps for fullstack - Docker, CI/CD, deployment, monitoring
When & Why to Use This Skill
The DevOps Fullstack skill is a comprehensive automation tool designed to streamline the entire software delivery lifecycle. It enables developers to instantly containerize applications using Docker, configure robust CI/CD pipelines across platforms like GitHub Actions and GitLab CI, and execute seamless deployments to major cloud providers. By integrating automated monitoring and alerting, it ensures that fullstack applications remain scalable, secure, and highly available in production environments.
Use Cases
- Automating the containerization of Node.js, Python, or Go applications with optimized multi-stage Dockerfiles for smaller image sizes and better security.
- Setting up end-to-end CI/CD pipelines that automate testing, building, and deployment to platforms like AWS, GCP, or Vercel upon every code push.
- Standardizing deployment configurations across different environments (staging vs. production) to eliminate 'it works on my machine' issues.
- Implementing proactive monitoring and health check configurations to detect and alert on performance bottlenecks or service downtime automatically.
| name | devops-fullstack |
|---|---|
| description | The specific DevOps action to perform |
| sasmp_version | "1.3.0" |
| bonded_agent | 05-devops-integration |
| bond_type | PRIMARY_BOND |
| atomic | true |
| single_responsibility | devops_operations |
| type | object |
| required | [action] |
| enum | [aws, gcp, azure, vercel, railway] |
| default | github-actions |
| success | { type: boolean } |
| dockerfile | { type: string } |
| pipeline | { type: object } |
| deployment_config | { type: object } |
| monitoring_config | { type: object } |
| max_attempts | 3 |
| backoff | exponential |
| initial_delay_ms | 2000 |
| max_delay_ms | 20000 |
| jitter | true |
| level | INFO |
| events | [container_built, pipeline_created, deployment_completed] |
| metrics | [build_time, deployment_duration, resource_usage] |
DevOps Fullstack Skill
Atomic skill for DevOps operations including containerization, CI/CD, and deployment.
Responsibility
Single Purpose: Containerize, automate, and deploy fullstack applications
Actions
containerize
Create optimized Docker configuration for the application.
// Input
{
action: "containerize",
container_runtime: "docker"
}
// Output
{
success: true,
dockerfile: "FROM node:20-alpine AS builder\n...",
files: [
{ path: "Dockerfile", content: "..." },
{ path: "docker-compose.yml", content: "..." },
{ path: ".dockerignore", content: "..." }
]
}
setup_cicd
Configure CI/CD pipeline.
deploy
Deploy application to cloud platform.
configure_monitoring
Set up monitoring and alerting.
Validation Rules
function validateParams(params: SkillParams): ValidationResult {
if (!params.action) {
return { valid: false, error: "action is required" };
}
if (params.action === 'deploy' && !params.cloud_provider) {
return { valid: false, error: "cloud_provider required for deployment" };
}
return { valid: true };
}
Error Handling
| Error Code | Description | Recovery |
|---|---|---|
| BUILD_FAILED | Docker build failed | Check Dockerfile syntax |
| PIPELINE_INVALID | CI/CD config invalid | Validate YAML syntax |
| DEPLOYMENT_FAILED | Deployment unsuccessful | Check credentials and resources |
| HEALTH_CHECK_FAILED | Service not healthy | Review logs and config |
Logging Hooks
{
"on_invoke": "log.info('devops-fullstack invoked', { action, ci_platform })",
"on_success": "log.info('DevOps operation completed', { files, duration_ms })",
"on_error": "log.error('DevOps skill failed', { error })"
}
Unit Test Template
import { describe, it, expect } from 'vitest';
import { devopsFullstack } from './devops-fullstack';
describe('devops-fullstack skill', () => {
describe('containerize', () => {
it('should create multi-stage Dockerfile', async () => {
const result = await devopsFullstack({
action: 'containerize',
container_runtime: 'docker'
});
expect(result.success).toBe(true);
expect(result.dockerfile).toContain('AS builder');
expect(result.dockerfile).toContain('AS runner');
});
it('should use non-root user', async () => {
const result = await devopsFullstack({
action: 'containerize'
});
expect(result.dockerfile).toContain('USER');
});
});
describe('setup_cicd', () => {
it('should create GitHub Actions workflow', async () => {
const result = await devopsFullstack({
action: 'setup_cicd',
ci_platform: 'github-actions'
});
expect(result.success).toBe(true);
expect(result.pipeline.jobs).toBeDefined();
});
});
});
Integration
- Bonded Agent: 05-devops-integration
- Upstream Skills: All development skills
- Downstream Skills: fullstack-security
Version History
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2024-01 | Initial release |
| 2.0.0 | 2025-01 | Production-grade upgrade with GitOps patterns |