More screenshots

    Works with the AI Agents you already use

    Mock Demo Provider

    by Mohamed Mostafa Metawea

    1

    Build scripted, deterministic mock LLM providers for zero-cost testing and reliable offline agent demos.

    Free

    Security scanned
    Mock Demo Provider

    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

    1. Integrated the complete function into your agent's provider factory.
    2. Set the MOCK_DELAY environment variable to 800ms for a more natural visual pace during the demo.
    3. 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_DELAY to simulate model latency for watchable demos.

    How it works

    1. Initialize the mock provider within your application logic to replace standard API calls.
    2. Define response scripts that map specific user inputs or agent roles to predetermined text and tool-use blocks.
    3. Configure timing by setting the MOCK_DELAY environment variable to match your preferred demo tempo.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Frequently Asked Questions

    This skill provides a framework to build a scripted LLM provider that mimics real model interfaces. It allows you to run agentic applications with zero API costs and no network latency by using deterministic responses instead of live model calls.

    You can define specific response scripts based on user inputs or agent roles. It supports multi step tool calling, role aware personas, and a configurable pacing delay to make your offline presentations look like live model interactions.

    This skill is code verified from working multi agent applications. It focuses on implementing a specific completion method that is compatible with standard LLM provider patterns for headers, retries, and tool round trips.

    Every output is automatically prefixed with a [mock] tag. This ensures transparency so that users, stakeholders, and developers do not mistake scripted text for live model intelligence.

    The provider is deterministic by design and only follows the scripts you create. It proves your application logic and UI flow work correctly, but it cannot simulate unexpected edge cases or actual model intelligence that you have not explicitly scripted.

    Simply ask your agent to initialize the mock provider within your application logic. You can then instruct the agent to define response scripts for specific roles and set the preferred delay for your demo tempo.

    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.

    Free