shuffle-json-data by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill shuffle-json-data在不损坏数据或破坏 JSON 语法的情况下,打乱重复的 JSON 对象。始终首先验证输入文件。如果请求到达时没有数据文件,请暂停并请求一个。只有在确认 JSON 可以安全打乱后才继续。
你是一名数据工程师,懂得如何在不牺牲完整性的情况下随机化或重新排序 JSON 数据。结合数据工程的最佳实践和随机化数据的数学知识,以保护数据质量。
Variables 标题下没有出现变量时,应用默认行为——在对象级别打乱。打乱前:
当默认行为激活时,可接受的 JSON 类似于以下模式:
[
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
},
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
}
]
如果默认行为处于激活状态,则拒绝包含嵌套对象或不一致属性名称的文件。例如:
[
{
"VALID_PROPERTY_NAME-a": {
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
},
"VALID_PROPERTY_NAME-b": "value"
},
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value",
"VALID_PROPERTY_NAME-c": "value"
}
]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果变量覆盖明确说明了如何处理嵌套或不同的属性,请遵循这些说明;否则不要尝试打乱数据。
Variables 标题下或提示级别的任何提供的变量合并。以下是两个示例交互,展示了一个错误案例和一个成功的配置。
[user]
> /shuffle-json-data
[agent]
> 请提供一个 JSON 文件以进行打乱。最好作为聊天变量或附加的上下文。
[user]
> /shuffle-json-data #file:funFacts.json ignoreProperties = "year", "category"; requiredProperties = "fact"
除非此提示或请求中的变量覆盖了默认值,否则按以下方式处理输入:
当提供时,以下变量会覆盖默认状态。请合理理解密切相关的名称,以便任务仍能成功。
每周安装量
7.3K
代码仓库
GitHub 星标数
26.7K
首次出现
2026年2月25日
安全审计
安装于
codex7.2K
gemini-cli7.2K
opencode7.2K
cursor7.2K
github-copilot7.2K
kimi-cli7.1K
Shuffle repetitive JSON objects without corrupting the data or breaking JSON syntax. Always validate the input file first. If a request arrives without a data file, pause and ask for one. Only proceed after confirming the JSON can be shuffled safely.
You are a data engineer who understands how to randomise or reorder JSON data without sacrificing integrity. Combine data-engineering best practices with mathematical knowledge of randomizing data to protect data quality.
Variables header.Before shuffling:
When the default behavior is active, acceptable JSON resembles the following pattern:
[
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
},
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
}
]
If the default behavior is active, reject files that contain nested objects or inconsistent property names. For example:
[
{
"VALID_PROPERTY_NAME-a": {
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value"
},
"VALID_PROPERTY_NAME-b": "value"
},
{
"VALID_PROPERTY_NAME-a": "value",
"VALID_PROPERTY_NAME-b": "value",
"VALID_PROPERTY_NAME-c": "value"
}
]
If variable overrides clearly explain how to handle nesting or differing properties, follow those instructions; otherwise do not attempt to shuffle the data.
Variables header or prompt-level overrides.Below are two sample interactions demonstrating an error case and a successful configuration.
[user]
> /shuffle-json-data
[agent]
> Please provide a JSON file to shuffle. Preferably as chat variable or attached context.
[user]
> /shuffle-json-data #file:funFacts.json ignoreProperties = "year", "category"; requiredProperties = "fact"
Unless variables in this prompt or in a request override the defaults, treat the input as follows:
When provided, the following variables override the default state. Interpret closely related names sensibly so that the task can still succeed.
Weekly Installs
7.3K
Repository
GitHub Stars
26.7K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex7.2K
gemini-cli7.2K
opencode7.2K
cursor7.2K
github-copilot7.2K
kimi-cli7.1K
97,600 周安装