Install any skill in seconds. Free to start, no credit card required.
Get Started Free →rohitg00/aws-cloud-patterns
AWS cloud patterns for Lambda, ECS, S3, DynamoDB, and Infrastructure as Code with CDK/Terraform
Passed 22 of 23 test cases with the skill, and 18 of 23 without it.
and 5 more in the full report
4 fixed18 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
When modeling items in a DynamoDB single-table design interface in TypeScript (such as OrderItem records), what property names should be assigned for Global Secondary Index 1 partition key and sort key?
| Checked | Without skill | With skill |
|---|---|---|
| Uses lowercase gsi1pk for the GSI 1 partition key property name. | Missed | Passed |
| Uses lowercase gsi1sk for the GSI 1 sort key property name. | Missed | Passed |
The instructions your model reads when the skill loads.
import { APIGatewayProxyHandlerV2 } from "aws-lambda";
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, GetCommand } from "@aws-sdk/lib-dynamodb";
const client = DynamoDBDocumentClient.from(new DynamoDBClient({}));
export const handler: APIGatewayProxyHandlerV2 = async (event) => {
const id = event.pathParameters?.id;
if (!id) {
return { statusCode: 400, body: JSON.stringify({ error: "Missing id" }) };
}
const result = await client.send(
new GetCommand({ TableName: process.env.TABLE_NAME!, Key: { pk: id } })
);
if (!result.Item) {
return { statusCode: 404, body: JSON.stringify({ error: "Not found" }) };
}
return {
statusCode: 200,
headers: { "Content-Type": "application/json" },
body: JSON.stringify(result.Item),
};
};
Initialize SDK clients outside the handler to reuse connections across invocations.
interface OrderItem {
pk: string; // USER#<userId>
test cases passed, vs 18 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.