AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Pending
Does it follow best practices?
Impact
92%
1.05xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses the @aws-sdk/client-sts package to implement role assumption and identity retrieval operations. The focus is on proper usage of TypeScript types, command patterns, and client configuration patterns provided by the AWS SDK v3.",
"type": "weighted_checklist",
"checklist": [
{
"name": "STSClient instantiation",
"description": "Correctly imports and instantiates STSClient from @aws-sdk/client-sts with proper region configuration",
"max_score": 15
},
{
"name": "AssumeRoleCommand usage",
"description": "Correctly imports and uses AssumeRoleCommand with proper input parameters (RoleArn, RoleSessionName) and sends it using client.send()",
"max_score": 25
},
{
"name": "GetCallerIdentityCommand usage",
"description": "Correctly imports and uses GetCallerIdentityCommand and sends it using client.send()",
"max_score": 20
},
{
"name": "Type-safe response handling",
"description": "Properly uses TypeScript types for command responses (AssumeRoleCommandOutput, GetCallerIdentityCommandOutput) and extracts credentials/identity information with correct property access",
"max_score": 20
},
{
"name": "Credentials object mapping",
"description": "Correctly maps the Credentials object from AssumeRoleCommandOutput to the TemporaryCredentials interface, accessing AccessKeyId, SecretAccessKey, SessionToken, and optionally Expiration",
"max_score": 15
},
{
"name": "Error handling patterns",
"description": "Implements appropriate error handling for AWS SDK operations, catching and handling service exceptions",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10