Literature management

From aipoch/medical-research-skills · View interactive version

Literature management is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Import local literature into a managed library; trigger when you need offline deduplication, tagging, and a searchable index.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Example Usage

# 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:

Additional examples may be available in: references/examples.md.

Implementation Details

Inputs

Outputs

Index Data Model (`index.jsonl`)

Each line is a single JSON record with (at minimum) the following fields:

Deduplication Algorithm

Deduplication is applied in the following priority order:

  1. DOI (primary)
  1. Title + Year (secondary)
  1. File hash (fallback)

The chosen rule is recorded in dedup_rule, and the computed key is stored in dedup_key.

Tagging Rules

File Organization Rules

Security / Compliance Constraints

When Not to Use

Required Inputs

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

Validation and Safety Rules

Failure Handling

Input Validation

This skill accepts requests that match the documented purpose of literature-management and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

literature-management only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/import_library.py --help

Expected output format:

Result file: literature_management_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.