{"id":12160,"plugin_id":"Plugin_054ff933a434819187c4f95db80afc7f","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T23:00:59.785Z","digest":"c827e153b1d5c2ba83dadf08f16d190083a87697e93f5dbb586e1f37bd2896f1","against":null,"payload":{"name":"clinicaltrials-skill","description":"Submit compact ClinicalTrials.gov API v2 requests for study search, metadata, enums, search areas, and field statistics. Use when a user wants concise ClinicalTrials.gov summaries","included_files":[{"relative_path":"scripts/clinicaltrials_client.py","size_in_bytes":11701}],"skill_md_contents":"---\nname: clinicaltrials-skill\ndescription: Submit compact ClinicalTrials.gov API v2 requests for study search, metadata, enums, search areas, and field statistics. Use when a user wants concise ClinicalTrials.gov summaries\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 `clinicaltrials-skill` entry in `../../references/source-links.json` and follow `../../references/source-presentation.md`.\n\n## Operating rules\n- Use `scripts/clinicaltrials_client.py` for all ClinicalTrials.gov v2 calls.\n- Study searches are better with `max_items=10` and `max_pages=1`; only increase pages when the user explicitly wants more than the first page.\n- Use targeted `params` instead of broad unfiltered study dumps.\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 JSON by default.\n- Prefer `action=studies` for search and `action=metadata|search_areas|enums|stats_size|field_values|field_sizes` for API introspection and field stats.\n- If the user needs full pages or aggregated responses, set `save_raw=true` and report the saved file path.\n\n## Input\n- Read one JSON object from stdin.\n- Required field: `action`\n- Supported actions: `studies`, `metadata`, `search_areas`, `enums`, `stats_size`, `field_values`, `field_sizes`, `request`\n- Optional fields: `path` for `action=request`, `params`, `max_items`, `max_depth`, `max_pages`, `timeout_sec`, `save_raw`, `raw_output_path`\n- Common ClinicalTrials.gov patterns:\n  - `{\"action\":\"studies\",\"params\":{\"query.cond\":\"prostate cancer\",\"filter.overallStatus\":\"RECRUITING\",\"pageSize\":10},\"max_items\":10,\"max_pages\":1}`\n  - `{\"action\":\"metadata\"}`\n  - `{\"action\":\"field_values\",\"params\":{\"field\":\"protocolSection.identificationModule.organization.fullName\"}}`\n\n## Output\n- `action=studies` returns `pages_fetched`, `next_page_token`, count metadata, and compact `records`.\n- Other actions return either compact `records` or a compact `summary`.\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 '{\"action\":\"studies\",\"params\":{\"query.cond\":\"prostate cancer\",\"filter.overallStatus\":\"RECRUITING\",\"pageSize\":10},\"max_items\":10,\"max_pages\":1}' | python scripts/clinicaltrials_client.py\n```\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}