К основному содержанию
скилл CX Codex

foldseek-structural-search — скилл для Claude Code: поиск похожих

Отправляет файл 3D-структуры белка в API Foldseek и находит структурно похожие белки. Нужен, когда есть координаты, а не просто последовательность.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add google-deepmind/science-skills --skill foldseek-structural-search -a claude-code
npx skills add google-deepmind/science-skills --skill foldseek_structural_search -a claude-code
Открыть на GitHub

Что делает foldseek-structural-search

Скилл берёт файл .cif, .mmcif или .pdb из рабочей папки и через скрипт scripts/search.py шлёт его на веб-сервер Foldseek. На выходе два файла: .md с таблицей лучших совпадений и .json с полным ответом API. Агент читает таблицу и разбирает метрики — вероятность, покрытие запроса, E-value, идентичность последовательности.

Базы для поиска ограничены списком: afdb50, afdb-swissprot, pdb100, BFVD, mgnify_esm30, cath50, gmgcl_id, bfmd, afdb-proteome. Запрос базы вне списка останавливает работу. Поиск по последовательности, имени гена или UniProt ID не поддерживается вообще — нужен именно файл координат. Если структуры ещё нет, её придётся сначала скачать.

Перед запуском нужен uv в PATH. Ещё скилл проверяет файл .licenses/foldseek_structural_search_LICENSE.txt в корне проекта: если его нет, он просит свериться с условиями на сайтах Foldseek и steineggerlab и создаёт файл с отметкой времени. Сам JSON разбирать не надо — он лежит для последующих инструментов.

Какие задачи решает

  • найти структурные гомологи по скачанному файлу .pdb
  • сверить предсказанную AlphaFold-модель с известными фолдами
  • оценить, покрывает ли совпадение всю форму белка или только мотив
  • собрать таблицу лучших хитов в Markdown для отчёта
  • понять, какие семейства белков попали в список совпадений

Примеры запросов агенту

  • Найди структурно похожие белки для proteinA.pdb и сохрани таблицу
  • Прогони model.cif по базам pdb100 и cath50, покажи топ-5 совпадений
  • Разбери метрики Prob и Q-Cov для лучших хитов и объясни, что это за белки

Как установить foldseek-structural-search

1Через Skills CLI (Vercel)

npx skills add google-deepmind/science-skills --skill foldseek-structural-search -a claude-code
npx skills add google-deepmind/science-skills --skill foldseek_structural_search -a claude-code

2Вручную: положить файлы

~/.claude/skills/foldseek_structural_search/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/foldseek_structural_search/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о foldseek-structural-search

Как установить foldseek-structural-search в Claude Code?

Выполните npx skills add google-deepmind/science-skills --skill foldseek-structural-search -a claude-code. Файл скилла окажется по пути ~/.claude/skills/foldseek_structural_search/SKILL.md.

Что делает foldseek-structural-search?

Отправляет файл 3D-структуры белка на API Foldseek, находит структурно похожие белки и сохраняет таблицу совпадений в .md и полный ответ в .json.

Можно ли искать по последовательности или UniProt ID?

Нет. Скилл требует файл .pdb, .cif или .mmcif с координатами. При последовательности или имени гена он останавливается и предлагает сначала скачать структуру.

Исходный текст

SKILL.md · Apache-2.0
---
name: foldseek-structural-search
description: >
    Performs 3D structural searches of proteins against various databases (PDB,
    AlphaFold, CATH, MGnify, etc.) using the Foldseek API. Use ONLY when the
    user provides a physical 3D coordinate file (.cif, .mmcif, or .pdb) and
    wants to find structurally similar proteins. Do NOT use if the user only
    provides a protein sequence, gene name, or UniProt ID.
---

## Prerequisites

1.  **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
    `uv` is installed and on PATH.
2.  **User Notification**: If .licenses/foldseek_structural_search_LICENSE.txt
    does not already exist in the workspace root directory then (1) prominently
    notify the user to check the terms at https://search.foldseek.com/search and
    https://github.com/steineggerlab/foldseek, then (2) create the file
    recording the notification text and timestamp.

## Goal

Submit a user-provided 3D protein structure file (`.cif`, `.mmcif`, or `.pdb`)
to the Foldseek web server API to find structurally similar proteins. Report the
top structural hits, interpret key alignment metrics, summarize the inferred
protein functions, save the Markdown-formatted table to a `.md` file, and save
the full detailed results to a local JSON file.

## Core Rules

-   **File Requirement**: This tool absolutely cannot search by sequence, name,
    or accession ID. It strictly requires a `.pdb`, `.cif`, or `.mmcif` file
    path.
-   **Strict Validation**: Never bypass the input validation or the database
    allowlist check.
-   **Do Not Parse the JSON**: Rely entirely on the generated `.md` file for
    your immediate summary. The JSON is saved purely for subsequent, specialized
    tool use.
-   **No Raw Parsing**: Do not attempt to parse or read the raw 3D coordinates
    yourself; always pass the file to the script.
-   **Notification**: If this skill is used, ensure this is mentioned in the
    output.

## Instructions

1.  **Strict Input Validation:** Verify that the user has explicitly provided a
    valid path to a `.cif`, `.mmcif`, or `.pdb` file in their workspace.
    *   If the user provided a protein name, an amino acid sequence, or an
        accession ID (e.g., a UniProt ID) but NO downloaded structure file,
        **halt immediately**. Do not run the script.
    *   Inform the user that Foldseek requires a physical 3D coordinate file,
        and suggest downloading the structure first (e.g., using the AlphaFold
        fetch tool).
2.  **Database Validation:** Check if the user requested specific databases to
    search.
    *   **Allowed List:** `afdb50`, `afdb-swissprot`, `pdb100`, `BFVD`,
        `mgnify_esm30`, `cath50`, `gmgcl_id`, `bfmd`, `afdb-proteome`.
    *   If the user requests a database NOT on this list, **halt immediately**.
        Do not run the script. Inform the user that the database is unsupported
        and provide them with the allowed list.
3.  **Generate File Names:** Generate descriptive output file names for both the
    JSON data and the Markdown table based on the input file (e.g.,
    `proteinA_foldseek_results.json` and `proteinA_foldseek_results.md`).
4.  Execute the python script based on the user's request, redirecting the
    standard output into your generated `.md` file:
    *   **Default (No databases specified):** `uv run scripts/search.py
        <path-to-file> -o <generated-filename.json> > <generated-filename.md>`
    *   **Custom (Valid databases specified):** `uv run scripts/search.py
        <path-to-file> -o <generated-filename.json> --databases <db1,db2,db3> >
        <generated-filename.md>`
5.  The script will query the databases, save the full JSON payload, and write a
    Markdown-formatted table to your specified `.md` file.
6.  **Read the Results:** Open and read the newly generated `.md` file carefully
    to view the Markdown table.
7.  **Interpret the Metrics:** Summarize the top 3 to 5 structural matches that
    have meaningfull annotations for the user. When reporting, assess the match
    quality using these specific fields:
    *   **Prob (Probability):** Values approaching 1.0 (100%) indicate extreme
        confidence that the fold is a true structural homologue.
    *   **Q-Cov (Query Coverage):** High percentages mean the match covers the
        majority of the query protein's overall shape, rather than just a small
        local motif.
    *   **E-value & Seq Identity:** Use these to provide additional evolutionary
        context.
8.  **Perform Functional Analysis:** Analyze the text descriptions embedded
    within the `Target ID` column for the reported matches.
    *   Explicitly report the specific protein names/functions of the top
        structural homologues.
    *   Provide a synthesized overview summarizing the entire *variety* of
        different functions, domains, or protein families found across the whole
        list of homologues (e.g., "Most hits are portal proteins, but there is
        also a distinct cluster of viral capsid matches...").
9.  Explicitly inform the user of both newly created files (`.json` and `.md`)
    and their locations so they can be seamlessly used in subsequent analysis
    steps.

## * If the API returns an error or the file is missing, inform the user clearly

and ask them to verify the file path.

© google-deepmind · Apache-2.0 · google-deepmind/science-skills

Похожие скиллы

Всё по теме «Наука и исследования» →
anysearch anysearch-ai Скилл подключает поиск в интернете, тематические запросы, параллельный поиск и извлечение содержимого страниц. Пригодится, когда агенту нужны свежие сведения или нужно проверить утверждение. CX Codex +1 38 500установок academic-paper Imbad0202 Скилл разворачивает конвейер из 12 агентов для подготовки научных статей в 11 режимах. Помогает пройти путь от поиска литературы и плана до проверки цитат и ответа рецензентам. CX Codex +1 10 800установок nature-figure Yuan1z0825 Скилл собирает, правит и проверяет рисунки для научных статей на Python или R. Пригодится, когда графики идут в submission, а не в отчёт. CX Codex +1 18 800установок academic-paper-reviewer Imbad0202 Скилл имитирует коллегиальную проверку научной статьи через пять ролей. Пригодится для рецензии, повторной проверки правок и оценки методологии. CX Codex +1 9 800установок nature-polishing Yuan1z0825 Скилл для правки, перевода и сокращения готового академического текста. Держит факты, термины и границы доказательств на месте. CX Codex +1 17 500установок nature-citation Yuan1z skill, refactored into static/dynamic layers Ищет статьи из Nature и семейства CNS для подтверждения тезисов рукописи, связывает утверждения с источниками и готовит экспорт для менеджера ссылок. Пригодится, когда нужны ссылки именно из этих журналов. CX Codex +1 15 600установок

Из того же набора39

gnomad-database Скилл запрашивает данные gnomAD о частотах вариантов, ограничениях генов и вариантах в регионах. Нужен для генетических исследовательских задач. CX Codex +1 2 100установок quickgo-database Ходит в REST API QuickGO и ECO: связывает гены с биологическими процессами, функциями и клеточными компонентами. Нужен, когда разбираешь аннотации генов. CX Codex +1 2 100установок jaspar-database Скилл запрашивает базу JASPAR для поиска профилей связывания транскрипционных факторов. Пригодится, когда нужно получить матрицы PFM и PWM или сопоставить ген с ID матрицы. CX Codex +1 2 100установок gtex-database Получает данные об экспрессии РНК и eQTL из GTEx по 54 здоровым тканям человека. Нужен для запросов по генам, вариантам и тканям. CX Codex +1 2 100установок interpro-database Ищет домены, семейства и сайты в белках через API InterPro. Помогает сопоставлять данные 14 баз данных и аннотировать геномы терминами GO. CX Codex +1 2 100установок string-database Скилл обращается к STRING для поиска белок-белковых взаимодействий, обогащения функций и гомологии. Нужен для анализа белков и путей. CX Codex +1 2 100установок embl-ebi-ols Скилл ищет термины, определения и связи в онтологиях EMBL-EBI OLS через готовые скрипты. Пригодится, когда агент разбирает болезни, фенотипы или функции генов. CX Codex +1 2 100установок reactome-database Скилл подключает базы Reactome для анализа генных списков, поиска реакций и экспорта схем путей. Пригодится для биоинформатических расчётов прямо в терминале агента. CX Codex +1 2 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой