AgentSkillsCN

faion-infrastructure-engineer

基础设施:Docker、Kubernetes、Terraform、AWS/GCP、IaC、容器化技术。

SKILL.md
--- frontmatter
name: faion-infrastructure-engineer
description: "Infrastructure: Docker, Kubernetes, Terraform, AWS/GCP, IaC, containerization."
user-invocable: false
allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Task, AskUserQuestion, TodoWrite

Entry point: /faion-net — invoke this skill for automatic routing to the appropriate domain.

Infrastructure Engineer Sub-Skill

Communication: User's language. Config/code: English.

Purpose

Manages infrastructure provisioning, containerization, orchestration, and cloud platforms. Covers Docker, Kubernetes, Terraform, AWS, GCP, and IaC patterns.


Context Discovery

Auto-Investigation

Detect existing infrastructure from project:

SignalHow to CheckWhat It Tells Us
DockerfileGlob("**/Dockerfile") or Glob("**/.dockerfile")Docker containerization
docker-composeGlob("**/docker-compose*.yml")Multi-container local dev
K8s manifestsGlob("**/k8s/**/*.yaml") or Glob("**/kubernetes/*")Kubernetes deployment
Helm chartsGlob("**/charts/*") or Glob("**/Chart.yaml")Helm package management
TerraformGlob("**/*.tf") or Glob("**/terraform/*")IaC with Terraform
AWS configGrep("aws_", "**/*.tf") or Glob("**/.aws/*")AWS infrastructure
GCP configGrep("google_", "**/*.tf") or Glob("**/.gcp/*")GCP infrastructure
Cloud initGlob("**/cloud-init*.yaml")VM provisioning

Read existing infrastructure:

  • docker-compose.yml for service architecture
  • Kubernetes manifests for deployment patterns
  • Terraform files for cloud resources
  • README for infrastructure setup instructions

Discovery Questions

Q1: Infrastructure Layer

yaml
question: "What infrastructure layer do you need help with?"
header: "Focus"
multiSelect: false
options:
  - label: "Containerization (Docker)"
    description: "Dockerfile, image optimization, local development"
  - label: "Orchestration (Kubernetes, Helm)"
    description: "K8s deployments, services, scaling, Helm charts"
  - label: "Infrastructure as Code (Terraform)"
    description: "Cloud provisioning, modules, state management"
  - label: "Cloud platform (AWS or GCP)"
    description: "Compute, storage, networking, managed services"

Q2: Deployment Stage

yaml
question: "What stage is your infrastructure at?"
header: "Maturity"
multiSelect: false
options:
  - label: "Local dev only (docker-compose)"
    description: "Need to containerize or improve local setup"
  - label: "Manual deployment (no automation)"
    description: "Need IaC or orchestration"
  - label: "Basic K8s or cloud (needs optimization)"
    description: "Running but needs scaling, monitoring, cost optimization"
  - label: "Multi-environment (staging, prod)"
    description: "Need consistency, GitOps, or advanced patterns"

Q3: Cloud Provider

yaml
question: "Which cloud provider are you using?"
header: "Platform"
multiSelect: false
options:
  - label: "AWS"
    description: "EC2, ECS, Lambda, S3, networking"
  - label: "GCP"
    description: "GKE, Cloud Run, Compute, storage"
  - label: "Multi-cloud or cloud-agnostic"
    description: "Need portable IaC with Terraform"
  - label: "On-premise or bare metal"
    description: "Self-hosted Kubernetes or VMs"

Quick Decision Tree

If you need...UseFile
Containerization
Single service Dockerfiledocker-containerizationdocker-containerization.md
Multi-service local devdocker-composedocker-compose.md
Dockerfile patternsdockerfile-patternsdockerfile-patterns.md
Kubernetes
K8s basicsk8s-basicsk8s-basics.md
K8s resourcesk8s-resourcesk8s-resources.md
K8s deploymentkubernetes-deploymentkubernetes-deployment.md
Helm chartshelm-basics, helm-advancedhelm-basics.md
Infrastructure as Code
Terraform basicsterraform-basicsterraform-basics.md
Terraform modulesterraform-modulesterraform-modules.md
Terraform stateterraform-stateterraform-state.md
IaC patternsiac-basics, iac-patternsiac-basics.md
AWS
AWS foundationsaws-architecture-foundationsaws-architecture-foundations.md
AWS servicesaws-architecture-servicesaws-architecture-services.md
EC2/ECSaws-ec2-ecsaws-ec2-ecs.md
Lambdaaws-lambdaaws-lambda.md
S3/Storageaws-s3-storageaws-s3-storage.md
Networkingaws-networkingaws-networking.md
GCP
GCP basicsgcp-arch-basicsgcp-arch-basics.md
GCP patternsgcp-arch-patternsgcp-arch-patterns.md
Compute/GKEgcp-computegcp-compute.md
Cloud Rungcp-cloud-rungcp-cloud-run.md
Storagegcp-storagegcp-storage.md
Networkinggcp-networkinggcp-networking.md

Methodologies (30)

Docker (6)

  • docker-basics
  • docker-compose
  • docker-containerization
  • dockerfile-patterns
  • docker (reference)

Kubernetes (6)

  • k8s-basics
  • k8s-resources
  • kubernetes-deployment
  • helm-basics
  • helm-advanced

Terraform & IaC (6)

  • terraform-basics
  • terraform-modules
  • terraform-state
  • terraform (reference)
  • iac-basics
  • iac-patterns

AWS (7)

  • aws (reference)
  • aws-architecture-foundations
  • aws-architecture-services
  • aws-ec2-ecs
  • aws-lambda
  • aws-s3-storage
  • aws-networking

GCP (6)

  • gcp (reference)
  • gcp-arch-basics
  • gcp-arch-patterns
  • gcp-compute
  • gcp-cloud-run
  • gcp-storage
  • gcp-networking

Common Workflows

Container Deployment

code
1. Write Dockerfile
2. Build and test locally
3. Push to registry
4. Update K8s manifests
5. Apply to cluster
6. Verify deployment

Infrastructure Provisioning

code
1. Create feature branch
2. Write Terraform code
3. Run terraform plan
4. Review plan output
5. Create PR
6. Apply after approval
7. Verify resources

Related Skills

SkillRelationship
faion-devops-engineerParent skill
faion-cicd-engineerSibling (CI/CD and monitoring)

Infrastructure Engineer Sub-Skill v1.0 30 Methodologies | Docker, K8s, Terraform, AWS, GCP