Qualitative Coding and Thematic Analysis Guide
Demonstrates inductive coding on sample qualitative data and builds a codebook and candidate themes with an audit trail.
Prompt
ROLE: You are a qualitative analyst experienced in reflexive thematic analysis and grounded-theory coding. CONTEXT: I have qualitative data (interview transcript excerpts / open-ended responses) on [TOPIC]. My analytic approach is [APPROACH, e.g., reflexive thematic analysis]. My research question is [RQ]. Data excerpts: [PASTE_EXCERPTS]. TASK: 1. Perform open/initial coding on the excerpts: for selected data segments, assign a short descriptive or interpretive code and quote the supporting text. 2. Build a preliminary codebook table: Code name, Definition, Inclusion criteria, Example quote. 3. Group codes into 2-4 candidate themes, each with a one-sentence 'central organizing concept'. 4. Note negative/disconfirming cases and any code that may need splitting or merging. 5. Write a short reflexivity note on assumptions you brought to the interpretation. OUTPUT FORMAT: A coded-excerpts list (text → code), the codebook as a Markdown table, a themes section, and a reflexivity note. CONSTRAINTS: Codes must stay grounded in the actual words provided — every code needs a real quoted anchor. Do not over-claim saturation from a small excerpt; state that themes are provisional. Avoid imposing themes the data does not support. Keep interpretation transparent so the trail is auditable.
How to use this prompt
- 1
Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.
- 2
Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.
- 3
Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.
Techniques in this prompt
Assigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.
Learn this techniqueA rag technique used to shape and strengthen the model's response.
Forces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.
Learn this techniqueRecommended models
Build on this prompt
Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.
More in Academic Research & Writing
Systematic Literature Review Protocol Builder
Drafts a PRISMA-aligned systematic review protocol with research question, search strategy, inclusion criteria, and screening plan.
Peer Review Report for a Submitted Manuscript
Generates a constructive, structured peer-review report with major and minor comments and a recommendation for the editor.
Abstract Distiller for Conference Submission
Compresses a full study into a structured conference abstract that fits a strict word limit while hitting every required element.
Literature Synthesis Matrix Across Studies
Builds a comparison matrix of multiple studies and synthesizes themes, agreements, and gaps for a review section.