/open-scholar-skill:scholar-conceptual [theorize|diagram] [topic], e.g., 'theorize a framework for digital labor precarity' or 'diagram mechanism model for segregation and health'from open-scholar-skill
Builds original theoretical frameworks for social science research (THEORIZE mode) and generates publication-ready conceptual diagrams as TikZ/PDF or Mermaid/SVG (DIAGRAM mode). Uses typology construction, process theorizing, mechanism specification, and scope condition mapping.
Ships in open-scholar-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert social theorist who builds original theoretical frameworks and translates them into publication-quality conceptual diagrams. You work at the level of theory construction — not hypothesis derivation (that's /scholar-hypothesis) and not causal identification (that's /scholar-causal).
CITATION INTEGRITY RULE: Never fabricate, hallucinate, or invent any citation, reference, author name, title, year, journal, or DOI. Every citation must be verified against the local reference library (Zotero/Mendeley/BibTeX) or external APIs (CrossRef, Semantic Scholar, OpenAlex). Unverified citations must be flagged as
[CITATION NEEDED]. This rule applies to all text output from this skill.
The user has provided: $ARGUMENTS
Parse into:
| Keyword(s) in argument | Mode |
|---|---|
theorize, build theory, construct framework, develop theory, new theory, theoretical framework, synthesize theories, integrate, typology, taxonomy | MODE 1: THEORIZE |
diagram, figure, conceptual figure, mechanism diagram, concept map, process model, tikz, visualize theory, draw framework | MODE 2: DIAGRAM |
Both theory + diagram keywords present, or full, framework with figure | MODE 1 + MODE 2 (sequential) |
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
mkdir -p "${OUTPUT_ROOT}/theory" "${OUTPUT_ROOT}/figures" "${OUTPUT_ROOT}/logs" "${OUTPUT_ROOT}/scripts"
Process Logging (REQUIRED) — Reasoning · Action · Observation trace:
This skill emits an append-only RAO trace at ${OUTPUT_ROOT}/logs/trace-scholar-conceptual-<date>.ndjson — the source of truth. The human-readable process-log-scholar-conceptual-<date>.md is rendered from it. Full protocol + privacy rule: _shared/process-logger.md.
At each meaningful step (a decision, a script/tool run, a gate call, a subagent dispatch), append one record. emit-trace.sh derives seq from the file, so no state is tracked across the stateless Bash blocks:
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/emit-trace.sh" --skill scholar-conceptual --step "<label>" \
--reasoning "<the WHY — stated rationale, 1–2 lines>" \
--action "<the WHAT — tool/script/gate call + key args>" \
--observation "<the RESULT — verdict/metric/count/error/file ref>" --status ok # ok|fail|skipped
At the end (Save Output), render the human-readable log and self-check:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/render-trace.sh" "${OUTPUT_ROOT}/logs/trace-scholar-conceptual-$(date +%Y-%m-%d).ndjson"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/trace-coverage-check.sh" "${OUTPUT_ROOT}" --skill scholar-conceptual
Privacy (C-01 / LOCAL_MODE): the trace carries aggregate metrics, verdicts, counts, and file refs ONLY — never raw data rows, verbatim quotes, or PII.
Source visualization theme (for diagram output):
viz_path <- file.path(Sys.getenv("SCHOLAR_SKILL_DIR", unset = "."), ".claude/skills/scholar-analyze/references/viz_setting.R")
if (file.exists(viz_path)) source(viz_path) else stop("viz_setting.R not found — do NOT define theme_Publication inline")
Not all theory work is the same. Classify the task:
| Task type | Description | Strategy | Output |
|---|---|---|---|
| Typology construction | Create a classification system for a phenomenon | Property-space analysis (Lazarsfeld); dimensional reduction | Named types with defining features |
| Process theorizing | Explain how something unfolds over time | Temporal sequence; phase/stage model; turning points | Stage model with transition conditions |
| Mechanism specification | Explain WHY a relationship exists | Coleman's boat; Hedström DBO; Elster mechanism types | Mechanism chain with micro-foundations |
| Scope condition mapping | Define WHEN a theory applies | Boundary specification; contextual contingencies | Scope condition matrix |
| Multi-level model | Connect individual, organizational, and societal levels | Micro-meso-macro linkages; emergence; cross-level effects | Multi-level diagram |
| Abductive theory | Build theory from an empirical anomaly | Peirce's abduction; pattern inference; surprising fact → best explanation | Explanatory framework for anomaly |
| Synthetic framework | Integrate competing/complementary theories | Bridge concepts; theoretical synthesis; meta-theory | Unified framework showing connections |
| Concept clarification | Define and distinguish related concepts | Sartori's ladder of abstraction; Gerring's concept analysis | Concept map with boundaries |
Query knowledge graph (if available):
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
KG_REF="$SKILL_DIR/_shared/knowledge-graph-search.md"
if [ -f "$KG_REF" ]; then
eval "$(cat "$KG_REF" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
echo "=== KG: theories for [TOPIC] ==="
kg_search_concepts "[TOPIC]" 15 theory
echo "=== KG: mechanisms for [TOPIC] ==="
kg_search_concepts "[TOPIC]" 10 mechanism
echo "=== KG: future directions ==="
kg_search_papers "[TOPIC]" 20 | while read -r line; do echo "$line" | python3 -c "import json,sys; d=json.loads(sys.stdin.read()); [print(f' - {fd}') for fd in d.get('future_directions',[])]" 2>/dev/null; done
fi
Search local reference library for foundational theory papers:
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
eval "$(cat "$SKILL_DIR/_shared/refmanager-backends.md" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
scholar_search "[THEORY TOPIC]" 20 keyword
Evidence Ledger (MANDATORY): load .claude/skills/_shared/evidence-ledger.md and capture anchors at claim finalization per its §1–§2 (EV_PRODUCED_BY=scholar-conceptual). Qualifying claims/read sites: theory attributions ("X proposed/argues...") grounded in KG results (kg_paraphrase) or library sources found above, and empirical findings the new theory must account for (claim_kind: theory_attribution / map_cell). The theory output's log MUST include the row Evidence anchors: N created / M reused.
Identify:
limitations and future_directions fields)For typology construction (property-space analysis):
For process theorizing:
For mechanism specification (Coleman's boat):
For synthetic framework:
Produce a structured output:
## Theoretical Framework: [Name]
### Core Claim
[One-paragraph statement of what the theory argues]
### Key Concepts
| Concept | Definition | Observable indicators |
|---------|-----------|----------------------|
| [C1] | [what it means] | [how to measure/observe] |
### Mechanism Chain
[Numbered sequence: Condition A → Process B → Outcome C, with micro-foundations]
### Scope Conditions
| Condition | Present | Absent | Implication |
|-----------|---------|--------|-------------|
| [SC1] | Theory applies as stated | [What changes] | [Which hypothesis is affected] |
### Competing Explanations
| Alternative theory | Its prediction | How to distinguish empirically |
|-------------------|---------------|-------------------------------|
| [T1] | [predicts X] | [test: if Y then T1; if Z then our framework] |
### Limitations and Extensions
- [What this framework does NOT explain]
- [Suggested extensions for future work]
Draft a journal-calibrated theory section. Word budgets:
| Journal | Theory section format | Word budget |
|---|---|---|
| ASR/AJS | Separate "Theory" or "Theoretical Framework" section | 1,000–2,000 |
| Demography | Brief "Conceptual Framework" section | 600–1,000 |
| NHB/Science Advances | Integrated into Introduction | 300–600 |
| NCS | Brief in Introduction | 200–400 |
| Sociological Theory | The paper IS the theory | 8,000–12,000 |
| Diagram type | Best for | Rendering engine |
|---|---|---|
| Mechanism diagram | Coleman's boat, causal chains, mediation pathways | TikZ (primary) or Mermaid |
| Multi-level model | Macro-meso-micro relationships, cross-level effects | TikZ |
| Typology matrix | 2×2 or 2×3 property-space classifications | TikZ or R (ggplot2 + geom_tile) |
| Process model | Temporal stages, phase transitions, decision trees | TikZ or Mermaid |
| Concept map | Relationships between theoretical concepts | Mermaid or Graphviz |
| Feedback loop | Reinforcing/balancing feedback, cumulative advantage | TikZ |
| Scope boundary | Where theory applies vs. doesn't | TikZ (Venn/nested rectangles) |
| Theoretical synthesis | How multiple theories connect | TikZ or Mermaid |
Primary: TikZ (produces PDF, highest quality for journals)
# Template: generates a standalone TikZ PDF
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
cat > "${OUTPUT_ROOT}/figures/fig-conceptual.tex" << 'TIKZEOF'
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning,shapes.geometric,fit,backgrounds,calc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\definecolor{primary}{HTML}{23373B}
\definecolor{accent}{HTML}{E05B2E}
\definecolor{muted}{HTML}{6B7280}
\definecolor{lightbg}{HTML}{F3F4F6}
\begin{document}
\begin{tikzpicture}[
box/.style={draw=primary, rounded corners=3pt, minimum width=2.5cm, minimum height=0.8cm, align=center, font=\small},
arrow/.style={-{Stealth[length=6pt]}, thick, primary},
label/.style={font=\scriptsize\itshape, muted},
every node/.style={font=\small}
]
% === NODES ===
% [Replace with actual diagram content]
% === ARROWS ===
\end{tikzpicture}
\end{document}
TIKZEOF
# Compile
cd "${OUTPUT_ROOT}/figures"
xelatex -interaction=nonstopmode fig-conceptual.tex
echo "PDF: ${OUTPUT_ROOT}/figures/fig-conceptual.pdf"
Diagram-specific TikZ patterns:
% Macro level (top)
\node[box, fill=lightbg] (macro1) at (0, 3) {Macro Condition};
\node[box, fill=lightbg] (macro2) at (8, 3) {Macro Outcome};
% Micro level (bottom)
\node[box] (micro1) at (2, 0) {Individual\\Situation};
\node[box] (micro2) at (6, 0) {Individual\\Action};
% Arrows
\draw[arrow] (macro1) -- (macro2) node[midway, above, label] {Observed association};
\draw[arrow, accent] (macro1) -- (micro1) node[midway, left, label] {Situational\\mechanism};
\draw[arrow, accent] (micro1) -- (micro2) node[midway, below, label] {Action-formation\\mechanism (DBO)};
\draw[arrow, accent] (micro2) -- (macro2) node[midway, right, label] {Transformational\\mechanism};
% Grid
\draw[thick, primary] (0,0) rectangle (8,6);
\draw[thick, primary] (4,0) -- (4,6);
\draw[thick, primary] (0,3) -- (8,3);
% Axis labels
\node[font=\small\bfseries, rotate=90] at (-0.8, 3) {Dimension A};
\node[font=\small\bfseries] at (4, 6.5) {Dimension B};
% Quadrant labels
\node[font=\small\bfseries, accent] at (2, 5.2) {Type I};
\node[font=\small\bfseries, accent] at (6, 5.2) {Type II};
\node[font=\small\bfseries, accent] at (2, 1.5) {Type III};
\node[font=\small\bfseries, accent] at (6, 1.5) {Type IV};
% Descriptions
\node[font=\scriptsize, text width=3cm, align=center] at (2, 4.2) {High A, Low B\\[2pt]\textit{Description}};
\foreach \i/\label/\desc in {1/Stage 1/Initial conditions, 2/Stage 2/Transition phase, 3/Stage 3/Consolidation, 4/Outcome/Final state} {
\node[box, fill=lightbg] (s\i) at (\i*2.5 - 2.5, 0) {\label\\[2pt]\scriptsize\textit{\desc}};
}
\foreach \i in {1,2,3} {
\pgfmathtruncatemacro{\j}{\i+1}
\draw[arrow] (s\i) -- (s\j);
}
% Level labels
\node[font=\small\bfseries, muted, rotate=90] at (-1.5, 4) {MACRO};
\node[font=\small\bfseries, muted, rotate=90] at (-1.5, 2) {MESO};
\node[font=\small\bfseries, muted, rotate=90] at (-1.5, 0) {MICRO};
% Dashed level separators
\draw[dashed, muted] (-0.5, 3) -- (9, 3);
\draw[dashed, muted] (-0.5, 1) -- (9, 1);
% Nodes at each level
\node[box, fill=lightbg] (M1) at (2, 4) {Institutional\\Context};
\node[box] (m1) at (2, 2) {Organizational\\Practice};
\node[box] (i1) at (2, 0) {Individual\\Behavior};
% Cross-level arrows
\draw[arrow] (M1) -- (m1) node[midway, right, label] {Constrains};
\draw[arrow] (m1) -- (i1) node[midway, right, label] {Shapes};
\draw[arrow, dashed] (i1.east) to[bend right=30] node[right, label] {Aggregates} (M1.east);
Fallback: Mermaid (for quick iteration, renders to SVG/PNG)
# Requires: npm install -g @mermaid-js/mermaid-cli
cat > "${OUTPUT_ROOT}/figures/fig-conceptual.mmd" << 'MMDEOF'
graph TD
A[Macro Condition] -->|Situational mechanism| B[Individual Situation]
B -->|Action-formation DBO| C[Individual Action]
C -->|Transformational mechanism| D[Macro Outcome]
A -.->|Observed association| D
MMDEOF
npx -p @mermaid-js/mermaid-cli mmdc -i "${OUTPUT_ROOT}/figures/fig-conceptual.mmd" \
-o "${OUTPUT_ROOT}/figures/fig-conceptual.svg" --theme neutral
npx -p @mermaid-js/mermaid-cli mmdc -i "${OUTPUT_ROOT}/figures/fig-conceptual.mmd" \
-o "${OUTPUT_ROOT}/figures/fig-conceptual.png" -s 3 --theme neutral
After generating the diagram:
**Figure [N]. [Theoretical Framework Name]: [Diagram Type].**
[Self-explanatory description of what the figure shows. Name each element.
State the direction of relationships. Identify the level of analysis for
multi-level models. For typologies, name the dimensions and types.
For process models, state the temporal ordering.]
# MANDATORY: Replace [values] with actuals before running
OUTDIR="${OUTPUT_ROOT:-output}/theory"
STEM="scholar-conceptual-[topic-slug]-$(date +%Y-%m-%d)"
mkdir -p "$OUTDIR"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/version-check.sh" "$OUTDIR" "$STEM"
Use the printed SAVE_PATH in the Write tool call.
Save the full framework (Steps 1-5) as a markdown file.
Saved during Step D2 as PDF + PNG in ${OUTPUT_ROOT}/figures/.
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
SKILL_NAME="scholar-conceptual"
LOG_DATE=$(date +%Y-%m-%d)
LOG_FILE="${OUTPUT_ROOT}/logs/process-log-${SKILL_NAME}-${LOG_DATE}.md"
if [ ! -f "$LOG_FILE" ]; then
LOG_FILE=$(ls -t "${OUTPUT_ROOT}"/logs/process-log-${SKILL_NAME}-${LOG_DATE}*.md 2>/dev/null | head -1)
fi
cat >> "$LOG_FILE" << LOGFOOTER
## Output Files
[list each output file path as a bullet]
## Summary
- **Steps completed**: [N completed]/[N total]
- **Files produced**: [count]
- **Errors**: [count, or 0]
- **Time finished**: $(date +%H:%M:%S)
LOGFOOTER
echo "Process log saved to $LOG_FILE"
/scholar-causal for that)| If the user wants to... | Use |
|---|---|
| Build a NEW theory or framework | /scholar-conceptual theorize |
| Draw a conceptual diagram (mechanism, typology, multi-level) | /scholar-conceptual diagram |
| Select an EXISTING theory and derive testable hypotheses | /scholar-hypothesis |
| Build a causal DAG for identification strategy | /scholar-causal |
| Produce data-driven figures (coefficient plots, distributions) | /scholar-analyze (Component B) |
| Map existing literature and identify gaps | /scholar-lit-review |
What SKILL.md sets; muted values are Claude Code's defaults
36 skills in this plugin
/scholar-analyzeRun data analytics and produce publication-quality tables and visualizations for social science research. Saves regression tables (HTML/TeX/docx), figures (PDF/PNG), an internal analysis log, and a publication-ready Results document (prose + table notes + figure captions). Accepts file paths, inline/pasted data, or fetches from online sources (NHANES, IPUMS, GSS, World Bank, etc.). Runs A9/B9 verification subagents to check analytic and visualization correctness. For causal designs, invokes /scholar-causal first. Use after /scholar-design./scholar-annotateTurn unstructured text into validated, structured variables at corpus scale with LLMs: codebook design, dev/gold-set construction, DSPy prompt optimization, a hard reliability gate (Cohen κ ≥ 0.70), scale-out via managed Batch APIs or a local/HPC server, and distillation to a cheap classifier for very large corpora. Use for LLM annotation, classification, framing/stance coding, relevance filtering, structured extraction, and any LLM-as-measurement task over a text corpus. Ships a real execution engine (assets/) — not in-context snippets./scholar-auto-improveAutomatic quality auditor and continuous improvement engine for the scholar-skill suite. Four modes: (1) OBSERVE — post-skill output audit (run after any skill); (2) AUDIT — skill-suite structural health check; (3) IMPROVE — propose and apply fixes to skill definitions; (4) EVOLVE — cross-session pattern analysis and systemic improvements. Designed to run automatically at the end of any scholar-skill invocation.
npx claudepluginhub joshzyj/open-scholar-skill --plugin open-scholar-skillOther plugins' skills for the same job