bedrock

bedrock is a skill for Claude Code from itsmostafa/aws-agent-skills. It costs 36 tokens per session (2,621 once invoked), scanned A, original, MIT.

Guidance for using Amazon Bedrock, an AWS service that provides access to pre-trained AI models through one API. It covers text generation, embeddings, image generation, access, pricing modes, and retrieval-augmented generation.

In plain words
What is it for?
Use it when invoking Bedrock models, creating embeddings, generating images, building AI applications, or implementing RAG systems that combine models with retrieved information.
Why use it?
It brings the model choices, account requirements, inference options, and common application patterns into one reference.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aws-agent-skills plugin — 18 skills shipped together

Good fit Use it when invoking Bedrock models, creating embeddings, generating images, building AI applications, or implementing RAG systems that combine models with retrieved information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/itsmostafa/aws-agent-skills/bedrock
About the project

AWS Agent Skills is a collection of local instructions that help coding agents reason about AWS cloud services and engineering tasks. It supports agents working with areas such as identity, compute, storage, serverless, databases, networking, and security. The catalogue contains 18 service-focused skills and one plugin for using these capabilities with coding agents.

itsmostafa/aws-agent-skills · 1,150 stars · on GitHub

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.

Any agent
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Clone the repo
git clone --depth 1 https://github.com/itsmostafa/aws-agent-skills

Made for: Claude Code.

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

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 bedrock

README.md
[![agentmods](https://agentmods.dev/badge/skills/itsmostafa/aws-agent-skills/bedrock/github.svg)](https://agentmods.dev/skills/itsmostafa/aws-agent-skills/bedrock)
Your own site
<a href="https://agentmods.dev/skills/itsmostafa/aws-agent-skills/bedrock"><img src="https://agentmods.dev/badge/skills/itsmostafa/aws-agent-skills/bedrock/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bedrock

Your own site · 80×15
<a href="https://agentmods.dev/skills/itsmostafa/aws-agent-skills/bedrock"><img src="https://agentmods.dev/badge/skills/itsmostafa/aws-agent-skills/bedrock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,621 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00036 $0.02621
Opus 5 $0.00018 $0.01311
Sonnet 5 $0.00007 $0.00524
Haiku 4.5 $0.00004 $0.00262

Measured 9d ago against content hash 2633bb2b7a51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

bedrock 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 9d 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/bedrock/SKILL.md · 394 lines

How it starts

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

AWS Bedrock

Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.

Table of Contents

Core Concepts

Foundation Models

Pre-trained models available through Bedrock:

  • Claude (Anthropic): Text generation, analysis, coding
  • Titan (Amazon): Text, embeddings, image generation
  • Llama (Meta): Open-weight text generation
  • Mistral: Efficient text generation
  • Stable Diffusion (Stability AI): Image generation

Model Access

Models must be enabled in your account before use:

  • Request access in Bedrock console
  • Some models require acceptance of EULAs
  • Access is region-specific

Inference Types

Type Use Case Pricing
On-Demand Variable workloads Per token
Provisioned Throughput Consistent high-volume Hourly commitment
Batch Inference Async large-scale Discounted per token

Common Patterns

Invoke Model (Text Generation)

AWS CLI:

# Invoke Claude
aws bedrock-runtime invoke-model \
  --model-id anthropic.claude-3-sonnet-20240229-v1:0 \
  --content-type application/json \
  --accept application/json \
  --body '{
    "anthropic_version": "bedrock-2023-05-31",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Explain AWS Lambda in 3 sentences."}
    ]
  }' \
  response.json

cat response.json | jq -r '.content[0].text'

boto3:

import boto3
import json

bedrock = boto3.client('bedrock-runtime')

def invoke_claude(prompt, max_tokens=1024):
    response = bedrock.invoke_model(
        modelId='anthropic.claude-3-sonnet-20240229-v1:0',
        contentType='application/json',
        accept='application/json',
        body=json.dumps({
            'anthropic_version': 'bedrock-2023-05-31',
            'max_tokens': max_tokens,
            'messages': [
                {'role': 'user', 'content': prompt}
            ]
        })
    )

    result = json.loads(response['body'].read())
    return result['content'][0]['text']

# Usage
response = invoke_claude('What is Amazon S3?')
print(response)

Read the full file on GitHub · 394 lines

Files

What ships with it

1 file 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. 9d ago First seen · 394 lines · 36 tokens per session scan A 2633bb2b7a51

Subscribe to this mod's changes

bedrock is a skill published in the GitHub repository itsmostafa/aws-agent-skills (1,150 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 2,621 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

rag-observability-evals

Monitor and evaluate RAG systems with retrieval quality metrics, groundedness checks, hallucination detection, and continuous regression testing.

BagelHole/DevOps-Security-Agent-Skills · 31 tokens

vector-database-ops

Deploy, manage, and optimize vector databases for AI applications. Covers Qdrant, Weaviate, pgvector, and Pinecone — collection management, indexing strategies, backup, and performance tuning for production RAG and semantic search workloads.

BagelHole/DevOps-Security-Agent-Skills · 54 tokens

rag-infrastructure

Build and operate Retrieval-Augmented Generation (RAG) infrastructure with vector stores, embedding pipelines, and hybrid search. Covers ingestion, chunking strategies, reranking, and production deployment patterns.

BagelHole/DevOps-Security-Agent-Skills · 42 tokens

agentcore-harness-builder

Build production-ready AWS Bedrock AgentCore Harness agents end to end — declarative model + prompt, managed/BYO Memory, built-in Browser, Code Interpreter, Web Search and Knowledge Bases (RAG), Gateway/MCP tools + rate limits, inline functions, Skills (incl. AWS catalog), versioning + endpoints, advanced config…

timwukp/agent-skills-best-practice · 233 tokens

llm-app-security

Secure LLM-powered applications with input validation, output controls, tenant isolation, and abuse prevention.

BagelHole/DevOps-Security-Agent-Skills · 24 tokens

aws-bedrock-ai

WORKFLOW SKILL — Amazon Bedrock and AWS AI design: foundation model selection, knowledge bases (RAG), agents for bedrock, guardrails, provisioned throughput, batch inference, fine-tuning, KMS, VPC endpoints, regional GA, and per-provider licensing.

odere-pro/claude-aws-architect · 65 tokens