How to ship vendor recipe prompts so coding agents integrate your API the way you would
Confirmed by source: Official Mux engineering post publishing a production prompt/recipe library, with graded agent evals, measured time/credit improvements, real-account verification runs, and CI plans to keep recipes aligned with the API. (checked 2026-10-19)
The problem
Developers ask coding agents to add a vendor feature from public docs alone; the agent often picks the wrong product surface, burns tokens on irrelevant pages, or ships an integration that works today and costs them later because it never saw the path the vendor would choose.
Tools needed
- Coding agents (Claude Code, Codex)
- Vendor prompt / recipe library (one-line fetchable prompts and installable skills)
- Sandboxed agent evals with a graded rubric
- llms.txt and optional MCP or CLI for the product API
- CI checks that prompt example requests match the API spec
Step-by-step recipe
- For each common use case, write a recipe the agent can read: which APIs to call, in what order, with the defaults you would pick on a sales call, plus gotchas you usually explain in support tickets.
- Open every recipe with a checklist the agent must copy into its plan, mark off as it goes, and return in the final report with a reason for anything it skipped (agents otherwise silently decide unanswered questions).
- Have the agent ask clarifying product questions before writing code (billing source, preview needs, compliance concerns) and skip questions it can already answer by reading the user's repo.
- Publish recipes as a one-line prompt that fetches current instructions and as an installable skill for repeat use; keep llms.txt and MCP/CLI as tools the recipe can call, not as a substitute for the recipe.
- Eval recipes in a sandbox with a rubric of known traps, then re-run winning recipes against a real account so a grader is not judging code that never executed.
- Wire CI so example requests in prompts stay aligned with the API spec, and run a periodic review that flags stale or deprecated guidance in the recipes themselves.
Copyable prompt
You are integrating [VENDOR] into this repo for use case: [USE CASE]. 1. Fetch and follow the current recipe at [RECIPE URL] (or use the installed [SKILL NAME] skill). Do not improvise an alternate architecture from general docs unless the recipe says to. 2. Copy the recipe checklist into your plan. Ask me any unanswered product questions before writing code. Skip questions you can answer from the codebase. 3. Prefer the recipe's default path (e.g. [CHEAP SAFE DEFAULT]) over heavier options (e.g. [EXPENSIVE SPECIAL CASE]) unless my answers require the heavier path. 4. Use [MCP OR CLI] when available; otherwise follow the recipe's HTTP examples. 5. In your final report, return the checklist with each item done/skipped and why. Note any place you departed from the recipe.
Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.
What the builder reported
Mux published a prompt library and measured it on a podcast-clipping task. With public docs only, Claude Code and Codex scored 5/5 in a median 22.7 minutes and 269 credits; with the recipe they scored 6/6 in 18.9 minutes and 165 credits (about 39% cheaper). Linking the recipe instead of the homepage made Mux the whole-workflow pick in 15/15 advice runs. They also verified recipes against a real Mux account (Next.js paywall enforcing tokens; NASA interview turned into captioned downloadable clips).
These are the source author's own claims. AgentRecipes has not run this recipe itself.
Watch out for
- Linking only the vendor homepage still leaves agents guessing which product surface to use; Mux saw agents pick Mux for streaming and still hand-roll the rest until they linked the recipe.
- Small sandbox samples are not enough; Mux re-ran recipes against a real account after graded dry runs.
- Agents skip instructions: force an explicit checklist and call out items the agent previously ignored (for example building clips before asking which ones to keep).
- Recipes go stale like docs; without CI against the API spec they will recommend deprecated parameters.
- Example apps age with framework majors; recipes describe decisions and leave implementation to the agent in the user's stack.
Source
Original write-up: Mux (2026-10-13) ↗
Found via Mux Blog: “Let your agent cook by giving it the recipe”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-10-19.
More engineering & security recipes
New agent recipes in your inbox
A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.