literature-management
Import local literature into a managed library; trigger when you need offline deduplication, tagging, and a searchable index.
Best use case
literature-management is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Import local literature into a managed library; trigger when you need offline deduplication, tagging, and a searchable index.
Teams using literature-management should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/literature-management/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How literature-management Compares
| Feature / Agent | literature-management | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Import local literature into a managed library; trigger when you need offline deduplication, tagging, and a searchable index.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills) ## When to Use - You have a batch of locally downloaded papers (PDF/BibTeX/RIS/CSV/TXT) that must be organized into a consistent library structure. - You need **offline** deduplication using DOI or normalized *Title + Year* to avoid repeated entries. - You want to apply **manual tags** at import time and also derive tags from available metadata keywords. - You need a local, appendable **search index** (`index.jsonl`) for later retrieval and filtering. - You must operate in an environment where **network access is not allowed** and all processing must remain local. ## Key Features - Local-only import into a managed literature library directory. - Deterministic deduplication with clear priority rules (DOI → Title+Year → file hash). - Tagging support: - manual tags via CLI flags - automatic tags from metadata keywords (when present) - Searchable index generation and maintenance via `index.jsonl` (one JSON object per line). - Predictable file organization by year and journal, with safe handling of naming conflicts. - Security/compliance-friendly behavior: no external APIs, no credentials, no network calls. ## Dependencies - Python **3.9+** - Python packages (install via requirements file): - `pip install -r scripts/requirements.txt` ## Example Usage ```bash # 1) Choose a source directory containing local literature files SOURCE_DIR="/path/to/downloads" # 2) Choose (or create) a target library directory managed by this skill LIBRARY_DIR="/path/to/literature-library" # 3) Import with optional manual tags (repeatable) python scripts/import_library.py \ --source-dir "$SOURCE_DIR" \ --library-dir "$LIBRARY_DIR" \ --tag "survey" \ --tag "to-read" ``` After running, verify: - Organized files under: - `"$LIBRARY_DIR/files/<Year>/<Journal>/..."` - Index file: - `"$LIBRARY_DIR/index.jsonl"` - The import/deduplication/error summary printed by the script. Additional examples may be available in: `references/examples.md`. ## Implementation Details ### Inputs - **Source directory**: contains one or more of `.pdf`, `.bib`, `.ris`, `.csv`, `.txt` - **Target library directory**: the managed library root - **Manual tags** (optional): provided via repeated `--tag "<tag>"` ### Outputs - Organized literature files written into the target library directory - `index.jsonl` created/appended in the library root - A summary of imported items, deduplicated items, and errors ### Index Data Model (`index.jsonl`) Each line is a single JSON record with (at minimum) the following fields: - `id`, `title`, `year`, `journal`, `authors`, `keywords`, `doi`, `tags` - `source_type`, `source_path`, `file_path` - `dedup_key`, `dedup_rule`, `imported_at` ### Deduplication Algorithm Deduplication is applied in the following priority order: 1. **DOI** (primary) - Case-insensitive comparison after normalization. 2. **Title + Year** (secondary) - Title is normalized (e.g., whitespace/case normalization) and combined with year. 3. **File hash** (fallback) - Used only when DOI and Title+Year are unavailable. The chosen rule is recorded in `dedup_rule`, and the computed key is stored in `dedup_key`. ### Tagging Rules - All `--tag` values are **always applied** to imported records. - If metadata includes `keywords`, they are converted into tags and merged with manual tags. ### File Organization Rules - Target path pattern: - `<library>/files/<Year>/<Journal>/` - Unknown values are mapped to: - `UnknownYear`, `UnknownJournal` - Filenames are preserved when possible; if a conflict occurs, a suffix is appended to avoid overwriting. ### Security / Compliance Constraints - No network access is used or required. - No external APIs or credentials are used. - The tool only reads from the specified `--source-dir`. - The tool only writes within the specified `--library-dir` (no writes outside the library root). ## When Not to Use - Do not use this skill when the required source data, identifiers, files, or credentials are missing. - Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions. - Do not use this skill when a simpler direct answer is more appropriate than the documented workflow. ## Required Inputs - A clearly specified task goal aligned with the documented scope. - All required files, identifiers, parameters, or environment variables before execution. - Any domain constraints, formatting requirements, and expected output destination if applicable. ## Recommended Workflow 1. Validate the request against the skill boundary and confirm all required inputs are present. 2. Select the documented execution path and prefer the simplest supported command or procedure. 3. Produce the expected output using the documented file format, schema, or narrative structure. 4. Run a final validation pass for completeness, consistency, and safety before returning the result. ## Output Contract - Return a structured deliverable that is directly usable without reformatting. - If a file is produced, prefer a deterministic output name such as `literature_management_result.md` unless the skill documentation defines a better convention. - Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations. ## Validation and Safety Rules - Validate required inputs before execution and stop early when mandatory fields or files are missing. - Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material. - Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result. - Keep the output safe, reproducible, and within the documented scope at all times. ## Failure Handling - If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required. - If an external dependency or script fails, surface the command path, likely cause, and the next recovery step. - If partial output is returned, label it clearly and identify which checks could not be completed. ## Quick Validation Run this minimal verification path before full execution when possible: ```bash python scripts/import_library.py --help ``` Expected output format: ```text Result file: literature_management_result.md Validation summary: PASS/FAIL with brief notes Assumptions: explicit list if any ```
Related Skills
schedule-management
Local schedule management for adding events, tracking deadlines, generating reminders, and detecting time conflicts when users need offline scheduling with optional popup notifications.
literatureimages-interpretation
Interpret figures in academic papers and their captions when the input is a PDF-to-Markdown document with page markers and image links, producing a structured Markdown report for extracting variables, trends, and conclusions.
literature-statistics
Generate statistics for publication-year and journal distributions from local references or PDFs; use when you need standardized Year/Journal tables and a summary without any network access.
file-management
Organize, back up, compress, split, and merge files/folders using rule-driven plans; use when you need safe previews, conflict handling, and verification before executing file operations.
literature-filtering
Filter literature by publication year, journal, and predefined screening rules to produce inclusion/exclusion lists; use when conducting preliminary screening or systematic review screening to narrow the literature scope.
literature-extensive-read
Rapidly skim and summarize academic papers (default:PDF-to-Markdown full text with `## Page XX` pagination and image references) and output a structured extensive-reading summary in Markdown when you need to quickly understand research questions, methods, key results, conclusions, and decide whether intensive reading is worthwhile.
literature-experiment-extract
Extract experimental models, experimental methods, and biomarker information from paper Markdown (typically produced by PDF-to-Markdown tools) when a user provides paper Markdown and needs a structured, evidence-backed summary (1 Markdown + 3 CSVs).
literature-close-read
Produce a structured close-reading report from a paper's full PDF-to-Markdown text (with `## Page XX` pagination and image references) when you need to systematically extract background, research questions, methods, results, limitations, and reproducible experimental details.
citation-management
Comprehensive citation management for academic research; use when you need to discover papers (Google Scholar/PubMed), extract/verify metadata (DOI/PMID/arXiv/URL), and produce validated, clean BibTeX for manuscripts.
multi-database-literature-collector
Collects candidate biomedical literature across multiple databases, adapts search logic by database, preserves source metadata, and organizes results into a structured, screening-ready candidate pool. Always use this skill when a user wants cross-database literature collection, search strategy construction, candidate paper aggregation, or first-pass evidence organization before deduplication, screening, layered reading, or review planning. Requires real and verifiable literature records only. Every formal literature item must include a real link and DOI when available; never fabricate citations, titles, authors, years, journals, abstracts, PMIDs, or DOIs. If a DOI is unavailable or cannot be verified, state that explicitly rather than inventing one.
medical-research-literature-reader-pro
A medical-research-native literature reading skill for users with clinical, bioinformatics, translational, and basic experimental backgrounds. Use this skill whenever a user wants to read, analyze, critique, or interpret a medical or scientific paper — whether they provide a PDF, abstract, DOI, PMID, or just a title. Triggers include requests like "analyze this paper", "critique this study", "is this a strong paper?", "give me similar studies", "prepare me for journal club", "help me understand this bioinformatics paper", "what are the weaknesses here?", or "turn this into a mind map". Also activate for any downstream deliverables such as journal club kits, comparison tables, PI decision briefs, replication starters, or follow-up experiment designs. Do NOT treat as a generic summarizer — this skill performs structured evidence-type classification, track-specific critical appraisal, interpretation-boundary judgment, and research-grade follow-up generation.
skill-auditor
A comprehensive auditor for any agent skill — including Manus, OpenClaw/ClawHub, Claude, LobeHub, or custom SKILL.md-based skills. Use this skill whenever a user wants to evaluate, audit, review, score, or quality-check an agent skill before publishing, updating, or deploying. Covers two hard veto gates (structural redlines + research integrity redlines), static quality scoring across 25 criteria (ISO 25010 + OpenSSF + Agent), dynamic test input generation, multi-mode execution testing, multi-layer output evaluation with five specialized category rubrics (Evidence Insight / Protocol Design / Data Analysis / Academic Writing / Other), a Research Veto that applies to all four research categories, human eval viewer generation, actionable P0/P1/P2 optimization recommendations, and automatic skill improvement that outputs a polished, production-ready SKILL.md. Also use whenever a user says "audit my skill", "evaluate my skill", "improve my skill", or wants a corrected version after evaluation.