Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

questionnaire-reading问卷阅读

Agent Skill

questionnaire-reading 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

198

周安装

8

GitHub Stars

2

下载量

62
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:questionnaire-reading(问卷阅读)
来源仓库:https://github.com/hoanghaoha/survy
仓库路径:skills/questionnaire-reading
安装命令:
npx skills add https://github.com/hoanghaoha/survy --skill questionnaire-reading
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hoanghaoha/survy --skill questionnaire-reading

简介

用于处理 GitHub 仓库、Issue、Pull Request 等协作信息。

  • 适合围绕代码变更、仓库状态进行整理和分析。
  • 可结合来源仓库和 README 继续核验具体功能和使用方式。
  • 安装前建议确认权限范围、维护状态及是否触发联网或命令执行。
  • 支持 Codex、Claude、Cursor、Gemini CLI,通过 GitHub 安装。

SKILL.md

Questionnaire Reading Skill

This skill converts a raw questionnaire design document into a structured questionnaire-design.md file. The output becomes the authoritative reference for survey structure, routing logic, and metadata — enabling an AI agent to understand the data before writing any survy code.


1. Input Formats

Accept any of the following:

FormatHow to read
.docxUse python-docx (pip install python-docx) to extract paragraphs and tables
.xlsx / .xlsUse openpyxl (pip install openpyxl) or polars.read_excel() to iterate rows
.pdfUse pdfplumber (pip install pdfplumber) to extract text page by page
.txt / .mdRead directly — plain text, no library needed

Always inspect the raw content first before deciding on a parsing strategy. Questionnaire documents vary widely; read several rows/paragraphs to detect the layout pattern before extracting.


2. Concepts to Extract

For each question, extract:

FieldDescription
Question IDShort code used in data (e.g. Q1, S2, D3). If not present, assign sequentially.
Label / TextThe full question wording shown to respondents.
TypeSingle (one answer), Multi (multiple answers), Open (free text), Number, Grid.
OptionsAnswer choices with their codes/numbers. Capture exactly as designed.
LogicRouting instruction — who sees this question. See Section 3.
TerminateFlag if any option ends the interview (-> Terminate respondent).

3. Logic / Routing Rules

Questionnaire logic is the most important thing to capture accurately. Common patterns and how to write them in the output:

Design wordingOutput phrasing
"Ask all" / "All respondents"Logic: All respondents
"Ask if Q2 = Yes" / "If Q2 = 1"Logic: Ask if Q2 == 1 (Yes)
"Ask if Q3 = 1 or 2"Logic: Ask if Q3 == 1 (Cat) OR Q3 == 2 (Dog)
"Skip to Q5 if Q4 = No"Logic: Ask if Q4!= 2 (No)
"Ask for all non-terminated"Logic: Ask for all respondents (who are not terminated)
"Ask if Q1 is answered"Logic: Ask if Q1 is not empty
Grid sub-questionsLogic: Same as parent grid question

When logic is ambiguous, capture the raw wording in a Note: line beneath.


4. Output Format

Always write the output as a .md file named questionnaire-design.md (or the name the user specifies). Use this exact structure:

# QUESTIONNAIRE DESIGN

---
Question: Q1
Type: Single
Label / Text: Please indicate your gender
Options:
1. Male
2. Female
Logic: All respondents

---
Question: Q2
Type: Single
Label / Text: Do you nurture a pet?
Options:
1. Yes
2. No
Logic: All respondents

---
Question: Q3
Type: Multi
Label / Text: Which type of pet do you nurture?
Options:
1. Cat
2. Dog
3. Other -> Terminate respondent
Logic: Ask if Q2 == 1 (Yes)

---
Question: Q4
Type: Single
Label / Text: Which brand do you choose for pet food?
Options:
1. Brand 1
2. Brand 2
3. Brand 3
Logic: Ask for all respondents (who are not terminated)

Rules for the output:

  • One --- separator before every question block (including the first).
  • Question: — use the ID exactly as it appears in the data file (or the questionnaire code).
  • Type: — one of Single, Multi, Open, Number, Grid.
  • Label / Text: — full question wording; do NOT truncate.
  • Options: — list every answer choice with its numeric code.

- Append -> Terminate respondent for terminating options. - Append -> Skip to Q{n} for options that jump forward.

  • Logic: — concise routing rule using the patterns in Section 3.
  • Add Note: only when the original wording is ambiguous or non-standard.
  • Omit empty fields (e.g. Options: block for Open/Number questions unless codes exist).

5. Step-by-Step Process

  1. Receive the file path from the user.
  2. Read the raw content using the appropriate library (see Section 1).
  3. Identify the layout: Is it a table? Numbered list? Free-form paragraphs?
  4. Extract each question in order, filling in every field from Section 2.
  5. Resolve logic: Map routing instructions to the standard phrasing from Section 3.
  6. Write questionnaire-design.md to the same directory as the input file (or to a path the user specifies).
  7. Print a short summary: total questions found, any questions where logic was unclear (flagged with Note:).

6. Parsing Tips by Format

Word (.docx)

  • Questions are usually in tables (one row per question) or numbered paragraphs.
  • Use doc.tables first; if empty, fall back to doc.paragraphs.
  • Bold text often marks question IDs or labels.
  • Italics or parenthetical text often marks routing instructions.

Excel (.xlsx)

  • Look for a header row containing keywords like "Question", "Code", "Label", "Logic", "Routing".
  • Each subsequent row is typically one question or one answer option.
  • If rows alternate between question and option levels, detect the pattern by column indentation or a "Type" column value.

PDF (.pdf)

  • Extract text page by page with pdfplumber.
  • Questionnaires in PDF often use numbering (Q1, Q2, …) as anchors — split on these.
  • Tables in PDF may be detected via page.extract_tables().
  • Watch for headers/footers repeating on every page — strip them.

Mixed / Unknown

  • If the format is unclear, print the first 20 lines/rows and ask the user to confirm the layout before proceeding.

7. Example Script

See scripts/parse_questionnaire.py for a ready-to-run parser that handles .docx, .xlsx, .pdf, and .txt inputs and writes questionnaire-design.md.


8. Integration with survy

Once questionnaire-design.md exists, an AI agent can:

  • Read the Question IDs and map them to survey["Q1"] variable IDs.
  • Use Label / Text to populate v.label via survey.update(...).
  • Use Options to build correct value_indices dicts.
  • Use Logic to understand which respondents answered each question, and apply survey.filter(...) correctly in analysis.
  • Use -> Terminate respondent flags to identify and exclude screened-out rows.

9. Reference Files

  • scripts/parse_questionnaire.py — ready-to-run parser for docx/xlsx/pdf/txt
  • assets/sample_questionnaire.docx — example Word questionnaire design
  • assets/sample_questionnaire_design.md — expected output for the sample

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.65%
按下载量换算23

Claude

31.4%
按下载量换算19

Cursor

18.67%
按下载量换算12

Gemini CLI

8.11%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills