# How to test agent skills without hitting real APIs

DevFeed: [How to test agent skills without hitting real APIs](<https://devfeed.tech/articles/how-to-test-agent-skills-without-hitting-real-apis-23831.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/blog/how-to-test-agent-skills-without-hitting-real-apis/>)

Author: Waldek Mastykarz

Published: 2026-07-17T09:27:50Z

Content type: article

Language: en

Sources: [Developer Blogs](<https://devfeed.tech/sources/developer-blogs.md>)

Topics: [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [mock api](<https://devfeed.tech/topics/mock-api.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-experience](<https://devfeed.tech/tags/agent-experience.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [ax](<https://devfeed.tech/tags/ax.md>), [costs](<https://devfeed.tech/tags/costs.md>), [data](<https://devfeed.tech/tags/data.md>), [developers](<https://devfeed.tech/tags/developers.md>), [effect](<https://devfeed.tech/tags/effect.md>), [evals](<https://devfeed.tech/tags/evals.md>), [for-developers](<https://devfeed.tech/tags/for-developers.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [microsoft-for-developers](<https://devfeed.tech/tags/microsoft-for-developers.md>), [mock](<https://devfeed.tech/tags/mock.md>), [money](<https://devfeed.tech/tags/money.md>), [production](<https://devfeed.tech/tags/production.md>), [run](<https://devfeed.tech/tags/run.md>), [skills](<https://devfeed.tech/tags/skills.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

Evaluating API-calling agent skills against real services can incur call costs, mutate live data, and produce inconsistent results when outside changes affect shared state. The excerpt contrasts manually maintained mock servers, which need realistic endpoint behavior and can drift from the API, with Dev Proxy, configured through JSON to intercept the skill's unchanged real URLs and return seeded local data with relevant HTTP semantics. Its data resets between runs, avoiding production writes and API costs. The excerpt presents proxy emulation as a lighter option, while noting the choice depends on the situation; it does not cover the full setup.

## Source excerpt

Your agent skill calls an API. The moment you start evaluating it, every run either costs money or mutates production data. Learn how to mock APIs transparently so you can run evals without changing your skill or hitting real endpoints. The post How to test agent skills without hitting real APIs appeared first on Microsoft for Developers.