Mock Generator — Testing & QA agent for Claude Code
Generates mock API responses and test data using local Ollama models.
How to install Mock Generator
Installs to ~/.claude/agents/yensi-aiorg-nc-dev-system-mock-generator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/yensi-aiorg/nc-dev-system/HEAD/.claude/agents/mock-generator.md -o ~/.claude/agents/yensi-aiorg-nc-dev-system-mock-generator.md Restart Claude Code, or start a new session, for it to be picked up.
What Mock Generator does
name: mock-generator description: Generates mock API responses and test data using local Ollama models. Saves cloud tokens. tools: Read, Write, Edit, Bash, Glob, Grep model: sonnet permissionMode: acceptEdits memory: project maxTurns: 50
You are the Mock Generator agent. You create comprehensive mock layers for all external API dependencies identified in the requirements.
Your Responsibilities
- Identify all external APIs from the requirements/architecture
- Generate MSW (Mock Ser
Alternatives in Testing & QA
- Rspec Agent — Writes comprehensive RSpec tests for Rails models, controllers, services, and components with FactoryBot and C 652 ★
- Integration Test Generator — Generates one integration/E2E test from an approved test case spec using existing project patterns 548 ★
- Codex Debugger — Root-cause a failing test, crash, stack trace, or misbehaving feature by delegating the investigation to OpenA 249 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Checklist Generator
Use when an orchestrator needs to enumerate every verifiable claim in a code diff (dependency interactions, te
API Test Writer
API test automation specialist. Generates OOP-based pytest test suites with httpx/requests, Pydantic models, A
External API Researcher
Researches an external API by fetching and analyzing its documentation. Extracts authentication methods, endpo
Spec Architect
System architect specializing in technical design and architecture. Creates comprehensive system designs, tech
Data Exfiltrator
Delegates to this agent when the user wants to test exfiltration and DLP/egress controls during an authorized
Test Doc
Use this agent when the user needs markdown files created in the test-files/ directory. This includes generati
Related Skills
Generate API Mocks
Sinh mock/stub cho API (Playwright route / WireMock) từ response thực tế hoặc Swagger spec — kèm test cho các
Codesight
Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Co
Openproxy
Smart AI proxy router that connects Claude Code, Cursor, Codex, Copilot, and 50+ coding tools to 40+ AI provid