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.
npx skills add an8079/take-skills --skill json-generatorgit clone --depth 1 https://github.com/an8079/take-skillsWrote 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.
[](https://agentmods.dev/skills/an8079/take-skills/json-generator)<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>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.
| Model | Per session | Once 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 |
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.
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-... |
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.
- 8d ago First seen · 158 lines · 35 tokens per session scan A 0c7ecec2159e
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.
Other skills, from other repositories
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
nw-fp-clojure
Clojure language-specific patterns, data-first modeling, REPL-driven development, and spec.
mobiai-ios-testing
Use when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.
testing-llm
LLM and AI testing patterns — mock responses, evaluation with DeepEval/RAGAS, structured output validation, and agentic test patterns (generator, healer, planner). Use when testing AI features, validating LLM outputs, or building evaluation pipelines.