Use when designing, reviewing, or refactoring a CLI that must serve AI agents alongside humans, or when converting an API or SDK into an agent-usable CLI interface.
日本語の概要は準備中です。原文の説明を表示しています。
Prioritize drug targets from a ranked gene list (e.g., scRNA-seq DE output) by orchestrating parallel API queries against UniProt, OpenTargets (with integrated DepMap CRISPR essentiality + gnomAD constraint), PubMed, the Human Protein Atlas (HPA), and ChEMBL tool compounds, then re-ranking by a composite score combining protein localization, druggability, disease genetics, tissue specificity (safety), focus-cell-type expression, CRISPR essentiality, LoF safety constraint, and research maturity. Use whenever the user wants to filter, triage, prioritize, or "do due diligence" on a list of candidate genes for drug discovery, especially after a DE / DEG analysis when they say things like "which of these should I follow up on", "filter for druggable targets", "make a target dossier", "rank these for tractability", "annotate these genes for druggability", or "build a target report". Trigger even when the user says just "filter these candidate genes" or hands over a CSV from a DE pipeline.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
A multi-source drug-target due-diligence pipeline for ranked gene lists.
The user has a list of candidate genes (typically from a DE / DEG / scRNA-seq analysis) and wants a per-gene dossier across multiple evidence dimensions plus a composite re-ranking. The DE statistical rank is just the entry point; the final priority is informed by protein biology, genetics, druggability, and research maturity.
Common input shapes:
gene column (DE output like expression_table_pass_either_1s.csv)Four files inside <output_dir>/:
targets_report.md — one section per gene, sorted by composite score, with a
short LLM-written rationale and recommended next steptargets_report.html — self-contained interactive report (sortable +
searchable summary table, tier-filterable per-gene cards, score-component
bars, UniProt links). Built from the .md and .csv as the final step,
after Claude has filled the rationale slots and executive summary.targets_summary.csv — flat table for sorting/filtering in Excel/pandasraw_data/<source>.json — raw API responses (audit trail, reusable across
future re-scorings)input gene list
│
▼
scripts/orchestrate.py
│
├─► fetch_uniprot.py → protein localization, surface, MHC, coding
├─► fetch_opentargets.py → tractability, approved drugs, associated
│ diseases (subsumes GWAS Catalog via OT's
│ integrated genetics evidence), DepMap CRISPR
│ essentiality, gnomAD LOEUF / pLI constraint
├─► fetch_pubmed.py → paper counts (total + focus_disease + cell_context)
├─► fetch_hpa.py → HPA tissue / single-cell specificity + nCPM,
│ expression cluster, cancer prognostics
└─► fetch_chembl.py → top-potency tool compounds per gene (pIC50,
IC50 nM, mechanism) — dossier-only, no score
│
▼
scripts/aggregate.py
│
▼
output_dir/
├─ raw_data/*.json
├─ targets_summary.csv ← composite-score-ranked
└─ targets_report.md ← Claude fills the rationale sections
│
▼
scripts/build_html_report.py ← run AFTER Claude fills rationales
│
▼
output_dir/targets_report.html ← self-contained interactive report
python3 ~/myagents/myskills/target-prioritization/scripts/orchestrate.py \
--input <gene_list.csv_or_txt> \
--output <output_dir> \
[--gene-col gene] \
[--top 50]
--input accepts a CSV (with --gene-col, default gene), a .txt/.tsv,
or any file where the first column has gene symbols. Skips header if first
cell is gene/symbol/case-insensitive.--top limits the dossier to the top N input genes (default 50) — input
order is preserved up to that cut, then composite-score re-ranks within.orchestrate.py runs the five fetchers in parallel (Python threads, since
all calls are I/O-bound). Each writes a self-contained JSON to
<output_dir>/raw_data/<source>.json. Then aggregate.py merges them,
computes the composite score using weights.yaml, writes
targets_summary.csv, and emits a targets_report.md skeleton with one
section per gene — the rationale and risks fields are left blank for
Claude to fill.
Weights live in weights.yaml and can be overridden per-run with --weights.
Defaults aim for "find druggable, genetically supported targets with clean
therapeutic window and expression in the cell of interest":
composite_score = w1 * druggability_score (approved drugs, tractability, clin trials)
+ w2 * disease_genetics_score (OpenTargets disease associations + focus-disease bonus)
+ w3 * tractability_bonus (surface or secreted vs intracellular)
+ w4 * tissue_specificity (HPA tissue tag — narrow expression = cleaner window)
+ w5 * cell_context_score (HPA single-cell nCPM rank in FOCUS_CELL_TYPES)
+ w6 * essentiality_score (DepMap CRISPR % essential, pan-essentials capped)
+ w7 * safety_constraint_score (gnomAD LOEUF — high = LoF tolerated → safer to inhibit)
+ w8 * expression_score (from input DE if present)
+ w9 * novelty_bonus (favors moderately studied)
- w10 * over_studied_penalty (PubMed total > cap → diminishing returns)
ChEMBL contributes dossier columns (chembl_target_id, chembl_best_pchembl,
chembl_best_ic50_nm, chembl_top_compounds) but no score component — its
job is to surface concrete tool compounds for the "Suggested next step" slot.
Each component is normalized to [0, 1]. The composite is therefore
roughly in [-w7, sum(w1..w6)] and is min-max rescaled before reporting.
Read weights.yaml for the current defaults.
After aggregate.py produces targets_report.md with blank rationale
slots, Claude reads the per-gene dossier rows and writes a 2-3 sentence
rationale per gene. Use the template in prompts/rationale_template.md —
it specifies the structure (one line on the most compelling evidence, one
line on the main risk, one line on the suggested next experimental step).
For the top 5–10 genes by composite score, also write a short executive summary at the top of the report. Keep it factual and grounded in the dossier data; do not hallucinate beyond what the JSONs contain.
Once targets_report.md has its rationale slots and executive summary
filled in, run build_html_report.py to produce a self-contained
interactive HTML report:
python3 ~/myagents/myskills/target-prioritization/scripts/build_html_report.py \
--report-dir <output_dir> \
[--title "Target Prioritization Report"] \
[--subtitle "<cohort / contrast description>"]
This is always the last step. It reads targets_summary.csv and
targets_report.md from --report-dir and writes targets_report.html
in the same directory. The output is a single file with no external
dependencies: sortable summary table at top, live search + tier-filter
buttons, one card per gene with chips (surface / secreted / MHC /
focus-disease / approved-drug), full dossier grid, and horizontal bars
for each score component. Open it directly in a browser; share it as-is.
If rationale slots are still blank when this runs, the per-gene cards will show "not yet written" in those spots — useful for previewing the layout, but the user should be told to fill rationales before sharing.
All free, no API key needed. Rate limits handled in fetchers:
accession queryassociatedDiseasessearch_download.php for symbol→ENSG, then per-ENSG /<ENSG>.json; no rate limit documented, fetcher sleeps 0.15s/genetarget.depMapEssentiality inside the OpenTargets call (no separate endpoint)target.geneticConstraint inside the OpenTargets call (avoids gnomAD's WAF on direct API access)target/search.json then activity.json; ~5 req/sec friendly, fetcher sleeps 0.2s/geneFor deeper API details and field mappings, see
references/api_endpoints.md.
The skill ships with an autoimmunity / T-cell default but is intentionally disease-agnostic. Three edits switch the focus:
scripts/fetch_opentargets.py and scripts/aggregate.py — change
FOCUS_DISEASE_TERMS to the lowercased substrings that should mark a
drug or disease association as "in-scope" (e.g.
("cancer", "carcinoma", "lymphoma") for oncology;
("alzheimer", "parkinson", "huntington", "als") for neurodegeneration;
("diabetes", "obesity", "fatty liver", "nash") for metabolic disease).scripts/aggregate.py — change FOCUS_CELL_TYPES to the HPA single-cell
type names that should drive cell_context_score. Must match HPA's exact
strings (case-sensitive); see comment block above the tuple for examples
per domain.scripts/fetch_pubmed.py — adjust the focus_disease and
cell_context queries in CONTEXTS (these power the PubMed counts in
the dossier).No other code changes are needed; the CSV column names already use the
neutral focus_disease_* / cell_context prefixes.
scholar-deep-research or literature-review insteadThe pipeline is designed to be re-runnable cheaply:
weights.yaml is a one-second aggregate.py rerunscripts/fetch_<source>.py that writes
raw_data/<source>.json with the same {gene: {fields}} shape, then add
a corresponding term in aggregate.py::compute_composite_score.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when designing, reviewing, or refactoring a CLI that must serve AI agents alongside humans, or when converting an API or SDK into an agent-usable CLI interface.
日本語の概要は準備中です。原文の説明を表示しています。
Search free commercial-use creative assets across multiple online sources — photos, illustrations, icons, video footage, music, sound effects, and fonts. Use when the user needs to find assets for videos, PPTs, articles, or any content creation. Trigger on phrases like "find me a photo of", "search for icons", "I need background music", "find video footage", "search fonts", "找一张图片", "搜素材", "帮我找图标/视频/音乐/字体". Covers Pexels, Unsplash, Pixabay, Iconify, Freesound, Google Fonts and more — with API-backed search where available.
日本語の概要は準備中です。原文の説明を表示しています。
Query the Semantic Scholar academic corpus through AI2's Asta MCP server: keyword or title search with venue and date filters, who-cited-a-paper traversal, author profiles and publications, DOI/arXiv/PMID lookup, and ~500-word full-text snippets for evidence, with citation counts and h-index. Use when the user asks for papers on a topic, who cited a paper, an author's work, recent literature since a date, or a venue-scoped paper list. Requires the Asta MCP server.
日本語の概要は準備中です。原文の説明を表示しています。
Extract and organize frames from a Bilibili video (bangumi episode, UP upload, or a local file) into scenery shots and per-character image groups, using anime-specific person detection + CCIP character-identity embeddings. Two modes — cluster everyone, or pull out one (or several) named characters via reference folders. Use when the user wants to collect, extract, or organize anime frames/screenshots by character or by scenery from a Bilibili video. Read-only download for personal viewing/analysis; uploads nothing.
日本語の概要は準備中です。原文の説明を表示しています。
Fetch Bilibili (哔哩哔哩) video comments for UP主 self-analysis. Use when the user asks to collect, download, export, or analyze comments on a Bilibili video (BV号 / URL / UID). Produces JSONL + summary.json suitable for further Claude Code analysis (sentiment, keywords, audience trends). Read-only; does not post/edit/delete.
日本語の概要は準備中です。原文の説明を表示しています。
Use when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Generates .excalidraw files and exports to PNG/SVG via Kroki API or locally using excalidraw-brute-export-cli.
日本語の概要は準備中です。原文の説明を表示しています。