npx claudepluginhub an8079/take-skillsThis skill uses the workspace's default tool permissions.
> 写测试时需要一堆假数据?不想手写?这个skill帮你生成真实感的JSON测试数据。
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
写测试时需要一堆假数据?不想手写?这个skill帮你生成真实感的JSON测试数据。
无特殊工具,主要靠Python脚本或LLM生成
{
"id": 10001,
"username": "zhang_san_2024",
"email": "zhangsan@example.com",
"phone": "+86-138-0013-8000",
"age": 28,
"registered_at": "2024-01-15T08:30:00Z",
"is_vip": false,
"balance": 9999.99
}
{
"page": 1,
"page_size": 20,
"total": 100,
"total_pages": 5,
"data": []
}
{
"error": {
"code": "INVALID_PARAMETER",
"message": "参数page必须为正整数",
"field": "page",
"request_id": "req_abc123"
}
}
[
{ "id": 1, "name": "北京分公司", "status": "active" },
{ "id": 2, "name": "上海分公司", "status": "active" },
{ "id": 3, "name": "深圳分公司", "status": "inactive" }
]
{
"age": 0,
"balance": -0.01,
"name": "",
"email": "not-an-email",
"phone": "12345",
"quantity": 999999999
}
{
"description": "字符串超长(>1000字符)...",
"comment": "包含特殊字符:\n换行\t制表\"引号'单引号\\反斜杠"
}
{
"optional_field": null,
"description": ""
}
{
"items": [],
"max_items": "超过10000条记录的数组"
}
from faker import Faker
import json
fake = Faker('zh_CN')
# 生成单条用户记录
def generate_user():
return {
"id": fake.random_int(min=1, max=999999),
"name": fake.name(),
"address": fake.address(),
"company": fake.company(),
"job": fake.job(),
"phone": fake.phone_number(),
"email": fake.email(),
"birthdate": fake.date_of_birth(minimum_age=18, maximum_age=65).isoformat(),
"created_at": fake.iso8601()
}
print(json.dumps(generate_user(), ensure_ascii=False, indent=2))
| 字段 | 方法 | 示例 |
|---|---|---|
| 姓名 | fake.name() | 张三 |
| 地址 | fake.address() | 北京市朝阳区... |
| 公司 | fake.company() | 腾讯科技有限公司 |
| 邮箱 | fake.email() | user@example.com |
| 手机 | fake.phone_number() | 138-0013-8000 |
| 网址 | fake.url() | https://example.com |
| 日期 | fake.date() | 2024-03-15 |
| UUID | fake.uuid4() | 550e8400-... |
用户: 生成10条用户测试数据 → 直接输出JSON数组,或Python faker脚本
用户: 生成一个订单的完整JSON,包含所有字段 → 按业务逻辑生成完整订单结构(含商品、地址、支付信息)
用户: 帮我生成边界测试数据,要有空值、负数、超长字符串 → 构造覆盖所有异常情况的JSON