site-ranking

Rank ClinicalTrials.gov clinical trial sites (facilities) for a condition/sponsor/topic using a deterministic Python script (search + optional OpenAlex standardization + NetworkX centrality/frequency + post-ranking geographic filters). Use this skill whenever the user asks for “top sites”, “best sites”, “site ranking”, “hub sites”, “centrality/PageRank of sites”, or wants site recommendations by geography (country/state/city) for clinical trials.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "site-ranking" with this command: npx skills add jujae/trial-optimizer/jujae-trial-optimizer-site-ranking

Site Ranking (standalone)

This skill provides a deterministic implementation of ds_ai_platform-style site ranking:

  1. Search ClinicalTrials.gov API v2 for studies.
  2. (Optional, default) Standardize facility names via OpenAlex to help deduplicate.
  3. Build a site co-participation network (two sites are connected if they appear in the same trial).
  4. Rank sites by either:
    • frequency (most trials)
    • network centrality (degree, pagerank, betweenness, closeness, eigenvector)
  5. Apply optional filters after ranking (country/state/city/etc.).

Dependencies

Install on your server:

pip install -r site-ranking/requirements.txt

Prompt conventions (critical)

Location vs filters

  • If the user asks for trials in a location (e.g., “trials in California”), put that in search.location.
  • If the user asks for top sites in a location (e.g., “top US sites for breast cancer”), do NOT constrain the initial search with search.location; instead apply ranking.filters after ranking (e.g., { "country": "United States" }).

Rationale: centrality rankings are more informative with a broader network; filtering is safer after ranking.

Metric choice

  • Use frequency for “most trials” / footprint.
  • Use degree (default) or pagerank for collaboration hubs / influence.

How to run

  1. Create a payload file payload.json.
  2. Run:
python site-ranking/scripts/run_site_ranking.py --file payload.json --pretty

Payload schema

Provide exactly one of:

  • search: run full pipeline (search → optional standardize → rank)
  • trial_data: skip search and rank the provided ClinicalTrials-like JSON

Fields:

  • search: object with keys condition, intervention, other_terms, sponsor, status, location, max_results
  • ranking: object with keys:
    • metric: frequency|degree|betweenness|closeness|eigenvector|pagerank
    • top_n: integer
    • filters: object (applied after ranking). Common keys: country, state, city, facility, openalex_id.
    • standardize_openalex: boolean (default true)

Optional:

  • email_for_api: passed as OpenAlex mailto (or set env var EMAIL_FOR_API).

Example payload

{
  "search": {
    "condition": "breast cancer",
    "other_terms": "AREA[Phase]Phase 3",
    "status": "RECRUITING",
    "location": "",
    "max_results": 100
  },
  "ranking": {
    "metric": "degree",
    "top_n": 10,
    "filters": {"country": "United States"},
    "standardize_openalex": true
  }
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

trial-optimizer-graphical

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated