/research-workspace:research-context-compressorfrom research-workspace
Inspects a research repository and writes a compact .research/ workspace manifest (project_manifest.yml, experiment_matrix.yml, data_dictionary.yml) so future AI sessions can orient themselves without rescanning the whole repo.
Ships in research-workspace. 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.
Build a compact, machine-readable workspace memory at the project root
under .research/. Other research-hub skills (project-orienter,
literature-triage-matrix, paper-memory-builder) read these files instead of
rescanning the repo every session, which is where the token savings come from.
This is the foundation skill. Run it once per project and refresh when the project's research question, datasets, or experiment set changes.
Trigger phrases:
.research/ folder for this repo."Not for:
outputs/,
not .research/.The compressor reads whatever your project has. None of these are required. If a file is missing, that field of the manifest stays empty (see "What NOT to do"). Skim, do not deep-read.
For any project:
README.md at the repo root — project overview. Single most useful
input..research/design_brief.md if it exists — Stage 3a handoff from
research-design-helper (plugin v0.3.12+). Read the frontmatter
(project, status, source, gap_verdict, placeholder_segments) plus
section 1 (Research question, claim boundary, and explicit nonclaims) — informs
the project_manifest.yml research_question field. The brief is the
authority on the sharpened RQ; the manifest mirrors it. Compute/record the
brief's brief_status, normalized brief_sha256, and non-empty
placeholder_segments warning rather than implying a draft or
placeholder brief is approved for downstream execution. Don't deep-read; skim.
If frontmatter source: topic_dossier.gaps.yml#<id> is set, copy that
gap-id into the manifest's provenance.from_gap field (forward-compat with
the Stage 2 → 3a wire). Also note whether .research/workspace.sqlite3 or
literature_matrix.md was modified after project_manifest.yml so stale
curation/screening state is visible to the next session.For code-based research projects (Python / JS / R / Julia / etc.):
pyproject.toml / package.json / requirements.txt /
renv.lock / Project.toml — primary tools.scripts/ and notebooks/ — main entrypoints.data/ and outputs/ — datasets and artifacts.For qualitative / archival / interpretive projects:
notes/, drafts/, sources/ — manuscript-track work..obsidian/ — Obsidian vault settings, if present.bibliography.md, sources.bib,
references.json).For both:
docs/ — long-form descriptions..git/HEAD and git log --oneline -20 — current branch + recent
activity, if a git repo..research/ (if it already exists) — for refresh, not first-time
create.An empty manifest field is better than an invented one.
For a worked humanities-project example with minimal scaffold (README + notes/ only, no code, no data/), see references/example-humanities-project.md. It illustrates the "empty fields are honest" rule.
Write these to <project-root>/.research/:
project_manifest.yml — top-level orientation. Required.experiment_matrix.yml — per-experiment status. Required if scripts/ or notebooks/ exist.data_dictionary.yml — datasets and schemas. Required if data/ exists.run_log.md — append a single entry recording this run.decisions.md — leave empty if no ADRs yet; do not invent decisions.open_questions.md — list any obvious unknowns you spotted (e.g.
undocumented dataset, missing license, ambiguous entrypoint).Stage 2 → 3a provenance (v0.3.13+). If .research/design_brief.md
exists AND its frontmatter sets source: topic_dossier.gaps.yml#<gap-id>,
copy that pointer into the project_manifest.yml provenance.from_gap
field as part of every write:
# project_manifest.yml — minimal example showing the provenance & brief readiness wire
project_name: "..."
research_question: |
... # mirrored from design_brief.md §1 (sharpened RQ)
current_stage: "design"
last_updated: "YYYY-MM-DD"
provenance:
from_gap: "topic_dossier.gaps.yml#G2" # exact copy of design_brief frontmatter `source`
brief_status: "reviewed" # draft | reviewed | confirmed | locked
brief_sha256: "<64-hex-sha256>" # optional SHA-256 of .research/design_brief.md
If no design_brief.md exists or its frontmatter source field is
empty, omit the provenance: block entirely — do NOT write
provenance: {} or provenance: null. The schema doc
(docs/research-workspace-manifest.md) records the field as optional;
absent is the honest state when the upstream chain isn't connected.
If a file already exists, update don't replace: keep human-edited
fields, fill in only the empty ones unless the user said "regenerate from
scratch". This rule also applies to provenance.from_gap — if a
manifest already has provenance.from_gap and the current
design_brief.md source differs, ask the user before overwriting
(matches the v0.3.12 provenance-protection logic in
research-design-helper).
Full schema lives in
docs/research-workspace-manifest.md.
Quick reminder of project_manifest.yml required fields:
project_nameresearch_arearesearch_questioncurrent_stage (one of discovery / exploration / experiments / writing / rebuttal / submission)last_updated (today's date in ISO format)If you don't know a field, leave it empty ("" or []). Do not guess
research questions, hypotheses, or claims.
.research/project_manifest.yml
(and N other files). Future agents loading the research-project-orienter
skill can now orient themselves without re-reading the whole repo."After writing the files, print a 5-line summary:
[research-context-compressor]
Wrote: .research/project_manifest.yml (3 datasets, 2 entrypoints)
Wrote: .research/experiment_matrix.yml (2 experiments)
Wrote: .research/data_dictionary.yml (3 datasets)
Open questions surfaced: 2 — see .research/open_questions.md
Refresh later: ask "compress this project context" again.
.paper/ — that's paper-memory-builder's job..research/literature_matrix.md — that's
literature-triage-matrix's job..research_hub/ — that's research-hub's internal cache,
managed by the CLI..research/open_questions.md instead.research_question empty and add a question to open_questions.md.references/example-humanities-project.md — worked example for a non-code research project (minimal scaffold)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
research-workspace@ai-research-skills is listed by wenyuchiou/ai-research-skills — review the source before installing
npx claudepluginhub wenyuchiou/ai-research-skills --plugin research-workspace12 skills in this plugin
/gap-to-topicTurn a research area into a go/no-go decision dossier for candidate thesis/proposal topics (zero or multiple justified options) — a 3-gate verdict (is the gap open? is it a contribution? is it feasible?) with the evidence laid out so the researcher can verify it. Use when the user asks "is this gap worth pursuing", "help me pick a thesis topic", "is this idea already taken", "find me a defensible research gap", "vet this research idea before I commit", or "should I do this". NOT a literature review (use `literature-triage-matrix` for a comparison matrix) and NOT a study design (use `research-design-helper` once a topic is chosen). Produces a `.research/topic_dossier.md`, a `.research/topic_dossier.docx` (Word, colour-coded), a `.bib`, and a `.gaps.yml`./literature-triage-matrixTurn a list of papers (Zotero collection, Obsidian cluster, manual list) into a compact comparison matrix written to .research/literature_matrix.md, instead of generic per-paper summaries. Use when the user asks to "make a literature matrix", "compare these papers by method/data/limitations", or "decide which papers are central to my review". If the user says "extract the claims from these papers": cross-paper comparison matrix → this skill; claims from their own manuscript draft → `paper-memory-builder`; per-cited-paper Key Findings → `paper-summarize`. This skill compares a KNOWN paper set; to turn a research area into a go/no-go decision on a candidate thesis/proposal topic, use `gap-to-topic`./notebooklm-brief-verifierCompare a downloaded NotebookLM brief against the source bundle research-hub uploaded, and report missed sources, unsupported claims, contradictions, and recommended follow-up prompts. Use when the user asks to "verify this NotebookLM brief", "check if the brief missed anything", or "compare downloaded notes to the cluster papers"./paper-memory-builderConvert a paper draft + figures + Zotero metadata into reusable .paper/claims.yml and .paper/figures.yml files so the academic-writing-skills skill can do writing, revision, and audit passes without re-reading the manuscript every time. Use when the user asks to "build paper memory", "extract claims from this manuscript", "extract claims, supporting evidence, and figure key numbers", or "prepare this paper for AI-assisted writing". NOT for summarizing cited papers in a literature cluster — that's `paper-summarize`. This skill is for the user's own manuscript draft only./paper-summarizeHave your active AI host (Claude Code, Codex, etc.) natively read cited papers and produce study-type-routed source-bound summaries — a seven-section empirical summary (why, objective, methods, results, conclusions, key points, limitations) or a five-part theoretical/conceptual/formal/historical summary — without requiring Hub or a separate LLM CLI. Also covers the existing abstract-only research-hub summarize CLI to fill Key Findings/Methodology/Relevance in authorized Obsidian and Zotero notes. Use for per-paper summaries or TODO Findings; use paper-memory-builder for the user's manuscript and literature-triage-matrix for cross-paper comparison./research-design-helperGuide a researcher through 5 Socratic segments — research question sharpening, expected mechanism, identifiability check, validation plan, risk register — and produce `.research/design_brief.md`. Use when the user asks to "frame this research question", "design my study", "help me think through what model to build", "sharpen my hypothesis", "is my research question sharp enough to be falsifiable?", or "before I start coding, walk me through the design". Runs AFTER a topic is chosen — it designs the study for a given question; to decide whether a research gap is worth pursuing at all (open / a contribution / feasible), use `gap-to-topic`. Does NOT write the model spec; does NOT invent the research question — guides the human to articulate them.Other plugins' skills for the same job