/biotope:biocypherfrom biotope
Builds ontology-grounded knowledge graphs with BioCypher: write adapters, configure schema and DBMS, export to Neo4j/CSV/PostgreSQL/RDF. Useful for biomedical KG construction.
Ships in biotope. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
BioCypher is a Python library for ontology-grounded KG construction. Three pieces: adapters (data in), schema_config.yaml (what the graph means), biocypher_config.yaml (where it goes).
Check which project this is first. If the repository has a graph/ workspace with topology/ and pipelines/build_graph.py, it is a typed Biotope project: Python topology is the schema authority, Biotope generates schema_config.yaml and drives the exporter, and the work belongs to the biotope-croissant skill. Writing an adapter or hand-editing the generated schema there creates a second, conflicting schema. Everything below applies to separately managed BioCypher projects.
python -m pip install 'biocypher>=0.17,<0.18'
python -m pip install "biocypher[neo4j]>=0.17,<0.18" # only if using Neo4j online mode
These examples target BioCypher 0.17. Project template.
1. Define scope (entities, relations, ontologies)
2. Write adapters → yield node/edge tuples
3. Author schema_config.yaml (input_label ↔ ontology types)
4. Configure biocypher_config.yaml (dbms, paths)
5. BioCypher().write_nodes / write_edges → export
Read schema-config.md before step 3. Read outputs.md for step 4, import scripts and write_schema_info().
Yield tuples — BioCypher maps _type via input_label in the schema:
def node_generator():
for row in rows:
yield (row["uniprot_id"], "protein", {"name": row["name"]})
def edge_generator():
for row in edges:
yield (None, row["src"], row["tgt"], "interaction", {"score": row["score"]})
Reuse existing adapters: https://github.com/orgs/biocypher/projects/3/views/2
from biocypher import BioCypher
bc = BioCypher()
bc.write_nodes(node_generator())
bc.write_edges(edge_generator())
bc.write_import_call()
bc.write_schema_info() # optional — for NL query tools
BioCypher() reads biocypher_config.yaml from the working directory or config/. Override paths through constructor arguments.
# biocypher_config.yaml
biocypher:
dbms: neo4j
schema_config_path: config/schema_config.yaml
offline: true
output_directory: biocypher-out
head_ontology:
url: https://github.com/biolink/biolink-model/raw/v3.2.1/biolink-model.owl.ttl
root_node: entity
# schema_config.yaml (minimal)
protein:
represented_as: node
namespace: uniprot
input_label: protein
create_workflow() builds an in-memory graph with JSON export and no DBMS. See outputs.md. Assess memory use before choosing the build scope.
After export, check file counts and read a sample of the CSVs, or run an import dry-run. Compare expected and actual node and edge counts. If edges are missing, check adapter selection, identifier namespaces and whether every endpoint was written.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub biocypher/biotope --plugin biotope