litbase

$npx mdskill add aipoch/medical-research-skills/litbase

Synthesize biomedical literature into actionable research foundations.

  • Accelerates protocol design by aggregating and structuring academic insights.
  • Integrates Semantic Scholar for discovery and native PDF parsing for reading.
  • Generates a Research Foundation Document to guide downstream protocol tasks.
  • Outputs structured notes and synthesized summaries within chat or file artifacts.

SKILL.md

.github/skills/litbaseView on GitHub ↗
---
name: litbase
description: "Academic paper reading and research development system for biomedical researchers. Finds papers via Semantic Scholar, reads with structured notes, tracks discussion insights, and synthesizes literature into a Research Foundation Document (RFD) for downstream protocol design skills. 8 commands: /setup /feed /read /discuss /recap /update /sync /propose"
license: MIT
author: aipoch
metadata:
  openclaw:
    optional_bins:
      - python      # optional: accelerates paper search if available; falls back to inline WebFetch calls
      - pdftotext   # optional: accelerates PDF text extraction if available; falls back to Claude native PDF reading
  capability_tiers:
    tier_a: "Conversation mode — Web Claude or any LLM chat interface; no file system; notes output as Artifacts; state maintained via session card"
    tier_b: "File mode — Manus or any file-capable agent; file read/write available; no Python/bash required"
    tier_c: "Full mode — OpenClaw / Claude Code; full file system, bash, and optional Python acceleration"
  downstream_skills:
    - clinical-cohort-protocol-designer
    - translational-study-blueprint
    - statistical-analysis-plan-writer
    - protocol-writer
---
> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)

# LitBase

An academic paper reading and research development system running inside Claude Code (or any compatible agent environment). Built for **biomedical researchers** who want to find papers, build structured reading notes, track discussion insights, and ultimately synthesize their literature base into a research proposal.

Paper source: [Semantic Scholar](https://www.semanticscholar.org) — free, no login required, 200M+ papers across all disciplines.

---

## Quick Start

**Step 1** — Edit `config.json` with your research folder path:

```json
{
  "data_dir": "/path/to/your/research/folder",
  "s2_api_key": "optional — leave empty to use free tier",
  "mode": "auto"
}
```

**Step 2** — Open this folder in Claude Code, then type `/setup`.

The setup command configures everything automatically — no terminal commands needed.

---

## Commands

| Command | When to use | What it does |
|---------|------------|--------------|
| `/setup` | First use | Guided research profile setup; auto-configures environment |
| `/feed` | Daily | Updates search terms → searches Semantic Scholar → recommends papers |
| `/read` | Per paper | Submit a PDF path, DOI, or abstract → generates 4-section structured note |
| `/discuss [keyword]` | Deep dive | Locate a paper note by author/title/keyword and discuss; auto-records insights |
| `/recap` | Weekly review | Reading overview, framework completeness map, next-step recommendations |
| `/update` | Direction shift | Sync research direction changes to memory and search terms |
| `/sync` | Maintenance | Cross-document consistency check; literature integrity audit |
| `/propose` | Proposal stage | Synthesizes reading notes into a Research Foundation Document (RFD) for downstream protocol design |

---

## Note Structure

Each paper analysis is structured in four sections:

| Section | Content |
|---------|---------|
| **I. Paper Weight** | Journal/conference rank, IF, database indexing (SSCI/Scopus/etc.), Q-rank; each author's institution, position, h-index; citation count and yearly average; overall assessment |
| **II. Paper Highlights** | Methodological innovation / critique of systemic problems / significance of the research object |
| **III. Transferable Elements** | Theory framework, method details, conceptual tools — each tagged to which part of the user's own paper it can support |
| **IV. How to Use in Your Paper** | Literature review positioning, suggested citation phrases (English), methodological precedent, research motivation |

---

## Research Foundation Document (RFD)

The `/propose` command generates an RFD — a structured synthesis of the user's accumulated literature base. It serves as a standardized upstream input to any downstream protocol design skill.

RFD sections: Study Population & Clinical Context → Focused Research Question (P/E/C/O/D/T) → Theoretical Framework & Mechanistic Basis → Methodological Precedents → Identified Research Gaps → Literature Source Index.

All citations in the RFD are sourced exclusively from the user's confirmed reading list. No fabricated references.

---

## Capability Tiers

LitBase adapts to its runtime environment automatically:

| Tier | Environment | PDF reading | Paper search | Notes storage | State persistence |
|------|------------|-------------|--------------|--------------|-------------------|
| A | Web Claude, any LLM chat | Native upload | WebSearch / WebFetch | Artifact output | Session card (paste at session start) |
| B | Manus, file-capable agents | Claude Read tool | WebFetch → S2 API | File system | MEMORY.md |
| C | OpenClaw / Claude Code | Claude Read tool (+ optional pdftotext) | WebFetch → S2 API (+ optional Python) | File system | Claude persistent memory |

---

## Dependencies

| Dependency | Purpose | Required? |
|-----------|---------|-----------|
| Python (stdlib) | Runs paper search and metadata scripts | Optional — WebFetch fallback available |
| pdftotext (poppler) | PDF text extraction | Optional — Claude native PDF reading available |
| Claude Code | Executes skill commands | Required for Tier C |

No API key required for Semantic Scholar. An optional free key raises rate limits.

---

## Literature Integrity

All commands follow the rules in `LITERATURE_HARD_RULES.md`:
- No fabricated PMIDs, DOIs, titles, authors, citation counts, or study data.
- All citations in notes and proposals must be traceable to user-provided papers.
- Unverifiable claims are labeled explicitly rather than omitted silently.

---

## File Structure

```
litbase/
├── SKILL.md                        ← skill manifest (this file)
└── core/                           ← open this folder in Claude Code
    ├── CLAUDE.md                   ← project rules (auto-loaded)
    ├── README.md
    ├── config.json                 ← user config (data_dir, API key, mode)
    ├── search_config.json          ← search terms (maintained by Claude)
    ├── settings.local.json         ← Claude Code permissions template
    ├── install.sh                  ← optional manual setup script
    ├── commands/
    │   ├── setup.md
    │   ├── feed.md
    │   ├── read.md
    │   ├── discuss.md
    │   ├── recap.md
    │   ├── update.md
    │   ├── sync.md
    │   └── propose.md
    ├── references/
    │   ├── LITERATURE_HARD_RULES.md
    │   └── SESSION_CARD_TEMPLATE.md
    ├── scripts/
    │   ├── recommend.py            ← optional: Semantic Scholar search
    │   ├── lookup_paper.py         ← optional: paper metadata query
    │   └── rename_pdfs.py          ← optional: PDF batch rename
    ├── memory/
    │   └── MEMORY.md
    └── notes/
        └── WORKFLOW.md

data_dir/                           ← path set in config.json
  notes/
    reading_list.md
    YYYY-MM-DD/
      recommendations.md
      Author_Year_Keywords/
        Author_Year_Keywords.pdf
        Author_Year_Keywords.md
    recaps/
      YYYY-MM-DD_recap.md
    proposal/
      YYYY-MM-DD_RFD.md
```

More from aipoch/medical-research-skills

SkillDescription
3d-molecule-ray-tracerGenerate photorealistic rendering scripts for PyMOL and UCSF ChimeraX.
abstract-summarizerTransform lengthy academic papers into concise, structured 250-word abstracts.
abstract-trimmerPrecision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.
academic-abstract-refinerRefines long medical academic texts into SCI-style unstructured Chinese and English abstracts; use when you need to condense drafts/reports/summaries into bilingual abstracts and generate Summary_Report.md.
academic-cv-generatorGenerate structured academic CVs from free-form Chinese/English text and export to Word (.docx). Use this skill when you are asked to organize, generate, or optimize an academic CV (e.g., publications/projects/awards) into a consistent, formatted document with uniform-colored section headers and optional bilingual output.
academic-highlight-generatorGenerates submission-ready Elsevier/SCI Highlights from manuscript text or extracted PDF/DOCX/TXT content. Use when a user needs 3-5 concise, evidence-grounded highlight bullets for a research paper, review, meta-analysis, case report, or bioinformatics manuscript.
academic-norm-reviewDetects content similarity, verifies standardized citations and abbreviations, and flags potential academic integrity risks; use it before submission, during academic writing QA, or for compliance reviews.
academic-poster-generatorComplete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster (beamerposter/tikzposter/baposter) with mandatory figure generation and a final rendered HTML deliverable.
acronym-unpackerIntelligent medical abbreviation disambiguation tool that resolves ambiguous acronyms using clinical context, specialty-specific knowledge, and document-level semantic analysis.
active-comparator-single-soc-faers-safety-comparisonGenerates complete FAERS pharmacovigilance study designs for multi-drug or class-level safety comparison inside one predefined SOC or AE family using active comparators, disproportionality analysis, subgroup characterization, and reviewer-facing evidence control.