By SiyaoZheng
Provides a structured research assistant for empirical political science, guiding users through the entire workflow: developing research problems, designing studies, cleaning and analyzing data, interpreting results, writing papers, creating LaTeX tables and figures, and handling peer review. Also includes tools for managing tasks, optimizing R code, and accessing HPC resources.
Develop and revise working academic prose for empirical political-science research. Use when clarifying a paper's central point, building or restructuring an argument, drafting a working introduction, theory, research-design, results, or conclusion section, integrating literature and evidence, revising an author draft, or diagnosing why a paper feels unfocused. Triggers include "academic writing", "working paper", "draft this section", "argument outline", "revise the paper", "论文写作", "论文初稿", "论证结构", "修改论文".
Turn completed quantitative analyses into rigorous political-science interpretation for researchers and collaborators. Use when a project has multiple tables, figures, models, diagnostics, or null and conflicting results that need to be understood together; when effect magnitudes need substantive interpretation; or when the team must decide what the evidence changes and what to do next. Triggers include "explain the results", "interpret the analysis", "summary for coauthors", "what do these findings mean", "解释结果", "结果解读", "给合作者的分析总结".
Second step of the DDI survey-cleaning harness. Reads `ddi-metadata.yaml` (produced by `codebook-parse`) and guides the researcher in declaring all recoding decisions as DDI Lifecycle 3.3–compliant metadata in a new `cleaning_contract` block — before any data is touched. Trigger on any of: "declare my recoding decisions", "write the cleaning contract", "set up recodes", "which variables need recoding", "how should I handle missing codes", "set up my analysis variables", "I want to recode this survey", "configure the cleaning step", "define universe filter", "set missing values", or any time the user has `ddi-metadata.yaml` and wants to specify how to clean it before running `cleaning-execute`. Precondition: `ddi-metadata.yaml` must exist in the working directory. If it does not, tell the user to run `codebook-parse` first.
Third step of the DDI survey-cleaning harness. Reads `ddi-metadata.yaml` (with a `cleaning_contract` block written by `cleaning-contract`) and executes it mechanically: produces a clean `<stem>-clean.csv`, a reproducible `<stem>-cleaning.R` script, and appends a full audit trail to `processing_events`. Trigger on any of: "execute the cleaning contract", "run the cleaning", "produce the clean dataset", "generate the cleaned CSV", "apply my recoding decisions", "execute cleaning_contract", "build the analysis dataset", "run cleaning-execute", or any time the user has a `ddi-metadata.yaml` with a `cleaning_contract` block and wants the cleaned data + R script. Precondition: `ddi-metadata.yaml` must exist AND contain a non-empty `cleaning_contract` block. If it does not, tell the user to run `cleaning-contract` first.
First step of the DDI survey-cleaning harness. Reads a survey dataset or codebook file and produces `ddi-metadata.yaml` — a DDI Lifecycle 3.3–compliant Single Source of Truth (SSOT) that all downstream skills consume. Trigger on any of: "parse this dataset", "generate codebook metadata", "extract variable labels", "create the DDI YAML", "start the cleaning workflow", "document this survey file", "what variables does this dataset have", "parse this questionnaire PDF", "read the codebook Word file", or any time a user provides a survey file and wants to begin cleaning, labelling, or reproducible analysis. Supported inputs: Stata .dta, SPSS .sav, SAS .sas7bdat, CFPS YAML wrapper, DDI Codebook 2.5 XML, CSV with a data dictionary sidecar, PDF questionnaire or codebook, Word .docx variable documentation.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A collection of skills for doing the substantive work of quantitative political science: formulating questions, reading literatures, developing designs, finding and constructing data, analyzing evidence, reviewing methods, writing, revising, and presenting research.
Purpose · Install · Research skills · Using the skills · Development
Good empirical research depends on judgment: whether a question matters, whether a proposed comparison is informative, whether a measure represents the intended concept, whether the available data support the target population and period, and whether an interpretation is warranted by the evidence. These skills are written around those decisions.
The empirical center of the collection is political science. Its main orientation is contemporary quantitative research, including causal inference in the potential-outcomes tradition, but it does not assume that every worthwhile study is causal. Descriptive, measurement, interpretive, and theory-developing work should be judged by the questions they actually ask.
Several principles run across the research skills:
The skills do not form a compulsory pipeline. Each owns a distinct research task and can be used on its own. A project may return to the same skill several times as its question, evidence, and argument develop.
Clone the repository:
git clone https://github.com/SiyaoZheng/ai4ss-skills.git
cd ai4ss-skills
codex plugin marketplace add /path/to/ai4ss-skills
codex plugin add ai4ss-skills@ai4ss-skills-local
The Codex manifest is .codex-plugin/plugin.json. The repository-local
marketplace entry is .agents/plugins/marketplace.json.
claude plugin marketplace add /path/to/ai4ss-skills
claude plugin install ai4ss-skills@ai4ss-skills-local
The Claude Code manifest and marketplace entry are under .claude-plugin/.
Where a runtime accepts directory-format skills directly, copy or symlink the selected
skills/<skill-name>/ directory into that runtime's skill directory. The canonical source is always
skills/; .codex/skills and .agents/skills are repository-local symlinks, not duplicate
source trees.
| Skill | Research task |
|---|---|
research-starter | Develop a topic, empirical pattern, policy change, source collection, or dataset into a consequential research problem. |
literature-matrix | Find, verify, read, compare, and synthesize current and foundational Chinese- and English-language scholarship. |
study-design-builder | Develop a defensible empirical design from the question, theory, institutional setting, and available evidence. |
public-data-sources | Locate and assess public data by construct, population, unit, coverage, comparability, access, and provenance. |
research-data-builder | Construct analytical data whose sample, links, variables, and missingness correspond to the inquiry. |
npx claudepluginhub siyaozheng/ai4ss-skills --plugin ai4ss-skillsClaude Code skills for experimental social science and computational text analysis: conjoint design, diagnostics, and data cleaning, survey design, list experiments, cross-national design, topic modeling, LLM text classification, VLM-based OCR pipelines, post-OCR cleanup, paper pre-submission review, hypothesis building, narrative building, pre-registration, and methods reporting. Invoke as /skill-name or let Claude auto-trigger based on context.
Political economy workflow for institutions, mechanisms, distribution, and comparative political-economic analysis.
Meta-skill for creating genre-analysis-based writing skills. Analyzes a corpus of article sections, discovers clusters, and generates complete skills with phases, cluster guides, and techniques.
Citation-verified literature surveys for political science and computational social science
R statistical analysis for publication-ready sociology research. Phased workflow for DiD, IV, matching, panel methods, and more with pauses for user review.
Specialized research analysis agents for critical thinking, evidence verification, synthesis, and parallel paper analysis