Agent skill

Opencode Bedrock Doc Blocks

by OnlyTerp in OnlyTerp/prompt-cache-skills

OpenCode places cachePoint on Bedrock messages containing DocumentBlocks, which produces a "nothing available to cache" error.

Custom licenceAuto-check passedAI & LLM Engineering

Install Opencode Bedrock Doc Blocks

skills CLI
$ npx skills add OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OnlyTerp/prompt-cache-skills opencode-bedrock-doc-blocks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OnlyTerp/prompt-cache-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/opencode-bedrock-doc-blocks .claude/skills/opencode-bedrock-doc-blocks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
opencode-bedrock-doc-blocks
GitHub stars
114
Token cost
~966 tokens
SKILL.md length
214 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Custom licence

At a glance

OpenCode places cachePoint on Bedrock messages containing DocumentBlocks, which produces a "nothing available to cache" error.

  • Works in 5 steps: Configure OpenCode with a Bedrock Claude… → Attach a PDF or text document to a chat… → Send a follow-up prompt referencing the… → …
  • Tasks that involve LLM cost and token optimization
  • SKILL.md covers Target, Symptom, Fix and Verify, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Opencode Bedrock Doc Blocks is an agent skill from OnlyTerp/prompt-cache-skills. OpenCode places cachePoint on Bedrock messages containing DocumentBlocks, which produces a "nothing available to cache" error.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering LLM cost and token optimization. The repository describes itself as: Drop-in prompt-caching fixes for the LLM agent harness you use. Point your AI coding agent at this repo and it ships the patches.

When your agent uses it

  • Tasks that involve LLM cost and token optimization

Example prompts

  • “nothing available to cache”
  • “/opencode-bedrock-doc-blocks”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Configure OpenCode with a Bedrock Claude model.
  2. Attach a PDF or text document to a chat message.
  3. Send a follow-up prompt referencing the document.
  4. Before fix: Bedrock returns 400 ValidationException.
  5. After fix: request succeeds; cachePoint lands on the most

What it can do on your machine

Read from SKILL.md and the folder at commit 5b58ae2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are diff).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Opencode Bedrock Doc Blocks loads about 966 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 214 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~966

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 214 words (~966 tokens).

name
opencode-bedrock-doc-blocks
target_harness
OpenCode
target_repo
sst/opencode
target_files
packages/opencode/src/provider/transform.ts
target_commit
dev branch @ a9ef5a0f
estimated_savings
Restores Bedrock caching for sessions that include document attachments

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/opencode-bedrock-doc-blocks of OnlyTerp/prompt-cache-skills.

Open the folder on GitHubat commit 5b58ae2

Compare with similar skills

Opencode Bedrock Doc Blocks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Opencode Bedrock Doc Blocks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opencode Bedrock Doc Blocks this skillOnlyTerp/prompt-cache-skills114—~966Automated safety check: PassCustom licence
Context Compressionguanyang/open-agent-hub9732 repos~4.6kAutomated safety check: PassMIT
Bounty Hunter1sadjlk/bounty-hunter-skill2821 repos~761Automated safety check: PassMIT
Skill Shortenerluongnv89/asm953—~3.8kAutomated safety check: NotesMIT
Fleet Auditoralexgreensh/token-optimizer2.5k—~1.7kAutomated safety check: PassCustom licence
Context Auditundefined-ui/second-brain-os999—~810Automated safety check: PassMIT

Similar skills

  • Context Compression

    guanyang/open-agent-hub

    This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

    973 GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Bounty Hunter

    1sadjlk/bounty-hunter-skill

    A professional AI bounty hunter persona named Atlas. An agent skill from 1sadjlk/bounty-hunter-skill.

    282 GitHub starsUsed in 1 repo~761 tokens
    AI & LLM EngineeringAuto-check passed
  • Skill Shortener

    luongnv89/asm

    Refactor a too-long SKILL.md by progressive disclosure: measure token cost, classify every section KEEP/CUT/MOVE, shorten the body into references/ and scripts/, verify nothing was lost.

    953 GitHub stars~3.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Fleet Auditor

    alexgreensh/token-optimizer

    Cross-system agent token/cost audit (Claude Code, Codex, OpenClaw, Hermes, OpenCode): idle burns, model misrouting, config bloat, with dollar savings.

    2.5k GitHub stars~1.7k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    999 GitHub stars~810 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Headroom

    momori777/Artemis

    SmartCrusher + CCR context compression — crunch large JSON arrays, tool outputs, and search results to save tokens.

    377 GitHub stars~562 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed

More from OnlyTerp/prompt-cache-skills

All 13 skills in this repo
  • Aider One-Hour Cache TTL

    OnlyTerp/prompt-cache-skills

    Patches Aider to request Anthropic's one-hour prompt cache lifetime, so long pauses between turns no longer expire the cache or need paid keepalive pings.

    114 GitHub stars~990 tokensUpdated 1 mo ago
    Auto-check passed
  • Aider Prompt Caching Default

    OnlyTerp/prompt-cache-skills

    Patch recipe that turns on Aider's --cache-prompts by default for models that support caching, with a verification procedure against the wire request.

    114 GitHub stars~638 tokensUpdated 1 mo ago
    Auto-check passed
  • Cline Prompt Cache Ladder Check

    OnlyTerp/prompt-cache-skills

    Verifies how Cline marks Anthropic prompt-cache breakpoints on the wire, then adds a tools breakpoint and tunes the cache TTL in its AI SDK code.

    114 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed
  • Cline OpenAI Prompt Cache Key Fix

    OnlyTerp/prompt-cache-skills

    Patch guide for adding a stable per-task prompt_cache_key to Cline's OpenAI native provider so cached token counts stop reading as zero.

    114 GitHub stars~868 tokensUpdated 1 mo ago
    Auto-check passed
  • Cline Pin Timestamp

    OnlyTerp/prompt-cache-skills

    Cline's system prompt includes a timestamp that may be recomputed per request, invalidating the system-prompt cache.

    114 GitHub stars~751 tokensUpdated 1 mo ago
    Auto-check passed
  • Continue Enable Defaults

    OnlyTerp/prompt-cache-skills

    Continue's prompt caching is opt-in via config and off by default.

    114 GitHub stars~977 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Opencode Bedrock Doc Blocks

What does Opencode Bedrock Doc Blocks do?

OpenCode places cachePoint on Bedrock messages containing DocumentBlocks, which produces a "nothing available to cache" error. Opencode Bedrock Doc Blocks is an agent skill from OnlyTerp/prompt-cache-skills. OpenCode places cachePoint on Bedrock messages containing DocumentBlocks, which produces a "nothing available to cache" error.

When should I use Opencode Bedrock Doc Blocks?

Opencode Bedrock Doc Blocks fits situations like: tasks that involve LLM cost and token optimization.

How do I install Opencode Bedrock Doc Blocks in Claude Code?

Run `npx skills add OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks -a claude-code`. Or copy the skill folder (skills/opencode-bedrock-doc-blocks in OnlyTerp/prompt-cache-skills) into .claude/skills/opencode-bedrock-doc-blocks in your project. Claude Code loads it when a task matches its description.

How do I install Opencode Bedrock Doc Blocks in Codex?

Run `npx skills add OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks -a codex`. Or copy the skill folder (skills/opencode-bedrock-doc-blocks in OnlyTerp/prompt-cache-skills) into .agents/skills/opencode-bedrock-doc-blocks in your project. Codex loads it when a task matches its description.

Can I use Opencode Bedrock Doc Blocks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OnlyTerp/prompt-cache-skills --skill opencode-bedrock-doc-blocks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencode-bedrock-doc-blocks, .gemini/skills/opencode-bedrock-doc-blocks, .github/skills/opencode-bedrock-doc-blocks and .opencode/skills/opencode-bedrock-doc-blocks in your project.

What does Opencode Bedrock Doc Blocks need to run?

SKILL.md names no scripts, command-line tools or credentials: Opencode Bedrock Doc Blocks is instructions for the agent only.

Does Opencode Bedrock Doc Blocks access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Opencode Bedrock Doc Blocks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Opencode Bedrock Doc Blocks use?

Opencode Bedrock Doc Blocks has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Opencode Bedrock Doc Blocks use?

About 966 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Opencode Bedrock Doc Blocks?

Skills that share tags, products or a category with Opencode Bedrock Doc Blocks: Context Compression (guanyang/open-agent-hub, 973 stars), Bounty Hunter (1sadjlk/bounty-hunter-skill, 282 stars), Skill Shortener (luongnv89/asm, 953 stars) and Fleet Auditor (alexgreensh/token-optimizer, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opencode Bedrock Doc Blocks?

OnlyTerp (a GitHub user) maintains it in OnlyTerp/prompt-cache-skills, which has 114 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on August 29, 2026.

Source: OnlyTerp/prompt-cache-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.