agentleFS
camilooscargbaptistacamilooscargbaptista/cto-toolkit/devops-infra/SKILL.md

devops-infra

Skill9 starsChanged 8 months agoMITView on GitHub

**DevOps & Infrastructure (Docker, AWS, Messaging)**: Helps with Docker configuration, AWS architecture, CI/CD pipelines, Kubernetes, monitoring, and messaging infrastructure (Kafka, SQS, SNS). Use whenever the user wants to review or create Dockerfiles, docker-compose configs, AWS architecture, CI/CD pipelines, infrastructure as code, or mentions Docker, Kubernetes, ECS, Lambda, S3, RDS, CloudFront, Terraform, GitHub Actions, Jenkins, Kafka, SQS, SNS, monitoring, alerting, or asks about deployment strategies, scaling, or infrastructure design.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read replicas for read-heavy workloads

    line 76
  2. Distinctive:

    No manual steps; secrets in GitHub/AWS Secrets Manager

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DevOps & Infrastructure

You are a senior DevOps/SRE engineer with expertise in Docker, AWS, CI/CD, and distributed systems infrastructure. Focus on reliability, security, cost efficiency, and operational excellence.

Docker & Containerization

References: See references/dockerfile-best-practices.md for multi-stage builds, production Docker Compose with Postgres/Redis, and complete checklist.

Quick principles:

  • Multi-stage builds for minimal final images
  • Alpine or distroless base images
  • Non-root users, health checks, proper signal handling
  • Resource limits, logging configuration, named volumes
  • .dockerignore to exclude unnecessary files

AWS Architecture

Common Patterns

Web Application (ECS/Fargate):

CloudFront → ALB → ECS Fargate (auto-scaling)
                      ↓
                    RDS (Multi-AZ)
                      ↓
                  ElastiCache (Redis)

Event-Driven (Serverless):

API Gateway → Lambda → SQS → Lambda (worker)
                         ↓
                       DynamoDB / RDS
                         ↓
                       SNS (notifications)

Microservices Messaging:

Service A → SNS Topic → SQS Queue → Service B
                      → SQS Queue → Service C
                      → SQS DLQ   → Alert/Retry

AWS Checklist

Compute:

  • Right-sizing instances (use Compute Optimizer)
  • Auto-scaling configured with proper min/max/desired
  • Spot instances for non-critical workloads
  • Graviton (ARM) instances for cost savings

Networking:

  • VPC with public/private subnets
  • NAT Gateway for private subnet internet access
  • Security groups (least privilege)
  • VPC endpoints for AWS services

Database:

  • Multi-AZ for production
  • Automated backups with retention policy
  • Read replicas for read-heavy workloads
  • Connection pooling (RDS Proxy)
  • Encryption at rest enabled

Storage:

  • S3 versioning and lifecycle policies
  • CloudFront for static assets
  • Bucket policies (no public access unless intended)

Monitoring:

  • CloudWatch alarms for key metrics
  • X-Ray for distributed tracing
  • CloudWatch Logs with retention policy
  • Cost alerts and budgets

CI/CD Pipeline

References: See references/cicd-pipeline-templates.md for complete GitHub Actions workflow with test, security scan, canary deployment, and rollback.

Pipeline principles:

  • Tests before any deploy (unit + integration)
  • Security scanning (npm audit + Trivy)
  • Staging before production
  • Canary/blue-green for production rollouts
  • Automated health checks and rollback
  • No manual steps; secrets in GitHub/AWS Secrets Manager

Messaging Infrastructure

References: See references/messaging-patterns.md for Kafka architecture (partitions, replication, retention, consumer groups), SQS/SNS patterns (fan-out, DLQ, visibility timeout, long polling, FIFO), idempotency strategies, and error handling.

Key points:

  • Kafka: partitions = consumers × 2, replication = 3, schema registry
  • SQS/SNS: fan-out with DLQ, visibility timeout > processing time, long polling enabled
  • FIFO only for critical ordering (higher cost)
  • Message idempotency with correlation IDs and deduplication stores

Monitoring & Observability

The Three Pillars

  1. Metrics — What's happening (CloudWatch, Prometheus, Datadog)
  2. Logs — Why it's happening (CloudWatch Logs, ELK)
  3. Traces — Where it's happening (X-Ray, Jaeger)

Key Metrics

  • Error rate (>1% triggers alert)
  • Latency p50, p95, p99
  • Request throughput
  • CPU/Memory utilization
  • Queue depth and message age
  • Database connections
  • Cache hit rate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.