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

generate

/generate

Tworzy testy polityk dla stacku CDK, na przykład kolejek z kolejką martwych listów, oraz szkielet testów dla handlera Lambda.

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

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

  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 · 39 linii, 283 słów
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

RepozytoriumWynikLicencja
Ta strona · Alejo2075/claude-code-aws90MIT
jkaloger/lazyspec100MIT
LandonSchropp/agent-toolkit100MIT
magnifito/domain-name-engine100MIT
alirezarezvani/claude-skills100MIT
galyarderlabs/galyarder-framework100MIT
galyarderlabs/galyarder-framework100MIT
gabrielekarra/mcp-anything100Apache-2.0
synaptiai/agent-capability-standard100Apache-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.

Uwagi i zgłoszenia

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