/sci-brain:create-advisorfrom sci-brain
Creates or updates named advisor profiles from a researcher's conversation history, capturing cognitive style and reasoning patterns for subagent collaboration.
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.
None: SKILL.md is the whole skill.
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/.
Before running the examples, set DOWNLOAD_REF_DIR to the absolute directory of how-to-download-ref. Quote these variables as shown.
Onboard a contributor and create a named advisor profile. The profile captures how a real person thinks — their cognitive style, attention patterns, reasoning strengths, and conversation dynamics — so the brainstorm-ideas skill can launch them as a subagent collaborator rather than a thin inline persona.
advisors/<slug>/profile.md, preserve its background, then start at Step 2 with the new JSONL or Markdown sources.thinking-pattern.md and master-thinking.md; do not synthesize an advisor profile unless the user asks.Ask the contributor to provide their academic/professional background:
know-me-better skill instructions (skills/know-me-better/SKILL.md) to index publicationsknow-me-better skill instructions to index publicationsFrom the response, extract:
edge-tts voice)Hold this information for Step 4.
Advisor KB. Each advisor gets a private knowledge base at advisors/<slug>/.knowledge/ (shape identical to the project KB: INDEX.md, NOTES.md, .raw/, .figures/, rendered <id>_<slug>.md files). The advisor's BibTeX namespace lives at advisors/<slug>/.knowledge/references.bib (i.e. $KB/references.bib for the resolved advisor KB). When know-me-better or how-to-download-ref is invoked from this skill, resolve the advisor KB path via python3 "$DOWNLOAD_REF_DIR/helpers/resolve_kb.py" --advisor <slug> and pass it as --kb "$KB" so writes land in the advisor KB rather than the project KB. (Users who set $SCIBRAIN_KB_DIRNAME get the right directory name automatically.)
Step 2a — export, then analyze. If the contributor already has classified
dialog JSON, use it directly. Otherwise invoke dump-chat-history to select
harnesses and the start date first, passing through any choices already given.
It supports local harness histories and supplied Markdown/JSON exports. Request
an analysis handoff; a PDF is optional and should not be generated solely for
advisor synthesis.
Then read skills/how-to-analyze-dialog/SKILL.md and follow Phases 1–4: load the
export, classify sessions by topic, let the contributor select topics for deep
analysis, and persist the enriched JSON reports in the analysis workspace.
The raw transcript remains separate and unchanged. Retain assistant context for
trigger→reaction analysis and flag sessions that lack it.
Step 2b — pattern extraction (per topic). For each selected topic, follow Conversation Pattern Extraction below. Skip its source/topic prompt because Step 2 already established both. The contributor participates in the logic-jump confirmation gate; do not skip or rush it.
After pattern extraction finishes for all selected topics, note which topics had enough data to produce patterns (2+ patterns = sufficient).
This workflow consumes the tagged JSON reports produced by how-to-analyze-dialog (including parsed Markdown imports) and writes two intermediate artifacts: recurring trigger→reaction patterns and user-confirmed logic jumps.
For standalone analysis, ask for the existing analysis workspace and a topic folder or all. Read report JSON files under docs/dialog/analysis/<run-slug>/<topic>/; skip topics.md, summary.md, and other non-report files.
For every turn, load the user message, preceding assistant response, turn index, classification note, and all six tags (bloom, depth, probe, presup, discourse, mechanism). Treat classifier notes as evidence when a tag's intent is not obvious.
A pattern is a trigger signature → reaction pattern pair. Triggers include starting questions and assistant outputs, choices, errors, or results that provoke the next user turn. Reactions combine the six-dimensional tag profile, action taken, and a natural-language summary.
Cluster turns across sessions when at least 3 of these 4 discriminating dimensions match: bloom, depth level (ignore the subcategory), discourse, and mechanism. Record only patterns appearing in at least two sessions. Name each with a descriptive verb phrase and include:
### Pattern: <name>
**Trigger:** <what provokes it>
**Reaction:** <what the user does>
**Tag profile:** `bloom:X` `depth:Y/Z` `discourse:X` `mechanism:X`
**Frequency:** N occurrences across M sessions
**Examples:** <session/turn, user message, and one-line outcome>
A logic jump is not a direct response to the preceding assistant message: it introduces a new angle, catches a hidden gap, or connects distant concepts. Candidate signals include an uninvited assumption/evidence probe, exploration/debugging without an error prompt, a sudden jump to analyze/evaluate/create, a new constraint, or an unusually cross-domain starting question.
Curate only the 5–12 most valuable candidates relative to the topic: those that improved the outcome, expose a transferable insight, or reveal genuinely non-obvious reasoning. Discard routine scope corrections and obvious next steps.
Present one candidate at a time. On the first candidate from a session, summarize that session. Then show the preceding assistant context, the user's full message, why it is surprising, and three substantively different hypotheses plus Skip and a write-in option. Express hypotheses as causality chains using + for combined observations and => for inference, for example:
fixed a bug + responsibilities are tangled => root cause is architectural => separate them
Record the selected chain or the user's own explanation. Never batch the confirmation gate.
Write to docs/dialog/<source>/<topic>/ (or <source>/all/):
thinking-pattern.md — source/topic, sessions analyzed, pattern count, patterns grouped by category, examples, and distribution summary.master-thinking.md — each confirmed jump's context, user question, confirmed causal chain, and a self-interview prompt asking what connected the context to the question.Do not delete or move the underlying session JSON. Step 3 reads its presup tags directly for blind-spot analysis.
For each topic with sufficient data, generate the thinking style sections of the profile.
For each topic section, produce these 5 subsections:
What bloom levels dominate? How quickly does depth escalate?
What does this person notice and react to?
Where does this person's thinking shine?
How does this person steer conversations?
What does this person not do? Frame constructively — these are tendencies, not flaws.
presup tags from the how-to-analyze-dialog JSON filesFor presup-derived blind spots: read the per-turn presup tags directly from the session JSON files in docs/dialog/analysis/<run-slug>/<topic>/. Count non-sound presuppositions. If a specific presup issue appears 3+ times across sessions, generate a directive about it.
Directive rules:
Each subsection contains a narrative paragraph followed by directives:
**As this advisor:** <how to behave when role-playing this person>
**Evidence:** <pattern or jump reference>
Compute the advisor slug: lowercase, hyphenated name (e.g., jin-guo-liu).
Write the profile to advisors/<slug>/profile.md:
# <Full Name>
## Background
- **Field:** <field and subfields>
- **Key themes:** <research themes>
- **Technical skills:** <skills>
- **Notable contributions:** <contributions>
- **Generated:** <date>
## Publication Sources
- **Homepage:** <url or omit section if unknown>
- **Scholar/ORCID/DBLP/arXiv:** <url list or omit section if unknown>
## Voice
- **Language:** <language or omit section if unknown>
- **edge-tts:** <voice id or omit section if unknown>
## Thinking Style: <topic>
### Cognitive Style
<narrative>
**As this advisor:** <directive>
**Evidence:** <reference>
### Attention Patterns
...
### Reasoning Strengths
...
### Conversation Dynamics
...
### Potential Blind Spots
...
Update the advisor index at advisors/index.md — add or update a row for this contributor:
| <Name> | <Field> | <Top 2-3 strengths> | <topic1, topic2, ...> |
If advisors/index.md does not exist, create it with header:
# Advisor Library
| Name | Field | Strengths | Topics |
|------|-------|-----------|--------|
Present to contributor for review after writing:
Your advisor profile is ready at
advisors/<slug>/profile.md. Please review it — you can edit anything before it's shared. The raw conversation data stays indocs/dialog/(gitignored) and is never included in the profile.
When run on a contributor who already has a profile:
Publication Sources and Voice if the contributor provided new informationWhat SKILL.md sets; muted values are Claude Code's defaults
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./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-analyze-dialogAgentic trigger. Use when classifying exported research conversations by topic and analyzing their prompting patterns across six academic dimensions./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