From aws-dev-toolkit
Deep-dive into Amazon Bedrock — model selection, agents, knowledge bases, guardrails, prompt engineering, and cost modeling. This skill should be used when the user asks to "build with Bedrock", "select a Bedrock model", "design a Bedrock agent", "set up a knowledge base", "configure guardrails", "estimate Bedrock costs", "optimize Bedrock pricing", "use prompt caching", "compare Bedrock models", or mentions Amazon Bedrock, foundation models, RAG on AWS, or generative AI on AWS.
npx claudepluginhub aws-samples/sample-claude-code-plugins-for-startups --plugin aws-dev-toolkitThis skill uses the workspace's default tool permissions.
Specialist guidance for Amazon Bedrock. Covers model selection, agent design, knowledge bases, guardrails, prompt engineering, batch inference, and cost optimization.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
Specialist guidance for Amazon Bedrock. Covers model selection, agent design, knowledge bases, guardrails, prompt engineering, batch inference, and cost optimization.
aws-docs MCP tools to verify current Bedrock model availability, pricing, and features (these change frequently)references/cost-modeling.md templateThe model choice is the single biggest cost and quality decision. Get this right first.
| Need | Recommended Model | Why |
|---|---|---|
| Classification, routing, extraction | Nova Micro or Claude Haiku | Fast, cheap, accurate for structured tasks |
| General Q&A, summarization | Nova Lite or Nova Pro | Strong quality-to-cost ratio |
| Multimodal (image + text) | Nova Lite | Cost-effective vision without Sonnet pricing |
| Complex reasoning, nuanced generation | Claude Sonnet | Best balance of capability and cost |
| Hardest problems, highest quality bar | Claude Opus | Reserve for tasks where Sonnet falls short |
| Embeddings | Titan Embed v2 | Cheaper than Cohere, solid quality for most use cases |
| Code generation | Claude Sonnet | Strong code quality without Opus pricing |
Note: Model availability and pricing change frequently. Verify current options via aws-docs MCP tools before making final recommendations.
InvokeModel for simple tasks. Not everything needs an agent.Router + Specialists: A lightweight classifier (Nova Micro) routes to specialized agents. Each specialist has a focused tool set and optimized prompt. This beats one mega-agent with 20 tools.
Knowledge Base + Guardrails: For customer-facing Q&A — KB for retrieval, guardrails for safety, single model call for generation. No agent orchestration needed; use RetrieveAndGenerate API directly.
Agent with Session Memory: For multi-turn conversations — use AgentCore sessions with memory. Let the agent maintain context across turns instead of stuffing history into the prompt each time.
references/cost-modeling.md for minimum costs.Resource creation belongs in IaC. Use the iac-scaffold skill for templates.
# List available models in the region
aws bedrock list-foundation-models \
--query 'modelSummaries[].{id:modelId,name:modelName,provider:providerName}' --output table
# Quick model test (Converse API — preferred over invoke-model)
aws bedrock-runtime converse \
--model-id amazon.nova-micro-v1:0 \
--messages '[{"role":"user","content":[{"text":"Hello"}]}]'
# List agents
aws bedrock-agent list-agents --output table
# List knowledge bases
aws bedrock-agent list-knowledge-bases --output table
# List guardrails
aws bedrock list-guardrails --output table
# Check model invocation logging status
aws bedrock get-model-invocation-logging-configuration
For detailed cost modeling and estimation, consult:
references/cost-modeling.md — Pricing model breakdown, cost modeling template, optimization strategies, monitoring setup, and cost estimation output formatcost-check — Broader AWS cost analysis beyond Bedrockiac-scaffold — IaC templates for Bedrock resource creationsecurity-review — Security audit for Bedrock configurations and guardrail policiesWhen advising on a Bedrock solution:
| Component | Choice | Rationale |
|---|---|---|
| Primary model | Claude Sonnet | Complex reasoning required, cost-effective for the quality bar |
| Routing model | Nova Micro | Cheap classifier for request triage |
| Architecture | Router + Specialist agents | 3 focused agents vs 1 mega-agent |
| Knowledge Base | OpenSearch Serverless, hybrid search | Best retrieval quality, managed infrastructure |
| Guardrails | Content filters + PII redaction | Customer-facing surface |
| Estimated monthly cost | $X,XXX | See references/cost-modeling.md for breakdown |
Include cost profile and watch-out-for items specific to the use case.