Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Budowanie i kod

secure-api-design

/secure-api-design

Projektuje bezpieczne API REST, GraphQL i RPC: uwierzytelnianie, autoryzację i zasady dostępu do zasobów.

Repozytorium
agent-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.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 13.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

Projektuje bezpieczne API REST, GraphQL i RPC: uwierzytelnianie, autoryzację i zasady dostępu do zasobów.

Oryginalny opis (EN)

Design secure REST, GraphQL, and RPC APIs. Use when adding endpoints or changing API contracts, authentication/authorization rules, or resource access policies.

Jak działa

  1. Requirements
  2. Workflow
  3. Rules
  4. Output
Sekcje z nagłówków SKILL.md, w oryginale · 75 linii, 343 słów
Podgląd SKILL.md
---
name: secure-api-design
description: >
  Design secure REST, GraphQL, and RPC APIs.
  Use when adding endpoints or changing API contracts,
  authentication/authorization rules, or resource access policies.
---

# Secure API Design

Design APIs with security enforced by default.

## Requirements

1. **Authentication**
   - Require authentication unless explicitly public.
   - Use established authentication standards.
   - Define accepted credentials; for self-contained tokens,
     specify trusted issuers/keys, algorithms, audience/purpose,
     and validity checks.
   - When applicable, define password storage, recovery and
     brute-force controls, and session renewal/expiry/revocation.

2. **Authorization**
   - Deny access by default.
   - Enforce endpoint, object, and field-level permissions.
   - Prevent IDOR/BOLA and cross-tenant access.
   - Never trust client-provided roles or ownership; validate
     tenant selection against authenticated membership.

3. **Input & Output**
   - Define strict request and response schemas.
   - Validate types, sizes, formats, and allowed fields.
   - Reject unexpected or unauthorized fields.
   - Never expose secrets or internal error details.

4. **Abuse Prevention**
   - Define rate-limit values, enforcement locations, and applicable
     per-user, per-tenant, and global scopes.
   - Bound timeouts, payloads, and upstream response sizes.
   - Restrict pagination and expensive operations.
   - Protect sensitive workflows against replay,
     enumeration, and race conditions.
   - Define mutation invariants and idempotency scope/lifetime.
   - For GraphQL, bound query cost/depth and batch size.

5. **Transport & Access**
   - Require HTTPS.
   - Restrict CORS to trusted origins when applicable.
   - Protect against CSRF when browsers automatically attach
     credentials, including cookies or browser-managed Basic auth.
   - Never expose internal-only endpoints publicly.

## Workflow

1. Identify actors, resources, and trust boundaries.
2. Define authentication and an actor/action/resource permission
   matrix with allowed and denied cases.
3. Design strict request and response contracts.
4. Identify abuse cases and required protections.
5. Document security assumptions and tradeoffs.
6. Ensure security requirements are testable.

## Rules

- Prefer secure defaults over optional protections.
- Apply relevant OWASP API Security Top 10:2023 risks.
- Never rely on client-side authorization.
- Do not introduce unnecessary attack surfaces.
- Flag missing security decisions before implementation.
- Preserve existing functionality unless changes
  are required to address a security risk.

## Output

For each API design, provide:
- Endpoint and authentication requirements.
- Authorization rules and protected resources.
- Input/output constraints.
- Relevant threats and mitigations.
- Security tests required for implementation.

Wersje

RepozytoriumWynikLicencja
Ta strona · susorov/agent-skills100MIT
charlieviettq/awesome-agent-skill100MIT

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

  • 100api-audit
    Sprawdza API REST, GraphQL i RPC pod kątem OWASP API Security Top 10 2023: uwierzytelnianie, autoryzację, limity i ekspozycję danych.
  • 90api-security
    Projektuje i wymusza zasady bezpieczeństwa API REST i GraphQL, np. audyt zabezpieczeń i uwierzytelnianie JWT.
  • 100design-api
    Projektuje API REST i GraphQL: nazewnictwo, wersjonowanie, kształt błędów i uwierzytelnianie.
  • 100designing-apis
    Projektuje API REST i GraphQL, w tym endpointy, obsługę błędów, wersjonowanie i dokumentację, oraz ocenia kontrakty API.
  • 100create-api-design
    Projektuje API REST lub GraphQL na podstawie specyfikacji funkcji: endpointy, kontrakt API i zasoby.
  • 100api-security
    Opisuje bezpieczeństwo API REST, GraphQL i gRPC według OWASP API Security Top 10:2023, przy projektowaniu, wdrażaniu i audycie.

Uwagi i zgłoszenia

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