Skip to content
Content
Skill

/qualitative-engine

Activate when the user needs to analyze qualitative data — interview transcripts, field notes, or open-ended survey responses. Handles structured summarization, thematic coding, cross-case analysis, theme matrices, and evidence retrieval. Designed to solve the context-window

From plugin
open-academic-paper-machine
1817 skills4 agents21 commands
Install
$ npx -y skills add TobiasBlask/open-paper-machine --skill qualitative-engine --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/qualitative-engine

Context preview

The summary Claude sees to decide when to auto-load this skill.

Activate when the user needs to analyze qualitative data — interview transcripts, field notes, or open-ended survey responses. Handles structured summarization, thematic coding, cross-case analysis, theme matrices, and evidence retrieval. Designed to solve the context-window

SKILL.md

qualitative-engine.SKILL.md
name: qualitative-engine
description: >
  Activate when the user needs to analyze qualitative data — interview transcripts,
  field notes, or open-ended survey responses. Handles structured summarization,
  thematic coding, cross-case analysis, theme matrices, and evidence retrieval.
  Designed to solve the context-window problem: generates compact summaries first,
  then works from summaries instead of full transcripts. Only loads full text
  when specific quotes are needed. Supports Gioia, Mayring, Grounded Theory,
  and general thematic analysis workflows.

> **Orchestration Log**: When this skill is activated, append a log entry to `outputs/orchestration_log.md`: > ``` > ### Skill Activation: Qualitative Engine > **Timestamp:** [current date/time] > **Actor:** AI Agent (qualitative-engine) > **Input:** [brief description of the analysis request] > **Output:** [brief description — e.g., "23 interviews summarized, 14 first-order codes identified"] > ```

Qualitative Engine

Core Principle: Summary-First, Full-Text-on-Demand

**CRITICAL:** Qualitative data (interview transcripts) can easily overflow the context window. Follow this strict protocol:

1. **NEVER load all transcripts into context simultaneously** 2. **ALWAYS generate structured summaries first** (Phase 1) 3. **Work from summaries** for coding and analysis (Phases 2-4) 4. **Load full transcripts ONLY** when extracting specific verbatim quotes (Phase 5) 5. **Load at most 2-3 full transcripts at a time** when quote-hunting

Utility Script

The `scripts/process_interviews.py` script provides:

from scripts.process_interviews import (
    load_interviews,      # Read all .md files from interviews/
    build_index,          # Generate INDEX.md with metadata
    chunk_interview,      # Split long transcripts into chunks
    search_interviews,    # Keyword search across all interviews
    save_index,           # Save index file
    save_summary,         # Save individual summaries
)

---

Phase 1: Structured Summarization

Purpose

Transform each full transcript into a compact structured summary (~300 words) that preserves analytical value while reducing context consumption by 80-90%.

Step 1: Build Interview Index

interviews = load_interviews("interviews/")
index = build_index(interviews)
save_index(index, "interviews/INDEX.md")

Step 2: Generate Summaries

For EACH interview, read the full transcript and produce a summary in this exact format:

# Summary: [Interviewee Name / Title]
**Date:** [date]  |  **Role:** [professional role]  |  **Organization:** [org]  |  **Duration:** [if available]

## Context
[1-2 sentences: Who is this person? Why were they interviewed? What is their relevance?]

## Key Statements (verbatim quotes)
1. "[Direct quote — max 2 sentences]" — on [topic]
2. "[Direct quote — max 2 sentences]" — on [topic]
3. "[Direct quote — max 2 sentences]" — on [topic]
[3-5 quotes that capture the most analytically valuable statements]

## Core Themes Discussed
- **[Theme A]:** [2-3 sentence summary of their position/experience]
- **[Theme B]:** [2-3 sentence summary]
- **[Theme C]:** [2-3 sentence summary]

## Unique Insights
[1-2 sentences: What does this interviewee say that NO other interviewee says?
What is their unique contribution to the data set?]

## Relevance to Research Questions
- **RQ1:** [How does this interview inform RQ1? One sentence.]
- **RQ2:** [How does this interview inform RQ2? One sentence.]
- **RQ3:** [How does this interview inform RQ3? One sentence.]
[Adapt RQs from framing.md]

Step 3: Save Summaries

save_summary(summary_text, "interviews/summaries/[filename]_summary.md")

Context Budget Rule

  • Process interviews **one at a time**: read transcript → generate summary → save → move to next
  • After all summaries are generated, the summaries/ directory becomes the primary data source
  • Total summary corpus: ~23 interviews × 300 words = ~7,000 words (fits easily in context)

---

Phase 2: Initial Coding (First-Order Codes)

Purpose

Identify empirical codes grounded in the data — what interviewees actually say.

Input

Load ALL summary files (not full transcripts):

interviews/summaries/*.md

Coding Process

1. **Read all summaries** in sequence 2. **Identify recurring patterns** across interviews:

  • What topics come up repeatedly?
  • What language do interviewees use?
  • What problems, solutions, or experiences are described?

3. **Generate first-order codes** — stay close to the data:

  • Use informant-centric language (in-vivo codes where possible)
  • Each code = a specific empirical observation, not an abstract concept
  • Target: 20-40 first-order codes

Output Format: Codebook v1

# Codebook v1 — First-Order Codes

**Date:** [date]
**Interviews coded:** [N]
**Total codes:** [N]

| Code ID | Code Label | Description | Example Quote | Frequency |
|---------|-----------|-------------|---------------|-----------|
| C01 | [label] | [what this code captures] | "[short quote]" — [interviewee] | [N interviews] |
| C02 | [label] | [what this code captures] | "[short quote]" — [interviewee] | [N interviews] |
| ... | | | | |

Save to: `outputs/codebook_v1.md`

Code-to-Interview Matrix

| Code | Interview 1 | Interview 2 | Interview 3 | ... | Total |
|------|------------|------------|------------|-----|-------|
| C01  | ✓          | ✓          |            | ... | N     |
| C02  |            | ✓          | ✓          | ... | N     |

Save to: `outputs/code_matrix.md`

---

Phase 3: Thematic Grouping (Second-Order Themes)

Purpose

Group first-order codes into higher-level analytical themes.

Process

1. **Review the codebook** — look for clusters of related codes 2. **Group codes into themes** — each theme aggregates 2-5 first-order codes 3. **Name themes analytically** — researcher language, not informant language 4. **Target: 5-

Read more
Ships withopen-academic-paper-machine

A Claude Code plugin that autonomously writes academic papers — from literature search to production-ready LaTeX/PDF. Scope note.

Get the whole plugin