More screenshots
Works with the AI Agents you already use
Mock Demo Provider
Build scripted, deterministic mock LLM providers for zero-cost testing and reliable offline agent demos.
Free
Mock Demo Provider
Example session with this skill installed
Generate a scripted mock response for a project manager agent that needs to call the create_task tool based on a user request to start a website redesign.
- Read your context and instructions
- Compiled the mock demo provider
I have generated the scripted provider logic and the deterministic response for your project manager agent. This includes the required tool-use block and the mandatory mock labeling for the demo.
Mock Provider Script Logic
// Provider implementation for Project Manager Role
const MOCK_DELAY = process.env.MOCK_DELAY || 500;
async function complete(system, messages, tools) {
await new Promise(resolve => setTimeout(resolve, MOCK_DELAY));
const lastMessage = messages[messages.length - 1].content;
if (lastMessage.includes("website redesign")) {
return {
role: "assistant",
content: "[mock] Understood. I will initialize the website redesign project by creating the primary tracking task.",
tool_use: [
{
id: "call_pm_001",
name: "create_task",
input: {
title: "Website Redesign Phase 1: Discovery",
priority: "high",
assignee: "design-team"
}
}
],
stop_reason: "tool_use",
usage: {
prompt_tokens: 142,
completion_tokens: 65,
total_tokens: 207
}
};
}
}
Next steps
- Integrated the
completefunction into your agent's provider factory. - Set the
MOCK_DELAYenvironment variable to 800ms for a more natural visual pace during the demo. - Verify that your UI correctly renders the
[mock]prefix to distinguish it from live API responses.
Connects securely to your tools. The creator never sees your data.
About this skill
Testing and demoing an agentic app usually brings high API costs, rate-limit errors and unpredictable network latency. This skill provides the framework to build a scripted, deterministic mock LLM provider that mirrors real model interfaces for zero-cost offline development and reliable public presentations.
What it does
- Deterministic Scripting mimics real model responses based on system prompts and message history.
- Multi-step Tool Calling simulates complex workflows where agents must invoke specific functions like task creation.
- Role-Aware Output ensures responses match the specific persona of the agent being tested.
- Output Labeling automatically prefixes all generated text with a
[mock]tag for transparency. - Pacing Control implements a configurable
MOCK_DELAYto simulate model latency for watchable demos.
How it works
- Initialize the mock provider within your application logic to replace standard API calls.
- Define response scripts that map specific user inputs or agent roles to predetermined text and tool-use blocks.
- Configure timing by setting the
MOCK_DELAYenvironment variable to match your preferred demo tempo. - Assert behavior in your test suite by validating that the app handles the mock response shapes correctly.
Frameworks & tools
This skill is code-verified from working multi-agent applications and focuses on implementing a complete(system, messages, tools, model) method compatible with standard LLM provider patterns.
Why this beats prompting it yourself
Writing basic mocks usually fails to capture the complexity of tool-use cycles and role specificities required for agent orchestration. This skill provides a structured approach to building a "scripted brain" that handles headers, retries, and multi-step tool round trips without hitting a single network endpoint.
Use cases
- Public Demos on free hosting tiers where API latency and costs are prohibitive.
- Automated Testing to assert exact application behavior during tool round trips and retries.
- Live Rehearsals to preserve API quotas for final presentations.
- UI/UX Validation to ensure tickers and avatars animate correctly during model "processing" time.
Known limitations
The mock provider proves application logic, not actual model intelligence. It is deterministic by design and will not surface edge cases that the script writer did not explicitly anticipate.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 4 days ago
- Free with an Agensi account
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.