Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

guard-inference

/guard-inference

Znajduje i dokumentuje zabezpieczenia bramek w kodzie, takie jak uprawnienia, role i flagi, i sprawdza, czy są faktycznie egzekwowane.

Repozytorium
paqad-ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.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

Znajduje i dokumentuje zabezpieczenia bramek w kodzie, takie jak uprawnienia, role i flagi, i sprawdza, czy są faktycznie egzekwowane.

Oryginalny opis (EN)

Finds and evidences the guards that gate surfaces and transitions (permissions, roles, feature flags, auth and data states) and how each is satisfied, never inventing protection the code does not enforce. Use when modeling is done, beside transition-tracing.

Jak działa

  1. What It Does
  2. Use This When
  3. Inputs
  4. Procedure
  5. Output Contract
  6. Escalate / Stop Conditions
  7. Resources
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 322 słów
Podgląd SKILL.md
---
name: guard-inference
description: 'Finds and evidences the guards that gate surfaces and transitions (permissions, roles, feature flags, auth and data states) and how each is satisfied, never inventing protection the code does not enforce. Use when modeling is done, beside transition-tracing.'
metadata:
  model_tier: reasoning
  cacheable: 'false'
  output_format: json
  paqad-meta: skill.meta.yaml
---

## What It Does

Adds the access-control layer: the guards that decide who may reach a surface or take a
transition, and the `satisfy_via` that says how a guard is met. Runs in parallel with
`transition-tracing` over the same modeled surfaces. A guard is recorded only where the code
enforces it: an inferred guard the code does not check is a false sense of security.

## Use This When

After modeling, alongside `transition-tracing`. It only adds guards and their
satisfaction; edges are the other skill's job.

## Inputs

- The modeled surfaces and traced transitions.
- The enforcement points in the code: middleware, decorators, route metadata, policy checks,
  feature-flag reads.
- Read `references/guard-evidence.md` before recording a guard.

## Procedure

The graph's guard-coverage analysis is the engine's; your job is to propose evidenced guards.

1. For each surface, area, and transition, find the enforcement that gates it: a middleware, a
   decorator, a policy, a flag read.
2. Record the guard's kind (`permission | role | feature-flag | auth-state | data-state |
capability | environment`), what it requires, and its `satisfy_via`, each with a `file:line`.
3. Re-run `paqad-ai sitemap run` so its guard-coverage analysis flags backstage surfaces left
   guard-less.

## Output Contract

- A JSON object `{ guards: [{ id, kind, requires, satisfy_via, evidence }], applied: [{ surface_or_edge, guard }] }`.
- Every guard carries a resolving `file:line` that shows the enforcement.
- Every `satisfy_via` names how the guard is met (an actor, a role, a flag variant).

## Escalate / Stop Conditions

- Do not record a guard the code does not enforce. An intended-but-unchecked guard is a finding
  about missing enforcement, not a guard on the map.
- Flag a backstage surface with no guard rather than assuming an inherited one that is not
  evidenced.
- Never expose a secret or credential value in guard evidence: cite the `file:line` and the
  enforcement, not the secret's bytes.

## Resources

- `references/guard-evidence.md`
- `agents/openai.yaml`
Pliki w paczce (4)
  • SKILL.md 2 KB
  • skill.meta.yaml 1 KB
  • agents/openai.yaml 1 KB
  • references/guard-evidence.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie guard-inference.

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

  • 90transition-tracing
    Znajduje i dokumentuje przejścia między ekranami: dokąd prowadzi nawigacja, co ją wyzwala i plik z linią jako dowód, bez zgadywania krawędzi.
  • 90nacl-sa-roles
    Definiuje role systemowe i uprawnienia w grafie SA: importuje role BA, uprawnienia CRUD, zakres danych i aktorów.
  • 85guard
    Zarządza narzędziem guard do uprawnień plików: inicjalizuje je, dodaje lub usuwa kolekcje, czyści stan i pokazuje, co jest chronione.

Uwagi i zgłoszenia

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