1---2name: human-protein-atlas-skill3description: Submit compact Human Protein Atlas requests for gene JSON, search downloads, and page-level tissue or cell-line lookups. Use when a user wants concise Human Protein Atlas summaries; save raw JSON or HTML only on request.4---56## Operating rules7- Use `scripts/rest_request.py` for all Human Protein Atlas calls.8- Use `base_url=https://www.proteinatlas.org`.9- The script accepts `max_items`; single gene entry lookups usually do not need it, while search and download endpoints are better with `max_items=10`.10- Re-run requests in long conversations instead of relying on older tool output.11- Treat displayed `...` in tool previews as UI truncation, not literal request content.12- If the user asks for full HTML or JSON, set `save_raw=true` and report the saved file path instead of pasting large payloads into chat.1314## Execution behavior15- Return concise markdown summaries from the script JSON by default.16- Return the script JSON verbatim only if the user explicitly asks for machine-readable output.17- Prefer these paths: `<ENSG>.json`, `api/search_download.php`, `search/tissue/<symbol>`, and `search/cellline/<symbol>`.18- For page-level search endpoints, prefer `response_format=text` so the script returns only `text_head` unless raw output is requested.1920## Input21- Read one JSON object from stdin.22- Required fields: `base_url`, `path`23- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`24- Common HPA patterns:25 - `{"base_url":"https://www.proteinatlas.org","path":"ENSG00000141510.json"}`26 - `{"base_url":"https://www.proteinatlas.org","path":"api/search_download.php","params":{"search":"TP53","format":"json","columns":"g,gs,tissue","compress":"no"},"max_items":10}`27 - `{"base_url":"https://www.proteinatlas.org","path":"search/tissue/TP53","response_format":"text"}`2829## Output30- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records`, a compact `summary`, or `text_head`.31- Use `raw_output_path` when `save_raw=true`.32- Failure returns `ok=false` with `error.code` and `error.message`.3334## Execution35```bash36echo '{"base_url":"https://www.proteinatlas.org","path":"ENSG00000141510.json"}' | python scripts/rest_request.py37```3839## References40- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.