mock-engine

mock-engine is a skill for Claude Code from addxai/enterprise-harness-engineering. It costs 63 tokens per session (1,970 once invoked), scanned C, original, Apache-2.0.

A local development environment that runs mock versions of services such as MySQL, Redis, Kafka, MQTT, LocalStack, and WireMock. Mocks are test replacements for real external services.

In plain words
What is it for?
Use it to start and stop mock services, load test data, create business-flow test scenarios, and troubleshoot integration-test setup.
Why use it?
It lets developers test applications without connecting to production systems or manually preparing each dependency.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cp -r /path/to/mock-engine/core/templates/mock/ ./mock/.

Part of the enterprise-harness-engineering plugin — 25 skills shipped together

Good fit Use it to start and stop mock services, load test data, create…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/addxai/enterprise-harness-engineering
agentmods
npx agentmods add skills/addxai/enterprise-harness-engineering/mock-engine

Made for: Claude Code.

Or install enterprise-harness-engineering, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mock-engine

README.md
[![agentmods](https://agentmods.dev/badge/skills/addxai/enterprise-harness-engineering/mock-engine.svg)](https://agentmods.dev/skills/addxai/enterprise-harness-engineering/mock-engine)
Your own site
<a href="https://agentmods.dev/skills/addxai/enterprise-harness-engineering/mock-engine"><img src="https://agentmods.dev/badge/skills/addxai/enterprise-harness-engineering/mock-engine.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01970
Opus 5 $0.00032 $0.00985
Sonnet 5 $0.00013 $0.00394
Haiku 4.5 $0.00006 $0.00197

Measured 7d ago against content hash a68897561e73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

mock-engine scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl http://localhost:19999/__admin/mappings | python3 -m json.tool

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:19999/__admin/mappings | python3 -m json.tool
skills/mock-engine/SKILL.md · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mock Engine — Local Development Mock Environment Management

Provides unified mock infrastructure (MySQL, Redis, Kafka, MQTT, LocalStack, WireMock) via Docker Compose, supporting local development and integration testing.

Description

Applicable scenarios:

  • Start/stop mock environment: make mock-up one-command launch of all dependency services
  • Load test data: Base fixtures auto-load; scenario fixtures load on demand
  • Create test scenarios: Prepare preset data (SQL + Redis + WireMock stubs) for specific business flows
  • Troubleshoot startup issues: Container status checks, port conflicts, data loading failures
  • Integration testing: Manage mock infrastructure in automated tests via Java SDK or Go SDK

Prerequisites:

  • Docker Compose v2.20+ (verify with docker compose version)
  • A mock/ directory exists at the project root (containing docker-compose.yml and Makefile)
  • If there is no mock/ directory, initialize from the mock-engine template:
    cp -r /path/to/mock-engine/core/templates/mock/ ./mock/
    # Modify project configuration in mock/Makefile (database name, password, etc.)
    

Rules

Operational Flow

First-time initialization:

cd mock/
make mock-init    # Download compose fragments

Start Mock environment:

make mock-up      # Start all services + wait for health checks + load data
make mock-status  # Verify all services are running normally

Start the application (backend-service example):

# The appName environment variable must be set
appName=your-app mvn spring-boot:run \
  -pl your-app \
  -Dspring-boot.run.profiles=dev-local,mock

Load a test scenario:

make mock-scenario SCENARIO=user-registration
# View available scenarios:
ls fixtures/scenarios/

Stop/reset:

make mock-down    # Stop services (preserve data)
make mock-clean   # Stop + delete data volumes
make mock-reset   # Full reset (clean + init + up)

Default Port Mapping

Read the full file on GitHub · 268 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 268 lines · 63 tokens per session scan C a68897561e73

Subscribe to this mod's changes

mock-engine is a skill published in the GitHub repository addxai/enterprise-harness-engineering (44 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 1,970 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tdd

Use this skill to practice test-driven development — writing tests before implementation, using tests to drive design, and validating implementation against pre-written tests. Activates when implementing new functionality, refactoring code, or fixing bugs where regression coverage is needed.

karthikrshet/aiskills · 53 tokens

skill-release-gate

Evaluate an Agent Skill bundle for structural integrity, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity, and target-host portability before release.

rohitg00/ai-engineering-from-scratch · 36 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

peon-ping-log

Log exercise reps for the Peon Trainer. Use when user says they did pushups, squats, or wants to log reps. Examples - "/peon-ping-log 25 pushups", "/peon-ping-log 30 squats", "log 50 pushups".

PeonPing/peon-ping · 64 tokens

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens