Instruments Anthropic API calls to log token usage, latency, and cost per request using the Anthropic TypeScript SDK. Wraps the anthropic.messages.create method to capture usage.input_tokens, usage.output_tokens, and timing from the API response. Writes structured logs to CloudWatch Logs via the AWS SDK v3 CloudWatchLogsClient.
no risky patterns detected
Type: Agent skill (SKILL.md) · Category: Writing & Content · Source: https://github.com/agentskillexchange/skills/tree/HEAD/skills/anthropic-sdk-toke
| Capabilities (fewer powerful permissions = higher) | 50/50 |
| Maintenance | 29/35 |
| Documentation | 15/15 |
Always review files before installing. How scores work. Request a correction