hermes

Build a qualitative codebook

Builds a codebook and coding procedure for qualitative data, with definitions, inclusion and exclusion rules, verbatim examples and an inter-rater check. Use before coding interviews or open text.

context

A codebook makes qualitative coding consistent, teachable and auditable. Codes that are only labels drift: two coders apply "frustration" to different things, and themes built on them do not hold up. The structure used in team-based qualitative research is, for each code, a short name, a full definition, when to use it, when not to use it, and real examples, including the near-misses that belong to another code. The codebook is a living document that changes during coding, and every change is logged.

task

Build a draft codebook ( approach) for this research question:

research question

Data sample:

data

  1. Read the whole sample before naming any code.
  2. Derive codes according to the approach: inductive codes from patterns in the data; deductive codes from the framework the user names (ask for it if "deductive" was chosen and none is named); hybrid starts from any named framework and adds data-driven codes where the framework does not fit.
  3. Organise codes into a frame of 5 to 15 parent codes, with child codes only where they will be analysed separately. Keep codes at the same level of abstraction and mutually distinguishable.
  4. For each code write: name, short definition, full definition, inclusion criteria, exclusion criteria (pointing to the code to use instead), a typical example, an atypical example and a "close but no" example where the sample has one.
  5. Write a coding procedure: unit of coding, whether segments can carry several codes, how to handle uncodable text, and how to propose a new code.
  6. Write an inter-rater check suited to the approach.
constraints
  • Every example is a verbatim quote from the data sample, with its location (participant or line) if given. If the sample has no example for a field, write "no example in sample yet". Never invent quotes.
  • Codes must answer the research question; note interesting material outside it under Limits instead of coding it.
  • For the inter-rater check, recommend two coders independently double-coding about 10 to 20 percent of the data, an agreement statistic suited to the design (Cohen's kappa for two coders, Krippendorff's alpha for more coders or missing data), discussion of disagreements and a codebook revision. If the user follows reflexive thematic analysis, say that reliability statistics do not fit that approach and offer a reflexive audit trail and team discussion instead.
  • If the sample is too small to support a codebook (for example one short interview), say so and label every code provisional.
  • If the sample appears to contain names or other identifying details, point them out and recommend de-identifying before sharing further.
output format

Coding frame

The code hierarchy as a nested list.

Codebook

For each code, a block: Name · Short definition · Full definition · Use when · Do not use when (use X instead) · Typical example · Atypical example · Close but no.

Coding procedure

Numbered rules.

Inter-rater check

Steps, the statistic, the agreement threshold to aim for, and what happens when it is not met.

Limits of this draft

Bullets: thin codes, material outside the question, what more data would change.

2 required values still a placeholder; the assistant will ask for them.

details

kind
Prompt: a task you run by name to get one finished thing back
domain
Research and science
category
Research methods
level
Intermediate
made for
Researcher / scientist, UX researcher, Student
risk
read-only
version
v1.0.0 · experimental
reviewed
2026-10-02
works in
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md, ChatGPT, claude.ai

Edit on GitHubReport a problem

use in

Hodios CLI
npx @hermes-hq/hodios install build-qualitative-codebook --target claude-code
Agent Skills
npx skills add hermes-hq/hodios-dist --skill build-qualitative-codebook -a claude-code
Add the Hodios marketplace (once)
claude plugin marketplace add hermes-hq/hodios-dist
Install the research-science plugin
claude plugin install hodios-research-science@hodios

The plugin brings every entry in this domain at once.

PromptResearch methods

Design a research study

Designs a study from a research question to hypotheses, design, variables, sampling and sample size, a pre-specified analysis plan and threats to validity. Use before collecting any data.

design-research-study
PersonaResearch methods

Research methodologist

Research methodologist who probes study designs for validity threats, matches methods to questions and asks what evidence would change the conclusion. Use as a sparring partner for any study.

research-methodologist
PromptResearch methods

Write a survey questionnaire

Writes an unbiased questionnaire for a stated research aim, with construct mapping, appropriate response scales, skip logic and a pilot checklist. Use before fielding any survey.

write-survey-questionnaire
PromptResearch methods

Plan a PhD or long research project timeline

Builds a PhD or multi-year research project timeline with phases, milestones, a chapter and paper plan, buffers and a monthly check-in routine, working back from the end date. For doctoral students.

plan-phd-timeline
PromptResearch methods

Refine a vague topic into a research question

Refines a vague topic into researchable questions using FINER and PICO-style frameworks, with variants by scope, feasibility notes and the literature to check first. For students and researchers.

refine-research-question
PromptResearch methods

Run a reflexive thematic analysis

Runs reflexive thematic analysis on qualitative data through familiarisation, initial codes, candidate themes with quotes, review and definitions. For qualitative researchers.

run-thematic-analysis