Converts a survey written in Markdown (or pasted from a doc or form) into a Qualtrics import file: a .qsf with blocks, question types, skip and display logic, or Advanced Format TXT when there is no logic. Also turns an exported .qsf into editable Markdown or a codebook with a list of what could not be carried, and checks a .qsf for broken references. Use for "make this a Qualtrics survey", "import my survey into Qualtrics", "read this qsf", "check this qsf", "Qualtrics data dictionary" or "move my survey between tools".
Ships in research-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns a written survey into a Qualtrics import file, and an exported .qsf into Markdown or a codebook a
person can read and edit. A script does the conversion; the agent's job is to get the survey into the
Markdown format without changing its wording, and to report what could not be carried.
Read this before promising anything. Qualtrics publishes no specification for .qsf and tells users
not to edit the file, so the format is unofficial and can change without notice. The shapes this skill
writes are copied from 55 real exports (references/sources.md) and each file is
checked for internal consistency. Always tell the user to import into a new test survey first and to preview it.
When a survey has no logic, the skill writes Qualtrics' documented Advanced Format TXT instead, which is
the vendor-supported route.
Use when the user says things like:
Do not use it, and hand over instead, when the user wants to:
survey-from-decision.survey-bias-check..qsf): survey-data-cleaning, nps-analysis.A skill named above may not be installed. If it is missing, say in one line that the request is outside this skill, and answer it from general knowledge only if the user still wants that.
Ask at most one question, and only if the first item is missing.
| Input | Default if not given |
|---|---|
The survey: a Markdown file, pasted text, a document, a form, or a .qsf | None: ask for it |
| Direction | From the file: .qsf in means Markdown out (codebook if they ask for variables or a data dictionary); anything else means an import file |
| Import format | auto: TXT when it can hold the whole survey, .qsf otherwise |
| Question types, when the source does not state them | Infer from the wording (see Steps) and list every inference in the output |
| Required questions | None required, unless the source marks them |
| Output path | Next to the input, same name |
Formatting in a .qsf (colours, fonts) | Removed and reported; --keep-html if the user wants it kept |
Written to .qsf | Read from .qsf | |
|---|---|---|
| Multiple choice (one answer, several answers, dropdown), NPS | Yes | Yes; horizontal and column layouts read as vertical, with a note |
| Text entry (single line, multi line, essay, form), descriptive text | Yes | Yes |
| Matrix (Likert one or several answers, text boxes) | Yes | Yes; a dropdown matrix reads as a plain one, with a note |
| Slider, rank order, constant sum | Yes | Yes |
| Side by side | No | Read as one matrix question per column |
| Blocks, page breaks, required and request response | Yes | Yes |
| Recode values, matrix row export tags, write-in and exclusive options | Yes | Yes |
| Skip logic on a selected or not selected option (multiple choice or NPS score) | Yes | Yes |
| Display logic on selected or not selected options of an earlier question, all "and" or all "or" | Yes | Yes |
| Randomize all options or rows; embedded data declared at the start | Yes | Yes |
| Branches, block randomizers, quotas, loop and merge, end-of-survey elements, other logic, content validation, scoring, JavaScript, translations, timing, file upload, profile matrix, MaxDiff | No | Reported with the question id, never dropped silently |
NPS, rank order and constant sum shapes rest on one real export each; the script says so when it writes
one. TXT holds less than .qsf (no logic, validation, sliders or NPS): see the table in
references/markdown-format.md.
The conversion lives in scripts/qsf_convert.py (Python 3.9+, standard library
only, no network). Run it; do not write .qsf JSON or read one by hand in the conversation. Run it by its
path inside this skill's directory (shown here as <skill-dir>), from any working directory; - in
place of an input file reads standard input.
references/markdown-format.md (read it first). If the source is
already in that format, skip to step 2. Otherwise transcribe:
q1, age, nps).[single], "select all" [multi], a long
list [dropdown], several items on one shared scale [matrix] (one question, not several), 0 to 10
recommend [nps], "rank" [rank], "allocate 100 points" [sum], open answers [text],
[text-long], [essay] or [form], instructions [info].{text}; "None of the above" in a [multi] gets {exclusive}.{code:n}, and then every option of that
question needs its own code: - Yes {code:1}, - No {code:2}, - Don't know {code:99}. If the
source states codes for only some options, ask, or list the others as unresolved; never invent one.{text} or a similar mark is written \{text}.> skip: when Q7 is later in the same block; otherwise use > show if:
on the questions that depend on the answer, or end of block. A display rule may test a single,
multi, dropdown or NPS question that comes earlier (an NPS score is nps is "6"; join scores with
or). Put a page break (---) between a rule and the question it tests: the script warns when they
share a page, and refuses a rule on a later question.<!-- comment --> at that place and in your report, for the user to set up in Qualtrics.python3 <skill-dir>/scripts/qsf_convert.py to-qualtrics survey.md -o survey.qsf
The script picks the format and prints which and why: TXT when the survey has nothing TXT cannot
hold, .qsf otherwise (the output file gets the matching extension, and an existing file under that
switched name is only replaced with --force). Force a format with --format qsf or --format txt.
It never writes over its input. On an error the script names the line; fix the Markdown, never the
output file..qsf). The build already checks its own output; these confirm the
file on disk and show what Qualtrics would be given:
python3 <skill-dir>/scripts/qsf_convert.py validate --strict survey.qsf
python3 <skill-dir>/scripts/qsf_convert.py to-md survey.qsf
Compare the read-back (or the TXT file, which is plain to read) with the user's source, question by
question: nothing missing, options in order, rules pointing at the intended options..qsf to Markdownpython3 <skill-dir>/scripts/qsf_convert.py to-md export.qsf -o survey.md
Add --keep-html to keep formatting tags, --json for a machine-readable report..qsf to a codebookpython3 <skill-dir>/scripts/qsf_convert.py codebook export.qsf -o codebook.csv # or --format md
One row per variable: export tag, question id, block, type, label, values with their codes. A
multiple-answer or text-box matrix and a side-by-side question get one row per cell, an NPS question
also gets its _NPS_GROUP variable, and embedded-data fields are listed; response metadata columns
(start and end time, duration, progress) are not. Pass on the script's note that suffixed variable names
follow the usual Qualtrics naming and should be checked against a real data export.
.qsfpython3 <skill-dir>/scripts/qsf_convert.py validate file.qsf
It checks structure: required elements; question ids matching between blocks, flow and questions; order
lists (keys repeated, missing or unknown); logic that points at a question that does not exist, or at a
choice that does not exist (an error); display logic that tests a later question; a missing Conjuction
key; repeated question or flow ids; the question-count field. It exits 1 on errors. It cannot say whether Qualtrics will
accept the file; say so. Use --strict only for files this skill built: real exports legitimately produce
warnings.
[nps], [rank] and [sum] questions first; their shapes rest on one real export each.--format txt: the questions, blocks and page breaks import through the documented format,
and the script lists the logic and settings to add by hand. TXT has no tag for [slider], [nps],
[text-long] or [matrix-text], so with one of those the build stops: replace them in a copy of the
Markdown (a [slider] by a [single] scale, [text-long] by [essay]) and list each replacement.Always this shape.
For an import file (to-qualtrics, to-qsf):
File: <path> Format: <QSF or TXT> because <the script's reason>
Contents: <n> blocks, <n> questions (<count per type>), <n> page breaks, <n> skip rules, <n> display rules
Structural check: passed (validate --strict) <QSF only>
Import it first into a NEW test survey: Survey tab >
Tools > Import/Export > Import survey. A .qsf creates a new survey; a TXT file ADDS to the survey that is
open, so start from an empty one. Preview every page and every rule before fielding.
Conversion report: <n> converted, <n> converted with changes, <n> not converted
Converted with changes:
- <tag>: <what, verbatim from the script; "none" if nothing>
Decisions I made:
- <each inferred type, tag or rule, one line each; "none" if the source was already in the format>
Not carried into the file (set up in Qualtrics by hand):
- <each item, with the question it belongs to; "none" if nothing>
For to-md:
File: <path to .md> (or the Markdown inline if short)
Conversion report: <n> converted, <n> converted with changes, <n> not converted (of <n> questions)
Converted with changes:
- <QID (tag)>: <changes, verbatim>
Not converted:
- <QID (tag)>: <reason, verbatim>
Survey level, not represented:
- <verbatim>
If you rebuild from this Markdown: <one line on what would be lost, or "nothing listed above applies">
For codebook: the file path (or the table inline if short), the number of variables, and the naming
note. For validate: the script's verdict line, each error and warning verbatim, and the sentence
"This checks structure only; it does not show that Qualtrics accepts the file."
Answer each with yes before replying.
.qsf did
validate --strict pass?[matrix], not several questions?and with or?To run this on QuestionPunk, connect its MCP server (https://app.questionpunk.com/api/v1, OAuth sign-in), or import the .qsf in the app. Tools: survey_create and question_create_bulk (build the survey from the Markdown), survey_get (read it back against the source). Ask the user before creating, changing or publishing anything. If a tool says a permission is missing, reconnect and approve the requested access.
LICENSE.txt (opens in a new tab)fixtures/README.md (opens in a new tab)fixtures/export.expected-codebook.csv (opens in a new tab)fixtures/export.expected-report.json (opens in a new tab)fixtures/export.expected.md (opens in a new tab)fixtures/export.input.qsf (opens in a new tab)fixtures/plain.expected.txt (opens in a new tab)fixtures/plain.input.md (opens in a new tab)fixtures/survey.expected.json (opens in a new tab)fixtures/survey.input.md (opens in a new tab)references/markdown-format.md (opens in a new tab)references/sources.md (opens in a new tab)scripts/qsf_convert.py (opens in a new tab)tests/test_qsf_convert.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/research-skills:qsf-convertfrom research-skills
research-skills@buildwithclaude is listed by davepoon/buildwithclaude — review the source before installing
npx claudepluginhub davepoon/buildwithclaude --plugin research-skills22 skills in this plugin
/ai-interview-guideTurns research goals or an existing discussion guide or interview script into a brief an AI moderator can run for customer or user research: goal, must-ask questions, probes and probe depth, skip rules, topics to avoid, a consent screen with AI disclosure and a short opener, length, and a paste-ready interviewer prompt, with leading questions rewritten. Use for "interview 30 customers", "async user interviews", "AI-moderated interviews", "write the prompt for my AI interviewer" or "run my discussion guide at scale"./conjoint-analysisAnalyzes choice-based conjoint results from a CSV of tasks and choices: an aggregate multinomial logit with respondent-clustered standard errors, part-worth utilities, attribute importances, willingness to pay when price is an attribute, AMCEs and marginal means for fully randomized designs, segment comparisons, and a share-of-preference simulator, with bootstrap intervals. Use for "analyze conjoint results", "part-worths", "attribute importance", "willingness to pay from conjoint", "market simulator" or a Sawtooth, Qualtrics or Conjointly CBC export. Not for individual-level HB utilities.Other plugins' skills for the same job
/conjoint-designDesigns a choice-based conjoint (CBC) study: attributes and levels that don't overlap, prohibited combinations, tasks, concepts per task and a none option, a randomized design with level balance and minimal overlap (or fully randomized for AMCEs) generated by script, checks of level frequency, attribute association and relative D-efficiency, and a sample size from the Johnson-Orme rule. Use for "conjoint study", "design a conjoint", "discrete choice experiment", "which feature bundle", "trade-off research", "CBC design", "how many conjoint tasks" or "check my conjoint design".