Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design and conduct qualitative research using grounded theory and case studies
.claude/skills/brycewang-stanford-qualitative-research-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 103% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-13 | ✓→✗ | ▼ Worse | 104% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 67% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 99% | 0% |
A skill for designing and conducting rigorous qualitative research. Covers major qualitative traditions, data collection methods, coding and analysis techniques, and quality criteria for trustworthy qualitative findings.
| Approach | Research Question Type | Unit of Analysis | Sample Size | Output | |----------|----------------------|-----------------|-------------|--------| | Grounded Theory | How does a process work? | Process/action | 20-60 | Theory | | Phenomenology | What is the lived experience? | Experience | 5-25 | Essence description | | Case Study | How/why does this case work? | Bounded system | 1-5 cases | Case description | | Ethnography | How does this culture work? | Cultural group | Extended fieldwork | Cultural portrait | | Narrative | What is this person's story? | Individual life | 1-5 | Narrative account | | Thematic Analysis | What patterns exist in this data? | Themes across data | Variable | Theme map |
Data Collection (interviews, observations)
|
v
Open Coding: Line-by-line coding of raw data
|
v
Axial Coding: Grouping codes into categories,
identifying relationships
|
v
Selective Coding: Identifying the core category
that integrates all others
|
v
Theoretical Saturation: Stop when new data
no longer generates new codes
|
v
Substantive Theory: A grounded explanation of the phenomenonpythondef create_interview_protocol(research_questions: list[str], n_questions: int = 10) -> dict: """ Generate a semi-structured interview protocol template. Args: research_questions: The study's research questions n_questions: Target number of interview questions """ protocol = { 'opening': { 'rapport_building': [ "Thank you for participating. Before we begin, could you " "tell me a little about yourself and your background?", "How did you first become involved in [topic]?" ], 'time_estimate': '60-90 minutes' }, 'main_questions': [], 'closing': { 'wrap_up': [ "Is there anything else you would like to share that we " "have not covered?", "Looking back, what stands out most to you about [topic]?", "Do you have any questions for me?" ] }, 'guidelines': [ 'Ask open-ended questions (how, what, tell me about)', 'Avoid leading questions', 'Use probes: "Can you give me an example?"', 'Use follow-ups: "You mentioned X, tell me more about that"', 'Allow silences -- do not rush to fill pauses', 'Record field notes immediately after each interview' ] } # Generate question structure for i, rq in enumerate(research_questions): protocol['main_questions'].append({ 'research_question': rq, 'interview_questions': [ f'Grand tour question for RQ{i+1}', f'Follow-up probe for RQ{i+1}', f'Example-seeking probe for RQ{i+1}' ] }) return protocol
| Strategy | Description | When to Use | |----------|------------|------------| | Purposive | Select information-rich cases | Most qualitative studies | | Maximum variation | Select cases that differ on key dimensions | Capture range of experiences | | Snowball | Participants refer others | Hard-to-reach populations | | Theoretical | Driven by emerging theory | Grounded theory studies | | Critical case | Select cases that are pivotal | Testing theoretical propositions | | Convenience | Readily available participants | Pilot studies only |
pythondef thematic_analysis_workflow(transcripts: list[str]) -> dict: """ Outline the six phases of reflexive thematic analysis. """ phases = { 'phase_1_familiarization': { 'actions': [ 'Read and re-read all transcripts', 'Note initial impressions in a research journal', 'Transcribe recordings if not already done' ], 'output': 'Familiarity with data, initial notes' }, 'phase_2_coding': { 'actions': [ 'Code every data segment systematically', 'Use open coding (inductive) or deductive codes from framework', 'Code inclusively -- same segment can have multiple codes', 'Maintain a codebook with definitions and examples' ], 'output': 'Coded dataset, codebook' }, 'phase_3_generating_themes': { 'actions': [ 'Collate codes into potential themes', 'Create a thematic map showing relationships', 'Distinguish between semantic and latent themes' ], 'output': 'Candidate themes and sub-themes' }, 'phase_4_reviewing_themes': { 'actions': [ 'Check themes against coded extracts', 'Check themes against entire dataset', 'Merge, split, or discard themes as needed' ], 'output': 'Refined thematic map' }, 'phase_5_defining_themes': { 'actions': [ 'Write a detailed description of each theme', 'Identify the essence of each theme', 'Name themes concisely and informatively' ], 'output': 'Theme definitions and names' }, 'phase_6_writing_up': { 'actions': [ 'Weave together analytic narrative and data extracts', 'Select vivid, compelling quotes for each theme', 'Connect themes to research questions and literature' ], 'output': 'Final analysis write-up' } } return { 'phases': phases, 'n_transcripts': len(transcripts), 'estimated_time': f'{len(transcripts) * 4}-{len(transcripts) * 8} hours' }
yamlcodebook: - code: "ADAPT" definition: "Participant describes adapting their behavior in response to a challenge" inclusion_criteria: "Explicit mention of changing approach or strategy" exclusion_criteria: "Passive acceptance without behavioral change" example_quote: "I started doing things differently after that..." theme: "Resilience Strategies" - code: "BARR" definition: "Participant identifies a barrier or obstacle" inclusion_criteria: "Something that prevented or hindered progress" exclusion_criteria: "General complaints without specific barrier" example_quote: "The main thing holding me back was..." theme: "Challenges"
| Criterion | Quantitative Equivalent | Strategies | |-----------|------------------------|-----------| | Credibility | Internal validity | Member checking, triangulation, prolonged engagement | | Transferability | External validity | Thick description, purposive sampling | | Dependability | Reliability | Audit trail, peer debriefing | | Confirmability | Objectivity | Reflexivity journal, negative case analysis |
For team-based coding, calculate Cohen's kappa or percent agreement on a subset of data (at least 10-20% of the corpus). Aim for kappa > 0.70 before independent coding proceeds.
Follow the COREQ (Consolidated Criteria for Reporting Qualitative Research) checklist: report researcher positionality, sampling strategy, data collection methods, analysis approach, and provide sufficient quotations to evidence each theme.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 23,092 | 15,624 | -32% | 1 | 1 | 0% | 3,976 | 4,185 | +5% | 0 | 0 | — |
case-02 | fail→fail | 27,241 | 18,186 | -33% | 1 | 1 | 0% | 4,071 | 5,455 | +34% | 0 | 0 | — |
case-03 | fail→fail | 18,374 | 22,306 | +21% | 1 | 1 | 0% | 3,023 | 5,451 | +80% | 0 | 0 | — |
case-04 | pass→pass | 12,178 | 10,037 | -18% | 1 | 1 | 0% | 2,110 | 3,528 | +67% | 0 | 0 | — |
case-05 | pass→pass | 13,627 | 16,994 | +25% | 1 | 1 | 0% | 2,156 | 4,292 | +99% | 0 | 0 | — |
case-06 | pass→pass | 12,669 | 14,306 | +13% | 1 | 1 | 0% | 1,975 | 3,961 | +101% | 0 | 0 | — |
case-07 | pass→pass | 14,774 | 14,928 | +1% | 1 | 1 | 0% | 2,036 | 3,868 | +90% | 0 | 0 | — |
case-08 | pass→pass | 13,613 | 10,350 | -24% | 1 | 1 | 0% | 1,844 | 3,571 | +94% | 0 | 0 | — |
case-09 | pass→pass | 14,414 | 11,449 | -21% | 1 | 1 | 0% | 2,266 | 3,581 | +58% | 0 | 0 | — |
case-10 | pass→pass | 3,908 | 3,933 | +1% | 1 | 1 | 0% | 626 | 2,451 | +292% | 0 | 0 | — |
case-11 | pass→pass | 10,373 | 7,781 | -25% | 1 | 1 | 0% | 1,726 | 3,269 | +89% | 0 | 0 | — |
case-12 | fail→pass | 17,467 | 18,769 | +7% | 1 | 1 | 0% | 2,364 | 4,795 | +103% | 0 | 0 | — |
case-13 | pass→fail | 15,958 | 13,367 | -16% | 1 | 1 | 0% | 2,165 | 4,408 | +104% | 0 | 0 | — |
case-14 | pass→pass | 15,421 | 13,625 | -12% | 1 | 1 | 0% | 2,500 | 3,837 | +53% | 0 | 0 | — |
case-15 | pass→pass | 9,717 | 6,834 | -30% | 1 | 1 | 0% | 1,668 | 3,246 | +95% | 0 | 0 | — |
case-16 | pass→pass | 10,852 | 9,748 | -10% | 1 | 1 | 0% | 1,795 | 3,376 | +88% | 0 | 0 | — |
case-17 | pass→pass | 13,708 | 11,268 | -18% | 1 | 1 | 0% | 2,198 | 3,784 | +72% | 0 | 0 | — |
case-18 | pass→pass | 7,195 | 9,060 | +26% | 1 | 1 | 0% | 1,076 | 3,294 | +206% | 0 | 0 | — |
case-19 | fail→pass | 12,804 | 6,614 | -48% | 1 | 1 | 0% | 2,094 | 2,900 | +38% | 0 | 0 | — |
case-20 | pass→pass | 10,822 | 8,543 | -21% | 1 | 1 | 0% | 2,134 | 3,640 | +71% | 0 | 0 | — |
case-21 | pass→pass | 22,564 | 16,591 | -26% | 1 | 1 | 0% | 3,505 | 5,053 | +44% | 0 | 0 | — |
case-22 | pass→pass | 10,984 | 15,058 | +37% | 1 | 1 | 0% | 2,311 | 4,777 | +107% | 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. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 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.