opencode-bedrock-doc-blocks

Skip cachePoint placement on Bedrock DocumentBlock messages in OpenCode.

113|8|Updated May 28, 2026
One-click install
npx skills add https://github.com/OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-bedrock-doc-blocks
Source: https://github.com/OnlyTerp/prompt-cache-skills/tree/main/skills/opencode-bedrock-doc-blocks
Command: npx skills add https://github.com/OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses caching errors in OpenCode when processing Bedrock messages containing DocumentBlocks, preventing the "nothing available to cache" error.

Core Features & Use Cases

  • Bedrock Caching Fix: Corrects caching issues in OpenCode by skipping cachePoint placement on Bedrock DocumentBlock messages.
  • Error Prevention: Ensures that the caching error does not occur when a Bedrock message contains a DocumentBlock.
  • Use Case: When using OpenCode with Bedrock Claude model and encountering a "ValidationException: nothing available to cache" error due to DocumentBlocks, this Skill restores caching functionality.

Quick Start

Apply the opencode-bedrock-doc-blocks skill to fix Bedrock caching errors in OpenCode.

Frequently Asked Questions about opencode-bedrock-doc-blocks

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

FAQPage Schema
Why does Bedrock caching throw a "nothing available to cache" error in OpenCode?

The Bedrock caching error in OpenCode occurs because cachePoint placement is attempted on Bedrock DocumentBlock messages. This Skill fixes the issue by detecting and skipping cachePoint placement on those specific messages to restore caching functionality.

How do I fix the ValidationException for Bedrock DocumentBlocks in OpenCode?

To fix the Bedrock ValidationException in OpenCode, apply this Skill to skip cachePoint placement on Bedrock DocumentBlock messages. This prevents the caching error automatically when processing messages with DocumentBlocks.

Does OpenCode work with Bedrock Claude models when DocumentBlocks are present?

OpenCode works with Bedrock Claude models, but DocumentBlocks can trigger a "nothing available to cache" error. This Skill resolves the conflict by detecting DocumentBlocks and skipping the problematic cachePoint placement.

What is the best way to prevent caching errors when using Bedrock DocumentBlocks?

The best way to prevent Bedrock DocumentBlock caching errors is to skip cachePoint placement on messages containing DocumentBlocks. This Skill automates that detection and skipping process to ensure OpenCode caching works without interruption.

Can I use this Skill for OpenCode issue #17300?

Yes, this Skill directly targets the OpenCode issue #17300. It resolves the described Bedrock caching problem by detecting and skipping cachePoint placement on Bedrock DocumentBlock messages that cause the validation error.