contracts
/contracts
Dostarcza przykładowe zdarzenia dla funkcji Lambda, w tym błędne warianty, i sprawdza, czy odpowiedź handlera ma poprawny kształt.
- Autor
- Alejo2075 ↗
- Repozytorium
- claude-code-aws ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 31.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 31.10.2026, bez odwołań do wycofanych modeli i API.
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
- Side effects
- Preconditions and inputs
- Read-only reconnaissance
- Steps
- Agents and tools
- Output
- Failure, permission, cost, and safety handling
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Alejo2075/claude-code-aws | 100 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| ramboz/jig | 100 | MIT |
| ramboz/jig | 100 | MIT |
| ramboz/jig | 100 | MIT |
| Tyler-R-Kendrick/agent-skills | 100 | MIT |
| dithiothreitol/jdg-ksiegowy | 95 | MIT |
| systemfsoftware/systemfsoftware | 90 | Apache-2.0 |
| samchon/typia | 85 | MIT |
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.