agentsclimarketplace

Database record retrieval

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/database-record-retrieval

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill database-record-retrieval

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when you need to access a stored chemical structure, NRP sequence, or building-block annotation from the MassSpecBlocks database in order to export it to an external format (e.g., CycloBranch), transform it for mass spectra analysis, or integrate it with another chemical database query.

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.5 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

database-record-retrieval

Summary

Retrieve user database entries (chemical structures, sequences, or building-block annotations) from a MySQL/MariaDB backend via a PHP/Symfony REST API, preparing them for downstream serialization or export. This skill is essential when exporting structures to external formats like CycloBranch or performing analysis on stored metabolite data.

When to use

Apply this skill when you need to access a stored chemical structure, NRP sequence, or building-block annotation from the MassSpecBlocks database in order to export it to an external format (e.g., CycloBranch), transform it for mass spectra analysis, or integrate it with another chemical database query. Typical trigger: user requests a structure export, or a workflow requires fetching a previously stored compound record by ID or sequence identifier.

When NOT to use

  • Input structure is already in memory or loaded from a file (no database round-trip needed).
  • You need to search across external databases (PubChem, ChemSpider, Norine, ChEBI, COCONUT, NP Atlas) — use those databases' native APIs instead.
  • The record does not exist in the user's MassSpecBlocks database and requires creation or import first.

Inputs

  • Unique database record identifier (integer or UUID)
  • Optional: sequence or SMILES string for lookup
  • Optional: filter parameters (e.g., building-block type, mass range)

Outputs

  • Deserialized chemical structure object (with SMILES, metadata)
  • Building-block annotation record(s)
  • Associated mass spectra or analysis metadata

How to apply

Query the MySQL 8 / MariaDB 10 backend via the PHP/Symfony REST API using the record's unique identifier or sequence data. The API retrieves the serialized chemical structure and any associated building-block annotations from the user database. Verify that the retrieved record contains all required fields: structure SMILES representation, building-block metadata, and any associated mass spectra annotations. Check that the returned data is well-formed JSON or appropriate serialized object. Once retrieved, the record is ready for downstream processes such as format conversion (e.g., to CycloBranch export format) or rendering via SmilesDrawer.

Related tools

  • MySQL 8 (Primary relational database engine storing user chemical structures and building-block records)
  • MariaDB 10 (Alternative relational database backend compatible with MassSpecBlocks for structure storage)
  • PHP/Symfony Framework (REST API server that exposes database query methods and serialization logic) — https://github.com/privrja/thesis
  • Doctrine ORM (Object-relational mapper used by Symfony to abstract and query database records programmatically) — https://github.com/privrja/thesis

Evaluation signals

  • Returned record contains non-null SMILES string and valid building-block metadata matching the requested identifier.
  • JSON response from REST API is valid and conforms to the documented MassSpecBlocks schema (verifiable at /rest/doc).
  • Query execution time is within acceptable latency (typically < 500 ms for single-record retrieval on a well-indexed database).
  • Retrieved structure can be successfully rendered or serialized downstream (e.g., parsed by SmilesDrawer or converted to CycloBranch format without parse errors).
  • Database connection and authentication to MySQL/MariaDB backend succeeds without timeouts or permission errors.

Limitations

  • Retrieval performance depends on database indexing and backend server load; large bulk retrievals may timeout.
  • The skill assumes valid database credentials and network connectivity to the MySQL/MariaDB and PHP/Symfony backend — network failures or authentication errors will block retrieval.
  • Building-block annotations and metadata are only as complete as the original user input; missing or malformed annotations in the database will be retrieved as-is.
  • No changelog is provided in the public documentation, so API breaking changes or schema updates may not be communicated in advance.

Evidence

  • [other] Retrieve the user database entry (sequence/structure data) from the MySQL/MariaDB backend via the PHP/Symfony API.: "Retrieve the user database entry (sequence/structure data) from the MySQL/MariaDB backend via the PHP/Symfony API."
  • [readme] Application is developed for Mysql 8 /MariaDB 10, but when using Symfony you can create your migrations for another database.: "Application is developed for Mysql 8 /MariaDB 10, but when using Symfony you can create your migrations for another database."
  • [readme] open-source web application to manage own user databases of chemical structures like NRPs and to find structures on other chemical projects: "open-source web application to manage own user databases of chemical structures like NRPs and to find structures on other chemical projects"
  • [readme] Documentation of API is [localhost:8000/rest/doc] Rest API is on [localhost:8000/rest]: "Documentation of API is [localhost:8000/rest/doc] Rest API is on [localhost:8000/rest]"

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.