Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

preflight

/preflight

Sprawdza repozytorium przed wdrożeniem lub upublicznieniem: sekrety w historii gita, polityki dostępu do baz, flagi debugowania, CVE i wycieki do kodu klienta.

Repozytorium
slopguard ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.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 10.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

Sprawdza repozytorium przed wdrożeniem lub upublicznieniem: sekrety w historii gita, polityki dostępu do baz, flagi debugowania, CVE i wycieki do kodu klienta.

Oryginalny opis (EN)

Last-check before deploying or making a repo public — secrets in git history, exposed database policies, debug flags, dependency CVEs, and client bundle leaks. Use when the user is about to deploy, ship, launch, go live, or publish a repository.

Jak działa

  1. 1. Secrets — including history
  2. 2. The data layer is the perimeter
  3. 3. What the browser can actually see
  4. 4. Dependencies
  5. 5. Runtime posture
  6. 6. Agent supply chain
  7. Verdict
Sekcje z nagłówków SKILL.md, w oryginale · 116 linii, 693 słów
Podgląd SKILL.md
---
name: preflight
description: Last-check before deploying or making a repo public — secrets in git history, exposed database policies, debug flags, dependency CVEs, and client bundle leaks. Use when the user is about to deploy, ship, launch, go live, or publish a repository.
---

# Preflight

The checks that only matter once, right before real users and real attackers can
reach the thing. Run this when the user says deploy, ship, launch, go live, or
"make the repo public."

Work through all six sections. Report findings as a go / no-go, and be willing to
say no-go.

## 1. Secrets — including history

A `.env` in `.gitignore` today does not help if it was committed last month.
History is the whole risk surface.

```bash
git log --all --full-history --diff-filter=A --name-only -- '*.env*' '*.pem' '*id_rsa*' '*credentials*'
git log -p --all -S 'sk_live' -S 'AKIA' -S 'BEGIN PRIVATE KEY' --oneline
```

Check the working tree too, then check what actually ships: `.env.local`,
`.env.production`, CI workflow files, Dockerfiles, and anything in the client
bundle (see §3).

**Anything found is burned.** Rotate it. Removing the file or rewriting history
does not un-publish a key that was pushed — assume it was scraped within minutes,
because public repos are scraped continuously.

## 2. The data layer is the perimeter

For Supabase, Firebase, and anything else the browser talks to directly, the
database *is* the API. Verify, do not assume:

- **RLS enabled on every table**, with policies that actually restrict rows —
  a policy of `USING (true)` is RLS theatre.
- **`service_role` / admin keys are not in any client-reachable file.** Grep the
  built bundle, not just the source.
- Storage buckets: are they public? Should they be?
- Database advisors / security linter output, if the platform has one.
- Default-deny rules for Firebase.

This is where vibe-coded apps actually get breached. Escape.tech scanned 5,600
production apps built on Lovable, Base44, Bolt and similar, and found 2,000+
vulnerabilities, 400+ exposed secrets, and 175 instances of exposed PII — in live
apps serving real users, not in test projects.

## 3. What the browser can actually see

Build the app, then read the output:

```bash
npm run build
grep -rEn "sk_live|AKIA|service_role|SUPABASE_SERVICE|BEGIN PRIVATE KEY|xox[baprs]-" dist/ build/ .next/static/ 2>/dev/null
```

Any env var not prefixed `NEXT_PUBLIC_` / `VITE_` / `PUBLIC_` should be absent.
If it is present, the prefix rule was bypassed somewhere.

Also check: source maps disabled in production, no `.git` directory served, no
`/admin` route reachable without auth, and no debug/test endpoints left in.

## 4. Dependencies

```bash
npm audit --omit=dev        # or: pnpm audit / yarn npm audit
pip-audit                   # or: safety check
```

Confirm the lockfile is committed. Then scan the dependency list for anything the
team does not recognize — packages added by an assistant that nobody vetted are
the slopsquatting exposure (SG-4). For any unfamiliar name: does it have a real
repository, real maintainers, and a publish history that predates the feature it
was added for?

## 5. Runtime posture

- Debug mode off. Stack traces not returned to clients (SG-13).
- Rate limits live on login, signup, password reset, and any endpoint that sends
  mail or calls a paid API (SG-12).
- Security headers: HSTS, `X-Content-Type-Options`, a real CSP, frame-ancestors.
- HTTPS enforced with redirect. TLS verification on everywhere (SG-18).
- CORS is an explicit allowlist, never `*` with credentials (SG-10).
- Backups exist and someone has restored one at least once.
- Logging captures auth events and excludes secrets and PII (SG-14).

## 6. Agent supply chain

Before making a repo public, or after pulling from a shared branch:

- Are `.mcp.json`, `.cursor/mcp.json`, `.claude/settings.json`, and hook configs
  exactly what you expect? A changed entry you did not change is the MCPoison
  pattern (SG-16).
- Do `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, or `.cursor/rules` contain hidden
  Unicode or instruction-shaped text? Slopguard's session hook checks this
  automatically — confirm it ran clean.
- Publishing these files publishes your agent's instructions. Read them once as
  an outsider would.

## Verdict

```
PREFLIGHT — <project>

BLOCKING (n)      must fix before deploy
SHOULD FIX (n)    fix this week
ACCEPTED (n)      known and deliberate

NOT CHECKED       infrastructure, IAM, runtime behavior under load, <anything else>

VERDICT: NO-GO — <the single most important reason>
```

Be specific about what you did not check. A preflight that implies full coverage
is more dangerous than no preflight, because it converts an unknown risk into a
false sense of safety.

Wersje

RepozytoriumWynikLicencja
Ta strona · manpreet171/slopguard100MIT
andreibesleaga/gabbe100CC-BY-4.0
pathmodeio/claude-plugin100MIT
aradmanamnaoon/agent-guardrails100MIT
mo-cmyk/mazarbul100Apache-2.0
thilak15/preflight100MIT
rune-kit/rune100MIT
nazmirket/skills90MIT
pandysp/claude-plugins90MIT

Migawka bazy z 13.11.2026 · wersja paczki 5d06ac988236 (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

  • 98publish-check
    Skanuje repozytorium git pod kątem wycieków przed upublicznieniem: linków do rozmów, ścieżek lokalnych, adresów e-mail i nazw wewnętrznych.
  • 100pre-publish-check
    Sprawdza repozytorium przed upublicznieniem: sekrety, historię, dane osobowe, licencje i pliki, które nie powinny trafić do sieci.
  • 100publishing-a-repo
    Sprawdza prywatne repozytorium przed upublicznieniem: sekrety w historii, prywatne nazwy, licencje, CI i szybki start z czystego klona.
  • 100secrets-scan
    Znajduje klucze API, tokeny i hasła w plikach i historii gita, odróżniając prawdziwe wycieki od szumu, przed publikacją.
  • 100security
    Przeprowadza audyt bezpieczeństwa: CVE w zależnościach, wykrywanie sekretów w historii gita, hardening pre-commit i pełny przegląd OWASP.
  • 100review-leaks
    Sprawdza przed publikacją, wdrożeniem lub paczkowaniem, czy w kodzie, buildzie i historii nie ma prywatnych plików, sekretów i transkryptów.

Uwagi i zgłoszenia

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