/research-workspace:gap-to-topicfrom research-workspace
Produces a 3-gate decision dossier (gap open? contribution? feasible?) for thesis or proposal topics. Use when vetting a research gap, picking a topic, or checking if an idea is already taken.
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; scripts run unread.
Choosing a thesis or proposal topic is not "do a literature review." It is a decision under uncertainty: given everything already known, what should I do next, and why is it defensible? This skill produces the document that decision actually needs — a 3-gate decision dossier for one (or a few) candidate breakthrough points.
It deliberately stops short of the verdict. It assembles the evidence for three gates and hands the final "is this worth doing" call back to the researcher and their advisor — where it belongs.
Trigger phrases:
Not for:
literature-triage-matrix.research-design-helper
(gap-to-topic assembles options for the researcher to choose; research-design-helper designs how after that choice).paper-memory-builder..research/topic_dossier.md and .research/topic_dossier.docx — a
research-grade decision memo in Markdown and as a colour-coded Word
document: first page enables a decision; the body supports verification; the
appendices support a re-run. Reads top-to-bottom in Word with no decoding —
no codes (G1/G2 stay only in .gaps.yml), no decorative glyphs,
plain-language verdicts, decision-relevant tables in the body and reference /
log tables in the appendices. Verdict cells are colour-coded in the .docx
(light red / yellow / green / grey by verdict phrase, bilingual en + zh-TW).
| Section | What it covers |
|---|---|
| 1. Executive Decision Summary | metadata box; one framing sentence; per-candidate verdict cards (small 2-column tables, generator colour-codes the verdict cell); a one-line key uncertainty |
| 2. Candidate Definitions | per candidate, name + one-sentence statement + a plain "why it could be a gap" tag ("Application coverage unresolved" / "Specific method limitation") |
| 3. Decision Scorecards | per candidate, a small 3-column table (Gate / Score / Rationale) with the three gates rated 1–5 (Likert) plus a Verdict row; cells colour-coded by the generator |
| 4. Evidence Base | the search funnel, the prior-art classification, and the closest prior work per candidate with inline evidence-type tags |
| 5. Gate-by-Gate Assessment | each gate uses a fixed five-field skeleton: Score / Evidence / Interpretation / Risk / Action needed |
| 6. Risks and Upgrade / Kill Tests | named risks (construct validity, dataset, novelty, reproducibility); operational upgrade / kill test per conditional candidate; salvage path per failed candidate |
| 7. Recommended Next Steps | actual options and tradeoffs, reason-specific bounded next checks, and pending or explicit user choice |
| Appendix A. Search and Screening Protocol | a reproducibility log — search date, databases, query families, retrieved, dedup, inclusion / exclusion, screening, known limitations, recall confidence |
| Appendix B. Deliverable File List | the file index and the file tree |
(SKILL.md §0–§4 below are the agent's internal workflow steps; they map to the reader-facing sections above — §0 → §2 Candidate Definitions, §1 → §3 Decision Scorecards + §4 Evidence Base + §5 Gate 1, etc.)
Plus two machine-readable companions: <dossier>.bib (the Gate 1 reference
list as BibTeX) and <dossier>.gaps.yml (structured candidates + verdicts +
open questions — keeps the machine ids and enum tokens).
When a version-bound materials/resource record is useful, optionally add
candidate_version to the relevant candidates and a separate
<dossier>.direction-review.json. This is an opt-in offline check, not a new
requirement for natural-language ideation or the ordinary dossier workflow.
The three gates organize the assessment; a supported hard failure cannot be compensated by another score. Unassessed prerequisites remain unresolved, not a scientific failure or automatic go. The dossier supports the human decision.
In priority order:
.research/literature_matrix.md — produced in §1 step 2, or reused
(appended to) if an earlier run already wrote one..research/claims.yml if it exists — only when the user is also
drafting a manuscript; its status: gap claims cross-link to §2.This skill orchestrates other research-hub capabilities as tools:
search --adversarial --screen --json (§1 step 1 — recall, the fit-check
BM25 relevance gate, and the metadata the .bib is built from) and
literature-triage-matrix (§1 step 2 — turns the on-topic search results
into the prior-art comparison matrix). paper gaps
is used only when a relevant ingested cluster already exists — at
topic-selection time it usually does not, so the
search → literature-triage-matrix path is the default. Note:
cite --format bibtex is not used for the §1 .bib — it resolves
identifiers only against an already-ingested Zotero library, and at
topic-selection time the candidate papers are not ingested (see §1 step 3).
Use ../research-hub/references/research-protocol.md for the user's original
constraints, information-needs/query map, closest prior work and contrary/dead-end
searches, and bounded completion. Use ../research-hub/references/source-claim-audit.md
for actual evidence levels and version-bound source passages. Missing Hub runtime
blocks its commands/writes, not available native discovery. Preserve explicit
population/geography/date boundaries; suggested filters are not user decisions.
If these shared files are absent in a standalone install, retain these rules
and disclose any unassessed load-bearing evidence rather than implying novelty.
Run §0–§4 in order. Each section has a fixed contract; do not skip a gate.
Socratic, like research-design-helper. Help the user articulate candidates
within the stated objective; zero or multiple justified options are valid. Keep
improving an existing method/design and proposing a new concept/mechanism as
equally valid routes, without a quota. A paper need not explicitly name a gap.
Separate sourced premises, inferences and proposed benefits; an unmeasured effect
is a research question, not automatic infeasibility. Retain useful replication,
validation, exploratory or simple-method options. Do not invent the user's
objective or constraints. For each candidate:
G1 / G2 id is only a
machine tag for the .gaps.yml companion; it must never be the reader's
primary label.empirical,
formal, qualitative, simulation, design-science, mixed), and write
it in plain words in the dossier:
contribution-typing.md treats conceptual
reframing as an explicitly supported lens alongside problem-solving and
incremental).A multi-gap candidate is decomposed into its constituent gaps; every later gate runs per gap.
Incomplete recall is the dominant failure mode: a missed paper makes a gap look open when it is not. So this gate is adversarial:
research-hub search --adversarial --screen --json (also supports
--rank-by classic or --rank-by dual when foundational older works must
not receive a recency penalty) on the gap. It searches several query
phrasings, reports observed result counts with recall explicitly unassessed,
and applies the fit-check BM25 relevance gate. --screen retains
already-ingested matches annotated with already_in_library: true so existing
library counterexamples are never hidden from Gate 1; screening_summary
exposes retrieved_total, returned_after_limit, already_in_library,
assessed, and excluded counts alongside retrieved, kept, and
screened_out. Zero new papers can reflect backend failure, a successful
empty response or overlapping top-N results; these counts do not establish saturation.
With --screen --json the output is an object {screening_summary, results}:
results is the per-paper list (title, DOI / arXiv ID, year, authors, venue,
already_in_library, plus a relevance field — score / kept / tier /
reason). --screen never drops a paper — it tags relevance, so recall stays
auditable. If --adversarial or --screen is unavailable (older CLI), run
several query phrasings by hand and record the missing execution evidence and
search limits in the dossier.results and the relevance gate's kept/reason; in native mode, record
actual inclusion/exclusion decisions and reasons without inventing CLI
fields. Feed the on-topic works to literature-triage-matrix (as
its input #0, a Markdown list of titles + DOIs / arXiv IDs) to produce
.research/literature_matrix.md: the structured prior-art comparison
(per paper — method, main claim, evidence, limitation, relevance).
Relevance scores are screening aids, not scientific verdicts. Retain
screened-out candidates and reasons in the log; check decision-relevant
closest/contrary/boundary evidence before excluding it. This matrix is a real
workflow output — it is what the openness judgement in step 4 and the
§2 gates read, not an assumed pre-existing input. If a
literature_matrix.md from an earlier run exists, literature-triage-matrix
appends to it; if either skill is unavailable, reason directly over the
observed candidates and record the reduced structure in the dossier..bib
companion from verified on-topic candidate metadata (CLI results or
actual native observations) — this is the trust artifact; the researcher
must be able to verify "open" themselves. Do not use
cite --format bibtex here: cite resolves identifiers only against an
already-ingested Zotero library, and at topic-selection time the
candidate papers are not ingested. Verify supplied DOI/arXiv IDs when
available. A missing identifier does
not make a work nonexistent: qualitative, historical or archival sources
can use verified title/author/date, stable collection/catalog locator and
acquisition provenance. Unresolved identity remains explicitly unresolved;
never drop inconvenient prior work merely because it has no DOI.screening_summary counts; in native mode, report
observed counts and tool references, leaving inaccessible payloads or
backend totals unknown. Do not infer recall confidence from counts alone. Reason the
per-gap openness over the step-2 matrix, comparing the closest works by
question, population/system, method and outcome. Search failures, truncation
or unknown native payloads are not zero-result proof of openness.Use the template's candidate revision record after closest/contrary comparison: retain the original proposition, observed overlap, revised proposition and remaining discriminating test. Do not leave an unchanged novelty claim behind a generic unknown verdict when observed prior work already narrows it.
A gap is never declared "open" on the basis of "absent from my corpus" — absence in a corpus is not absence in the literature.
Two parts — see the references for the full method:
references/dead-end-history.md): find the
"tried-but-unsolvable" history. A gap can be open because the field gave
up on it (a dead end), not because no one tried.references/contribution-typing.md): classify
the candidate as problem-solving or incremental. This is a descriptive
lens, not a quality verdict — incremental is not "not worth doing."Both parts must also explain significance and decision relevance: who benefits, what changes if the contribution succeeds, and why the closest alternative does not already resolve the problem. Compare plausible alternatives, boundary conditions, and upgrade/kill tests. A newly combined method alone is not proof of a meaningful contribution; retained dead-end evidence may overturn optimism.
Front-loaded by design: the researcher must know feasibility before building the research framework, before spending money and running experiments. Socratically establish data / resource accessibility — is the data public? what does it cost? how long to obtain? — and record a verdict. Include data access/quality, skills/compute, time and cost, ethics/consent and applicable approvals, execution/analysis validation, and a feasible fallback. Do not treat unconfirmed access or permissions as available. Check actual materials/variables, temporal or spatial granularity, applicability and quality; a successful download is not sufficient. Specify the minimum study and a simpler/closest baseline with an informative validation path within confirmed resources. A missing enabling prerequisite is unknown, not a zero score or supported failure; record a bounded next check. Hard blockers cannot be averaged away or compensated by value. Revise substantive mismatches, park critical unknowns, and reject only with supported negative evidence. Preserve a useful alternative when another candidate fails, and do not silently change scope. Use applicable reason-specific checks: missing closest/contrary evidence needs a bounded targeted lookup; an already-realized increment needs repositioning; a material/granularity mismatch needs suitable alternatives or a user scope decision; a resource overrun needs a value-preserving minimum version or parking; unconfirmed critical access needs a bounded access/permission check.
Use research-hub paper direction-check --dossier <dossier>.gaps.yml --review <dossier>.direction-review.json --source-root <local-root> --json when the caller
wants to check supplied candidate/source bindings and combined planned estimates.
It reads only the explicit local inputs, without reading Hub configuration,
calling a model/network, writing files or starting the next stage. The exact
contract is in docs/direction-review-contract.md in the research-hub repository;
references/dossier-template.md summarizes the optional companion.
candidate_version
and canonical hash of the complete candidate. Preserve old review records when
revising; a version or content change requires a fresh review. Never assume
a missing legacy version is 1. Old dossiers still work in the ordinary flow.data, tool, model, license, cost, premise
and validation-path. Each may have multiple named checks. Distinguish
supported, contradicted, unknown and not-applicable; supply evidence
references for the first two, a bounded next check for unknowns and an
applicability reason for not-applicable. Theory need not invent data/models.unknown publication
version remains unresolved metadata even if its byte hash is current.sharing_basis.
Missing sharing basis, demand or capacity leaves the relevant result unknown.
Units stay separate; unknown is not zero. The checker cannot find omitted work.record_status, binding_status, prerequisites and
resource_estimates together. Exit 0 means a structurally valid/current report
completed, including reports with unknown/contradicted assessments or estimates
over budget. It does not establish semantic support, actual runtime budget,
scientific feasibility, human selection or execution permission.Carry unresolved and stale items into the human discussion. If supplied totals exceed capacity, compare a minimum version that still answers the question or park it; do not silently change the goal, remove necessary baselines or increase the budget. An optional check never replaces the three gates or user choice.
The dossier ends by stating explicitly: it has assembled the three
gate-verdicts; whether the gap is worth doing is the researcher's and
advisor's call. The skill never makes that call. Explain actual options,
tradeoffs and reason-specific next checks without forcing a rejected/conditional
pair. An eligible go or conditional-go is an assessment, not a user choice,
even for a sole candidate. Use an actual prior selection if clear; otherwise ask
which direction to design before handing it to research-design-helper.
Do not invent approval or start design/experiments from a next-step suggestion.
After .research/topic_dossier.md is written, run the bundled generator to
produce the matching Word deliverable:
# From the dossier's output directory (e.g. .research/ or en/)
node /path/to/skills/gap-to-topic/scripts/dossier_to_docx.js topic_dossier [--no-toc]
Prerequisite: npm install -g docx (or cd scripts && npm install docx for a
local install). See scripts/README.md for full invocation details and the
zh-TW case.
The script produces topic_dossier.docx alongside the .md. It colour-codes
verdict cells (light red / yellow / green / grey), auto-selects font
(Microsoft JhengHei for zh-TW filenames, Arial otherwise), skips Markdown
separator rows, and inserts a TOC + page break after the first table (suppress
with --no-toc).
references/dossier-template.md — the blank reader-first dossier + companion-file schemas.references/dead-end-history.md — §2 dead-end detection method.references/contribution-typing.md — §2 contribution-type classification.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
thesis, research-gap, proposal, decision-dossier, academic-research
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
/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-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