DevOps i chmura · Przegląd i audyt
ops-aws-audit
/ops-aws-audit
Prawdopodobnie audytuje konto AWS i wskazuje nieużywane zasoby, które generują zbędne koszty.
- Repozytorium
- claude-ops ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Prawdopodobnie audytuje konto AWS i wskazuje nieużywane zasoby, które generują zbędne koszty.
Wyzwalacze z opisu
audit AWS\unused AWS resources\
Argumenty
/ops-aws-audit [--quiet] [--schedule] [region,region]
Oryginalny opis (EN)
OPS on-demand: This skill should be used when the user asks to \"audit AWS\", \"unused AWS resources\", or…
Jak działa
- What this does
- Configuration (env, all optional)
- How to run
- Recurring schedule
- Cleanup is human-gated (never automatic)
Sekcje z nagłówków SKILL.md, w oryginale · 81 linii, 466 słów
Podgląd SKILL.md
---
name: ops-aws-audit
description: "OPS on-demand: This skill should be used when the user asks to \"audit AWS\", \"unused AWS resources\", or…"
argument-hint: '[--quiet] [--schedule] [region,region]'
allowed-tools:
- Bash
- Read
- Grep
- Glob
- AskUserQuestion
- WebSearch
- WebFetch
effort: medium
maxTurns: 30
---
## What this does
Runs `scripts/ops-aws-audit.sh` — a **read-only** sweep that never mutates AWS.
It inventories and analyses, then writes a severity-ranked report.
Checks include (2026 baseline):
- **IAM / credentials** — root access key + root MFA, access keys older than
`AUDIT_KEY_AGE_DAYS` (default 90), console users without MFA, and whether an
**IAM Access Analyzer (UNUSED_ACCESS)** is configured.
- **EC2 / EBS** — unattached volumes, `gp2`→`gp3` candidates, unencrypted
volumes, unassociated Elastic IPs, security groups open to `0.0.0.0/0` on
SSH/RDP.
- **RDS** — unencrypted or publicly-accessible instances, and **orphaned manual
snapshots** whose source DB no longer exists.
- **S3** — account-level Block Public Access, per-bucket default encryption and
lifecycle policies.
- **CloudWatch Logs** — log groups with no retention (billed forever).
- **Lambda** — deprecated/old runtimes.
- **Security posture** — GuardDuty, Security Hub standards, Cost Anomaly
Detection monitors, Compute Optimizer enrollment.
- **Cost** — per-service **Usage** spend (`RECORD_TYPE=Usage` UnblendedCost) over
the last `AUDIT_COST_DAYS` with the Δ vs the prior window. Credits mask net CE
totals to ≈ $0 — this audit never uses unfiltered Blended/Unblended nets as burn.
## Configuration (env, all optional)
| Var | Default | Meaning |
| -------------------- | --------------------------------- | --------------------------------------------------------------------------- |
| `AUDIT_PROFILE` | _(unset)_ | Named AWS profile. Unset ⇒ standard chain (env keys / instance role / SSO). |
| `AUDIT_REGIONS` | `$AWS_REGION` or `us-east-1` | Comma-separated regions. |
| `AUDIT_OUTPUT_DIR` | `~/.aws-audit-history/audit-<ts>` | Where reports land. |
| `AUDIT_KEY_AGE_DAYS` | `90` | Active access-key age threshold. |
| `AUDIT_COST_DAYS` | `7` | Cost comparison window. |
## How to run
```bash
# one region, current account
Load `ops-rules` before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If `AskUserQuestion` / `Workflow` are missing, follow Rule 10 in `ops-rules` (Hermes: numbered options / two-turn Telegram card; `delegate_task`).
bash "${CLAUDE_PLUGIN_ROOT}/scripts/ops-aws-audit.sh"
# multi-region + named profile
AUDIT_PROFILE=prod AUDIT_REGIONS=us-east-1,eu-central-1 \
bash "${CLAUDE_PLUGIN_ROOT}/scripts/ops-aws-audit.sh"
```
Outputs in `AUDIT_OUTPUT_DIR`: `report.md` (human), `findings.json`
(machine), `raw/` (per-service snapshots + `cost-delta.tsv`), `audit.log`.
After the run, read `findings.json` and summarise CRITICAL/HIGH first.
## Recurring schedule
`--schedule` installs a daily `systemd --user` timer via
`scripts/install-aws-audit-cron.sh` (Linux; this box uses systemd, not launchd):
```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-aws-audit-cron.sh"
systemctl --user list-timers ops-aws-audit.timer
```
Dispatch to the background fleet instead:
```bash
claude --bg --name aws-audit -- bash "${CLAUDE_PLUGIN_ROOT}/scripts/ops-aws-audit.sh" --quiet
```
## Cleanup is human-gated (never automatic)
This skill **only audits**. To act on a finding:
1. Show the user the specific finding(s) and the exact `aws` command(s).
2. Get explicit per-batch approval (`ok` / `yes` / `proceed`).
3. For any deletion/rotation, snapshot state first; log resource IDs after.
4. **Root access keys can only be removed from a root console login** — flag it,
do not attempt to "rotate root" from an IAM-user CLI session (that only
rotates the IAM user's own key, not the root key).
Wersje
W bazie nie ma innych skilli o nazwie ops-aws-audit.
Migawka bazy z 13.11.2026 · wersja paczki a76e4b4d0720 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100setup
Prawdopodobnie konfiguruje narzędzie OPS na żądanie, gdy użytkownik prosi o ustawienie OPS. - 100ops-status
Prawdopodobnie pokazuje ogólny status wtyczki i usług ops oraz sprawdza, czy wszystko działa. - 90cost-optimization
Analizuje koszty chmury AWS i FinOps: znajduje nieużywane zasoby, dobiera typy instancji i obniża rachunek. - 100cost-optimizer
Wskazuje problemy z kosztami chmury, nieużywane zasoby i możliwości optymalizacji rachunków, przy pytaniach o koszty, fakturę AWS i wydatki na chmurę. - 90deploy
Wdraża aplikacje w AWS: analizuje kod, dobiera usługi AWS, szacuje koszty i generuje infrastrukturę. - 90aws-billing-review
Przegląda koszty AWS tylko do odczytu i ranguje oszczędności według dolarów miesięcznie, np. bramki NAT lub nieużywane instancje.