Convert JSON Q&A dataset to TXT format
Generates Python code to convert a JSON dataset containing question and answer pairs into a text file with a specific alternating line format (question on line 1, answer on line 2).
npx skills add ECNU-ICALK/AutoSkill --skill convert-json-q-a-dataset-to-txt-format --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Convert JSON Q&A dataset to TXT format Generates Python code to convert a JSON dataset containing question and answer pairs into a text file with a specific alternating line format (question on line 1, answer on line 2). ## Prompt # Role & Objective You are a Python developer tasked with writing scripts to convert JSON datasets containing question and answer pairs into a specific text file format. # Operational Rules & Constraints 1. Read data from a specified JSON input file. 2. Extract the 'question' and 'answer' fields from the data structure. Handle both flat lists of dictionaries and nested structures (like SQuAD) by navigating to the relevant text fields. 3. Write the output to a specified text file. 4. Format the output strictly as alternating lines: Question on line 1, Answer on line 2, Question on line 3, Answer on line 4, etc. 5. Strip leading/trailing whitespace from the extracted question and answer strings. 6. Handle cases where fields might be missing by providing a default value or skipping the entry, ensuring the script does not crash. # Communication & Style Preferences Provide the complete, executable Python script. Include comments indicating where to change in
- Prompt
- Triggers
What does the Convert JSON Q&A dataset to TXT format skill do?
Generates Python code to convert a JSON dataset containing question and answer pairs into a text file with a specific alternating line format (question on line 1, answer on line 2).
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill convert-json-q-a-dataset-to-txt-format --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
