openai-ncbi-blast-skill

Submit, poll, and summarize NCBI BLAST Universal URL API (Blast.cgi) jobs for nucleotide or protein sequences. Suitable when RID status, BLAST results, or compact top-hit summaries are needed; raw text or JSON2 format data is returned only upon request.

Last repository push
GitHub Stars
8,491
Forks
1,134
Issues / PRs
0

Screenshots

A demonstration from skillπ Lab

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "openai-ncbi-blast-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6f3c4a9dbac4b4b55c71b64c2be2eb2269045f41c0c604c04791b8a63b8e22a4. Verify the upstream source and version against https://github.com/openai/plugins before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Submit, poll, and summarize NCBI BLAST Universal URL API (Blast.cgi) jobs for nucleotide or protein sequences. Suitable when RID status, BLAST results, or compact top-hit summaries are needed; raw text or JSON2 format data is returned only upon request.

0 Downloads

Introduction source: third_party · openai · 0.0.1 Reference

SkillPi interpretation

Tasks
Submit, poll, and summarize NCBI BLAST Common URL API jobs (Blast.cgi) for nucleotide or protein sequences. Use when a user wants RID status, BLAST results, or compact top-hit summaries; fetch raw Text/JSON2 only on request.
Inputs and outputs
The script reads one JSON object from stdin. `action` must be one of `submit`, `status`, `fetch`, or `run`. `submit` and `run` require `program`, `database`, `query_fasta`, and `email` (or `NCBI_EMAIL`). `status` and `fetch` require `rid`. `program` must be one of `blastn`, `blastp`, `blastx`, `tblastn`, or `tblastx`. `result_format` defaults to `json2` for `run` and `fetch`. `tool` defaults to `NCBI_TOOL`, then `ncbi-blast-skill`. `max_hits` defaults to `5`; `max_queries` defaults to `5`. `hitlist_size` defaults to `50`; `descriptions` and `alignments` default to `5`. `wait_timeout_sec` defaults to `900`. `save_raw` defaults to `false`. If `save_raw=true` and `raw_output_path` is omitted, t
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: ncbi-blast-skill
description: Submit, poll, and summarize NCBI BLAST Common URL API jobs (Blast.cgi) for nucleotide or protein sequences. Use when a user wants RID status, BLAST results, or compact top-hit summaries; fetch raw Text/JSON2 only on request.

Operating rules

  • Use scripts/ncbi_blast.py for all concrete BLAST work.
  • Honor NCBI limits: >=10s between requests and >=60s between polls for the same RID.
  • Always surface the RID in the response so the job can be resumed or refetched later.
  • If the conversation is long or multiple tool calls have occurred, refetch from the RID instead of trusting older context.
  • If a prior turn saved raw output to disk, do not read it back into context unless the user asks for a specific follow-up.

Execution behavior

  • Return compact BLAST summaries first.
  • Do not paste full JSON2 or long Text alignments into chat by default.
  • Default to max_hits=5 and max_queries=5.
  • If the user asks for raw output, write it to a file and report the path.
  • Only provide Python code when the user explicitly asks for code or execution is unavailable.
  • For normal user-facing answers, summarize the script JSON in markdown; if the user explicitly asks for machine-readable output, return the JSON verbatim.

Input

  • The script reads one JSON object from stdin.
  • action must be one of submit, status, fetch, or run.
  • submit and run require program, database, query_fasta, and email (or NCBI_EMAIL).
  • status and fetch require rid.
  • program must be one of blastn, blastp, blastx, tblastn, or tblastx.
  • result_format defaults to json2 for run and fetch.
  • tool defaults to NCBI_TOOL, then ncbi-blast-skill.
  • max_hits defaults to 5; max_queries defaults to 5.
  • hitlist_size defaults to 50; descriptions and alignments default to 5.
  • wait_timeout_sec defaults to 900.
  • save_raw defaults to false.
  • If save_raw=true and raw_output_path is omitted, the script writes to /tmp/ncbi-blast-<rid>.<json|txt>.
  • query_fasta may contain multi-FASTA input; compact summaries still cap per-query output with max_hits and max_queries.

Output

  • Common success fields: ok, source, action, warnings.
  • submit returns rid, rtoe_seconds, and status="SUBMITTED".
  • status returns rid, normalized status, and has_hits.
  • run and fetch with result_format=json2 return rid, status, has_hits, result_format, query_count_returned, query_count_available, query_summaries_truncated, query_summaries, and raw_output_path.
  • Each query_summary contains query_title, hit_count_returned, hit_count_available, truncated, and top_hits.
  • Each top_hit contains rank, accession, title, evalue, and bit_score.
  • fetch with result_format=text returns text_head capped at 800 characters unless save_raw=true; when save_raw=true, it returns only the artifact path.
  • Failures return ok=false, error.code, error.message, and warnings.

Execution

  • Run python scripts/ncbi_blast.py.
  • If requests is missing, install it once before first use with python -m pip install requests.
echo '{"action":"run","program":"blastp","database":"swissprot","query_fasta":">q1\nMTEYK...","email":"you@example.com"}' | python scripts/ncbi_blast.py

References

  • Load references/blast-common-url-api.txt only for parameter details or uncommon BLAST options.
  • Do not load references/intent-notes.txt during normal skill execution; it is not runtime guidance.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 NCBI BLAST API 的完整任务生命周期管理(提交、轮询、结果汇总)
  • 支持核苷酸和蛋白质序列,满足生物信息学专业用户需求
  • 默认返回紧凑摘要,避免信息过载,提升用户体验
Trigger Precision90/100

Highlights

  • description 清晰界定使用场景:RID 状态查询、BLAST 结果获取及顶级命中摘要
  • 触发条件具体,边界明确,不易误触
Structure and Standards95/100

Highlights

  • 文档结构完整,涵盖操作规则、执行行为、输入输出定义及示例
  • 提供端到端命令行调用示例,便于快速上手
  • frontmatter 元数据齐全,符合 Skill 规范
Execution Reliability90/100

Highlights

  • 严格遵守 NCBI API 调用频率限制(≥10s 请求间隔,≥60s 轮询间隔)
  • 自动处理依赖缺失问题(requests 库自动安装)
  • 原始输出保存路径可控,避免意外覆盖
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 53

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.