skills/devtu-optimize-skills/SKILL.md
Optimize ToolUniverse skills for better report quality, evidence handling, and user experience. Apply patterns like tool verification, foundation data layers, disambiguation-first, evidence grading, quantified completeness, and report-only output. Use when reviewing skills, improving existing skills, or creating new ToolUniverse research skills.
npx skillsauth add mims-harvard/tooluniverse devtu-optimize-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Best practices for high-quality research skills with evidence grading and source attribution.
python3 -m tooluniverse.cli run <Tool> '<json>' to verifyFull details: references/optimization-patterns.md
| # | Pattern | Key Idea |
|---|---------|----------|
| 1 | Tool Interface Verification | get_tool_info() before first call; maintain corrections table |
| 2 | Foundation Data Layer | Query aggregator (Open Targets, PubChem) FIRST |
| 3 | Versioned Identifiers | Capture both ENSG00000123456 and .12 version |
| 4 | Disambiguation First | Resolve IDs, detect collisions, build negative filters |
| 5 | Report-Only Output | Narrative in report; methodology in appendix only if asked |
| 6 | Evidence Grading | T1 (mechanistic) → T2 (functional) → T3 (association) → T4 (mention) |
| 7 | Quantified Completeness | Numeric minimums per section (>=20 PPIs, top 10 tissues) |
| 8 | Mandatory Checklist | All sections exist, even if "Limited evidence" |
| 9 | Aggregated Data Gaps | Single section consolidating all missing data |
| 10 | Query Strategy | High-precision seeds → citation expansion → collision-filtered broad |
| 11 | Tool Failure Handling | Primary → Fallback 1 → Fallback 2 → document unavailable |
| 12 | Scalable Output | Narrative report + JSON/CSV bibliography |
| 13 | Synthesis Sections | Biological model + testable hypotheses, not just paper lists |
Phase -1: Tool Verification (check params)
Phase 0: Foundation Data (aggregator query)
Phase 1: Disambiguation (IDs, collisions, baseline)
Phase 2: Specialized Queries (fill gaps)
Phase 3: Report Synthesis (evidence-graded narrative)
Full details: references/testing-standards.md
Critical rule: NEVER write skill docs without testing all tool calls first.
operation parameterSkills that just list tools ("call A, then B, then C") score 3-5/10 in usefulness tests. Skills that explain HOW to interpret and combine data score 7-9/10. Every skill MUST include:
Map raw API data to biological/clinical meaning. Don't just retrieve — explain.
| Bad (tool catalog) | Good (reasoning framework) | |---|---| | "Get GO terms from MGnify" | GO terms → interpretation table: butyrate genes = barrier integrity, LPS genes = inflammation | | "Get DepMap dependency scores" | Score < -0.5 = essential, but pan-essential = bad drug target (toxicity); selective = good target | | "Get FAERS counts" | PRR > 5 = strong signal, but signal ≠ causation (channeling bias, notoriety bias) |
Every multi-phase skill needs a final phase that answers "so what?" — not just collecting data:
If a tool API can't deliver what the skill promises, say so explicitly. Don't describe aspirational capabilities. Example: "DepMap_get_gene_dependencies returns gene metadata only, NOT per-cell-line CRISPR scores."
Some scientific analyses require computation, not just API queries. When no tool exists for a capability, embed a Python code procedure directly in the skill using packages available in ToolUniverse (pandas, scipy, numpy, statsmodels, biopython, networkx).
| Gap | Procedure | Packages | |-----|-----------|----------| | API doesn't return needed data (e.g., DepMap scores) | Download CSV + pandas analysis | pandas | | Statistical testing (differential abundance, enrichment) | scipy.stats + FDR correction | scipy, statsmodels | | Sequence analysis (alignment, conservation) | Biopython SeqIO + pairwise alignment | biopython | | Chemical similarity (analog search, fingerprints) | RDKit fingerprints + Tanimoto | rdkit (visualization extra) | | Network analysis (hub genes, clustering) | NetworkX graph metrics | networkx | | Scoring algorithms (ACMG classification, viability scores) | Custom Python functions | built-in | | Dose feasibility (Cmax vs IC50 comparison) | Numerical comparison + PK data | pandas, numpy |
**Computational procedure: [Name]**
[When to use this: explain the gap it fills]
\`\`\`python
# [What this computes]
# Requires: [packages] (included in ToolUniverse dependencies)
import pandas as pd
from scipy.stats import mannwhitneyu
# Input: [describe expected input format]
# Output: [describe output]
# [Full working code with example data]
\`\`\`
[Interpretation guidance for the output]
Many critical scientific datasets have NO REST API but provide bulk download files. Skills should include concrete download-and-process instructions when this is the only path to essential data.
Template for download-and-process procedures:
**Step 1: Download data files**
- URL: [exact download page URL]
- Files needed: [filename] (~[size]) — [what it contains]
- Registration: [required/not required]
- Update frequency: [quarterly/annually/etc.]
**Step 2: Process with Python**
[Working code with pandas/scipy that loads the CSV and produces the analysis]
**Step 3: Interpret results**
[Table mapping output values to biological/clinical meaning]
**When files are not available**: [Fallback strategy using API tools]
Known download-only datasets that skills reference:
| Dataset | Download URL | Files | Used By | |---------|-------------|-------|---------| | DepMap CRISPR | depmap.org/portal/download/all/ | CRISPRGeneEffect.csv (~300MB), Model.csv (~2MB) | functional-genomics, cell-line-profiling | | TCGA clinical | portal.gdc.cancer.gov | Clinical + mutation TSVs | cancer-genomics-tcga | | GTEx expression | gtexportal.org/home/downloads | GTEx_Analysis_v8_Annotations.csv | expression-data-retrieval | | ClinGen gene-disease | clinicalgenome.org/docs/ | gene_curation_list.tsv | variant-interpretation | | gnomAD constraint | gnomad.broadinstitute.org/downloads | constraint metrics TSV | functional-genomics |
Critical rule: Always include a fallback for when the download is unavailable (user may not have registration, file may be too large, etc.). The fallback should use available API tools even if they provide less complete data.
| Anti-Pattern | Fix |
|-------------|-----|
| "Search Log" reports | Keep methodology internal; report findings only |
| Missing disambiguation | Add collision detection; build negative filters |
| No evidence grading | Apply T1-T4 grades; label each claim |
| Empty sections omitted | Include with "None identified" |
| No synthesis | Add biological model + hypotheses |
| Silent failures | Document in Data Gaps; implement fallbacks |
| Wrong tool parameters | Verify via get_tool_info() before calling |
| GTEx returns nothing | Try versioned ID ENSG*.version |
| No foundation layer | Query aggregator first |
| Untested tool calls | Test-driven: test script FIRST |
| Tool catalog without interpretation | Add interpretation tables explaining what data means |
| Aspirational capabilities | Be honest when APIs can't deliver; add computational procedure instead |
| Missing statistical analysis | Add scipy/pandas code procedure for computation the tools can't do |
| Complaint | Fix | |-----------|-----| | "Report too short" | Add Phase 0 foundation + Phase 1 disambiguation | | "Too much noise" | Add collision filtering | | "Can't tell what's important" | Add T1-T4 evidence tiers | | "Missing sections" | Add mandatory checklist with minimums | | "Too long/unreadable" | Separate narrative from JSON | | "Just a list of papers" | Add synthesis sections | | "Tool failed, no data" | Add retry + fallback chains |
---
name: [domain]-research
description: [What + when triggers]
---
# [Domain] Research
## Workflow
Phase -1: Tool Verification → Phase 0: Foundation → Phase 1: Disambiguate
→ Phase 2: Search → Phase 3: Report
## Phase -1: Tool Verification
[Parameter corrections table]
## Phase 0: Foundation Data
[Aggregator query]
## Phase 1: Disambiguation
[IDs, collisions, baseline]
## Phase 2: Specialized Queries
[Query strategy, fallbacks]
## Phase 3: Report Synthesis
[Evidence grading, mandatory sections]
## Output Files
- [topic]_report.md, [topic]_bibliography.json
## Quantified Minimums
[Numbers per section]
## Completeness Checklist
[Required sections with checkboxes]
tools
Generate the success criteria for a task or question, then review work against them. Given a task, goal, or open-ended question, decompose it into scenarios, evaluation perspectives, and fine-grained weighted YES/NO criteria using the Recursive Expansion Tree (RET) method; if work is supplied, score it criterion-by-criterion and surface what is missing or could be better. Use when asked to self-review or check your own work, judge whether a task is done well or completely, build a definition-of-done or completeness checklist, create an evaluation rubric or grading criteria, score or grade answers to a question, set up an LLM-as-judge rubric, or when the user mentions self-review, completeness check, success criteria, evaluation criteria, scoring rubric, Qworld, or the RET algorithm.
tools
Find the real protein target(s) of a peptide from its sequence — peptide target deorphanization / off-target identification, for ANY target class (GPCR, ion channel, protease, cytokine/growth-factor receptor, enzyme, integrin), not only GPCRs. Use when a peptide has a phenotype but does not bind its hypothesized target, when a peptide binds a target in one species or assay but not another, or to screen candidate targets for an orphan peptide. A target-class router steers a multi-route keyless pipeline (PROSITE/ELM motif, BLAST homology, HGNC/InterPro/GPCRdb/GtoPdb target-family enumeration, OpenTargets phenotype anchor, EnsemblCompara/Alliance cross-species reconciliation) plus optional NVIDIA-NIM co-folding (Boltz2, AlphaFold2-Multimer, OpenFold3) for structural confirmation.
tools
Install or update ToolUniverse in Claude Science — create the conda env, install the tooluniverse pip package, and (re)build the tooluniverse-research skill by fetching the current workflow library from GitHub. Use for first-time setup, upgrading the ToolUniverse version, refreshing the bundled workflows after an upstream release, or reinstalling on a new machine.
tools
Install, set up, verify, update, pin, uninstall, or troubleshoot the ToolUniverse plugin on OpenAI Codex. ALWAYS consult this skill for any of those — don't answer from memory, because the exact marketplace name (mims-harvard/ToolUniverse), the "codex plugin marketplace add" then "codex plugin add -m tooluniverse" flow, Codex's startup auto-upgrade behavior, the uvx tooluniverse MCP server, and the API-key env vars are easy to get wrong. Use it whenever someone wants to get ToolUniverse (or "the 1000+ scientific tools" / "the harvard tools") working on Codex, says the Codex plugin or its tools/skills won't load, hits a uvx or MCP-server startup error, asks how Codex updates it, wants to pin or remove it, or finds it running an old tool version — even if they never say the word "plugin". Not for the Claude Code plugin (use tooluniverse-claude-code-plugin), for running research with the tools, or for authoring new tools or skills.