generate
/generate
Tworzy testy polityk dla stacku CDK, na przykład kolejek z kolejką martwych listów, oraz szkielet testów dla handlera Lambda.
- 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
Tworzy testy polityk dla stacku CDK, na przykład kolejek z kolejką martwych listów, oraz szkielet testów dla handlera Lambda.
Argumenty
/generate cdk-assertions <stack> | handler <file> <kind>
Oryginalny opis (EN)
Generate tests: policy assertions for a synthesized CDK stack (queues have dead-letter queues, functions have timeouts, tables have recovery, no * on *), and a unit-test skeleton for a Lambda handler built on event fixtures. Use when the user asks for tests for a handler or for infrastructure checks.
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: generate
description: Generate tests: policy assertions for a synthesized CDK stack (queues have dead-letter queues, functions have timeouts, tables have recovery, no * on *), and a unit-test skeleton for a Lambda handler built on event fixtures. Use when the user asks for tests for a handler or for infrastructure checks.
argument-hint: "cdk-assertions <stack> | handler <file> <kind>"
disable-model-invocation: true
allowed-tools: Bash(node ${CLAUDE_PLUGIN_ROOT}/dist/cli.mjs generate *)
---
# Generate tests
Writes test files from deterministic generators. You then add the cases that need domain knowledge.
## Side effects
`local-write` with `--write`: creates files under `test/` and never overwrites. Without `--write` it only shows what it would create. Manual invocation because it writes files.
## Preconditions and inputs
- `cdk-assertions <stack>`: a synthesized `cdk.out` (run `/aws-infrastructure:synth`). The assertions read the template, so they check policy and keep holding while values change.
- `handler <file> <kind>`: the handler file and an event kind (`sqs`, `apigw-http-v2`, `apigw-rest-v1`, `sns`, `eventbridge`, `dynamodb-stream`, `s3`, `stepfunctions-task`).
## Read-only reconnaissance
Read the handler to see what it does with the event and with AWS before writing the extra cases.
## Steps
1. Run without `--write` and show the user what would be created.
2. After they agree, run with `--write`.
3. Replace each `TODO` with a real test: the business rule that decides success or failure, and the exact parameters of every AWS call (with a mock of the SDK client).
4. Run `/aws-testing:run --affected`.
## Agents and tools
The Bash tool, restricted to this plugin's `generate` command. No agent and no MCP server.
## Output
The files created and what each checks. Name what the generated tests do **not** cover: behavior of the deployed resources, permissions at run time, and anything in the TODO list.
## Failure, permission, cost, and safety handling
- Do not weaken or delete a generated assertion to make a test pass. If it fails, the template really breaks the policy: fix the infrastructure or discuss it with the user.
- Never put real credentials, real account ids, or real customer data in fixtures.
- Mocks are not AWS integration coverage: say so.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Alejo2075/claude-code-aws | 90 | MIT |
| jkaloger/lazyspec | 100 | MIT |
| LandonSchropp/agent-toolkit | 100 | MIT |
| magnifito/domain-name-engine | 100 | MIT |
| alirezarezvani/claude-skills | 100 | MIT |
| galyarderlabs/galyarder-framework | 100 | MIT |
| galyarderlabs/galyarder-framework | 100 | MIT |
| gabrielekarra/mcp-anything | 100 | Apache-2.0 |
| synaptiai/agent-capability-standard | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 8a932dddaadd (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
- 90review
Ocenia gotowość aplikacji CDK do produkcji: kolejki martwych listów, limity czasu, logi, alarmy, kopie zapasowe i śledzenie. - 90routes
Pokazuje, jak zdarzenia są kierowane w aplikacji CDK: magistrale, reguły, cele, harmonogramy i brak kolejek martwych listów. - 100trove-lambda
Podpowiada wzorce obsługi AWS Lambda z infrastrukturą CDK, w tym parsowanie SQS, SNS i logowanie Powertools. - 100sqs
Pomaga tworzyć kolejki AWS SQS, konfigurować kolejki martwych liter, timeouty widoczności i integrację z Lambda. - 100cdk-stack-generator
Prawdopodobnie generuje stosy AWS CDK jako część umiejętności związanych z AWS. - 100aws-serverless-patterns
Podaje wzorce i dobre praktyki dla AWS Lambda, API Gateway, DynamoDB, Step Functions i EventBridge przy budowie lub przeglądzie backendów serverless oraz infrastruktury CDK.