aws-unit-testing

aws-unit-testing is a skill for Claude Code, Codex from whitewhiteqq/aws-test-plugin. It costs 108 tokens per session (4,800 once invoked), scanned A, original, Apache-2.0.

A skill for generating Python unit tests for business logic that uses AWS services. Unit tests check small pieces of code in isolation, while mocks stand in for services such as S3 or DynamoDB.

In plain words
What is it for?
Use it to test AWS Python handlers and business logic with pytest. It identifies control-flow paths, mocks external calls, and tests input handling, rules, formatting, responses, and error handling.
Why use it?
It keeps tests focused on the application's decisions and transformations instead of requiring real AWS services, while covering branches, boundaries, errors, and edge cases.

Skill for Claude CodeCodex

Part of the aws-test-plugin plugin — 6 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/whitewhiteqq/aws-test-plugin/aws-unit-testing
Any agent
npx skills add whitewhiteqq/aws-test-plugin --skill aws-unit-testing
Clone the repo
git clone --depth 1 https://github.com/whitewhiteqq/aws-test-plugin

Made for: Claude Code, Codex.

Or install aws-test-plugin, the plugin that ships this one along with the rest of its 6 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aws-unit-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/whitewhiteqq/aws-test-plugin/aws-unit-testing.svg)](https://agentmods.dev/skills/whitewhiteqq/aws-test-plugin/aws-unit-testing)
Your own site
<a href="https://agentmods.dev/skills/whitewhiteqq/aws-test-plugin/aws-unit-testing"><img src="https://agentmods.dev/badge/skills/whitewhiteqq/aws-test-plugin/aws-unit-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,800 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00108 $0.04800
Opus 5 $0.00054 $0.02400
Sonnet 5 $0.00022 $0.00960
Haiku 4.5 $0.00011 $0.00480

Measured 4d ago against content hash 92d4015a8568, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aws-unit-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aws-unit-testing/SKILL.md · 517 lines

How it starts

The opening of the file, as written. The whole thing — 517 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AWS Unit Testing Skill

Generate unit tests that cover every branch, boundary, and edge case in business logic by reading the actual source code.

Core Principle

Unit tests isolate business logic from AWS infrastructure. Mock all external dependencies (boto3, HTTP calls, database). Test the logic only.

How to Generate Unit Tests

Phase 1: Identify Business Logic

Read the handler source and separate concerns:

Layer What It Does Unit Test?
Input parsing / validation Extracts and validates fields Yes
Business rules Decisions, calculations, transformations Yes
Data formatting / mapping Converts between formats Yes
AWS service calls Reads/writes to S3, DynamoDB, etc. No (integration test)
HTTP response building Constructs status code + body Yes
Error handling logic Decides which error to return Yes

Phase 2: Map Every Branch

Read the code and create a branch map. Every control flow path needs a test:

Function: process_order(event)
├── if not event.get("body") → 400 missing body          [test_1]
├── try: json.loads(body)
│   └── except JSONDecodeError → 400 invalid JSON         [test_2]
├── if "order_id" not in data → 400 missing order_id      [test_3]
├── if "amount" not in data → 400 missing amount           [test_4]
├── if amount <= 0 → 400 invalid amount                    [test_5]
├── if amount > 10000 → 400 exceeds limit                  [test_6]
├── if currency not in SUPPORTED → 400 unsupported         [test_7]
├── try: save_to_db(order)
│   ├── except ConditionalCheckFailed → 409 duplicate      [test_8]
│   └── except ClientError → 500 internal error            [test_9]
├── if notify_customer: send_notification()                [test_10]
└── return 200 success                                     [test_11]

Phase 3: Identify Boundaries

For every numeric, string, or collection parameter, test at the boundaries:

Parameter Type Boundary Values to Test
Integer/Float 0, 1, -1, max-1, max, max+1, MIN_INT, MAX_INT
String "", single char, max length, max+1, unicode, whitespace-only
List/Array [], single element, max size, max+1
Optional/None None, missing key, empty string vs None
Date/Time epoch, now, far future, leap day, DST boundary
Enum/Choice each valid value, invalid value, case mismatch
Boolean True, False, None, truthy/falsy values

Read the full file on GitHub · 517 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 517 lines · 108 tokens per session scan A 92d4015a8568

Subscribe to this mod's changes

aws-unit-testing is a skill published in the GitHub repository whitewhiteqq/aws-test-plugin (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 108 tokens to every session and 4,800 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

run-helix-tests

Submit and monitor .NET MAUI unit tests on Helix infrastructure. Supports running XAML, Resizetizer, Core, Essentials, and other unit test projects on distributed Helix queues.

dotnet/maui · 45 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

nunit-testing

Use when writing or modifying tests in NUnit's own test projects, or when making a behavioral change to production code that needs test coverage. Covers test structure, attribute choice, helper visibility, platform guards, and which test projects are real.

nunit/nunit · 51 tokens

detect-flaky-tests

Detects flaky Go tests by analyzing GitHub Actions workflow runs across the last 7 days and all PRs — covering both the run-tests job (unit/integration) and the e2e-test job (gVisor and microVM lanes). For each newly-detected flaky test or infra issue, opens a GitHub issue with full evidence and a draft fix PR. Does…

agent-substrate/substrate · 102 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens