{"id":24768,"plugin_id":"plugins~Plugin_7113e6f705948191bad2d24c30465361","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T23:18:37.039Z","digest":"b65b16c2fbc7e92c6bd1f230d5cd5551e72381101bda6b3cb8cac69d8b5e00a8","against":null,"payload":{"name":"uniprot-skill","description":"Submit compact UniProt REST API requests for UniProtKB, UniRef, UniParc, and FASTA stream endpoints. Use when a user wants concise UniProt summaries; save raw JSON or FASTA only on request.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":84},{"relative_path":"scripts/rest_request.py","size_in_bytes":10728}],"skill_md_contents":"---\nname: uniprot-skill\ndescription: Submit compact UniProt REST API requests for UniProtKB, UniRef, UniParc, and FASTA stream endpoints. Use when a user wants concise UniProt summaries; save raw JSON or FASTA only on request.\n---\n\n## Operating rules\n- Use `scripts/rest_request.py` for all UniProt API calls.\n- Use `base_url=https://rest.uniprot.org`.\n- The script accepts `max_items`; for search endpoints, start with API `size=10` and `max_items=10`.\n- Single accession or cluster lookups usually do not need `max_items`.\n- Re-run requests in long conversations instead of relying on older tool output.\n- Treat displayed `...` in tool previews as UI truncation, not part of the real request.\n- If the user asks for full JSON or FASTA, set `save_raw=true` and report the saved file path instead of pasting the payload into chat.\n\n## Execution behavior\n- Return concise markdown summaries from the script JSON by default.\n- Return the script JSON verbatim only if the user explicitly asks for machine-readable output.\n- Prefer these paths: `uniprotkb/search`, `uniprotkb/<accession>`, `uniref/<cluster>`, `uniparc/search`, and `uniprotkb/stream`.\n- For `stream`, use `response_format=text` so the script returns only a short `text_head` unless raw output is requested.\n\n## Input\n- Read one JSON object from stdin.\n- Required fields: `base_url`, `path`\n- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`\n- Common UniProt patterns:\n  - `{\"base_url\":\"https://rest.uniprot.org\",\"path\":\"uniprotkb/search\",\"params\":{\"query\":\"gene:TP53 AND organism_id:9606\",\"fields\":\"accession,gene_names\",\"size\":10,\"format\":\"json\"},\"record_path\":\"results\",\"max_items\":10}`\n  - `{\"base_url\":\"https://rest.uniprot.org\",\"path\":\"uniprotkb/P04637\",\"params\":{\"format\":\"json\"}}`\n  - `{\"base_url\":\"https://rest.uniprot.org\",\"path\":\"uniprotkb/stream\",\"params\":{\"query\":\"organism_id:562\",\"format\":\"fasta\",\"size\":2},\"response_format\":\"text\"}`\n\n## Output\n- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records`, a compact `summary`, or `text_head`.\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 '{\"base_url\":\"https://rest.uniprot.org\",\"path\":\"uniprotkb/search\",\"params\":{\"query\":\"gene:TP53 AND organism_id:9606\",\"fields\":\"accession,gene_names\",\"size\":10,\"format\":\"json\"},\"record_path\":\"results\",\"max_items\":10}' | python scripts/rest_request.py\n```\n\n## References\n- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}