Przejdź do treści
Biblioteka skilli
DevOps i chmura · Przegląd i audyt

code-audit

/code-audit

Przegląda kod lub bazę kodu pod kątem gotowości DevOps, problemów bezpieczeństwa i brakujących dobrych praktyk.

Licencja
MIT
Ostatnia zmiana repozytorium
20.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 20.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

Przegląda kod lub bazę kodu pod kątem gotowości DevOps, problemów bezpieczeństwa i brakujących dobrych praktyk.

Oryginalny opis (EN)

Use when reviewing code or a codebase for DevOps readiness, security issues, and missing best practices

Jak działa

  1. Works In Both Modes
  2. Audit Categories
  3. Reporting Format
Sekcje z nagłówków SKILL.md, w oryginale · 82 linii, 618 słów
Podgląd SKILL.md
---
name: code-audit
description: Use when reviewing code or a codebase for DevOps readiness, security issues, and missing best practices
---

# Code Audit

Apply checks to the repository's actual role and deployed components. Mark categories not applicable with a reason: a content-only plugin does not need a Dockerfile, deployment pipeline, or IaC just to pass an audit. Separate absent applicable controls from deliberately absent application infrastructure.

## Works In Both Modes

- **Repo mode** — scan actual files in the working directory
- **Chat mode** — audit pasted code snippets or configs

## Audit Categories

Run through each category. Report findings as: **CRITICAL**, **WARNING**, or **INFO**.

---

### 1. Secrets & Security

- [ ] Hardcoded API keys, passwords, tokens, or credentials in code
- [ ] `.env` files committed to git (check `.gitignore`)
- [ ] Secrets passed as plain environment variables in CI configs
- [ ] Insecure base images (e.g., `FROM ubuntu:latest` without pinned version)
- [ ] Running containers as root when not needed
- [ ] World-readable file permissions on sensitive configs

### 2. Container Readiness — when a container image is shipped

- [ ] Dockerfile and `.dockerignore` match the actual build context
- [ ] Base image is pinned according to the project's update policy; production does not rely on `latest`
- [ ] Build tools and development dependencies are absent from the runtime image; use multi-stage builds when that is the simplest way to achieve this
- [ ] PID 1 forwards termination signals and reaps children; multiple worker processes are not automatically a defect
- [ ] Runtime user and filesystem permissions match workload requirements; avoid root when it is not required
- [ ] Health checks exist only where the runtime or orchestrator consumes them, and test behavior the process can recover from

### 3. Kubernetes / Orchestration — when workloads are deployed there

- [ ] Workload kind and scaling model match the role: serving Deployment, singleton, worker, StatefulSet, Job, or CronJob
- [ ] Resource requests are based on scheduling needs; memory limits and any CPU limits reflect measured workload/platform policy rather than a universal default
- [ ] Serving containers have readiness probes; liveness is limited to recoverable process failures and startup probes protect slow initialization
- [ ] Availability and replica findings apply only to long-running workloads that can run concurrently; do not require `replicas > 1` for Jobs, CronJobs, or intentional singletons
- [ ] Namespace, service account, RBAC, selectors, ports, and controller ownership are explicit where applicable
- [ ] Kubernetes Secrets are only base64-encoded API objects; verify encryption at rest, access controls, delivery, and external secret management requirements
- [ ] Images use immutable digests or registry-enforced immutable tags. `imagePullPolicy: Always` does not make a mutable tag immutable

### 4. CI/CD

- [ ] CI config present (`.github/workflows/`, `.gitlab-ci.yml`, `Jenkinsfile`)
- [ ] Tests run in CI before deploy
- [ ] Linting/formatting check in CI
- [ ] Secrets injected via CI secret store, not hardcoded
- [ ] Deployment gated on test pass

### 5. Infrastructure as Code

- [ ] IaC files present (Terraform, Ansible, Pulumi, etc.)
- [ ] State backend configured (not local state for production)
- [ ] Variables used instead of hardcoded values
- [ ] Least-privilege IAM/RBAC roles
- [ ] Resource tagging for cost tracking

### 6. Observability

- [ ] Application logs written to stdout/stderr (not to files inside container)
- [ ] Structured logging (JSON preferred)
- [ ] Health check endpoint exposed (`/health`, `/ready`)
- [ ] Metrics endpoint exposed if applicable (`/metrics`)

---

## Reporting Format

For each finding:

```
[SEVERITY] Category — Description
  File: path/to/file (or "pasted code")
  Why it matters: ...
  Fix: ...
```

End with a summary count: X critical, Y warnings, Z info items.

Wersje

RepozytoriumWynikLicencja
Ta strona · tspry/superpowers-devops100MIT
Nubaeon/empirica100MIT
EpicenterHQ/epicenter100MIT
omexit/claude-skills-pack100MIT
zhaoxuya520/reverse-skill100MIT
arcasilesgroup/ai-engineering90Apache-2.0

Migawka bazy z 28.10.2026 · wersja paczki 44317bbc5d4f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100code-review
    Przegląda kod pod kątem jakości, dobrych praktyk i potencjalnych problemów.
  • 100code-reviewing
    Przegląda kod pod kątem jakości, bezpieczeństwa i dobrych praktyk, gdy ktoś prosi o opinię o swoich zmianach.
  • 100code-review
    Przegląda zmiany w kodzie pod kątem błędów, problemów ze stylem, luk bezpieczeństwa i dobrych praktyk, na przykład przy ocenie pull requestów.
  • 100git-pr-reviewer
    Recenzuje pull requesty pod kątem jakości kodu, problemów bezpieczeństwa i dobrych praktyk oraz analizuje diffy przed scaleniem.
  • 84mlops
    Audytuje projekty ML pod kątem gotowości produkcyjnej: potoki, wdrożenia i infrastrukturę według dobrych praktyk MLOps.
  • 100code-reviewer
    Recenzuje pull requesty i zmiany w kodzie pod kątem jakości, bezpieczeństwa i dobrych praktyk.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.