/sci-brain:how-to-analyze-dialogfrom sci-brain
Classifies exported research conversations by topic and analyzes prompting patterns across six academic dimensions. Requires prior export via dump-chat-history.
Ships in sci-brain. 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.
Read when SKILL.md points to them.
Keep the working directory at the user's project. Resolve this loaded SKILL.md
with Path(path).resolve() before locating resources; follow symlinks. Bare
helpers/, references/, and template paths are relative to that real skill
directory. A path written as skills/<name>/... means the installed <name>
skill's directory from the agent's skill catalog, not a path in the user's project.
Locate each dependency by its public skill name; copied skills need not be siblings.
If a dependency is absent, report the missing skill and install it before that step.
Shared writing files are bundled in how-to-write-ideas-report/references/.
Classify research conversations and their prompting patterns across the six
academic dimensions below. This skill consumes exported history; it does not
select harnesses, scan native stores, or make transcript/PDF exports.
dump-chat-history owns that workflow. create-advisor owns advisor synthesis.
Accept existing session/turn JSON files or history.json produced by
dump-chat-history. If history has not been exported, invoke that skill first,
passing any source, time range, project, and topic already provided; do not ask
the same selection questions again. Request its analysis handoff without a PDF
unless the user also wants a readable report.
For a history.json input, resolve the installed dump-chat-history directory
as DUMP_HISTORY_DIR and create a derived analysis workspace:
python3 "$DUMP_HISTORY_DIR/helpers/history.py" analysis <history.json> \
--outdir docs/dialog/analysis/<run-slug>/input
For existing session/turn JSON, copy the selected files into that fresh input/
directory first, retaining source locations and avoiding filename collisions.
Keep the original export immutable. The derived files retain source entry IDs
and full text; turn grouping follows transcript order within each session and
branch and is not evidence that a queued correction caused a particular answer.
If the export omits assistant messages, state that context limitation in analysis.
Use a fresh docs/dialog/analysis/<run-slug>/ for the classification outputs.
In Phases 2–4 below, <source> denotes this run workspace relative to
docs/dialog/; never write the enriched files back into the export directory.
Dispatch fast available agents in parallel to classify each extracted session by conversation topic. Each agent receives a batch of ~20 derived session JSON files and returns a topic label for each.
Topic taxonomy (closed set):
| Slug | Description |
|---|---|
skill-design | Designing or refining skill definitions |
brainstorming | Research ideation, /brainstorm-ideas sessions |
code-review | Reviewing code or PRs |
debugging | Fixing bugs, diagnosing failures |
documentation | Writing or editing docs, READMEs |
ci-cd | CI/CD pipelines, GitHub Actions, deployment |
refactoring | Restructuring existing code |
research | Literature search, paper discussion |
plugin-management | Plugin install, config, marketplace |
slide-creation | Presentations, Typst/LaTeX slides |
paper-review | Reviewing or analyzing academic papers |
testing | Writing or running tests |
configuration | Settings, environment, permissions |
project-setup | Scaffolding, init, dependencies |
automated | No real human messages (system/skill invocations only) |
other | Does not fit any above — agent must propose a slug |
Topic classification rules:
other when no existing slug fits; include a proposed new slug and one-line descriptionother entries: merge into existing slugs where possible, or promote a new slug if 3+ sessions share itAfter all agents return, organize files into topic folders:
mkdir -p docs/dialog/<source>/<topic>
mv docs/dialog/<source>/input/<session-file>.json docs/dialog/<source>/<topic>/
Write a topic index to docs/dialog/<source>/topics.md:
# Topic Index
| Topic | Sessions | Description |
|-------|----------|-------------|
| skill-design | 12 | Designing or refining skill definitions |
| brainstorming | 8 | Research ideation using /brainstorm-ideas |
| ... | ... | ... |
| **Total** | **N** | |
Present the topic index to the user and ask which topics to analyze in depth (or "all").
For each session in the selected topics, classify ALL user messages across 6 dimensions. Use parallel agents (batch ~5 sessions per agent).
The 6 dimensions:
| Prefix | Dimension | Tags |
|---|---|---|
bloom: | Cognitive Level | remember, understand, apply, analyze, evaluate, create |
depth: | Question Depth | shallow/intermediate/deep + Graesser category (e.g., deep/causal-antecedent). For non-questions: use the depth of the cognitive task implied by the message. |
probe: | Reasoning Probe | clarification, assumption-probe, evidence-probe, perspective, implication, meta-question, none |
presup: | Presupposition Quality | sound, existential-gap, factive-gap, loaded, complex, ambiguous, missing-context, leading |
discourse: | Discourse Function | referential, display, rhetorical, confirmation-check, clarification-request, indirect-request |
mechanism: | Generation Mechanism | knowledge-deficit, common-ground, action-coordination, conversation-control, exploration, debugging, undetermined |
For full classification criteria, decision rules, tie-breaking rules, and examples, see classification-criteria.md.
Quick classification guidelines:
bloom levels seem equally valid, pick the higher one (the message is at least that complex)depth always includes a Graesser sub-category after the slash (e.g., deep/causal-antecedent, shallow/verification)probe:none is the default for non-probing messages — do not force a probe typepresup:sound is the default for well-formed messages — only flag issues when genuinely presentmechanism is ambiguous between exploration and debugging, check whether the user has a specific failure in mind (debugging) or is open-ended (exploration)Classifying non-question messages: Commands, confirmations, and statements carry the same dimensions:
bloom:apply, depth:deep/instrumental, probe:none, presup:sound, discourse:indirect-request, mechanism:action-coordinationbloom:remember, depth:shallow/verification, probe:none, presup:sound, discourse:confirmation-check, mechanism:common-groundbloom:evaluate, depth:deep/judgmental, probe:none, presup:sound, discourse:referential, mechanism:conversation-controlFor any presupposition issue or non-obvious classification, add a brief Note explaining the reasoning.
Per-session reports: Add tags to the derived JSON file at docs/dialog/<source>/<topic>/<session-file>.json. The raw history export stays unchanged. Preserve source entry IDs, timestamps, and branch provenance in the enriched version.
Schema:
{
"source": "<source label>",
"session_id": "<id>",
"topic": "<topic slug>",
"timestamp": "<ISO 8601>",
"turns": [
{
"index": 1,
"user": "<user message text>",
"assistant": "<assistant response, unabridged>",
"tags": {
"bloom": "analyze",
"depth": "deep/causal-antecedent",
"probe": "assumption-probe",
"presup": "sound",
"discourse": "referential",
"mechanism": "exploration"
},
"note": "<explanation if non-obvious, otherwise null>"
}
]
}
For any presupposition issue or non-obvious classification, populate the note field for that turn.
Aggregate report: After all sessions are processed, write docs/dialog/<source>/summary.md with:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub quantumbfs/sci-brain --plugin sci-brain16 skills in this plugin
/autoresearchUser trigger. Use when starting, resuming, or checking an autoresearch campaign — topics, evidence base, sealed validator, then validator-scored attempt loops./brainstorm-ideasUser trigger. Use when brainstorming research ideas with a Socratic collaborator who learns your background and helps find a problem worth attacking./create-advisorUser trigger. Use when creating or updating a named advisor profile from a researcher's conversation history./dump-chat-historyUser trigger. Use when exporting original conversations from selected harnesses and dates as a faithful transcript or a topic-titled Typst and PDF field note./how-to-build-kbAgentic trigger. Use when turning a list of picked papers into verified knowledge-base entries — references.bib, INDEX.md, and NOTES.md./how-to-download-refAgentic trigger. Use when adding arXiv IDs or DOIs to a knowledge base — fetches metadata, PDFs, and full text, then updates references.bib and INDEX.md.Other plugins' skills for the same job