amazon-bedrock

Builds generative AI applications on Amazon Bedrock covering model invocation, RAG, agents, and guardrails.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill amazon-bedrock-sakicodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: amazon-bedrock
Source: https://github.com/sakicodes/BuildFestHackathon26/tree/main/.agents/skills/amazon-bedrock
Command: npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill amazon-bedrock-sakicodes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, httpx, and includes references (resource) components.

What problem does it solve? Building on Amazon Bedrock involves five separate API endpoints, provider-specific request formats, and frequent model changes that cause errors like ThrottlingException, AccessDeniedException, and malformed requests. This Skill provides authoritative, up-to-date procedures and reference files so agents invoke models, build RAG pipelines, and deploy agents correctly the first time. ## Core Features & Use Cases - Model Invocation: Guides Converse API vs InvokeModel selection, enforces explicit maxTokens to prevent silent quota reservation, and provides Python/TypeScript SDK patterns. - Knowledge Bases (RAG): Step-by-step KB creation, chunking strategy selection, and retrieval modes (retrieve-and-generate vs retrieve vs manual). - Agents & AgentCore: Procedures for creating agents with action groups, deploying to AgentCore Runtime, exposing APIs via Gateway, and setting up AgentCore Payments (x402 microtransactions with Coinbase CDP or Stripe Privy). - Operations & Troubleshooting: Prompt caching setup and debugging, quota health audits, cost tracking by team/model, Claude generation migration (4.5 to 4.6 to 4.7), and a decision table for common errors. - Use Case: A developer hits repeated ThrottlingException errors; the Skill diagnoses unset maxTokens reserving excess quota, checks service quotas, and recommends cross-region inference profiles. ## Quick Start Ask the agent to help you invoke a Claude model on Bedrock, set up a Knowledge Base for your documents, or diagnose a specific Bedrock error you are seeing.

Frequently Asked Questions about amazon-bedrock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke a Claude model on Amazon Bedrock?

Use the Converse API via the bedrock-runtime endpoint rather than InvokeModel, and always set maxTokens explicitly. Verify the model ID with aws bedrock list-foundation-models and prefer cross-region inference profile IDs like us.anthropic.claude-sonnet-4-6 for higher availability.

Converse API vs InvokeModel on Bedrock: which should I use?

Use the Converse API for a unified request/response format across all models. Use InvokeModel only when you need provider-specific features unavailable in Converse, since it requires different body formats per provider (Anthropic, Titan, Llama, Nova).

Why am I getting ThrottlingException on Amazon Bedrock?

The most common cause is leaving maxTokens unset, which defaults to the model's maximum and silently reserves far more quota than needed. Set maxTokens explicitly, use adaptive retry mode, and consider cross-region inference profiles to distribute load.

How do I set up a Knowledge Base for RAG on Bedrock?

Follow the seven-step KB setup procedure covering data source configuration, chunking strategy, embeddings model, and vector store. For PDFs with tables, use semantic chunking with FM-based advanced parsing, then run start-ingestion-job before querying.

Does Amazon Bedrock support agent payments with x402?

Yes, AgentCore Payments lets agents pay for x402-protected APIs and content via microtransactions using Coinbase CDP or Stripe Privy wallets. Setup creates a Payment Manager, Connector, Instrument, and Session, then wires an x402_fetch tool into your agent framework.

What breaks when migrating from Claude 4.5 to 4.6 on Bedrock?

Prefill was removed in Claude 4.6 and causes a hard 400 error if still used. The migration reference covers all breaking changes including thinking config differences, context window gaps, and cache threshold changes between Claude 4.5, 4.6, and 4.7.