infra-audit
Trigger: infrastructure audit, IaC, Terraform, Kubernetes, CI/CD, Docker, cloud, Helm, Ansible. Audit infra reliability.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- infra-audit
- triggers
- infrastructure audit, IaC, Terraform, Kubernetes, CI/CD, Docker, cloud, deployment, Helm, Ansible, k8s
- changelog
- docs/ciclos/cycle28-20260815.md
- description
- Trigger: infrastructure audit, IaC, Terraform, Kubernetes, CI/CD, Docker, cloud, Helm, Ansible. Audit infra reliability.
- token_budget
- 2500
03 SKILL.md 正文
When to Use
Reviewing infrastructure (Terraform, Docker, K8s, CI/CD, Helm, Ansible, CloudFormation). Progressive scan: audit what's present, report what's missing.
CHECKLIST
| Check | Sev |
|---|---|
| No remote state | CRIT |
| Privileged container | CRIT |
| Secrets in CI plaintext | CRIT |
| No resource limits | HIGH |
| No health checks | HIGH |
| No NetworkPolicy (multi-tenant K8s) | HIGH |
latest tag in prod |
MED |
| Unpinned CI actions | MED |
RISK SCORING
| Level | Criteria |
|---|---|
| NONE | All checks pass |
| LOW | Only MED findings |
| MED | 1+ HIGH findings |
| HIGH | 1+ CRIT findings |
OUTPUT
### Security Compliance
| Check | Status | File | Evidence |
### Reliability
| Component | SPOF? | Replicas | Health Check |
### Risk: [NONE/LOW/MED/HIGH] — [why]
Rules
- Audit what's present (progressive).
- Remote state FIRST.
- Container security before CI.
- Pin everything.
- Both .yaml and .yml.
Anti-Rationalization
| Rationalization | Red Flag | Verification |
|---|---|---|
| "IaC drift es cosmético" | terraform plan omitido, drift sin diff |
CHECKLIST remote state + terraform plan dry-run |
| "saltar checksum de módulos" | Módulos sin pin/checksum | Rule Pin everything + latest/unpinned checks |
| "RBAC broad por comodidad" | RBAC/NetworkPolicy amplio | CHECKLIST NetworkPolicy HIGH + least-privilege review |
Red Flags
- No rollback plan → STOP, re-read skill
- Second occurrence of same rationalization → force RED zone
Verification
- infra-audit checklist + dry-run
- cross-ref-check.ps1 → SKILL.md OK
K8s/IaC Playbook (limits + network)
Limits: resources.requests/limits cpu+mem on every container (no node OOM)
NetPol: default-deny ingress+egress - allowlist svc/ns (multi-tenant REQUIRED)
Volumes: subPath with .. = host traversal - reject | allowlist values
changelog: odd/tasks/mejora-security.md (2026-09-18, slice 6) changelog: odd/tasks/mejora-security.md (2026-09-18, slice 4)
Refs
container-security · security-scanner · best-practices · auth-hardening · llm-security
Anti-Patterns
Stop if no Terraform · Ignore .yml extensions · GitHub-only CI checks · Skip NetworkPolicy · Subjective risk scoring
See reference.md for extended details, examples, and detailed patterns.
04 同仓库更多 Skills
web-quality-audit
Comprehensive web audit: performance, a11y, SEO, responsive, animation, design tokens.
ui-engine
UI system — Grid/Flexbox/@layer/:has(), container queries, compositor-only animation, OKLCH tokens, component patterns
baseline-ui
Anti-slop UI — layout, typography, responsive, animation, tokens. Use for cleanup or polish.
skill-creator
Create new AI agent skills following Agent Skills spec -- auto-bootstrap unknown tasks, define structure, register in AGENTS.md
senior-engineer
Apply senior engineering competencies — system design, trade-off analysis, delegation, mentoring, and tech debt strategy
prompt-engineering
Design effective prompts using SPEARS framework — scope, principles, examples, assertions, refinements, with ReAct and multi-agent patterns