/research-workspace:paper-memory-builderfrom research-workspace
Extracts claims, figures, and evidence from a manuscript draft (Word, LaTeX, Markdown) plus Zotero metadata into structured .paper/claims.yml and .paper/figures.yml files for reuse by academic-writing-skills. Triggered by phrases like 'build paper memory' or 'extract claims from this manuscript'.
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.
Bridge between research-hub and academic-writing-skills. Reads a
manuscript draft (Word, LaTeX, Markdown, Obsidian paper folder) plus the
figures it references, and writes structured .paper/claims.yml +
.paper/figures.yml so the writing skill can reason about the paper
without parsing the manuscript on every call.
This skill does not edit the manuscript itself. That's the writing skill's job. We just produce the memory layer it consumes.
Trigger phrases:
Not for:
academic-writing-skills.research-project-orienter.literature-triage-matrix.notebooklm-brief-verifier.In priority order:
.paper/ existing files — if claims.yml already exists, parse
it; this run should refresh, not replace human edits.paper/manuscript.docx / manuscript.tex / manuscript.mdraw/<paper-cluster>/manuscript.mdfigures/ or outputs/figures/ — read
filenames + captions; don't OCR images..research/project_manifest.yml — for project context (research
question, datasets, current_stage). Use to anchor claims in the
project's overall question..research/literature_matrix.md — for citation key lookup if the
manuscript references "Smith 2024" but you need to disambiguate.Beyond the manuscript + figures, real research repos typically contain
sibling artifacts that populate claims[].evidence_artifacts for
non-figure evidence. When scanning, look for:
*.csv, *.parquet, *.npz,
*.h5, *.json log files under outputs/, results/, or
repo-root sibling dirs. Common patterns: <experiment_id>_log.csv,
run_log.csv, adaptation_log.csv. These back claims like
"χ²=891, p<0.0001 across 50 runs" (the chi-squared output came from
the per-agent decision log, not from a figure).*.py, *.R, *.jl, *.ipynb files that
produce evidence numbers. The script itself is rarely the evidence
artifact, but its OUTPUT path is. Trace the script → output pairing
if the manuscript cites a number computed by a script.*.drawio, *.svg sources for
conceptual figures (e.g. framework architecture, decision-flow
diagrams). These often back claim text like "Figure 1 shows the
module architecture" even when the embedded image in the .docx is
rendered from the drawio source.Review Response-YYYYMMDD.docx
files (operator-side response prep). Not consumed by
paper-memory-builder directly but listed here as a typical sibling
artifact; academic-writing-skills reviewer-response workflow uses
these.Populate claims[].evidence_artifacts with repo-relative artifact PATHs (files under the paper repo root) and claims[].manuscript_anchors with non-filesystem section/passage locators (like "Result section §4.2"). Also record evidence_type (run_receipt, dataset_output, source_passage, formal_proof, qualitative_coding, or conceptual_mapping), run_ids, execution_status, and scientific_outcome where applicable so null or falsified findings stay cleanly separated from editorial rejected drops:
- id: C8
text: "Chi-squared test on coping-appraisal keywords yields χ²=891, p<0.0001..."
evidence_type: "dataset_output"
execution_status: "completed"
scientific_outcome: "supporting"
evidence_artifacts:
- "outputs/llm-abm_decision_log.csv" # raw per-agent text used in chi-sq
- "scripts/analyze_appraisal_keywords.py" # script that ran the test
manuscript_anchors:
- "Result section §4.2 (chi-squared paragraph)"
figure_or_table: ["TabS5"]
status: draft
This makes the audit trail traceable end-to-end: claim → manuscript
sentence → figure/table reference → underlying data file → analysis
code. Cross-plugin consumers like academic-writing-skills (claim-
evidence audit) can then verify the chain is intact before accepting
the claim as supported.
Write to <project-root>/.paper/:
claims.yml — every paper-level claim, with evidence pointers + status. Schema: references/yaml-schemas.md.figures.yml — every figure inventory, with key numbers + supported claims. Schema: references/yaml-schemas.md.revision_history.yml — append-only log of revision rounds. Schema + append-vs-overwrite rules: references/revision_history_schema.md.Do not touch journal_format.md, reviewer_comments.md, or style_overrides.md — those belong to academic-writing-skills.
.paper/*.yml in subsequent writing turns.academic-writing-skills next for any
writing/revision/audit pass."[paper-memory-builder]
Read manuscript: paper/manuscript.docx (8 pages, 12 figures)
Wrote: .paper/claims.yml (9 claims; 2 marked at risk)
Wrote: .paper/figures.yml (12 figures; 8 mapped to claims, 4 are context)
Suggested next: load academic-writing-skills for revision/audit passes.
status: draft — see the
anti-leakage rule below..paper/journal_format.md, reviewer_comments.md, or
style_overrides.md. Those are owned by academic-writing-skills..research/ — that's the workspace layer, not the
paper layer.An active claim with empty or absent
evidence_artifactsMUST havestatus: gapplus a non-emptygap_reason. Never emit such a claim asstatus: draftorstatus: supported. Editorially removed claims usestatus: rejectedand may omit evidence or use[], withoutgap_reason.
This is the contract that prevents an unsupported claim from leaking into the downstream writing/audit pipeline as if it were evidenced.
How it manifests in normal use:
status: gap with a gap_reason like
"intro claim with no matching E-run output". The writing skill then
surfaces it as [MATERIAL GAP] rather than treating it as evidenced
prose.status: draft; document the doubt in risk: rather
than emptying evidence_artifacts.status: rejected; keep its ID and row (audit trail). This means
editorial removal, not scientific contradiction. Record the removal
reason in revision history; do not resurrect it on extraction refresh.Preserve existing IDs and unknown fields when refreshing memory. Evidence
pointers alone do not establish scientific support or trigger promotion; a
gap may retain pointers but still requires gap_reason. Surface contrary
evidence for human assessment, not automatic rejection. On validation
failure, report diagnostics and leave the original file unchanged; do not
coerce statuses (including invalid dropped) or renumber claims.
The structural rules are enforced by research-hub-check-claims (and check_claims_schema.py in a source checkout) against
the JSON Schema at references/claims.schema.json. Run the validator
manually after editing .paper/claims.yml by hand:
research-hub-check-claims --strict <path-to-claims.yml>
references/yaml-schemas.md — .paper/claims.yml and .paper/figures.yml schemasreferences/revision_history_schema.md — .paper/revision_history.yml schema + append-only audit-trail rulesWhat SKILL.md sets; muted values are Claude Code's defaults
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-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-context-compressorInspect a research repository and write 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. Use when the user asks to "compress this project context", "create a research manifest", or "save the project context for future agents"./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