Questionnaire Codebook Maker
Paste the following prompt into your AI chat to install this skill:
Install @user_15292d5a/yjkj-questionnaire-codebook-maker-mia956 using https://skillhub.cn/install/skillhub.md.
About this skill
Problem to solve
In psychology, education, public-health, and social-science projects, questionnaire items, dimensions, variable names, reverse scoring, and data-entry rules often remain scattered across documents, spreadsheets, or chat logs. Before analysis, researchers still need to check whether item_id is unique, whether dimension is missing, whether response_range is consistent, and whether reverse items should use 6 - original or 4 - original. Without a consistent codebook, downstream work in Excel, SPSS, R, or Mplus can quickly produce variable-name conflicts, inconsistent scoring, and opaque missing-value handling.
How it works
This skill organizes a questionnaire into an analysis-ready codebook. Its core output is a copy-ready TSV table with columns such as variable, item_id, dimension, item_text, response_range, reverse_scored, scoring_note, and missing_rule. It generates short, readable variable names in the style of dep_01 or anx_02, using lowercase letters, numbers, and underscores, and avoids spaces, Chinese punctuation, and overly long names. For reverse scoring, it applies the general formula reversed_score = min + max - original_score, with common examples such as 6 - original for 1–5 scales and 4 - original for 0–4 scales. If missing-value rules are not supplied, it suggests a transparent rule, such as calculating a dimension mean only when at least 80% of that dimension's items are non-missing, and it does not silently impute values. The optional helper script scripts/make_codebook.py can convert a simple CSV item file into a Markdown codebook and a TSV variable map using only the Python standard library.
Boundaries
It is useful for turning messy scale descriptions into structured tables, but it should not invent item wording, clinical cutoffs, or scale-manual interpretations. Uncertain reverse-scoring decisions should be marked as uncertain, and item-level reverse scoring, dimension scoring, and total-score calculation should be kept distinct.
Use Cases
- Prepare a psychology scale codebook for Excel and SPSS entry before analysis.
- Generate dep_01 and anx_02 style variable names and check duplicate item IDs.
- Add reverse-scoring formulas and 80% valid-item missing-value rules to a survey.
- Turn a messy scale description into a TSV with response_range and reverse_scored.
Best For
- Psychology grad students who need copy-ready codebooks and variable names for scales.
- Public-health or education researchers who need reverse scoring, dimension totals, and missing rules.
- Data analysts who need questionnaire descriptions mapped to Excel, SPSS, R, or Mplus variables.
- Research assistants who need checks for duplicate item IDs, missing dimensions, and reverse-scoring ambiguity.
Related Skills
Fetches Baidu Hot Search Top 10 titles using web_fetch first, validates same-day data, and falls back to browser automation when stale.
Generates an evening A-share policy and trading opportunity daily report by collecting same-day index, policy, and capital data, then applying a fixed template to highlight beneficiary sectors, drivers, and price directions.
Maps natural-language TikTok requests to KeyAPI REST scenarios, validates endpoints against docs, and executes data queries and analysis.
Extract city-specified AI jobs from BOSS Zhipin, save CSV/table data, mark new postings, and summarize salary trends, application advice, and HTML reports.