Communitygithub.com

pubmed-database

생물의학 문헌 검색을 위한 PubMed 및 NCBI E-utilities 워크플로우 지원. MeSH 질의, PMID 조회, 인용 정보 검색, API 기반 문헌 모니터링에 사용됩니다. 일반 웹 검색이 아닌 생물의학 문헌이 필요할 때 활용하세요.

pubmed-database란 무엇인가요?

이 스킬은 개발자와 AI 에이전트가 PubMed 및 NCBI E-utilities를 활용하여 생물의학 문헌을 검색하고 분석할 수 있도록 지원합니다. MeSH(의학 주제 표목) 용어, 필드 태그, Boolean 연산자를 조합한 정밀한 질의를 구성하고, PMID 조회, 초록 검색, 인용 정보 확인 등 다양한 작업을 수행할 수 있습니다. 주요 기능으로는 E-utilities(ESearch, ESummary, EFetch, ELink)를 통한 API 기반 워크플로우, 검색 결과 로깅, 시스템적 리뷰를 위한 반복 가능한 검색 문자열 생성 등이 포함됩니다. Python, 셸, HTTP 클라이언트 등 다양한 환경에서 사용 가능하며, 환경 변수로 API 키를 안전하게 관리합니다. 이 스킬은 생물의학 연구, 임상 리뷰, 문헌 모니터링 등에 특화되어 있어, 일반 웹 검색보다 정확하고 체계적인 문헌 검색이 필요할 때 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

PubMed 데이터베이스

이 스킬은 일반 웹 검색이 아닌 PubMed의 생물의학 문헌이 필요할 때 사용하세요.

사용 시기

  • MEDLINE이나 생명과학 문헌 검색
  • MeSH 용어, 필드 태그, 날짜, 논문 유형을 사용한 PubMed 질의 구성
  • PMID, 초록, 출판 메타데이터, 관련 인용 정보 조회
  • 반복 가능한 검색 문자열이 필요한 체계적 리뷰 검색 패스 실행
  • Python, 셸, 또는 다른 HTTP 클라이언트에서 직접 NCBI E-utilities 사용

질의 구성

연구 질문으로 시작하여 개념으로 분할한 후 Boolean 연산자로 결합하세요.

개념_1 AND 개념_2 AND 필터
동의어_a OR 동의어_b
NOT 제외_용어

유용한 PubMed 필드 태그:

  • [ti]: 제목
  • [ab]: 초록
  • [tiab]: 제목 또는 초록
  • [au]: 저자
  • [ta]: 저널명 약어
  • [mh]: MeSH 용어
  • [majr]: 주요 MeSH 주제
  • [pt]: 출판 유형
  • [dp]: 출판일
  • [la]: 언어

예시:

diabetes mellitus[mh] AND treatment[tiab] AND systematic review[pt] AND 2023:2026[dp]
(metformin[nm] OR insulin[nm]) AND diabetes mellitus, type 2[mh] AND randomized controlled trial[pt]
smith ja[au] AND cancer[tiab] AND 2026[dp] AND english[la]

MeSH 및 하위 주제

안정적인 통제 어휘 용어가 있는 개념에는 MeSH를 선호하세요. 주제가 새롭거나 용어가 다양한 경우 MeSH를 제목/초록 용어와 결합하세요.

올바른 하위 주제 구문은 하위 주제를 필드 태그 앞에 배치합니다:

diabetes mellitus, type 2/drug therapy[mh]
cardiovascular diseases/prevention & control[mh]

주제가 논문의 중심이어야 하는 경우에만 [majr]을 사용하세요. 정밀도를 높일 수 있지만 관련 연구를 놓칠 수 있습니다.

필터

출판 유형:

  • clinical trial[pt]
  • meta-analysis[pt]
  • randomized controlled trial[pt]
  • review[pt]
  • systematic review[pt]
  • guideline[pt]

날짜 필터:

2026[dp]
2020:2026[dp]
2026/03/15[dp]

가용성 필터:

free full text[sb]
hasabstract[text]

E-utilities 워크플로우

NCBI E-utilities는 반복 가능한 API 워크플로우를 지원합니다:

  1. esearch.fcgi: 검색 및 PMID 반환
  2. esummary.fcgi: 경량 논문 메타데이터 반환
  3. efetch.fcgi: XML, MEDLINE, 또는 텍스트 형식의 초록 또는 전체 레코드 가져오기
  4. elink.fcgi: 관련 논문 및 연결된 리소스 찾기

프로덕션 스크립트에는 이메일과 API 키를 사용하세요. API 키는 환경 변수에 저장하고, 커밋된 파일이나 명령 기록에 절대 저장하지 마세요.

import os
import time
import requests

BASE = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"


def esearch(query: str, retmax: int = 20) -> list[str]:
    params = {
        "db": "pubmed",
        "term": query,
        "retmode": "json",
        "retmax": retmax,
        "tool": "ecc-pubmed-search",
        "email": os.environ.get("NCBI_EMAIL", ""),
    }
    api_key = os.environ.get("NCBI_API_KEY")
    if api_key:
        params["api_key"] = api_key

    response = requests.get(f"{BASE}/esearch.fcgi", params=params, timeout=30)
    response.raise_for_status()
    time.sleep(0.35)
    return response.json()["esearchresult"]["idlist"]


pmids = esearch("hypertension[mh] AND randomized controlled trial[pt] AND 2024:2026[dp]")
print(pmids)

배치 작업의 경우, URL을 통해 매우 긴 PMID 목록을 전달하는 대신 NCBI 히스토리 서버 매개변수(usehistory=y, WebEnv, query_key)를 선호하세요.

출력 규율

각 검색 패스에 대해 다음을 기록하세요:

  • 정확한 검색 문자열
  • 검색한 데이터베이스
  • 검색 날짜
  • 사용된 필터
  • 결과 수
  • 내보내기 형식
  • 수동 제외 사항

예시:

| 데이터베이스 | 검색 날짜 | 질의 | 필터 | 결과 |
| --- | --- | --- | --- | ---: |
| PubMed | 2026-05-11 | `sickle cell disease[mh] AND CRISPR[tiab]` | 2020:2026[dp], English | 42 |

검토 체크리스트

  • 필드 태그가 유효한 PubMed 태그인가?
  • 최신 주제에 대해 MeSH 용어가 자유 텍스트 동의어와 함께 사용되었는가?
  • 날짜 범위가 명시적이고 적절한가?
  • 검색 로그에 질의를 재현할 수 있을 만큼 충분한 세부 정보가 포함되어 있는가?
  • API 키가 환경에서 로드되었는가?
  • HTTP 코드가 파싱 전에 raise_for_status()를 호출하거나 200이 아닌 응답을 처리하는가?
  • 속도 제한이 준수되었는가?

참고 자료

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

관련 스킬