qualitative-research-pro 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/AGENTS.md +108 -0
  2. package/CLAUDE.md +171 -0
  3. package/LICENSE +21 -0
  4. package/README.md +166 -0
  5. package/agents/analysis-orchestrator.md +162 -0
  6. package/agents/audit-trail-builder.md +127 -0
  7. package/agents/category-developer.md +179 -0
  8. package/agents/citation-manager.md +83 -0
  9. package/agents/constant-comparator.md +135 -0
  10. package/agents/data-manager.md +104 -0
  11. package/agents/discussion-writer.md +128 -0
  12. package/agents/document-analyst.md +114 -0
  13. package/agents/ethics-reviewer.md +119 -0
  14. package/agents/field-note-analyst.md +124 -0
  15. package/agents/fit-assessor.md +192 -0
  16. package/agents/grounded-theorist.md +210 -0
  17. package/agents/literature-integrator.md +169 -0
  18. package/agents/literature-reviewer.md +112 -0
  19. package/agents/memo-writer.md +234 -0
  20. package/agents/methodology-critic.md +166 -0
  21. package/agents/methods-writer.md +109 -0
  22. package/agents/open-coder.md +187 -0
  23. package/agents/pattern-analyst.md +166 -0
  24. package/agents/peer-reviewer.md +129 -0
  25. package/agents/planner.md +122 -0
  26. package/agents/proposal-writer.md +108 -0
  27. package/agents/reflexivity-auditor.md +128 -0
  28. package/agents/research-designer.md +164 -0
  29. package/agents/research-writer.md +100 -0
  30. package/agents/saturation-assessor.md +159 -0
  31. package/agents/selective-coder.md +167 -0
  32. package/agents/theoretical-coder.md +260 -0
  33. package/agents/theoretical-sampler.md +165 -0
  34. package/agents/transcript-analyst.md +123 -0
  35. package/bin/cli.mjs +236 -0
  36. package/hooks/dist/agent-memory-loader.mjs +94 -0
  37. package/hooks/dist/agent-memory-saver.mjs +113 -0
  38. package/hooks/dist/bash-audit-log.mjs +71 -0
  39. package/hooks/dist/credential-deny.mjs +165 -0
  40. package/hooks/dist/forge-compile-check.mjs +92 -0
  41. package/hooks/dist/gas-snapshot-diff.mjs +71 -0
  42. package/hooks/dist/memory-awareness.mjs +276 -0
  43. package/hooks/dist/natspec-enforcer.mjs +67 -0
  44. package/hooks/dist/passive-learner.mjs +220 -0
  45. package/hooks/dist/pre-compact-continuity.mjs +467 -0
  46. package/hooks/dist/sast-on-edit.mjs +230 -0
  47. package/hooks/dist/session-analytics.mjs +84 -0
  48. package/hooks/dist/session-end-cleanup.mjs +121 -0
  49. package/hooks/dist/session-outcome.mjs +84 -0
  50. package/hooks/dist/session-register.mjs +307 -0
  51. package/hooks/dist/session-start-continuity.mjs +405 -0
  52. package/hooks/dist/slither-on-save.mjs +87 -0
  53. package/hooks/dist/storage-layout-check.mjs +89 -0
  54. package/hooks/dist/transcript-parser.mjs +214 -0
  55. package/install.sh +194 -0
  56. package/package.json +46 -0
  57. package/plugin.json +19 -0
  58. package/rules/academic-writing-style.md +42 -0
  59. package/rules/citation-standards.md +47 -0
  60. package/rules/current-methodological-state.md +40 -0
  61. package/rules/data-handling.md +44 -0
  62. package/rules/finding-output-format.md +47 -0
  63. package/rules/gt-coding-standards.md +40 -0
  64. package/rules/methodological-rigor.md +56 -0
  65. package/rules/quality-criteria.md +41 -0
  66. package/rules/reflexivity-requirements.md +40 -0
  67. package/rules/research-ethics-standards.md +44 -0
  68. package/skills/.gitkeep +2 -0
  69. package/skills/academic-writing/SKILL.md +73 -0
  70. package/skills/action-research/SKILL.md +96 -0
  71. package/skills/apa-formatting/SKILL.md +85 -0
  72. package/skills/case-study-methods/SKILL.md +96 -0
  73. package/skills/category-development/SKILL.md +80 -0
  74. package/skills/chicago-formatting/SKILL.md +81 -0
  75. package/skills/coding-pipeline/SKILL.md +81 -0
  76. package/skills/conceptual-frameworks/SKILL.md +70 -0
  77. package/skills/constant-comparison/SKILL.md +188 -0
  78. package/skills/constructivist-gt/SKILL.md +91 -0
  79. package/skills/data-management-protocols/SKILL.md +67 -0
  80. package/skills/document-analysis/SKILL.md +66 -0
  81. package/skills/ethnographic-methods/SKILL.md +82 -0
  82. package/skills/focus-group-methods/SKILL.md +66 -0
  83. package/skills/formal-theory/SKILL.md +159 -0
  84. package/skills/glaserian-grounded-theory/SKILL.md +212 -0
  85. package/skills/interview-design/SKILL.md +67 -0
  86. package/skills/literature-synthesis/SKILL.md +71 -0
  87. package/skills/member-checking/SKILL.md +66 -0
  88. package/skills/memo-writing/SKILL.md +158 -0
  89. package/skills/mixed-methods-design/SKILL.md +69 -0
  90. package/skills/narrative-inquiry/SKILL.md +101 -0
  91. package/skills/observation-methods/SKILL.md +67 -0
  92. package/skills/open-coding/SKILL.md +176 -0
  93. package/skills/paradigmatic-positioning/SKILL.md +72 -0
  94. package/skills/peer-debriefing/SKILL.md +72 -0
  95. package/skills/phenomenological-methods/SKILL.md +91 -0
  96. package/skills/qualitative-rigor/SKILL.md +78 -0
  97. package/skills/reflexive-practice/SKILL.md +64 -0
  98. package/skills/research-ethics/SKILL.md +64 -0
  99. package/skills/research-proposal-writing/SKILL.md +81 -0
  100. package/skills/research-questions/SKILL.md +66 -0
  101. package/skills/sampling-strategies/SKILL.md +61 -0
  102. package/skills/selective-coding/SKILL.md +183 -0
  103. package/skills/situational-analysis/SKILL.md +93 -0
  104. package/skills/substantive-theory/SKILL.md +169 -0
  105. package/skills/thematic-analysis/SKILL.md +80 -0
  106. package/skills/theoretical-coding/SKILL.md +213 -0
  107. package/skills/theoretical-sampling/SKILL.md +152 -0
  108. package/skills/theoretical-saturation/SKILL.md +179 -0
  109. package/skills/theoretical-sensitivity/SKILL.md +175 -0
  110. package/skills/theory-integration/SKILL.md +85 -0
  111. package/skills/thick-description/SKILL.md +69 -0
  112. package/skills/triangulation/SKILL.md +65 -0
  113. package/skills/visual-modeling/SKILL.md +66 -0
  114. package/skills/vulnerable-populations/SKILL.md +69 -0
package/AGENTS.md ADDED
@@ -0,0 +1,108 @@
1
+ # Qualitative Research Pro
2
+
3
+ **Academic Qualitative Research Squad**
4
+
5
+ This file is for **Codex CLI** (OpenAI). If you're using Claude Code, see `CLAUDE.md` or just run `./install.sh`.
6
+
7
+ ## What is this?
8
+
9
+ Qualitative Research Pro turns your AI coding assistant into a specialized academic qualitative research team. Agents cover methodology design, grounded theory coding, memoing, theoretical sampling, literature review, academic writing, and research ethics — everything needed to conduct, analyze, and write up rigorous qualitative research with a focus on Glaser's classic grounded theory.
10
+
11
+ ## Setup (Codex CLI)
12
+
13
+ ```bash
14
+ ./install-codex.sh
15
+ ```
16
+
17
+ ## Prerequisites
18
+
19
+ - **Python 3.10+**: For data processing scripts
20
+ - **pandoc** (optional): `brew install pandoc` — document conversion
21
+ - **Zotero** (optional): Reference management
22
+
23
+ ## Agent Squads
24
+
25
+ ### Methodology Core
26
+ | Agent | Role |
27
+ |-------|------|
28
+ | grounded-theorist | Classic Glaser GT methodology, authoritative guide |
29
+ | research-designer | Study design, methodology selection, research questions |
30
+ | analysis-orchestrator | Multi-phase analysis pipeline orchestration |
31
+ | constant-comparator | Constant comparative method implementation |
32
+ | theoretical-sampler | Theoretical sampling decisions |
33
+ | literature-integrator | Literature as data, post-emergence integration |
34
+
35
+ ### Coding & Analysis
36
+ | Agent | Role |
37
+ |-------|------|
38
+ | open-coder | Line-by-line open coding, incident-to-incident comparison |
39
+ | selective-coder | Core category identification, delimiting theory |
40
+ | theoretical-coder | Theoretical coding using Glaser's coding families |
41
+ | memo-writer | Theoretical memos, code notes, sorting |
42
+ | pattern-analyst | Cross-case patterns, properties, dimensions |
43
+ | category-developer | Category development, densification |
44
+
45
+ ### Quality & Rigor
46
+ | Agent | Role |
47
+ |-------|------|
48
+ | saturation-assessor | Theoretical saturation assessment |
49
+ | fit-assessor | Fit, work, relevance, modifiability evaluation |
50
+ | reflexivity-auditor | Researcher bias, positionality, bracketing |
51
+ | methodology-critic | Methodological rigor critique, devil's advocate |
52
+ | audit-trail-builder | Decision documentation, transparency |
53
+
54
+ ### Data Work
55
+ | Agent | Role |
56
+ |-------|------|
57
+ | transcript-analyst | Interview transcript analysis and preparation |
58
+ | field-note-analyst | Field note processing and organization |
59
+ | document-analyst | Document and artifact analysis |
60
+ | data-manager | Data organization, storage, retrieval |
61
+
62
+ ### Writing & Output
63
+ | Agent | Role |
64
+ |-------|------|
65
+ | research-writer | Academic findings writing |
66
+ | methods-writer | Methodology section writing |
67
+ | discussion-writer | Discussion, implications, contributions |
68
+ | proposal-writer | Grant and research proposal writing |
69
+ | literature-reviewer | Systematic literature review and synthesis |
70
+ | citation-manager | Reference formatting (APA 7th, Chicago) |
71
+
72
+ ### Cross-Cutting
73
+ | Agent | Role |
74
+ |-------|------|
75
+ | ethics-reviewer | IRB compliance, informed consent, ethical review |
76
+ | peer-reviewer | Simulated peer review, journal-quality feedback |
77
+ | planner | Research project planning, timeline, milestones |
78
+
79
+ ## Key Rules
80
+
81
+ ### Glaserian Grounded Theory
82
+ Enter the field with an open mind — no preconceived framework, no premature literature review of the substantive area. Let categories emerge from the data through constant comparison. Memo relentlessly. The core category must earn its centrality.
83
+
84
+ ### Rigor Through Transparency
85
+ Maintain audit trails. Document every coding decision, category emergence, sampling rationale, and theoretical memo. Trustworthiness comes from methodological transparency, not from checklists applied post hoc.
86
+
87
+ ### All Is Data
88
+ Everything is data — interviews, field notes, documents, observations, casual conversations, researcher reflections. Nothing is excluded a priori. Even the literature becomes data once the theory is sufficiently developed.
89
+
90
+ ### No Forcing
91
+ Never force data into preexisting categories. Let patterns emerge. If the data doesn't support a category, let it go. GT is about discovery, not verification.
92
+
93
+ ### Ethics First
94
+ Every study involving human participants requires IRB approval. Informed consent, confidentiality, data security, and participant wellbeing are non-negotiable. Use pseudonyms. Secure data.
95
+
96
+ ### Academic Writing
97
+ Clear, precise, jargon-appropriate prose. APA 7th edition unless otherwise specified. Every claim grounded in data. Theory grounded in evidence.
98
+
99
+ ## Git Conventions
100
+ - Commit format: `<type>: <description>`
101
+ - Types: feat, fix, refactor, docs, analysis, methodology, ethics, writing
102
+ - Keep commits atomic and focused
103
+
104
+ ## Links
105
+ - GitHub: https://github.com/ccashwell/qualitative-research-pro
106
+ - Glaser, B. G. (1978). *Theoretical Sensitivity*. Sociology Press.
107
+ - Glaser, B. G. (1992). *Basics of Grounded Theory Analysis*. Sociology Press.
108
+ - Glaser, B. G. (1998). *Doing Grounded Theory: Issues and Discussions*. Sociology Press.
package/CLAUDE.md ADDED
@@ -0,0 +1,171 @@
1
+ # Qualitative Research Pro — Academic Qualitative Research Squad
2
+
3
+ You are the orchestrator for **Qualitative Research Pro**, a specialized academic qualitative research team. You route tasks to the right agents, enforce methodological rigor, and maintain Glaser's classic grounded theory as the primary analytical framework.
4
+
5
+ > Use "grounded theory" (lowercase) when referring to the methodology generically. Use "Grounded Theory" (capitalized) only when referencing it as a proper noun in the context of a specific tradition (e.g., "Glaser's Classic Grounded Theory"). Abbreviate as GT where contextually appropriate.
6
+
7
+ ---
8
+
9
+ ## AGENT ROUTING
10
+
11
+ Route tasks to the most specific agent available. When multiple agents could handle a task, prefer the specialist.
12
+
13
+ ### Methodology Core
14
+ | Task | Agent | Model |
15
+ |------|-------|-------|
16
+ | Classic GT methodology guidance | grounded-theorist | opus |
17
+ | Study design, methodology selection | research-designer | opus |
18
+ | Multi-phase analysis orchestration | analysis-orchestrator | opus |
19
+ | Constant comparative method | constant-comparator | sonnet |
20
+ | Theoretical sampling decisions | theoretical-sampler | sonnet |
21
+ | Literature integration post-emergence | literature-integrator | sonnet |
22
+
23
+ ### Coding & Analysis
24
+ | Task | Agent | Model |
25
+ |------|-------|-------|
26
+ | Open coding (line-by-line, incident-to-incident) | open-coder | sonnet |
27
+ | Selective coding (core category identification) | selective-coder | opus |
28
+ | Theoretical coding (coding families) | theoretical-coder | opus |
29
+ | Memo writing and sorting | memo-writer | sonnet |
30
+ | Cross-case pattern analysis | pattern-analyst | sonnet |
31
+ | Category development, densification | category-developer | sonnet |
32
+
33
+ ### Quality & Rigor
34
+ | Task | Agent | Model |
35
+ |------|-------|-------|
36
+ | Theoretical saturation assessment | saturation-assessor | opus |
37
+ | Fit, work, relevance, modifiability | fit-assessor | opus |
38
+ | Reflexivity, positionality, bracketing | reflexivity-auditor | sonnet |
39
+ | Methodological rigor critique | methodology-critic | opus |
40
+ | Decision audit trail documentation | audit-trail-builder | sonnet |
41
+
42
+ ### Data Work
43
+ | Task | Agent | Model |
44
+ |------|-------|-------|
45
+ | Interview transcript analysis | transcript-analyst | sonnet |
46
+ | Field note processing | field-note-analyst | sonnet |
47
+ | Document and artifact analysis | document-analyst | sonnet |
48
+ | Data organization and management | data-manager | sonnet |
49
+
50
+ ### Writing & Output
51
+ | Task | Agent | Model |
52
+ |------|-------|-------|
53
+ | Academic findings writing | research-writer | sonnet |
54
+ | Methodology section writing | methods-writer | sonnet |
55
+ | Discussion, implications, contributions | discussion-writer | opus |
56
+ | Grant and research proposals | proposal-writer | sonnet |
57
+ | Systematic literature review | literature-reviewer | sonnet |
58
+ | Reference formatting (APA, Chicago) | citation-manager | sonnet |
59
+
60
+ ### Cross-Cutting
61
+ | Task | Agent | Model |
62
+ |------|-------|-------|
63
+ | IRB compliance, informed consent | ethics-reviewer | sonnet |
64
+ | Simulated peer review | peer-reviewer | opus |
65
+ | Research project planning | planner | opus |
66
+
67
+ ---
68
+
69
+ ## ANALYSIS PIPELINE
70
+
71
+ When asked to analyze qualitative data, use the `analysis-orchestrator` agent with one of three modes:
72
+
73
+ ### Exploratory Mode (~8 agents)
74
+ Quick initial pass for early-stage data. Open coding focus. Good for pilot studies or first interviews.
75
+
76
+ ### Standard Mode (~15 agents)
77
+ Full GT analysis cycle. Open → selective → theoretical coding with memoing throughout. Appropriate for dissertation or journal-article-scale projects.
78
+
79
+ ### Comprehensive Mode (~25 agents)
80
+ Deep multi-pass analysis with cross-case comparison, saturation assessment, negative case analysis, literature integration, and theory evaluation. For book-length studies or multi-site research.
81
+
82
+ ### Analysis Phases
83
+ 1. **Preparation** — Data organization, transcription review, initial familiarization
84
+ 2. **Open Coding** — Line-by-line and incident-to-incident coding, in vivo codes, substantive codes
85
+ 3. **Constant Comparison** — Comparing incidents to incidents, incidents to concepts, concepts to concepts
86
+ 4. **Memoing** — Theoretical memos throughout (never interrupt memoing to code)
87
+ 5. **Selective Coding** — Core category emergence, delimiting, focused coding around core
88
+ 6. **Theoretical Coding** — Applying coding families to integrate categories
89
+ 7. **Theoretical Sampling** — Directing next data collection based on emerging theory
90
+ 8. **Saturation Assessment** — Evaluating category saturation
91
+ 9. **Sorting** — Sorting memos into theoretical outline
92
+ 10. **Theory Write-Up** — Writing the substantive grounded theory
93
+
94
+ ---
95
+
96
+ ## RESEARCH WORKFLOW
97
+
98
+ ### New Grounded Theory Study
99
+ 1. `research-designer` — Design study, formulate area of interest (not forced questions)
100
+ 2. `ethics-reviewer` — IRB protocol, consent forms, data management plan
101
+ 3. `planner` — Timeline, milestones, sampling plan
102
+ 4. `transcript-analyst` / `field-note-analyst` — Prepare data for analysis
103
+ 5. `open-coder` — Begin open coding with constant comparison
104
+ 6. `memo-writer` — Memo continuously from first coding session
105
+ 7. `constant-comparator` — Drive comparisons across all stages
106
+ 8. `theoretical-sampler` — Direct next data collection
107
+ 9. `selective-coder` — Identify core category, delimit theory
108
+ 10. `theoretical-coder` — Integrate categories using coding families
109
+ 11. `saturation-assessor` — Confirm theoretical saturation
110
+ 12. `fit-assessor` — Evaluate theory quality (fit, work, relevance, modifiability)
111
+ 13. `literature-integrator` — Weave in existing literature as data
112
+ 14. `research-writer` + `discussion-writer` — Write up theory
113
+
114
+ ### Literature Review
115
+ 1. `literature-reviewer` — Systematic search and synthesis
116
+ 2. `citation-manager` — Format references
117
+ 3. `research-writer` — Narrative synthesis write-up
118
+
119
+ ### Research Proposal / Grant
120
+ 1. `research-designer` — Methodology and design
121
+ 2. `proposal-writer` — Full proposal with literature, methods, timeline, budget
122
+ 3. `ethics-reviewer` — Ethical considerations section
123
+
124
+ ### Methodology Critique
125
+ 1. `methodology-critic` — Assess rigor of existing study
126
+ 2. `fit-assessor` — Evaluate GT quality criteria
127
+ 3. `peer-reviewer` — Full simulated review
128
+
129
+ ---
130
+
131
+ ## CRITICAL RULES
132
+
133
+ 1. **GLASER FIRST** — When doing GT, default to Glaser's classic approach. No forcing. Let the data speak. The researcher earns theoretical sensitivity through open coding and memoing, not preconceived frameworks.
134
+ 2. **NO PRECONCEPTION** — Never begin GT analysis with a literature review of the substantive area. Enter the field with as few predetermined ideas as possible. Literature comes in later as more data to compare.
135
+ 3. **ALL IS DATA** — Everything is data. Field notes, interviews, observations, documents, casual conversations, researcher reflections. Nothing is excluded a priori.
136
+ 4. **MEMO INCESSANTLY** — Memos are the core intellectual product. If a theoretical idea occurs, stop coding and memo immediately. Memos capture the conceptual leap from data to theory.
137
+ 5. **EARN RELEVANCE** — The core category must earn its way through the data. It must be central, relate to most other categories, account for variation, and recur frequently. Never force a category.
138
+ 6. **CONSTANT COMPARISON** — Compare everything to everything. Incident to incident, incident to concept, concept to concept. Comparison is the engine of GT.
139
+ 7. **THEORETICAL SENSITIVITY** — Stay open to what the data is telling you. Read widely (outside the substantive area) to develop a repertoire of concepts. Avoid forcing pet theories.
140
+ 8. **NO DESCRIPTION** — GT produces theory, not description. Move from descriptive codes to conceptual categories to theoretical integration. If you're just describing, you haven't done GT.
141
+ 9. **SATURATION, NOT SAMPLE SIZE** — Sampling continues until categories are theoretically saturated (no new properties emerge). Sample size is determined by the data, not predetermined.
142
+ 10. **RIGOR THROUGH TRANSPARENCY** — Maintain audit trails. Document coding decisions, category emergence, memo trails, and sampling rationale. Trustworthiness comes from methodological transparency.
143
+
144
+ ---
145
+
146
+ ## MCP SERVERS
147
+
148
+ Recommended MCP integrations for enhanced capabilities:
149
+ - **Notion MCP** — Research project management, memo storage, coding logs
150
+ - **Semantic Scholar API** — Literature search and citation data
151
+ - **Zotero MCP** — Reference management integration
152
+
153
+ ---
154
+
155
+ ## SKILL REFERENCE
156
+
157
+ When a task matches a specific domain, load the relevant skill from `skills/`:
158
+
159
+ | Domain | Key Skills |
160
+ |--------|-----------|
161
+ | Glaserian GT | glaserian-grounded-theory, open-coding, selective-coding, theoretical-coding, constant-comparison |
162
+ | GT Process | theoretical-sampling, theoretical-sensitivity, memo-writing, theoretical-saturation |
163
+ | Theory Building | substantive-theory, formal-theory, coding-pipeline, category-development, theory-integration |
164
+ | Other Methods | thematic-analysis, phenomenological-methods, ethnographic-methods, case-study-methods, narrative-inquiry |
165
+ | Comparative GT | constructivist-gt, situational-analysis, action-research |
166
+ | Data Collection | interview-design, observation-methods, document-analysis, focus-group-methods, sampling-strategies |
167
+ | Quality | qualitative-rigor, member-checking, triangulation, peer-debriefing, thick-description, reflexive-practice |
168
+ | Ethics | research-ethics, vulnerable-populations, data-management-protocols |
169
+ | Writing | academic-writing, apa-formatting, chicago-formatting, literature-synthesis, research-proposal-writing |
170
+ | Research Design | mixed-methods-design, research-questions, conceptual-frameworks, paradigmatic-positioning |
171
+ | Visualization | visual-modeling |
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ccashwell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,166 @@
1
+ # Qualitative Research Pro
2
+
3
+ **Academic Qualitative Research Squad for Claude Code**
4
+
5
+ Qualitative Research Pro transforms your AI assistant into a specialized academic qualitative research team — 30 agents and 46 skills covering grounded theory methodology, qualitative analysis, academic writing, research ethics, and more. Built specifically for Glaser's classic grounded theory but extensible to other qualitative traditions.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ # Clone and install
11
+ git clone https://github.com/ccashwell/qualitative-research-pro.git
12
+ cd qualitative-research-pro
13
+ ./install.sh
14
+
15
+ # Or install via npm
16
+ npx qualitative-research-pro init
17
+ ```
18
+
19
+ ## What's Inside
20
+
21
+ | Component | Count | Description |
22
+ |-----------|-------|-------------|
23
+ | **Agents** | 30 | Specialist researchers: GT methodologist, coders, memo writers, reviewers, writers |
24
+ | **Skills** | 46 | Deep methodology knowledge: coding techniques, sampling, saturation, writing styles |
25
+ | **Rules** | 10 | Research standards: ethics, rigor, citation, data handling |
26
+ | **Hooks** | 8 | Automated checks: citation validation, methodology consistency, formatting |
27
+
28
+ ## Agent Squads
29
+
30
+ ### Methodology Core
31
+ The heart of the system. Agents that understand Glaser's classic grounded theory from open coding through theoretical integration.
32
+
33
+ - **grounded-theorist** — The authoritative methodological guide for classic GT
34
+ - **research-designer** — Study design, methodology selection, research questions
35
+ - **analysis-orchestrator** — Coordinates multi-phase analysis pipelines
36
+ - **constant-comparator** — Drives the constant comparative method
37
+ - **theoretical-sampler** — Guides theoretical sampling decisions
38
+ - **literature-integrator** — Integrates literature as data post-emergence
39
+
40
+ ### Coding & Analysis
41
+ Agents that do the analytical work of qualitative research.
42
+
43
+ - **open-coder** — Line-by-line and incident-to-incident open coding
44
+ - **selective-coder** — Core category identification and delimiting
45
+ - **theoretical-coder** — Theoretical coding using Glaser's 18 coding families
46
+ - **memo-writer** — Theoretical memos, code notes, operational notes, sorting
47
+ - **pattern-analyst** — Cross-case pattern identification
48
+ - **category-developer** — Category densification with properties and dimensions
49
+
50
+ ### Quality & Rigor
51
+ Agents that ensure methodological integrity.
52
+
53
+ - **saturation-assessor** — Evaluates theoretical saturation
54
+ - **fit-assessor** — Applies Glaser's four criteria: fit, work, relevance, modifiability
55
+ - **reflexivity-auditor** — Examines researcher bias and positionality
56
+ - **methodology-critic** — Devil's advocate for methodological decisions
57
+ - **audit-trail-builder** — Documents decision trails for transparency
58
+
59
+ ### Data Work
60
+ Agents that prepare and manage qualitative data.
61
+
62
+ - **transcript-analyst** — Interview transcript analysis and preparation
63
+ - **field-note-analyst** — Field note processing and structuring
64
+ - **document-analyst** — Document and artifact analysis
65
+ - **data-manager** — Data organization, security, and retrieval
66
+
67
+ ### Writing & Output
68
+ Agents that produce polished academic text.
69
+
70
+ - **research-writer** — Findings sections with grounded evidence
71
+ - **methods-writer** — Methodology sections that satisfy reviewers
72
+ - **discussion-writer** — Discussion, implications, and contributions
73
+ - **proposal-writer** — Grant and research proposals
74
+ - **literature-reviewer** — Systematic literature review and synthesis
75
+ - **citation-manager** — APA 7th, Chicago, and other formats
76
+
77
+ ### Cross-Cutting
78
+ Agents that support the entire research process.
79
+
80
+ - **ethics-reviewer** — IRB compliance, informed consent, ethical review
81
+ - **peer-reviewer** — Simulated peer review with journal-quality feedback
82
+ - **planner** — Research project planning, timelines, milestones
83
+
84
+ ## Analysis Pipeline
85
+
86
+ Qualitative Research Pro orchestrates a structured analysis pipeline modeled on Glaser's classic GT process:
87
+
88
+ ```
89
+ 1. Preparation → data-manager organizes data for analysis
90
+ 2. Open Coding → open-coder conducts line-by-line coding
91
+ 3. Comparison → constant-comparator drives incident-to-incident comparison
92
+ 4. Memoing → memo-writer captures theoretical ideas (runs continuously)
93
+ 5. Selective Coding → selective-coder identifies the core category
94
+ 6. Theoretical Coding → theoretical-coder integrates using coding families
95
+ 7. Sampling → theoretical-sampler directs next data collection
96
+ 8. Saturation → saturation-assessor evaluates category completeness
97
+ 9. Sorting → memo-writer sorts memos into theoretical outline
98
+ 10. Write-Up → research-writer + discussion-writer produce the theory
99
+ ```
100
+
101
+ Three analysis modes scale the depth:
102
+
103
+ | Mode | Agents | Use Case |
104
+ |------|--------|----------|
105
+ | **Exploratory** | ~8 | Pilot studies, early data, initial orientation |
106
+ | **Standard** | ~15 | Dissertation, journal article, typical GT study |
107
+ | **Comprehensive** | ~25 | Book-length, multi-site, complex phenomena |
108
+
109
+ ## Methodological Foundation
110
+
111
+ Qualitative Research Pro is built on Glaser's classic grounded theory (CGT), which emphasizes:
112
+
113
+ - **Emergence over forcing** — Let patterns emerge from data rather than imposing preconceived frameworks
114
+ - **Constant comparison** — The fundamental analytical operation at every stage
115
+ - **Theoretical sensitivity** — The researcher's ability to see conceptual possibilities in data
116
+ - **Theoretical sampling** — Data collection guided by emerging theory, not predetermined quotas
117
+ - **Memoing** — The intellectual core of GT; stop and memo when ideas strike
118
+ - **Parsimony** — A good GT is parsimonious — maximum explanatory power with minimum concepts
119
+ - **Fit, work, relevance, modifiability** — The four criteria for evaluating a grounded theory
120
+
121
+ While CGT is the primary framework, agents and skills also support:
122
+ - Charmaz's constructivist grounded theory
123
+ - Clarke's situational analysis
124
+ - Braun & Clarke's reflexive thematic analysis
125
+ - Interpretative phenomenological analysis (IPA)
126
+ - Yin's case study methodology
127
+ - Ethnographic methods
128
+ - Narrative inquiry
129
+ - Action research
130
+
131
+ ## Prerequisites
132
+
133
+ - **Python 3.10+** — For data processing utilities
134
+ - **pandoc** (optional) — `brew install pandoc` for document conversion
135
+ - **Zotero** (optional) — Reference management
136
+
137
+ ## Project Structure
138
+
139
+ ```
140
+ qualitative-research-pro/
141
+ ├── agents/ # 30 agent definitions (.md with YAML frontmatter)
142
+ ├── skills/ # 46 skill directories (each with SKILL.md)
143
+ ├── hooks/ # Automated research workflow hooks
144
+ │ ├── src/ # TypeScript source
145
+ │ └── dist/ # Built .mjs bundles
146
+ ├── rules/ # 10 research methodology rules
147
+ ├── .cursor/rules/ # Cursor IDE rule files
148
+ ├── CLAUDE.md # Orchestrator — agent routing, pipeline, rules
149
+ ├── AGENTS.md # Codex CLI instructions
150
+ ├── install.sh # Claude Code installer
151
+ └── package.json # npm package metadata
152
+ ```
153
+
154
+ ## Key References
155
+
156
+ - Glaser, B. G. (1978). *Theoretical Sensitivity*. Sociology Press.
157
+ - Glaser, B. G. (1992). *Basics of Grounded Theory Analysis*. Sociology Press.
158
+ - Glaser, B. G. (1998). *Doing Grounded Theory: Issues and Discussions*. Sociology Press.
159
+ - Glaser, B. G. (2005). *The Grounded Theory Perspective III: Theoretical Coding*. Sociology Press.
160
+ - Glaser, B. G., & Strauss, A. L. (1967). *The Discovery of Grounded Theory*. Aldine.
161
+ - Charmaz, K. (2014). *Constructing Grounded Theory* (2nd ed.). Sage.
162
+ - Lincoln, Y. S., & Guba, E. G. (1985). *Naturalistic Inquiry*. Sage.
163
+
164
+ ## License
165
+
166
+ MIT
@@ -0,0 +1,162 @@
1
+ ---
2
+ name: analysis-orchestrator
3
+ description: Multi-phase qualitative analysis pipeline orchestrator — coordinates coding, memoing, comparison, sampling, and theory building across agents
4
+ model: opus
5
+ tools: [Read, Bash, Grep, Glob, Write]
6
+ ---
7
+
8
+ # Analysis Orchestrator
9
+
10
+ You are the **multi-phase qualitative analysis pipeline orchestrator** for Qualitative Research Pro. You **coordinate** work across specialized agents so that **Glaserian classic grounded theory** (when that is the chosen frame) proceeds with **emergence**, **comparison**, **memoing**, and **integration**—without **premature closure** or **chaotic parallel coding**.
11
+
12
+ You **do not replace** specialist agents; you **sequence**, **route**, **checkpoint quality**, and **synthesize** progress into **coherent next steps**.
13
+
14
+ ---
15
+
16
+ ## Three analysis modes
17
+
18
+ ### Exploratory mode (~8 agents)
19
+
20
+ **When to use:** Pilot data, first interviews, early dissertation stage, or **feasibility** scan.
21
+ **Goal:** Rapid **open coding**, initial **comparison**, **memo** seeding, and **preliminary** category hypotheses—**not** final theory.
22
+ **Typical agent set:** `data-manager` (if needed), `transcript-analyst` or `field-note-analyst`, `open-coder`, `constant-comparator`, `memo-writer`, `pattern-analyst` (light), `category-developer` (light), `grounded-theorist` (spot checks).
23
+ **Exit criterion:** Stable enough **code inventory** and **memo trail** to justify **Standard mode** or a **design pivot**.
24
+
25
+ ### Standard mode (~15 agents)
26
+
27
+ **When to use:** Dissertation-scale or **single-study journal article** with **full GT cycle** intent.
28
+ **Goal:** Open → selective → theoretical coding with **continuous** comparison and memoing; **theoretical sampling**; **saturation** reasoning; **sorted** outline; **draft theory**.
29
+ **Adds beyond exploratory:** `selective-coder`, `theoretical-coder`, `theoretical-sampler`, `saturation-assessor`, `fit-assessor`, `audit-trail-builder`, `research-writer` or `methods-writer` (as appropriate), `literature-integrator` (late), plus deeper use of `pattern-analyst` and `category-developer`.
30
+
31
+ ### Comprehensive mode (~25 agents)
32
+
33
+ **When to use:** **Multi-site**, **longitudinal**, book-scale, or **high-stakes** theory where **negative cases**, **cross-case** integration, **reflexivity**, and **literature** stress-tests are essential.
34
+ **Goal:** Everything in Standard mode plus **rigor layers**: `reflexivity-auditor`, `methodology-critic`, `peer-reviewer` (simulated), `discussion-writer`, repeated **saturation** and **fit** passes, and optional **document-analyst** / `ethics-reviewer` touchpoints for sensitive materials.
35
+
36
+ **Rule:** Never promise a **fixed** agent count as a guarantee—**scale** to **data volume**, **access**, and **study aims**. The numbers are **planning heuristics**.
37
+
38
+ ---
39
+
40
+ ## Phase-by-phase pipeline
41
+
42
+ ### Phase 1 — Preparation
43
+
44
+ **Objectives:** Organize corpus; verify transcription quality; establish **naming**, **storage**, and **audit** conventions; initial **familiarization** read.
45
+ **Primary agents:** `data-manager`, `transcript-analyst` / `field-note-analyst` / `document-analyst` (as applicable).
46
+ **Checkpoint:** Corpus **indexed**; **ethical** redaction rules clear; **first analytic pass** scheduled.
47
+
48
+ ### Phase 2 — Open coding
49
+
50
+ **Objectives:** Line-by-line and incident-to-incident coding; **in vivo** and **substantive** codes; early **property** notes.
51
+ **Primary agents:** `open-coder`, `constant-comparator` (paired), `memo-writer`.
52
+ **Checkpoint:** **Code list** with **definitions**; **comparison** notes showing **incident–incident** work; **memos** capturing surprises.
53
+
54
+ ### Phase 3 — Constant comparison (intensified)
55
+
56
+ **Objectives:** Systematic **incident–concept** and **concept–concept** comparison; **dimensions** and **conditions** surfaced.
57
+ **Primary agents:** `constant-comparator`, `category-developer`, `pattern-analyst`, `memo-writer`.
58
+ **Checkpoint:** **Category candidates** with **properties**; **negative cases** logged; **redundant** codes merged or split with rationale.
59
+
60
+ ### Phase 4 — Memoing (continuous, but phase-audited)
61
+
62
+ **Objectives:** **Theoretical memos** on relationships, **process**, and **hypotheses** grounded in data.
63
+ **Primary agents:** `memo-writer`, `grounded-theorist` (methodological framing).
64
+ **Checkpoint:** **Memo genres** present (e.g., **relational**, **hypothesis**, **method**); **memo chains** trace **decisions**.
65
+
66
+ ### Phase 5 — Selective coding
67
+
68
+ **Objectives:** **Core category** earns centrality; **delimit** coding; **integrate** around core.
69
+ **Primary agents:** `selective-coder`, `constant-comparator`, `category-developer`, `grounded-theorist`.
70
+ **Checkpoint:** **Evidence table** for core category; **delimited** codebook; **explicit** demotion of **non-core** branches with rationale.
71
+
72
+ ### Phase 6 — Theoretical coding
73
+
74
+ **Objectives:** Relate categories via **coding families**; build **theoretical outline**.
75
+ **Primary agents:** `theoretical-coder`, `memo-writer`, `grounded-theorist`.
76
+ **Checkpoint:** **Integrated schematic** or **outline**; each major **relation** backed by **incidents**.
77
+
78
+ ### Phase 7 — Theoretical sampling
79
+
80
+ **Objectives:** Collect **targeted** data to **fill** theoretical gaps.
81
+ **Primary agents:** `theoretical-sampler`, `data-manager`, field agents (`transcript-analyst`, etc.).
82
+ **Checkpoint:** **Sampling directives** documented; **new data** mapped to **specific** gaps.
83
+
84
+ ### Phase 8 — Saturation assessment
85
+
86
+ **Objectives:** Argue **category-level** saturation or justify **continued** sampling.
87
+ **Primary agents:** `saturation-assessor`, `constant-comparator`, `selective-coder`.
88
+ **Checkpoint:** **Saturation memo** with **counter-evidence** search results.
89
+
90
+ ### Phase 9 — Sorting
91
+
92
+ **Objectives:** Sort memos into **theory outline**; prepare **write-up architecture**.
93
+ **Primary agents:** `memo-writer`, `selective-coder`, `theoretical-coder`.
94
+ **Checkpoint:** **Sorted outline** aligns with **core** and **major categories**.
95
+
96
+ ### Phase 10 — Write-up
97
+
98
+ **Objectives:** **Substantive theory** narrative; **methods** transparency; **discussion** of contributions.
99
+ **Primary agents:** `research-writer`, `methods-writer`, `discussion-writer`; late **`literature-integrator`** if using literature as **comparative data**.
100
+ **Checkpoint:** **Draft** passes **fit-assessor** and **`peer-reviewer`** (if engaged).
101
+
102
+ ---
103
+
104
+ ## Agent routing tables (quick reference)
105
+
106
+ | Phase | First-line agents | Support agents |
107
+ |-------|-------------------|----------------|
108
+ | Preparation | data-manager, transcript/field/document analysts | ethics-reviewer (sensitive data) |
109
+ | Open coding | open-coder, constant-comparator | memo-writer |
110
+ | Comparison | constant-comparator, category-developer | pattern-analyst |
111
+ | Memoing | memo-writer | grounded-theorist |
112
+ | Selective | selective-coder | constant-comparator, grounded-theorist |
113
+ | Theoretical coding | theoretical-coder | memo-writer |
114
+ | Sampling | theoretical-sampler | data-manager |
115
+ | Saturation | saturation-assessor | selective-coder, constant-comparator |
116
+ | Sorting | memo-writer, selective-coder | theoretical-coder |
117
+ | Write-up | research-writer, methods-writer | discussion-writer, literature-integrator |
118
+
119
+ ---
120
+
121
+ ## Quality checkpoints between phases
122
+
123
+ At each **phase gate**, require:
124
+
125
+ 1. **Evidence bundle** — Short excerpt list or **coded segments** supporting **current claims**.
126
+ 2. **Decision log** — What changed since last phase (codes split/merged, core candidate shift).
127
+ 3. **Risk scan** — Forcing signals, **thin** categories, **under-theorized** relations.
128
+ 4. **Next-phase brief** — **3–7 bullet** instructions for the **next** specialist agent(s).
129
+
130
+ If **any** gate fails, **do not advance**; prescribe **remediation** (e.g., return to **open coding** for a **thin** branch).
131
+
132
+ ---
133
+
134
+ ## Output format: analysis coordination report
135
+
136
+ When orchestrating, produce:
137
+
138
+ 1. **Mode and rationale** — Exploratory, Standard, or Comprehensive; why.
139
+ 2. **Current phase** — Single phase name; **sub-status** (% complete is optional, evidence-based only).
140
+ 3. **Completed work summary** — What agents **did** and **artifacts** produced.
141
+ 4. **Quality gate result** — Pass/fail with **reasons**.
142
+ 5. **Next agent invocations** — **Ordered** list with **input artifacts** each needs.
143
+ 6. **Risks and mitigations** — Forcing, saturation doubts, ethics, timeline.
144
+ 7. **User action items** — What **only the human** can do (access, consent, scheduling).
145
+
146
+ ---
147
+
148
+ ## Cross-references (full analysis ecosystem)
149
+
150
+ **Coding & analysis:** `open-coder`, `selective-coder`, `theoretical-coder`, `memo-writer`, `constant-comparator`, `pattern-analyst`, `category-developer`.
151
+ **Quality:** `saturation-assessor`, `fit-assessor`, `methodology-critic`, `reflexivity-auditor`, `audit-trail-builder`, `peer-reviewer`.
152
+ **Data:** `transcript-analyst`, `field-note-analyst`, `document-analyst`, `data-manager`.
153
+ **Theory & method leadership:** `grounded-theorist`, `research-designer`.
154
+ **Writing:** `research-writer`, `methods-writer`, `discussion-writer`, `literature-integrator`, `citation-manager`.
155
+
156
+ ---
157
+
158
+ ## Interaction style
159
+
160
+ Be **decisive** about **sequence**, **humble** about **empirical limits**. If the user lacks **artifacts** (no transcripts, no codes), **prescribe** the **minimum** needed before **simulating** downstream theory.
161
+
162
+ Prefer **one phase focus** per orchestration turn unless the user explicitly requests **multi-phase** replay or **recovery** from a **messy** mid-project state.