Przejdź do treści
Biblioteka skilli
DevOps i chmura · Testowanie

contracts

/contracts

Dostarcza przykładowe zdarzenia dla funkcji Lambda, w tym błędne warianty, i sprawdza, czy odpowiedź handlera ma poprawny kształt.

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

Dostarcza przykładowe zdarzenia dla funkcji Lambda, w tym błędne warianty, i sprawdza, czy odpowiedź handlera ma poprawny kształt.

Argumenty

/contracts list | show <kind> [--variant name] | write <kind> --dir <dir> | check <kind> '<response>
Oryginalny opis (EN)

Event fixtures for Lambda sources (API Gateway HTTP and REST, SQS, SNS, EventBridge, DynamoDB Streams, S3, Step Functions) with malformed and edge-case variants, and a check for a handler's response shape. Use when the user needs a sample event, wants to test error handling, or asks whether a handler's response is valid.

Jak działa

  1. Side effects
  2. Preconditions and inputs
  3. Read-only reconnaissance
  4. Steps
  5. Agents and tools
  6. Output
  7. Failure, permission, cost, and safety handling
Sekcje z nagłówków SKILL.md, w oryginale · 36 linii, 217 słów
Podgląd SKILL.md
---
name: contracts
description: Event fixtures for Lambda sources (API Gateway HTTP and REST, SQS, SNS, EventBridge, DynamoDB Streams, S3, Step Functions) with malformed and edge-case variants, and a check for a handler's response shape. Use when the user needs a sample event, wants to test error handling, or asks whether a handler's response is valid.
argument-hint: "list | show <kind> [--variant name] | write <kind> --dir <dir> | check <kind> '<response>'"
allowed-tools: Bash(node ${CLAUDE_PLUGIN_ROOT}/dist/cli.mjs contracts *)
---

# Event contracts

Prints or writes realistic events with placeholder identifiers, and validates the response a handler returns for SQS partial batches and API Gateway proxy integrations.

## Side effects

`read` for `list`, `show`, and `check`. `write` creates fixture files only with `--write`, and never overwrites.

## Preconditions and inputs

- An event kind from `contracts list`. Each kind links the AWS documentation its shape follows.

## Read-only reconnaissance

Use `contracts list` to see the variants rather than inventing malformed events by hand.

## Steps

1. `contracts show <kind> [--variant <name>]` for a sample, for example `sqs --variant batch-one-bad`.
2. `contracts check sqs '<response JSON>' '<event JSON>'` to verify a partial-batch response names only records of the batch.
3. Use the variants to test: malformed body, empty records, duplicate delivery, one bad record in a batch, redelivery, missing authorizer claims, base64 bodies.

## Agents and tools

The Bash tool, restricted to this plugin's `contracts` command. No agent and no MCP server.

## Output

The event or the check result, with the reason for each problem.

## Failure, permission, cost, and safety handling

- The fixtures are samples of the documented shape, not captures from your account. Real events may carry more fields: handlers should tolerate them.
- Do not paste real events containing customer data into fixtures.

Wersje

RepozytoriumWynikLicencja
Ta strona · Alejo2075/claude-code-aws100MIT
ericrisco/rsc-harness100MIT
ramboz/jig100MIT
ramboz/jig100MIT
ramboz/jig100MIT
Tyler-R-Kendrick/agent-skills100MIT
dithiothreitol/jdg-ksiegowy95MIT
systemfsoftware/systemfsoftware90Apache-2.0
samchon/typia85MIT

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

  • 100aws-serverless-eda
    Wspiera budowę architektur serverless i zdarzeniowych według Well-Architected: Lambda w TypeScript i Pythonie, API Gateway, DynamoDB, Step Functions, EventBridge, SQS i SNS.
  • 90decide
    Porównuje kompromisy w wyborach serverless, takich jak HTTP API czy REST, SQS, SNS i EventBridge, z pytaniami i źródłami AWS.
  • 90aws-serverless
    Pisze produkcyjne funkcje Lambda, przepływy zdarzeń przez API Gateway, SQS, SNS i DynamoDB oraz wdrożenia SAM i CDK.
  • 100trove-lambda
    Podpowiada wzorce obsługi AWS Lambda z infrastrukturą CDK, w tym parsowanie SQS, SNS i logowanie Powertools.
  • 85aws-lambda
    Projektuje, buduje, wdraża i naprawia aplikacje bezserwerowe na AWS Lambda, z API Gateway, EventBridge i Step Functions.
  • 90aws-lambda
    Projektuje, buduje, wdraża, testuje i debuguje aplikacje serverless na AWS Lambda z API Gateway, EventBridge i Step Functions.

Uwagi i zgłoszenia

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