{"slug":"devops-deploy","title":"devops-deploy","summary":"DevOps e deploy de aplicacoes — Docker, CI/CD com GitHub Actions, AWS Lambda, SAM, Terraform, infraestrutura como codigo e monitoramento.","platform":"ChatGPT","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-08-16T13:38:26.763905Z","repo":{"url":"https://github.com/sickn33/agentic-awesome-skills","stars":46883,"forks":6831,"license":"MIT","updatedAt":"2026-09-25T05:43:16Z"},"bodyHtml":"<hr>\n<p>name: devops-deploy\ndescription: \"DevOps e deploy de aplicacoes — Docker, CI/CD com GitHub Actions, AWS Lambda, SAM, Terraform, infraestrutura como codigo e monitoramento.\"\nrisk: critical\nsource: community\ndate_added: '2026-03-06'\nauthor: renat\ntags:</p>\n<ul>\n<li>devops</li>\n<li>docker</li>\n<li>ci-cd</li>\n<li>aws</li>\n<li>terraform</li>\n<li>github-actions\ntools:</li>\n<li>claude-code</li>\n<li>antigravity</li>\n<li>cursor</li>\n<li>gemini-cli</li>\n<li>codex-cli</li>\n</ul>\n<hr>\n<h1>DEVOPS-DEPLOY — Da Ideia para Producao</h1>\n<h2>Overview</h2>\n<p>DevOps e deploy de aplicacoes — Docker, CI/CD com GitHub Actions, AWS Lambda, SAM, Terraform, infraestrutura como codigo e monitoramento. Ativar para: dockerizar aplicacao, configurar pipeline CI/CD, deploy na AWS, Lambda, ECS, configurar GitHub Actions, Terraform, rollback, blue-green deploy, health checks, alertas.</p>\n<h2>When to Use This Skill</h2>\n<ul>\n<li>When you need specialized assistance with this domain</li>\n</ul>\n<h2>Do Not Use This Skill When</h2>\n<ul>\n<li>The task is unrelated to devops deploy</li>\n<li>A simpler, more specific tool can handle the request</li>\n<li>The user needs general-purpose assistance without domain expertise</li>\n</ul>\n<h2>How It Works</h2>\n<blockquote>\n<p>\"Move fast and don't break things.\" — Engenharia de elite nao e lenta.\nE rapida e confiavel ao mesmo tempo.</p>\n</blockquote>\n<hr>\n<h2>Dockerfile Otimizado (Python)</h2>\n<pre><code>FROM python:3.11-slim AS builder\nWORKDIR /app\nCOPY requirements.txt .\nRUN pip install --no-cache-dir --user -r requirements.txt\n\nFROM python:3.11-slim\nWORKDIR /app\nCOPY --from=builder /root/.local /root/.local\nCOPY . .\nENV PATH=/root/.local/bin:$PATH\nENV PYTHONUNBUFFERED=1\nEXPOSE 8000\nHEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:8000/health || exit 1\nCMD [\"uvicorn\", \"main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]\n</code></pre>\n<h2>Docker Compose (Dev Local)</h2>\n<pre><code>version: \"3.9\"\nservices:\n  app:\n    build: .\n    ports: [\"8000:8000\"]\n    environment:\n      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}\n    volumes:\n      - .:/app\n    depends_on: [db, redis]\n  db:\n    image: postgres:15\n    environment:\n      POSTGRES_DB: auri\n      POSTGRES_USER: auri\n      POSTGRES_PASSWORD: ${DB_PASSWORD}\n    volumes:\n      - pgdata:/var/lib/postgresql/data\n  redis:\n    image: redis:7-alpine\nvolumes:\n  pgdata:\n</code></pre>\n<hr>\n<h2>Sam Template (Serverless)</h2>\n<pre><code>\n## Template.Yaml\n\nAWSTemplateFormatVersion: '2010-09-09'\nTransform: AWS::Serverless-2016-10-31\n\nGlobals:\n  Function:\n    Timeout: 30\n    Runtime: python3.11\n    Environment:\n      Variables:\n        ANTHROPIC_API_KEY: !Ref AnthropicApiKey\n        DYNAMODB_TABLE: !Ref AuriTable\n\nResources:\n  AuriFunction:\n    Type: AWS::Serverless::Function\n    Properties:\n      CodeUri: src/\n      Handler: lambda_function.handler\n      MemorySize: 512\n      Policies:\n        - DynamoDBCrudPolicy:\n            TableName: !Ref AuriTable\n\n  AuriTable:\n    Type: AWS::DynamoDB::Table\n    Properties:\n      TableName: auri-users\n      BillingMode: PAY_PER_REQUEST\n      AttributeDefinitions:\n        - AttributeName: userId\n          AttributeType: S\n      KeySchema:\n        - AttributeName: userId\n          KeyType: HASH\n      TimeToLiveSpecification:\n        AttributeName: ttl\n        Enabled: true\n</code></pre>\n<h2>Deploy Commands</h2>\n<pre><code>\n## Build E Deploy\n\nsam build\nsam deploy --guided  # primeira vez\nsam deploy           # deploys seguintes\n\n## Deploy Rapido (Sem Confirmacao)\n\nsam deploy --no-confirm-changeset --no-fail-on-empty-changeset\n\n## Ver Logs Em Tempo Real\n\nsam logs -n AuriFunction --tail\n\n## Deletar Stack\n\nsam delete\n</code></pre>\n<hr>\n<h2>.Github/Workflows/Deploy.Yml</h2>\n<p>name: Deploy Auri</p>\n<p>on:\npush:\nbranches: [main]\npull_request:\nbranches: [main]</p>\n<p>jobs:\ntest:\nruns-on: ubuntu-latest\nsteps:\n- uses: actions/checkout@v4\n- uses: actions/setup-python@v5\nwith: { python-version: \"3.11\" }\n- run: pip install -r requirements.txt\n- run: pytest tests/ -v --cov=src --cov-report=xml\n- uses: codecov/codecov-action@v4</p>\n<p>security:\nruns-on: ubuntu-latest\nsteps:\n- uses: actions/checkout@v4\n- run: pip install bandit safety\n- run: bandit -r src/ -ll\n- run: safety check -r requirements.txt</p>\n<p>deploy:\nneeds: [test, security]\nif: github.ref == 'refs/heads/main'\nruns-on: ubuntu-latest\nsteps:\n- uses: actions/checkout@v4\n- uses: aws-actions/setup-sam@v2\n- uses: aws-actions/configure-aws-credentials@v4\nwith:\naws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\naws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\naws-region: us-east-1\n- run: sam build\n- run: sam deploy --no-confirm-changeset\n- name: Notify Telegram on Success\nrun: |\ncurl -s -X POST \"https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage\" <br>\n-d \"chat_id=${{ secrets.TELEGRAM_CHAT_ID }}\" <br>\n-d \"text=Auri deployed successfully! Commit: ${{ github.sha }}\"</p>\n<pre><code>\n---\n\n## Health Check Endpoint\n\n```python\nfrom fastapi import FastAPI\nimport time, os\n\napp = FastAPI()\nSTART_TIME = time.time()\n\n@app.get(\"/health\")\nasync def health():\n    return {\n        \"status\": \"healthy\",\n        \"uptime_seconds\": time.time() - START_TIME,\n        \"version\": os.environ.get(\"APP_VERSION\", \"unknown\"),\n        \"environment\": os.environ.get(\"ENV\", \"production\")\n    }\n</code></pre>\n<h2>Alertas Cloudwatch</h2>\n<pre><code>import boto3\n\ndef create_error_alarm(function_name: str, sns_topic_arn: str):\n    cw = boto3.client(\"cloudwatch\")\n    cw.put_metric_alarm(\n        AlarmName=f\"{function_name}-errors\",\n        MetricName=\"Errors\",\n        Namespace=\"AWS/Lambda\",\n        Dimensions=[{\"Name\": \"FunctionName\", \"Value\": function_name}],\n        Period=300,\n        EvaluationPeriods=1,\n        Threshold=5,\n        ComparisonOperator=\"GreaterThanThreshold\",\n        AlarmActions=[sns_topic_arn],\n        TreatMissingData=\"notBreaching\"\n    )\n</code></pre>\n<hr>\n<h2>5. Checklist De Producao</h2>\n<ul>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Variaveis de ambiente via Secrets Manager (nunca hardcoded)</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Health check endpoint respondendo</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Logs estruturados (JSON) com request_id</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Rate limiting configurado</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> CORS restrito a dominios autorizados</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> DynamoDB com backup automatico ativado</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Lambda com timeout adequado (10-30s)</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> CloudWatch alarmes para erros e latencia</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Rollback plan documentado</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Load test antes do lancamento</li>\n</ul>\n<hr>\n<h2>6. Comandos</h2>\n<table>\n<thead>\n<tr>\n<th>Comando</th>\n<th>Acao</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>/docker-setup</code></td>\n<td>Dockeriza a aplicacao</td>\n</tr>\n<tr>\n<td><code>/sam-deploy</code></td>\n<td>Deploy completo na AWS Lambda</td>\n</tr>\n<tr>\n<td><code>/ci-cd-setup</code></td>\n<td>Configura GitHub Actions pipeline</td>\n</tr>\n<tr>\n<td><code>/monitoring-setup</code></td>\n<td>Configura CloudWatch e alertas</td>\n</tr>\n<tr>\n<td><code>/production-checklist</code></td>\n<td>Roda checklist pre-lancamento</td>\n</tr>\n<tr>\n<td><code>/rollback</code></td>\n<td>Plano de rollback para versao anterior</td>\n</tr>\n</tbody>\n</table>\n<h2>Best Practices</h2>\n<ul>\n<li>Provide clear, specific context about your project and requirements</li>\n<li>Review all suggestions before applying them to production code</li>\n<li>Combine with other complementary skills for comprehensive analysis</li>\n</ul>\n<h2>Common Pitfalls</h2>\n<ul>\n<li>Using this skill for tasks outside its domain expertise</li>\n<li>Applying recommendations without understanding your specific context</li>\n<li>Not providing enough project context for accurate analysis</li>\n</ul>\n<h2>Limitations</h2>\n<ul>\n<li>Use this skill only when the task clearly matches the scope described above.</li>\n<li>Do not treat the output as a substitute for environment-specific validation, testing, or expert review.</li>\n<li>Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":7412,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-08-16T13:41:14.651092Z","sha256":"0449BB324618427A277B63EF505F5F3E52AAF9E24D2D6A09A3E6543E7D130AD9","sizeBytes":3475},"review":null,"source":{"repositoryUrl":"https://github.com/sickn33/agentic-awesome-skills","path":"skills/devops-deploy","license":"MIT","commit":"f2bba339de74414b0771234cbe4f6a15258e32a3","subtreeSha":"B0FDD85C31BD43ACB29923A333B4CD0A326D089C2F2E400C1939A749FCE950CE","lastSyncedAt":"2026-09-25T06:48:39.853703Z"},"reviewedAt":"2026-08-16T13:44:48.048268Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/sickn33/agentic-awesome-skills/tree/main/skills/devops-deploy"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sickn33-agentic-awesome-skills@llmmart"},{"target":"git","command":"git clone https://github.com/sickn33/agentic-awesome-skills.git"}]}