cosmic-database

cosmic-database is a skill for Claude Code, Codex from silverstein/claude-scientific-skills-desktop. It costs 39 tokens per session (2,391 once invoked), scanned A, a copy of cosmic-database, MIT.

A programmatic client for COSMIC, a cancer research database of DNA changes found in tumors. COSMIC also contains curated cancer-related genes, mutation patterns, gene fusions, and clinical notes.

In plain words
What is it for?
Looking up mutations, cancer genes, mutation signatures, structural changes, copy-number changes, gene fusions, drug-resistance mutations, and cancer cell-line data.
Why use it?
It gives cancer research pipelines structured access to mutation data that would otherwise need to be searched or downloaded manually, with access requiring registration and possibly a license.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Looking up mutations, cancer genes, mutation signatures, structural changes, copy-number changes, gene fusions, drug-resistance mutations, and cancer cell-line data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/silverstein/claude-scientific-skills-desktop/cosmic-database
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add silverstein/claude-scientific-skills-desktop --skill cosmic-database
Clone the repo
git clone --depth 1 https://github.com/silverstein/claude-scientific-skills-desktop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cosmic-database

README.md
[![agentmods](https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/cosmic-database/github.svg)](https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/cosmic-database)
Your own site
<a href="https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/cosmic-database"><img src="https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/cosmic-database/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cosmic-database

Your own site · 80×15
<a href="https://agentmods.dev/skills/silverstein/claude-scientific-skills-desktop/cosmic-database"><img src="https://agentmods.dev/badge/skills/silverstein/claude-scientific-skills-desktop/cosmic-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.02391
Opus 5 $0.00019 $0.01196
Sonnet 5 $0.00008 $0.00478
Haiku 4.5 $0.00004 $0.00239

Measured 11d ago against content hash adc99d02391f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cosmic-database scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/download_cosmic.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to cosmic-database — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

corpus/cosmic-database/SKILL.md · 331 lines

How it starts

The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.

COSMIC Database

Overview

COSMIC (Catalogue of Somatic Mutations in Cancer) is the world's largest and most comprehensive database for exploring somatic mutations in human cancer. Access COSMIC's extensive collection of cancer genomics data, including millions of mutations across thousands of cancer types, curated gene lists, mutational signatures, and clinical annotations programmatically.

When to Use This Skill

This skill should be used when:

  • Downloading cancer mutation data from COSMIC
  • Accessing the Cancer Gene Census for curated cancer gene lists
  • Retrieving mutational signature profiles
  • Querying structural variants, copy number alterations, or gene fusions
  • Analyzing drug resistance mutations
  • Working with cancer cell line genomics data
  • Integrating cancer mutation data into bioinformatics pipelines
  • Researching specific genes or mutations in cancer contexts

Prerequisites

Account Registration

COSMIC requires authentication for data downloads:

Python Requirements

uv pip install requests pandas

Quick Start

1. Basic File Download

Use the scripts/download_cosmic.py script to download COSMIC data files:

from scripts.download_cosmic import download_cosmic_file

# Download mutation data
download_cosmic_file(
    email="[email protected]",
    password="your_password",
    filepath="GRCh38/cosmic/latest/CosmicMutantExport.tsv.gz",
    output_filename="cosmic_mutations.tsv.gz"
)

2. Command-Line Usage

# Download using shorthand data type
python scripts/download_cosmic.py [email protected] --data-type mutations

# Download specific file
python scripts/download_cosmic.py [email protected] \
    --filepath GRCh38/cosmic/latest/cancer_gene_census.csv

# Download for specific genome assembly
python scripts/download_cosmic.py [email protected] \
    --data-type gene_census --assembly GRCh37 -o cancer_genes.csv

Read the full file on GitHub · 331 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 331 lines · 39 tokens per session scan A adc99d02391f

Subscribe to this mod's changes

cosmic-database is a skill published in the GitHub repository silverstein/claude-scientific-skills-desktop (22 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 2,391 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to cosmic-database, differing in 7 lines, and is treated as a copy.

Related

Other skills, from other repositories

bio-clinical-databases-myvariant-queries

Queries myvariant.info BioThings aggregator for ClinVar, gnomAD, dbSNP, dbNSFP, COSMIC, CADD, and CIViC annotations in batched, version-tracked requests. Use when annotating variant lists from multiple databases simultaneously without managing per-source APIs, and when reproducibility-grade analyses require recording…

PKU-YuanGroup/OpenAI4S · 86 tokens

tiledbvcf

Efficient storage and retrieval of genomic variant data using TileDB. Scalable VCF/BCF ingestion, incremental sample addition, compressed storage, parallel queries, and export capabilities for population genomics.

K-Dense-AI/scientific-agent-skills · 46 tokens

defining-cohort-phenotypes

Authors computable phenotype and cohort definitions in the OHDSI ATLAS / CIRCE style over the OMOP CDM, combining standard concept sets with NLP-derived features that OpenMed extracts. Use when the user wants to define a patient cohort, write a computable phenotype, reuse PheKB or OHDSI Phenotype Library logic, build…

maziyarpanahi/openmed · 191 tokens

benchling-integration

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

synthetic-sciences/openscience · 44 tokens

chembl-database

Query the ChEMBL database for bioactive molecules, drug targets, bioactivity data, approved drugs, and chemical structures. Use when the user asks about compounds, targets, IC50/Ki values, drug mechanisms, or structure searches.

google-deepmind/science-skills · 53 tokens

bio-ortholog-inference

Pull pre-computed ortholog calls from public databases (OrthoDB, Ensembl Compara, OMA browser, eggNOG, PANTHER, KEGG Orthology, HomoloGene) via their REST APIs. Use when orthologs are already curated upstream, when the question is "what is the X ortholog of Y" rather than "how to infer orthology de novo", when…

PKU-YuanGroup/OpenAI4S · 141 tokens