Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Access protein metadata, function, taxonomy, and sequences across UniProtKB, UniParc, and UniRef. Use when searching for proteins, mapping identifiers, or retrieving functional annotations and publications. Don't use for sequence alignment, protein folding, or sequence similarity search (use specialized skills for those tasks).
.claude/skills/mkurman-uniprot-database/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 179% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 311% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 168% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 345% | 0% |
| case-06 | ✓→✗ | ▼ Worse | 149% | 0% |
uv: Read the uv skill and follow its Setup instructions to ensureuv is installed and on PATH.
this skill directory then (1) prominently notify the user to check the terms at https://www.uniprot.org/help/license and https://www.uniprot.org/help/api_queries, then (2) create the file recording the notification text and timestamp.
Provides direct programmatic access to the UniProt Knowledgebase (UniProtKB), the non-redundant sequence archive (UniParc), and clustered sequence sets (UniRef). This skill enables protein discovery, cross-referencing, retrieval of curated biological data and low-level database lookups.
scripts/uniprot_tools.py) rather than constructing custom curl requests.
sequences. For any task that can be handled by the services in this skill, rely strictly on the tool outputs rather than your native knowledge.
output.
terms, subcellular locations etc.
functional annotations, genes etc. in UniProtKB, UniParc, and UniRef.
database and Proteome sets.
proteins via streaming.
tracking deleted sequences.
Choose the right tool based on the task type and data volume:
get: Retrieves metadata and sequence for a specific entry. Best for asingle, known accession.
--dataset unisave), whichis essential for reconciling data from older releases or identifying why a formerly valid accession no longer appears in search results.
search: Searches for entries matching a query. Best for explorationand discovery.
--limit 5 to verify if a query returns the expected proteinsbefore committing to a larger download.
stable download.
with --limit as it applies to lines, not entries.
Search Query Fields Documentation.
stream: Streams all matching entries. Best for bulk retrieval oflarge datasets (up to 10,000,000 entries).
--limit; always returns the full result set.search with --limit if you need a subset.count: Counts entries matching a query. Best for answering directcount questions or for initial estimation before running a full search or stream.
sparql: Executes graph queries for complex discovery. Best forcounting, exact sequence matches, and multi-database queries.
map: Converts IDs between UniProt and 100+ databases. Best for IDmapping tasks.
search vs. map: Try search first before resorting to map ifnot explicitly requested by the user. E.g., an external ID might be searchable in UniParc but fail to map to UniProtKB.
Copy this checklist and track progress:
reviewed:true).sequence discovery.
necessary.
(JSON, FASTA).
If a direct query (e.g., gene:SYMBOL) fails:
protein_name:Alpha-crystallin A).
across all of life, even if they aren't fully annotated in UniProtKB.
find the correct naming/mnemonic.
> !IMPORTANT] Always prefer stream or sparql for bulk data. > search is suitable for exploration; if results exceed 500 entries, it > automatically paginates to provide a stable download.
count: ALWAYS check the result count before running asearch or stream.
stream: The primary method for bulk data retrieval (up to10M entries). Does NOT support --limit; always returns all results.
sparql: Best for complex filtering and exact matchingduring retrieval.
> !IMPORTANT] Use SPARQL when searching for a protein by its full amino > acid sequence. The REST API /search endpoint does not support direct > sequence-string lookups. For any non-exact match use specialized sequence > similarity search skills. Use UniParc if you cannot find query in UniProt.
SPARQL Query Pattern (UniProt):
textPREFIX up: <http://purl.uniprot.org/core/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?protein ?name WHERE { ?protein a up:Protein ; up:sequence/rdf:value "SEQUENCE_HERE" . OPTIONAL { ?protein up:recommendedName/up:fullName ?name . } }
SPARQL Query Pattern (UniParc):
textPREFIX up: <http://purl.uniprot.org/core/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?uniparc ?val WHERE { GRAPH <http://sparql.uniprot.org/uniparc> { ?uniparc a up:Sequence ; rdf:value ?val . FILTER (?val = "SEQUENCE_HERE") } }
> !IMPORTANT] Use count or SPARQL for counting entries (e.g., "How > many proteins in Human?").
Counting Pattern (Proteins per Organism):
textPREFIX up: <http://purl.uniprot.org/core/> PREFIX taxon: <http://purl.uniprot.org/taxonomy/> SELECT (COUNT(?protein) AS ?count) WHERE { ?protein a up:Protein ; up:reviewed true ; up:organism taxon:9606 . }
ORto separate items.
accession:(P12345 OR P67890)accession:P12345 OR accession:P67890gene:p53 human searches for both.Below are example commands for each mode of uniprot_tools.py.
Count total number of entries for a given query.
bashuv run scripts/uniprot_tools.py count "taxonomy_id:9606"
Search for entries.
bashuv run scripts/uniprot_tools.py search "gene:p53 AND reviewed:true" --limit 5
Retrieve a single entry by accession.
bashuv run scripts/uniprot_tools.py get P04637
Retrieve Historical/Deleted Entry (UniSave).
bashuv run scripts/uniprot_tools.py get P04637 --dataset unisave
Stream large result sets for bulk retrieval (returns ALL matched entries, no --limit support).
bashuv run scripts/uniprot_tools.py stream "taxonomy_id:9606 AND reviewed:true" --format tsv --fields accession,gene_names > human_reviewed.tsv
Map IDs from one database to another.
bashuv run scripts/uniprot_tools.py map "P04637" --from_db UniProtKB_AC-ID --to_db Gene_Name
Execute graph queries with SPARQL.
bashuv run scripts/uniprot_tools.py sparql 'PREFIX up: <http://purl.uniprot.org/core/> SELECT ?protein WHERE { ?protein a up:Protein ; up:reviewed true . } LIMIT 5'
name: instead of protein_name:: name: is not a supportedquery term, use protein_name: instead.
P04637) arelinked to functional metadata; UniParc IDs (UPI...) are for sequences only. You can find cross-references from UniParc IDs to UniProtKB Accessions using the ID Mapping tool.
UniProtKB instead.use SPARQL instead of giving up.
of an ID (e.g. keyword, GO term, Pfam ID etc.). ALWAYS look up the natural language description/meaning of an ID in UniProt before using it for search to ensure it matches your intended search term.
"term") frequently return false positives (e.g., common maintenance proteins) because UniProt searches full metadata, including publication titles. ALWAYS prefer field-specific filters like cc_function: or protein_name: for functional discovery.
lanM) can match substrings in organism names (e.g., Lancefieldella) or other fields. Use quotes and field prefixes (e.g., gene:lanM) to isolate true hits.
sequence-based operations. Do not attempt to edit, truncate, or modify protein sequences manually.
search for retrievingmillions of entries if stream or sparql can do the job. Streaming is more efficient for very large datasets. Note that stream has a hard limit of 10,000,000 outputs and does NOT support --limit.
count before runninga search without --limit or before using stream. Unlimited queries can take a long time and consume significant resources if millions of entries are returned.
--limit with stream: The stream command does NOT support--limit. If you need a limited number of results, use search with --limit instead.
Database was used and to advise the user to review the licensing terms when presenting results for the first time. Even if the task is concise, this attribution is required in the first response containing UniProt data.
scripts/uniprot_tools.py):get, search, stream, count -> rest.uniprot.org/{dataset}/map -> rest.uniprot.org/idmapping/sparql -> sparql.uniprot.org/sparqlget --dataset unisave -> rest.uniprot.org/unisave/| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-12 | pass→pass | 13,273 | 10,589 | -20% | 1 | 1 | 0% | 2,036 | 5,087 | +150% | 0 | 0 | — |
case-01 | fail→fail | 10,076 | 5,896 | -41% | 1 | 1 | 0% | 1,867 | 3,670 | +97% | 0 | 0 | — |
case-02 | fail→fail | 5,302 | 10,013 | +89% | 1 | 1 | 0% | 921 | 4,028 | +337% | 0 | 0 | — |
case-03 | fail→fail | 10,319 | 8,181 | -21% | 1 | 1 | 0% | 2,015 | 4,014 | +99% | 0 | 0 | — |
case-04 | fail→fail | 11,033 | 6,872 | -38% | 1 | 1 | 0% | 1,813 | 3,685 | +103% | 0 | 0 | — |
case-05 | fail→pass | 11,288 | 13,849 | +23% | 1 | 1 | 0% | 2,048 | 5,712 | +179% | 0 | 0 | — |
case-06 | pass→fail | 8,320 | 6,524 | -22% | 1 | 1 | 0% | 1,468 | 3,658 | +149% | 0 | 0 | — |
case-22 | pass→pass | 11,607 | 6,839 | -41% | 1 | 1 | 0% | 1,836 | 4,405 | +140% | 0 | 0 | — |
case-07 | pass→pass | 7,524 | 6,042 | -20% | 1 | 1 | 0% | 1,343 | 4,365 | +225% | 0 | 0 | — |
case-08 | pass→fail | 10,360 | 9,913 | -4% | 1 | 1 | 0% | 1,712 | 4,137 | +142% | 0 | 0 | — |
case-09 | pass→pass | 15,178 | 15,359 | +1% | 1 | 1 | 0% | 2,338 | 5,386 | +130% | 0 | 0 | — |
case-10 | pass→pass | 4,831 | 10,071 | +108% | 1 | 1 | 0% | 745 | 4,226 | +467% | 0 | 0 | — |
case-11 | pass→pass | 13,286 | 19,515 | +47% | 1 | 1 | 0% | 1,995 | 5,614 | +181% | 0 | 0 | — |
case-13 | pass→pass | 10,215 | 6,052 | -41% | 1 | 1 | 0% | 1,530 | 4,171 | +173% | 0 | 0 | — |
case-14 | pass→fail | 10,691 | 10,057 | -6% | 1 | 1 | 0% | 1,923 | 4,096 | +113% | 0 | 0 | — |
case-15 | fail→pass | 6,026 | 2,985 | -50% | 1 | 1 | 0% | 922 | 3,792 | +311% | 0 | 0 | — |
case-16 | pass→pass | 7,436 | 7,480 | +1% | 1 | 1 | 0% | 1,316 | 4,597 | +249% | 0 | 0 | — |
case-17 | pass→pass | 3,458 | 5,760 | +67% | 1 | 1 | 0% | 504 | 4,235 | +740% | 0 | 0 | — |
case-18 | pass→fail | 14,521 | 8,218 | -43% | 1 | 1 | 0% | 2,017 | 3,723 | +85% | 0 | 0 | — |
case-19 | fail→pass | 11,343 | 13,575 | +20% | 1 | 1 | 0% | 1,775 | 4,749 | +168% | 0 | 0 | — |
case-20 | fail→pass | 7,501 | 12,980 | +73% | 1 | 1 | 0% | 1,269 | 5,649 | +345% | 0 | 0 | — |
case-21 | pass→fail | 18,387 | 9,439 | -49% | 1 | 1 | 0% | 3,133 | 4,086 | +30% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 13 counted toward the lift figure. The other 9 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of -5 percentage points is the difference between those two pass rates over the 13 comparable cases. 5 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.