json-generator

json-generator is a skill for Claude Code from an8079/take-skills. It costs 35 tokens per session (1,057 once invoked), scanned A, original, MIT.

A generator for realistic JSON test data, including normal examples and unusual values. JSON is a text format commonly used to represent data exchanged by applications.

In plain words
What is it for?
Creating users, lists, pagination responses, error responses, fixtures, mock data, and boundary-case samples for application tests.
Why use it?
It saves time spent hand-writing sample data and helps test empty fields, invalid values, limits, negative numbers, and oversized strings.

Skill for Claude Code

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

Part of the claude-dev-assistant plugin — 21 skills, 39 commands shipped together

Good fit Creating users, lists, pagination responses, error responses, fixtures, mock data, and boundary-case samples for application tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/an8079/take-skills/json-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add an8079/take-skills --skill json-generator
Clone the repo
git clone --depth 1 https://github.com/an8079/take-skills

Made for: Claude Code.

Or install claude-dev-assistant, the plugin that ships this one along with the rest of its 21 skills, 39 commands.

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 json-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/an8079/take-skills/json-generator.svg)](https://agentmods.dev/skills/an8079/take-skills/json-generator)
Your own site
<a href="https://agentmods.dev/skills/an8079/take-skills/json-generator"><img src="https://agentmods.dev/badge/skills/an8079/take-skills/json-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00035 $0.01057
Opus 5 $0.00017 $0.00528
Sonnet 5 $0.00007 $0.00211
Haiku 4.5 $0.00003 $0.00106

Measured 8d ago against content hash 0c7ecec2159e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

json-generator scanned grade A with 0 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/json-generator/SKILL.md · 158 lines

How it starts

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

json-generator — 测试数据生成器

写测试时需要一堆假数据?不想手写?这个skill帮你生成真实感的JSON测试数据。

触发条件

  • 用户需要生成测试数据、mock数据、fixture
  • 需要大量JSON样本进行测试
  • 需要边界条件测试数据(空值、负数、超长字符串等)

工具列表

无特殊工具,主要靠Python脚本或LLM生成

常见模式

基础用户数据

{
  "id": 10001,
  "username": "zhang_san_2024",
  "email": "[email protected]",
  "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条记录的数组"
}

Faker模式(Python示例)

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))

常用Faker字段

字段 方法 示例
姓名 fake.name() 张三
地址 fake.address() 北京市朝阳区...
公司 fake.company() 腾讯科技有限公司
邮箱 fake.email() [email protected]
手机 fake.phone_number() 138-0013-8000
网址 fake.url() https://example.com
日期 fake.date() 2024-03-15
UUID fake.uuid4() 550e8400-...

Read the full file on GitHub · 158 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. 8d ago First seen · 158 lines · 35 tokens per session scan A 0c7ecec2159e

Subscribe to this mod's changes

json-generator is a skill published in the GitHub repository an8079/take-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,057 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.