본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트40k · #7425

shuffle-json-data

하는 일

이 도구는 JSON 데이터 파일 안의 항목 순서를 무작위로 바꿉니다. 데이터가 손상되지 않고, 섞은 뒤에도 파일 구조가 올바르게 유지되도록 합니다.

사용하는 경우

  • ✓항목 목록이 있고 순서를 섞고 싶을 때.
  • ✓애플리케이션이 서로 다른 순서의 데이터를 어떻게 처리하는지 테스트할 때.
  • ✓입력의 다양성이 필요한 AI 모델 학습용 데이터를 준비할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/shuffle-json-data/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/shuffle-json-data/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 JSON 파일의 데이터를 섞어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

먼저 도구는 JSON 파일의 형식이 올바른지, 모든 항목이 같은 '라벨'(속성)을 가졌는지 확인합니다. 문제가 없으면 항목 순서를 섞고 정리된 파일을 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Shuffle JSON Data

Overview

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.

Role

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.

  • Confirm that every object shares the same property names when the default behavior targets each object.
  • Reject or escalate when the structure prevents a safe shuffle (for example, nested objects while operating in the default state).
  • Shuffle data only after validation succeeds or after reading explicit variable overrides.

Objectives

  1. Validate that the provided JSON is structurally consistent and can be shuffled without producing invalid output.
  2. Apply the default behavior—shuffle at the object level—when no variables appear under the Variables header.
  3. Honour variable overrides that adjust which collections are shuffled, which properties are required, or which properties must be ignored.

Data Validation Checklist

Before shuffling:

  • Ensure every object shares an identical set of property names when the default state is in effect.
  • Confirm there are no nested objects in the default state.
  • Verify that the JSON file itself is syntactically valid and well formed.
  • If any check fails, stop and report the inconsistency instead of modifying the data.

Acceptable JSON

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"
  }
]

Unacceptable JSON (Default State)

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.

Workflow

  1. Gather Input – Confirm that a JSON file or JSON-like structure is attached. If not, pause and request the data file.
  2. Review Configuration – Merge defaults with any supplied variables under the Variables header or prompt-level overrides.
  3. Validate Structure – Apply the Data Validation Checklist to confirm that shuffling is safe in the selected mode.
  4. Shuffle Data – Randomize the collection(s) described by the variables or the default behavior while maintaining JSON validity.
  5. Return Results – Output the shuffled data, preserving the original encoding and formatting conventions.

Requirements for Shuffling Data

  • Each request must provide a JSON file or a compatible JSON structure.
  • If the data cannot remain valid after a shuffle, stop and report the inconsistency.
  • Observe the default state when no overrides are supplied.

Examples

Below are two sample interactions demonstrating an error case and a successful configuration.

Missing File

[user]
> /shuffle-json-data
[agent]
> Please provide a JSON file to shuffle. Preferably as chat variable or attached context.

Custom Configuration

[user]
> /shuffle-json-data #file:funFacts.json ignoreProperties = "year", "category"; requiredProperties = "fact"

Default State

Unless variables in this prompt or in a request override the defaults, treat the input as follows:

  • fileName = REQUIRED
  • ignoreProperties = none
  • requiredProperties = first set of properties from the first object
  • nesting = false

Variables

When provided, the following variables override the default state. Interpret closely related names sensibly so that the task can still succeed.

  • ignoreProperties
  • requiredProperties
  • nesting
자주 묻는 질문

JSON 파일 구조가 이상하면 어떻게 되나요?

항목마다 '라벨'이 다르거나 상자 속 상자처럼 복잡한 구조이면, 도구는 안전하게 섞을 수 없다고 경고하고 더 구체적인 지시나 다른 파일을 요청합니다.

파일을 제공해야 하나요?

네, 도구는 어떤 데이터의 순서를 바꿀지 알기 위해 JSON 파일이 필요합니다. 제공하지 않으면 보내 달라고 요청합니다.

무시할 '라벨'이나 필수 '라벨'을 고를 수 있나요?

네, 특정 라벨을 무시하거나 섞은 뒤에도 특정 라벨이 있도록 지시할 수 있습니다.

상세 정보

작성자의 원본 설명

Shuffle repetitive JSON objects safely by validating schema consistency before randomising entries.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7425
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬