Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design, deploy, and analyze surveys for social science and organizational res...
.claude/skills/brycewang-stanford-survey-research-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 78% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 62% | 0% |
A practical skill for conducting rigorous survey research from instrument design through data analysis. Covers questionnaire construction, sampling strategies, administration methods, response bias mitigation, and analytical techniques commonly used in communication studies, anthropology, management, and sociology.
Map your research questions to survey constructs:
pythondef create_survey_blueprint(research_questions: list[dict]) -> dict: """ Generate a survey blueprint mapping RQs to constructs and items. Args: research_questions: List of dicts with 'rq', 'constructs', 'hypothesized_relationship' """ blueprint = {'sections': [], 'total_estimated_items': 0} for rq in research_questions: section_items = 0 constructs = [] for construct in rq['constructs']: n_items = construct.get('n_items', 4) # default 4 items per construct constructs.append({ 'name': construct['name'], 'type': construct.get('type', 'latent'), 'scale': construct.get('scale', 'Likert 7-point'), 'validated_instrument': construct.get('instrument', None), 'items_needed': n_items }) section_items += n_items blueprint['sections'].append({ 'research_question': rq['rq'], 'constructs': constructs, 'total_items': section_items }) blueprint['total_estimated_items'] += section_items # Estimate completion time (3-4 items per minute) blueprint['estimated_minutes'] = round(blueprint['total_estimated_items'] / 3.5, 1) return blueprint # Example rqs = [ { 'rq': 'How does organizational culture affect employee innovation?', 'constructs': [ {'name': 'organizational_culture', 'instrument': 'OCAI (Cameron & Quinn)'}, {'name': 'employee_innovation', 'instrument': 'Innovative Work Behavior Scale'} ], 'hypothesized_relationship': 'positive' } ] print(create_survey_blueprint(rqs))
Rules for writing effective survey items:
DO:
- Use simple, unambiguous language (8th grade reading level)
- Ask about one concept per item
- Provide a reference period ("In the past 30 days...")
- Include both positively and negatively worded items (reverse-coded)
- Match response options to the question stem
DO NOT:
- Use double negatives ("I do not disagree...")
- Use absolutes ("always", "never")
- Ask hypothetical questions when actual behavior data is available
- Include two ideas in one question (double-barreled)
- Assume knowledge or use jargon| Scale Type | Use Case | Example | |-----------|----------|---------| | Likert (agreement) | Attitudes, beliefs | Strongly Disagree to Strongly Agree | | Frequency | Behavioral frequency | Never / Rarely / Sometimes / Often / Always | | Semantic differential | Perceptions | Cold ------- Warm | | Visual analog (VAS) | Continuous measurement | 0-100mm line | | Ranking | Relative preferences | Rank items 1 through N |
| Mode | Response Rate | Cost | Data Quality | Best For | |------|-------------|------|-------------|----------| | Online (Qualtrics/SurveyMonkey) | 10-30% | Low | Moderate | General population, students | | Telephone (CATI) | 15-40% | High | High | Older adults, nationally representative | | In-person (CAPI) | 50-70% | Very high | Highest | Sensitive topics, low-literacy populations | | Mail | 20-40% | Moderate | Moderate | Rural populations, older adults | | Mixed-mode | 30-60% | Moderate-high | High | Coverage optimization |
pythondef detect_response_patterns(responses: pd.DataFrame, reverse_items: list[str]) -> dict: """ Flag potential problematic response patterns. """ flags = {} # 1. Straight-lining detection row_variance = responses.var(axis=1) flags['straight_liners'] = (row_variance < 0.1).sum() # 2. Speeding (if timing data available) if 'completion_seconds' in responses.columns: median_time = responses['completion_seconds'].median() flags['speeders'] = (responses['completion_seconds'] < median_time * 0.33).sum() # 3. Inconsistency (reverse-coded item pairs) if reverse_items: for rev_item in reverse_items: original = rev_item.replace('_R', '') if original in responses.columns and rev_item in responses.columns: max_scale = responses[original].max() expected = max_scale + 1 - responses[rev_item] diff = abs(responses[original] - expected) flags[f'inconsistent_{original}'] = (diff > 2).sum() # 4. Missing data pattern flags['pct_missing'] = responses.isnull().mean().mean() * 100 return flags
For testing hypothesized relationships between latent constructs:
python# Using semopy for SEM in Python # pip install semopy model_spec = """ # Measurement model org_culture =~ oc1 + oc2 + oc3 + oc4 innovation =~ inn1 + inn2 + inn3 + inn4 job_satisfaction =~ js1 + js2 + js3 # Structural model innovation ~ org_culture + job_satisfaction job_satisfaction ~ org_culture """ # Fit indices to report: # - Chi-square (p > 0.05) # - CFI > 0.95 # - TLI > 0.95 # - RMSEA < 0.06 # - SRMR < 0.08
Report reliability (Cronbach's alpha, composite reliability), convergent validity (AVE > 0.50), and discriminant validity (Fornell-Larcker criterion) for all latent constructs.
Follow the AAPOR (American Association for Public Opinion Research) reporting guidelines: report response rate, sampling method, margin of error, field dates, mode of administration, and weighting procedures. For academic publication, include the full survey instrument as supplementary material.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-22 | pass→pass | 15,506 | 16,043 | +3% | 1 | 1 | 0% | 2,364 | 3,648 | +54% | 0 | 0 | — |
case-01 | fail→fail | 27,093 | 22,754 | -16% | 1 | 1 | 0% | 5,729 | 4,391 | -23% | 0 | 0 | — |
case-02 | fail→fail | 29,894 | 19,583 | -34% | 1 | 1 | 0% | 5,299 | 5,323 | +0% | 0 | 0 | — |
case-03 | fail→fail | 40,688 | 35,850 | -12% | 1 | 1 | 0% | 7,113 | 7,785 | +9% | 0 | 0 | — |
case-04 | pass→pass | 9,934 | 10,318 | +4% | 1 | 1 | 0% | 1,670 | 3,204 | +92% | 0 | 0 | — |
case-05 | pass→pass | 14,929 | 11,833 | -21% | 1 | 1 | 0% | 2,258 | 3,560 | +58% | 0 | 0 | — |
case-06 | fail→pass | 10,818 | 7,914 | -27% | 1 | 1 | 0% | 1,538 | 2,744 | +78% | 0 | 0 | — |
case-07 | fail→pass | 16,196 | 3,111 | -81% | 1 | 1 | 0% | 2,245 | 1,961 | -13% | 0 | 0 | — |
case-08 | pass→pass | 10,738 | 10,444 | -3% | 1 | 1 | 0% | 1,629 | 3,128 | +92% | 0 | 0 | — |
case-09 | pass→pass | 9,321 | 11,476 | +23% | 1 | 1 | 0% | 1,664 | 3,405 | +105% | 0 | 0 | — |
case-10 | pass→pass | 4,453 | 5,586 | +25% | 1 | 1 | 0% | 674 | 2,466 | +266% | 0 | 0 | — |
case-11 | pass→fail | 11,483 | 13,529 | +18% | 1 | 1 | 0% | 2,122 | 3,622 | +71% | 0 | 0 | — |
case-12 | fail→pass | 9,645 | 3,600 | -63% | 1 | 1 | 0% | 1,729 | 2,174 | +26% | 0 | 0 | — |
case-13 | pass→pass | 13,718 | 15,575 | +14% | 1 | 1 | 0% | 2,120 | 4,046 | +91% | 0 | 0 | — |
case-14 | fail→pass | 12,211 | 3,440 | -72% | 1 | 1 | 0% | 2,047 | 2,094 | +2% | 0 | 0 | — |
case-15 | fail→fail | 16,933 | 17,258 | +2% | 1 | 1 | 0% | 3,070 | 4,565 | +49% | 0 | 0 | — |
case-16 | fail→pass | 15,407 | 14,892 | -3% | 1 | 1 | 0% | 2,450 | 3,980 | +62% | 0 | 0 | — |
case-17 | pass→pass | 15,509 | 12,283 | -21% | 1 | 1 | 0% | 2,680 | 3,667 | +37% | 0 | 0 | — |
case-18 | pass→pass | 8,151 | 29,069 | +257% | 1 | 1 | 0% | 1,257 | 2,907 | +131% | 0 | 0 | — |
case-19 | pass→pass | 11,940 | 4,395 | -63% | 1 | 1 | 0% | 1,928 | 2,222 | +15% | 0 | 0 | — |
case-20 | pass→pass | 8,892 | 7,091 | -20% | 1 | 1 | 0% | 1,375 | 2,555 | +86% | 0 | 0 | — |
case-21 | pass→pass | 5,851 | 7,140 | +22% | 1 | 1 | 0% | 1,028 | 2,493 | +143% | 0 | 0 | — |
case-23 | pass→pass | 25,340 | 25,776 | +2% | 1 | 1 | 0% | 4,414 | 5,832 | +32% | 0 | 0 | — |
case-24 | pass→pass | 17,705 | 22,076 | +25% | 1 | 1 | 0% | 3,621 | 5,684 | +57% | 0 | 0 | — |
case-25 | pass→pass | 21,411 | 34,010 | +59% | 1 | 1 | 0% | 3,486 | 7,641 | +119% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +16 percentage points is the difference between those two pass rates over the 25 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.