{"data":{"slug":"github-claude-office-skills-skills-devops-automation-bb259ca6489f","title":"DevOps Automation for CI\/CD and Infrastructure","summary":"Automate DevOps workflows including CI\/CD pipelines, monitoring, incident management, and infrastructure operations. Based on n8n's IT Ops workflow templates. Deliverables include automated incident response, GitHub push and pull request triggers, Kubernetes deployment scaling, and rollback mechanisms.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-devops-automation-bb259ca6489f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-devops-automation-bb259ca6489f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-devops-automation-bb259ca6489f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-devops-automation-bb259ca6489f\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the GitHub API, Jenkins trigger, AWS CLI, and Kubernetes API tools are installed and configured before use. The first deliverable is a configured incident response workflow with severity-based alerts and escalation.","instructions":"---\nname: devops-automation\ndescription: \"DevOps and IT Ops automation - CI\/CD, monitoring, incident management, and infrastructure workflows\"\nversion: \"1.0.0\"\nauthor: claude-office-skills\nlicense: MIT\n\ncategory: devops\ntags:\n  - devops\n  - ci-cd\n  - monitoring\n  - incident\n  - automation\ndepartment: Engineering\n\nmodels:\n  recommended:\n    - claude-sonnet-4\n\nmcp:\n  server: devops-mcp\n  tools:\n    - github_api\n    - jenkins_trigger\n    - aws_cli\n    - kubernetes_api\n\ncapabilities:\n  - ci_cd_pipelines\n  - monitoring_alerts\n  - incident_management\n  - infrastructure_automation\n  - deployment_workflows\n\nlanguages:\n  - en\n  - zh\n\nrelated_skills:\n  - slack-workflows\n  - telegram-bot\n  - ai-agent-builder\n---\n\n# DevOps Automation\n\nAutomate DevOps workflows including CI\/CD pipelines, monitoring, incident management, and infrastructure operations. Based on n8n's IT Ops workflow templates.\n\n## Overview\n\nThis skill covers:\n- CI\/CD pipeline automation\n- Monitoring and alerting\n- Incident management\n- Infrastructure automation\n- Deployment workflows\n\n---\n\n## CI\/CD Automation\n\n### GitHub Actions Integration\n\n```yaml\nworkflow: \"GitHub CI\/CD Notifications\"\n\ntriggers:\n  - github_push\n  - github_pull_request\n  - github_workflow_run\n  \non_push:\n  action:\n    - trigger_ci: if_main_branch\n    - notify_slack:\n        channel: \"#deployments\"\n        message: |\n          \ud83d\udce6 *New Push to {branch}*\n          \n          Commit: `{commit_sha_short}`\n          Author: {author}\n          Message: {commit_message}\n          \n          [View Diff]({compare_url})\n\non_pr_opened:\n  action:\n    - notify_slack:\n        channel: \"#code-review\"\n        message: |\n          \ud83d\udd00 *New Pull Request*\n          \n          Title: {pr_title}\n          Author: {author}\n          Branch: {head} \u2192 {base}\n          \n          [Review PR]({pr_url})\n    - assign_reviewers: based_on_codeowners\n    - run_ci_checks\n\non_workflow_complete:\n  action:\n    - notify_slack:\n        message: |\n          {status_emoji} *Build {status}*\n          \n          Workflow: {workflow_name}\n          Branch: {branch}\n          Duration: {duration}\n          \n          {if_failed: [View Logs]({logs_url})}\n```\n\n### Deployment Pipeline\n\n```yaml\ndeployment_pipeline:\n  stages:\n    build:\n      trigger: push_to_main\n      steps:\n        - checkout_code\n        - install_dependencies\n        - run_tests\n        - build_artifact\n        - push_to_registry\n        \n    staging:\n      trigger: build_success\n      steps:\n        - deploy_to_staging\n        - run_integration_tests\n        - notify_qa\n        \n    production:\n      trigger: manual_approval\n      steps:\n        - create_backup\n        - deploy_to_production\n        - run_smoke_tests\n        - notify_team\n        \n  rollback:\n    trigger: deployment_failed OR manual\n    steps:\n      - revert_to_previous\n      - notify_team\n      - create_incident\n```\n\n---\n\n## Monitoring & Alerting\n\n### Alert Routing\n\n```yaml\nalert_routing:\n  sources:\n    - prometheus\n    - datadog\n    - cloudwatch\n    - new_relic\n    \n  severity_levels:\n    critical:\n      response_time: 5_minutes\n      channels: [pagerduty, slack_urgent, sms]\n      escalation: immediate\n      \n    high:\n      response_time: 15_minutes\n      channels: [slack_alerts, email]\n      escalation: after_15_minutes\n      \n    medium:\n      response_time: 1_hour\n      channels: [slack_alerts]\n      \n    low:\n      response_time: 24_hours\n      channels: [slack_logging]\n      \n  routing_rules:\n    - if: service == \"payments\"\n      team: payments_oncall\n      severity_boost: +1\n      \n    - if: service == \"auth\"\n      team: security_oncall\n      \n    - default:\n      team: platform_oncall\n```\n\n### Alert Templates\n\n```yaml\nalert_templates:\n  infrastructure:\n    cpu_high:\n      title: \"\ud83d\udd25 High CPU Usage\"\n      body: |\n        Server: {host}\n        CPU: {cpu_percent}%\n        Duration: {duration}\n        \n        Threshold: {threshold}%\n        \n        [View Dashboard]({grafana_url})\n        \n    memory_critical:\n      title: \"\ud83d\udcbe Critical Memory\"\n      body: |\n        Server: {host}\n        Memory: {memory_percent}%\n        Available: {available_mb}MB\n        \n        [SSH to Server]({ssh_link})\n        \n    disk_full:\n      title: \"\ud83d\udcbf Disk Space Critical\"\n      body: |\n        Server: {host}\n        Disk: {disk_percent}%\n        Available: {available_gb}GB\n        \n        Suggestion: Clean logs or expand volume\n        \n  application:\n    error_spike:\n      title: \"\ud83d\udcc8 Error Rate Spike\"\n      body: |\n        Service: {service}\n        Error Rate: {error_rate}%\n        Normal: {baseline}%\n        \n        Top Errors:\n        {top_errors}\n        \n    latency_high:\n      title: \"\ud83d\udc22 High Latency\"\n      body: |\n        Service: {service}\n        P99 Latency: {p99_ms}ms\n        Threshold: {threshold_ms}ms\n```\n\n---\n\n## Incident Management\n\n### Incident Workflow\n\n```yaml\nincident_workflow:\n  detection:\n    sources: [monitoring, user_report, automated_check]\n    \n  triage:\n    auto_severity:\n      - if: affects_payments\n        severity: critical\n      - if: affects_auth\n        severity: critical\n      - if: affects_api AND error_rate > 10%\n        severity: high\n        \n  response:\n    critical:\n      - create_incident_channel: \"#inc-{timestamp}\"\n      - page_oncall: immediately\n      - notify_stakeholders: [engineering_lead, product]\n      - start_war_room: zoom_link\n      - create_status_page: incident\n      \n    high:\n      - create_incident_channel\n      - notify_oncall: slack\n      - create_ticket: jira\n      \n  communication:\n    internal:\n      frequency: every_30_minutes\n      channel: incident_channel\n      template: |\n        \ud83d\udcca *Incident Update*\n        \n        Status: {status}\n        Impact: {impact}\n        Next update: {next_update_time}\n        \n        Current actions:\n        {action_items}\n        \n    external:\n      channel: status_page\n      template: customer_facing_update\n      \n  resolution:\n    steps:\n      - confirm_resolution\n      - update_status_page: resolved\n      - notify_stakeholders\n      - schedule_postmortem\n      - close_incident_channel: after_24h\n```\n\n### Postmortem Template\n\n```yaml\npostmortem_template:\n  sections:\n    summary:\n      - incident_title\n      - duration\n      - severity\n      - impact\n      \n    timeline:\n      format: |\n        | Time | Event |\n        |------|-------|\n        | {time} | {event} |\n        \n    root_cause:\n      - what_happened\n      - why_it_happened\n      - contributing_factors\n      \n    impact:\n      - users_affected\n      - revenue_impact\n      - sla_breach\n      \n    resolution:\n      - how_it_was_fixed\n      - time_to_detect\n      - time_to_resolve\n      \n    action_items:\n      format: |\n        | Action | Owner | Due Date | Status |\n        |--------|-------|----------|--------|\n        \n    lessons_learned:\n      - what_went_well\n      - what_went_poorly\n      - lucky_breaks\n```\n\n---\n\n## Infrastructure Automation\n\n### Server Provisioning\n\n```yaml\nprovisioning_workflow:\n  trigger: jira_ticket OR slack_request\n  \n  steps:\n    1. validate_request:\n        check: [budget_approval, security_review]\n        \n    2. create_infrastructure:\n        terraform:\n          - vpc\n          - security_groups\n          - ec2_instances\n          - load_balancer\n          \n    3. configure_server:\n        ansible:\n          - base_configuration\n          - security_hardening\n          - monitoring_agent\n          - application_setup\n          \n    4. validate:\n        - health_check\n        - security_scan\n        - performance_baseline\n        \n    5. notify:\n        slack: \"\u2705 Server {hostname} is ready\"\n        include: [ssh_access, dashboard_link]\n```\n\n### Scheduled Maintenance\n\n```yaml\nmaintenance_automation:\n  tasks:\n    certificate_renewal:\n      schedule: \"30 days before expiry\"\n      action:\n        - request_new_cert: letsencrypt\n        - deploy_cert\n        - verify_ssl\n        - notify: if_failure\n        \n    security_patching:\n      schedule: \"weekly\"\n      action:\n        - check_updates\n        - if_critical: immediate_patch\n        - else: schedule_maintenance_window\n        \n    log_rotation:\n      schedule: \"daily\"\n      action:\n        - rotate_logs\n        - compress_old\n        - upload_to_s3\n        - delete_local: older_than_7_days\n        \n    backup_verification:\n      schedule: \"weekly\"\n      action:\n        - restore_to_test_env\n        - run_integrity_checks\n        - report_status\n```\n\n---\n\n## Kubernetes Automation\n\n### K8s Workflows\n\n```yaml\nkubernetes_automation:\n  deployment:\n    trigger: docker_image_pushed\n    steps:\n      - update_manifest: with_new_image_tag\n      - apply_to_staging\n      - run_tests\n      - if_success: apply_to_production\n      \n  scaling:\n    trigger: metric_threshold\n    rules:\n      - if: cpu > 80%\n        action: scale_up\n        max_replicas: 10\n      - if: cpu < 20%\n        action: scale_down\n        min_replicas: 2\n        \n  rollback:\n    trigger: health_check_failed\n    action:\n      - kubectl_rollout_undo\n      - notify_team\n      - create_incident\n```\n\n---\n\n## Output Example\n\n**Request**: \"Set up deployment notifications for GitHub Actions\"\n\n**Output**:\n\n```markdown\n# GitHub Actions Deployment Notifications\n\n## n8n Workflow\n\n```yaml\ntrigger: GitHub Webhook\nevents: [workflow_run]\n```\n\n## Notification Templates\n\n**Build Started:**\n```\n\ud83d\ude80 *Deployment Started*\n\nBranch: main\nCommit: abc1234\nAuthor: @developer\nTriggered by: Push\n\n[View Workflow](https:\/\/github.com\/...)\n```\n\n**Build Success:**\n```\n\u2705 *Deployment Successful*\n\nEnvironment: Production\nDuration: 3m 42s\nVersion: v1.2.3\n\nChanges:\n\u2022 Feature X\n\u2022 Bug fix Y\n\n[View Deployment](https:\/\/app.example.com)\n```\n\n**Build Failed:**\n```\n\u274c *Deployment Failed*\n\nStage: Test\nError: npm test failed\n\n[View Logs](https:\/\/github.com\/...)\n[Retry](https:\/\/github.com\/...)\n```\n\n## Slack Integration\n\n```yaml\nchannel: \"#deployments\"\nmention_on_failure: \"@oncall\"\nthread_replies: true\n```\n```\n\n---\n\n*DevOps Automation Skill - Part of Claude Office Skills*\n","use_cases":["Automate incident response workflows with severity-based alerts and escalation","Trigger CI\/CD pipelines on GitHub pushes and pull requests","Scale Kubernetes deployments based on CPU usage thresholds","Rollback deployments when health checks fail","Notify stakeholders during incident resolution and postmortem"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/devops-automation\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T13:28:18.000000Z","updated_at":"2026-11-22T11:17:55.000000Z","seo_title":"DevOps Automation for CI\/CD and Infrastructure","seo_description":"Automate DevOps workflows with CI\/CD pipelines, monitoring, incident management, and infrastructure automation. Streamline deployment and operations using n8n's IT Ops\u6a21\u677f.","seo_keywords":["DevOps automation","CI\/CD pipeline automation","Incident management workflow","Kubernetes deployment automation","Infrastructure automation","Monitoring and alerting"]}}