
以下为本文档的中文说明research-setup 是一个交互式设置向导技能用于为社会科学研究插件social-science-research plugin配置新项目。它通过一系列与用户的交互式问答收集关于研究领域、机构、期刊、数据集、关键研究人员和 R 语言配色方案等信息然后将这些配置写入 references/domain-profile.md 和 CLAUDE.md 文件中。使用场景包括当用户首次使用社会科学研究插件需要进行项目初始化配置时当用户更换研究领域或机构需要更新现有配置时当用户安装插件后需要运行首次设置时当用户希望根据特定的研究项目个性化定制插件的行为时当需要在配置文件中预设常用的期刊偏好、数据集和研究方法时当研究团队需要统一配置多个研究项目时。核心特点包括一是交互式向导设计通过 AskUserQuestion 菜单引导用户逐步完成配置降低了配置的难度和出错率即使不熟悉命令行操作的研究人员也能轻松上手二是覆盖多个核心配置维度包括研究领域与子领域、所在机构、偏好期刊、常备数据集、领域内关键研究人员以及 R 语言配色方案全面覆盖了社会科学家在研究工作中的各项需求三是首次配置完成后一次性写入所有配置文件减少重复交互和工作中断让研究者更快回到实际工作中四是支持检查已有配置如果配置文件中已经存在有效内容会向用户展示已有配置并提供确认或更新的选项避免重复劳动和配置覆盖五是通过 domain-profile.md 和 CLAUDE.md 两个文件分别存储领域配置和 Claude 行为配置实现了关注点分离便于后续管理和版本控制。这个技能让社会科学研究者能够快速完成研究环境的个性化设置专注于研究工作本身。Research Setup WizardWalk the user through setup using AskUserQuestion menus wherever possible. Collect all answers, then write config files in one pass.Step 0: Check Existing ConfigReadCLAUDE.mdandreferences/domain-profile.mdsilently. If either has real content (not placeholders), tell the user what’s already configured and offer to confirm or update each section.Step 1: Field IdentityAskUserQuestion — 2 questions at once:Field(single select, header: “Field”): “What is your field or subfield?” — Options: “Political Science”, “Economics”, “Sociology”, “Public Health”. User selects Other for unlisted fields.Institution(single select, header: “Institution”): “What is your institution?” — Options: “Duke University”, “Harvard University”, “Stanford University”, “UC Berkeley”. User selects Other for unlisted fields.Store field and institution for customizing later steps.Step 2: Name Project TitleAsk conversationally (not via AskUserQuestion):“What is your name (for paper authorship)? You can skip this for now.”“Do you have a working title for your current project? Fine to skip if you’re still exploring.”Wait for the user’s response before moving to Step 3.Step 3: JournalsAskUserQuestion — 2 multi-select questions based on the user’s field:Top journals(multiSelect, header: “Top journals”): “Select your top journals (pick all that apply):” — Offer the 4 most prestigious journals for the user’s selected field. Use your knowledge of the field’s top venues.Secondary journals(multiSelect, header: “Secondary”): “Select secondary or subfield journals:” — Offer 4 secondary/subfield journals appropriate to the user’s field.User can multi-select presets and add custom journals via Other.Step 4: DatasetsAskUserQuestion — 2 multi-select questions based on the user’s field:Common datasets(multiSelect, header: “Datasets”): “Which datasets do you commonly use?” — Offer the 4 most-used datasets for the user’s field. Use your knowledge of field-standard data sources.Additional sources(multiSelect, header: “More data”): “Any additional data sources?” — Offer 4 cross-disciplinary sources: World Bank Open Data, IPUMS, Bureau of Labor Statistics, Census Bureau.Step 5: Researchers ColorsAskUserQuestion — 2 questions at once:Researchers(single select, header: “Researchers”): “Add key researchers for targeted literature searches?” — Options: “Skip for now” / “Add researchers”.Colors(single select, header: “Colors”): “Which color palette should R figures use?” — If the institution is well-known, offer its official brand colors as the recommended option with a preview showing the hex codes. Otherwise offer: “Custom colors” / “Skip for now”.If the user chose “Add researchers”, ask conversationally for names, institutions, and Google Scholar URLs. Do NOT guess researcher names.If the user chose “Custom colors”, ask conversationally for primary and secondary hex codes.Step 6: Write Config Filesreferences/domain-profile.mdRead the existing file and update each section with the user’s answers. Preserve the file’s existing structure and comments. Only replace sections the user answered; leave unanswered sections unchanged. Add an “Institutional Colors” section at the end if one doesn’t exist, with the user’s hex codes (or defaults #012169 / #f2a900 if skipped).IMPORTANT:Do NOT write torules/r-code-conventions.md. Colors live inreferences/domain-profile.mdonly.CLAUDE.mdUpdate the project header placeholders:[YOUR PROJECT NAME]→ user’s project title (or leave placeholder if skipped)[YOUR NAME]→ user’s name (or leave placeholder if skipped)[YOUR INSTITUTION]→ user’s institutionStep 7: ConfirmSetup complete: - references/domain-profile.md — field, [N] journals, [N] datasets[, N researchers][, colors] - CLAUDE.md — project name and institution Update anytime: refere nces/domain-profile.md Next step: /new-projectNote any skipped sections and where to add them later.