{"id":11608,"plugin_id":"Plugin_3d180245a1a881918476af7b5061e1e4","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T22:59:51.765Z","digest":"7a5f25d701fdf3c12a955a64e50e9cc246bf97102e0fd2cf889d6b2621e61a31","against":null,"payload":{"name":"ncbi-pmc-skill","description":"Retrieve compact PMC Article Dataset metadata for PMCID, PMID, or DOI lookups. Use when a user wants open-access status, license, retraction status, or current article file URLs; save raw JSON only on request.","included_files":[{"relative_path":"scripts/ncbi_pmc.py","size_in_bytes":13342},{"relative_path":"scripts/test_ncbi_pmc.py","size_in_bytes":6838}],"skill_md_contents":"---\nname: ncbi-pmc-skill\ndescription: Retrieve compact PMC Article Dataset metadata for PMCID, PMID, or DOI lookups. Use when a user wants open-access status, license, retraction status, or current article file URLs; save raw JSON only on request.\n---\n\n## Source presentation\n<!-- source-presentation-contract:v2 -->\n- Add claim-adjacent links only for substantive claims supported by returned `sources`; never cite empty, metadata-only, or failed lookups.\n- Preserve `checked_sources`, use only supported `canonical_url` mappings, and leave requested raw or machine-readable output unchanged.\n- Use the `ncbi-pmc-skill` entry in `../../references/source-links.json` and follow `../../references/source-presentation.md`.\n\n## Operating rules\n- Use `scripts/ncbi_pmc.py` for all PMC Article Dataset metadata calls in this package.\n- This skill is intentionally narrow: it resolves one PMCID, PMID, DOI, or text identifier through PMC ESearch when needed and reads versioned metadata from the current public PMC Cloud dataset.\n- Pass the identifier under `params.id`; use `params.retmax` only when a non-PMCID lookup may resolve to multiple PMC records.\n- Re-run requests in long conversations instead of relying on older tool output.\n- Treat displayed `...` in tool previews as UI truncation, not literal request content.\n\n## Execution behavior\n- Return concise markdown summaries from the script output by default.\n- Report the returned open-access, manuscript, retraction, license, and HTTPS file URL fields directly rather than inferring availability.\n- Return raw JSON metadata only if the user explicitly asks for machine-readable output.\n- Prefer targeted endpoint calls instead of broad unfiltered dumps.\n- If the user needs the full raw response, set `save_raw=true` and report the saved file path.\n\n## Input\n- Read one JSON object from stdin.\n- Required field: `params.id`\n- Optional fields: `params.retmax`, `max_items`, `timeout_sec`, `save_raw`, `raw_output_path`\n- Common PMC Article Dataset patterns:\n  - `{\"params\":{\"id\":\"PMC3257301\"},\"max_items\":10}`\n  - `{\"params\":{\"id\":\"22966082\"},\"max_items\":10}`\n  - `{\"params\":{\"id\":\"10.1093/nar/gkr1184\"},\"max_items\":10}`\n\n## Output\n- Success returns `ok`, `source`, resolved `pmcids`, record counts, `truncated`, and compact versioned `records` containing license, retraction, and file URL metadata.\n- Use `raw_output_path` when `save_raw=true`.\n- Failure returns `ok=false` with `error.code` and `error.message`.\n\n## Execution\n```bash\necho '{\"params\":{\"id\":\"PMC3257301\"},\"max_items\":10}' | python scripts/ncbi_pmc.py\n```\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}