← 返回
未分类 中文

Questionnaire Codebook Maker

Turn questionnaire items into clean research codebooks, scoring rules, reverse-scoring checks, variable names, and analysis-ready TSV/Markdown tables.
将问卷项目转化为清晰的研究编码本、计分规则、反向计分检查、变量名以及可直接分析的 TSV/Markdown 表格。
mia956
未分类 clawhub v1.0.0 1 版本 99453.6 Key: 无需
★ 5
Stars
📥 82
下载
💾 0
安装
1
版本
#codebook#latest#psychology#questionnaire#research

概述

Questionnaire Codebook Maker

Purpose

Use this skill when the user needs to organize questionnaire items, scale dimensions, variable names, scoring rules, reverse-scored items, or data-entry specifications for psychology, education, public-health, social-science, or student research projects.

The core output is a clean codebook that can be copied into Word, Excel, SPSS, R, Mplus, or a research protocol.

When to activate

Activate this skill when the user asks for any of the following:

  • Convert questionnaire items into a codebook.
  • Generate variable names for survey items.
  • Mark reverse-scored items and compute scoring rules.
  • Build a table for dimensions, item numbers, response anchors, and total scores.
  • Prepare data-entry rules for Excel/SPSS/R/Mplus.
  • Check whether questionnaire scoring is internally consistent.
  • Convert a messy scale description into an analysis-ready table.

Required output behavior

When the user provides questionnaire items, output the following sections unless they request a different format:

  1. 量表代码本 / Codebook

Provide a TSV table with these columns:

variable, item_id, dimension, item_text, response_range, reverse_scored, scoring_note, missing_rule.

  1. 计分规则 / Scoring rules

Explain how to compute dimension scores and total scores. State whether to use sum scores or mean scores. If missing-value rules are not provided, recommend a transparent rule such as "calculate the mean score only when at least 80% of items in the dimension are non-missing".

  1. 反向计分检查 / Reverse-scoring check

List reverse-scored variables and give the formula. For a 1–5 item, use reversed = 6 - original. For a 0–4 item, use reversed = 4 - original.

  1. 分析软件变量建议 / Analysis-ready variable names

Provide short, readable variable names. Avoid spaces, Chinese punctuation, hyphens, and overly long names. Use prefixes such as dep_, anx_, smu_, sleep_, neuro_, or eant_ when relevant.

  1. 质量控制提示 / QC checklist

Mention duplicate item IDs, inconsistent response ranges, missing dimensions, and reverse-scoring ambiguity.

Variable-naming rules

  • Use lowercase letters, numbers, and underscores only.
  • Start with a letter.
  • Keep names under 20 characters when possible.
  • Preserve scale order using two-digit item numbers: dep_01, dep_02, anx_01.
  • Use dimension prefixes when multiple dimensions exist.
  • For Mplus compatibility, avoid names longer than 8 characters if the user explicitly asks for legacy Mplus-safe names.

Reverse-scoring formulas

For an item with minimum min and maximum max:

reversed_score = min + max - original_score

Common examples:

  • 1–5 scale: reverse = 6 - original.
  • 1–7 scale: reverse = 8 - original.
  • 0–4 scale: reverse = 4 - original.
  • 0–10 scale: reverse = 10 - original.

Missing-value rule recommendations

Use the user's stated rule when available. If no rule is given:

  • Dimension mean score: compute if at least 80% of dimension items are valid.
  • Total mean score: compute if at least 80% of all scale items are valid.
  • Never silently impute missing values unless the user explicitly asks for imputation.

Optional helper script

This skill includes scripts/make_codebook.py, which converts a simple CSV item file into a Markdown codebook and a TSV variable map. It uses only Python standard-library modules.

Input CSV columns:

item_id,item_text,dimension,scale_min,scale_max,reverse

Example command:

python3 scripts/make_codebook.py examples/demo_items.csv --out-dir output

If python3 is not available, try:

python scripts/make_codebook.py examples/demo_items.csv --out-dir output

Safety and integrity

  • Do not invent item wording or scoring rules.
  • Mark uncertain reverse-scoring decisions as uncertain.
  • Do not change original item meaning when shortening labels.
  • Do not assume a clinical cutoff unless the user provides the scale manual or asks for verified lookup.
  • When converting scoring rules, distinguish between item-level reverse scoring, dimension score calculation, and total score calculation.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-07 13:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,065 📥 802,121
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,364 📥 319,274
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 267,037