Skip to content
github/awesome-copilot

Safely Shuffle JSON Data with Schema Consistency Validation

GitHub CopilotGemini CLIClaude CodeOpenAI CodexCursorDevin / Windsurf

About this skill

A skill that lets the agent randomly reorder the elements of incoming JSON files without corrupting the data structure or breaking JSON syntax. The skill first verifies that the file is valid, that property names are consistent across objects, and that there are no nested objects in the default mode, then shuffles the data at the object level while preserving valid syntax and the original formatting. Defaults can be overridden via variables to specify required or ignored properties and to allow nesting.
Start here

How do you use this skill?

1. Attach a valid JSON file or JSON-like structure with your request; if there is no file, the agent will stop and ask for one to be provided. 2. Request the data shuffle, example user request: "/shuffle-json-data #file:funFacts.json ignoreProperties = "year", "category"; requiredProperties = "fact"". 3. The agent reviews the built-in settings between the default mode and any supplied variables such as ignoreProperties, requiredProperties, and nesting. 4. The agent validates against a checklist: file syntax validity, matching property names across all objects, and no nesting in default mode. 5. When validation succeeds, the agent shuffles the order of the objects while preserving valid JSON and the original formatting, and returns the result. 6. If any validation fails (such as inconsistent properties or nested objects without an explicit override), the agent stops and returns a report of the conflict instead of modifying the data.

Requirements and limitations

Every request requires a JSON file or compatible JSON structure attached to the context. The default mode assumes that fileName is mandatory, that no properties are ignored, that the required properties are the set of properties of the first object, and that nesting is false; any exceptions require explicit overrides via the variables. Files with nested objects or inconsistent property names are rejected in default mode. No calculations or external tools are required, only the agent's ability to read JSON files and process them as text. The skill is MIT licensed from GitHub.

Installation by agent

Download and extract the ZIP. It contains the folder shuffle-json-data and the file SKILL.md with the original attachments and license.

GitHub Copilot
  1. Create this path inside your project if it does not exist:.github/skills/
  2. Copy the entire extracted skill folder to this path:.github/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide GitHub Copilot official documentation ↗
Gemini CLI
  1. Create this path inside your project if it does not exist:.gemini/skills/
  2. Copy the entire extracted skill folder to this path:.gemini/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Gemini CLI official documentation ↗
Claude Code
  1. Create this path inside your project if it does not exist:.claude/skills/
  2. Copy the entire extracted skill folder to this path:.claude/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Claude Code official documentation ↗
OpenAI Codex
  1. Create this path inside your project if it does not exist:.agents/skills/
  2. Copy the entire extracted skill folder to this path:.agents/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide OpenAI Codex official documentation ↗
Cursor
  1. Create this path inside your project if it does not exist:.cursor/skills/
  2. Copy the entire extracted skill folder to this path:.cursor/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Cursor official documentation ↗
Devin / Windsurf
  1. Create this path inside your project if it does not exist:.devin/skills/
  2. Copy the entire extracted skill folder to this path:.devin/skills/shuffle-json-data/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for shuffle-json-data.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Devin / Windsurf official documentation ↗

Original files retain their language to preserve tool names and paths. Compatibility is classified by review, not runtime testing on every agent version.