Mock 数据生成
CommunityGenerate realistic mock data for APIs.
Authorbianliuzhu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation of mock data files for API endpoints, ensuring your frontend development can proceed even before backend APIs are fully implemented.
Core Features & Use Cases
- Automated Mock Generation: Creates
.jsonmock files based on API definitions and associated TypeScript types. - Realistic Data: Employs MockJS syntax to generate data that closely resembles real-world values for various data types and structures.
- Use Case: When developing a new feature that relies on an API endpoint like
/api/forward/op/trade/order/queryPage, this Skill can generate aorder-query-page.jsonfile with realistic sample data for testing the UI.
Quick Start
Use the api-mock skill to generate mock data for all API definitions found in the {{API_DIR}} directory.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Mock 数据生成 Download link: https://github.com/bianliuzhu/an-cli/archive/main.zip#mock Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.