Agent skill

Opencode Detect Openai Compat

by OnlyTerp in OnlyTerp/prompt-cache-skills

OpenCode's caching detection misses OpenAI-compatible proxies routing to Anthropic/Bedrock.

Custom licenceAuto-check passedBackend & APIs

Install Opencode Detect Openai Compat

skills CLI
$ npx skills add OnlyTerp/prompt-cache-skills --skill opencode-detect-openai-compat -a claude-code

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

GitHub CLI
$ gh skill install OnlyTerp/prompt-cache-skills opencode-detect-openai-compat --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-detect-openai-compat .claude/skills/opencode-detect-openai-compat && 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-detect-openai-compat
GitHub stars
114
Token cost
~892 tokens
SKILL.md length
240 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Custom licence

At a glance

OpenCode's caching detection misses OpenAI-compatible proxies routing to Anthropic/Bedrock.

  • Works in 5 steps: Configure OpenCode with a LiteLLM… → Run two identical prompts. → Capture wire to the LiteLLM endpoint. → …
  • Tasks that involve Caching
  • 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 Detect Openai Compat is an agent skill from OnlyTerp/prompt-cache-skills. OpenCode's caching detection misses OpenAI-compatible proxies routing to Anthropic/Bedrock. Broaden the predicate.

Its SKILL.md is about 890 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 Backend & APIs, covering Caching. It works with OpenAI and Mistral AI. 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 Caching

Example prompts

  • “/opencode-detect-openai-compat”

Workflow steps

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

  1. Configure OpenCode with a LiteLLM endpoint pointing at a Bedrock
  2. Run two identical prompts.
  3. Capture wire to the LiteLLM endpoint.
  4. Before fix: request body contains prompt_cache_key, no
  5. After fix: request body has cache_control on system + last

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 and yaml).

    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 Detect Openai Compat loads about 892 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 240 words of instructions outside code blocks.

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

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 240 words (~892 tokens).

name
opencode-detect-openai-compat
target_harness
OpenCode
target_repo
sst/opencode
target_files
packages/opencode/src/provider/transform.ts
target_commit
dev branch @ a9ef5a0f
estimated_savings
0 → ~90% hit rate for users on LiteLLM/Bifrost/MiMo routing to Claude

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/opencode-detect-openai-compat of OnlyTerp/prompt-cache-skills.

Open the folder on GitHubat commit 5b58ae2

Compare with similar skills

Opencode Detect Openai Compat 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 Detect Openai Compat compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opencode Detect Openai Compat this skillOnlyTerp/prompt-cache-skills114—~892Automated safety check: PassCustom licence
Ax AIdosco/aithy107—~8.2kAutomated safety check: PassApache-2.0
LLM Gatewaysickn33/agentic-awesome-skills47k1 repos~2.1kAutomated safety check: PassMIT
Embeddings via 9Routerdecolua/9router30k—~604Automated safety check: PassMIT
Trpc PatternsFranciscoMoretti/chat-js1.2k—~288Automated safety check: PassApache-2.0
Caching Architecturemajiayu000/litellm-rs116—~2kAutomated safety check: PassMIT

Similar skills

  • Ax AI

    dosco/aithy

    This skill helps an LLM generate correct AI provider setup and configuration code using @ax-llm/ax.

    107 GitHub stars~8.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • LLM Gateway

    sickn33/agentic-awesome-skills

    Deploy an API gateway for LLM traffic with load balancing, rate limiting, key management, semantic caching, fallback routing, and cost tracking.

    47k GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check passed
  • Embeddings via 9Router

    decolua/9router

    Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.

    30k GitHub stars~604 tokensUpdated 6 days ago
    AI & LLM EngineeringAuto-check passed
  • Trpc Patterns

    FranciscoMoretti/chat-js

    Implement ChatJS tRPC routers, TanStack Query hooks, mutations, and cache invalidation.

    1.2k GitHub stars~288 tokensUpdated today
    Backend & APIsAuto-check passed
  • Caching Architecture

    majiayu000/litellm-rs

    LiteLLM-RS response caching architecture. An agent skill from majiayu000/litellm-rs.

    116 GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Open Notebook

    K-Dense-AI/scientific-agent-skills

    Organizes research with the self-hosted Open Notebook alternative to NotebookLM.

    48k GitHub starsUsed in 1 repo~2.8k tokens
    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 Detect Openai Compat

What does Opencode Detect Openai Compat do?

OpenCode's caching detection misses OpenAI-compatible proxies routing to Anthropic/Bedrock. Opencode Detect Openai Compat is an agent skill from OnlyTerp/prompt-cache-skills. OpenCode's caching detection misses OpenAI-compatible proxies routing to Anthropic/Bedrock.

When should I use Opencode Detect Openai Compat?

Opencode Detect Openai Compat fits situations like: tasks that involve Caching.

How do I install Opencode Detect Openai Compat in Claude Code?

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

How do I install Opencode Detect Openai Compat in Codex?

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

Can I use Opencode Detect Openai Compat 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-detect-openai-compat -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-detect-openai-compat, .gemini/skills/opencode-detect-openai-compat, .github/skills/opencode-detect-openai-compat and .opencode/skills/opencode-detect-openai-compat in your project.

What does Opencode Detect Openai Compat need to run?

SKILL.md names no scripts, command-line tools or credentials: Opencode Detect Openai Compat is instructions for the agent only.

Does Opencode Detect Openai Compat 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 Detect Openai Compat 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 Detect Openai Compat use?

Opencode Detect Openai Compat 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 Detect Openai Compat use?

About 892 tokens (SKILL.md is roughly 3.6k 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 Detect Openai Compat?

Skills that share tags, products or a category with Opencode Detect Openai Compat: Ax AI (dosco/aithy, 107 stars), LLM Gateway (sickn33/agentic-awesome-skills, 47k stars), Embeddings via 9Router (decolua/9router, 30k stars) and Trpc Patterns (FranciscoMoretti/chat-js, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opencode Detect Openai Compat?

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.