← Back to Skills Marketplace
aipoch-ai

Clinicaltrials Gov Parser

by AIpoch · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
238
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clinicaltrials-gov-parser
Description
Monitor and summarize competitor clinical trial status changes from ClinicalTrials.gov. Trigger: When user asks to track clinical trials, monitor trial statu...
README (SKILL.md)

ClinicalTrials.gov Parser

Monitor and summarize competitor clinical trial status changes from ClinicalTrials.gov.

Use Cases

  • Trial Monitoring: Track status changes of specific clinical trials
  • Competitive Intelligence: Monitor competitor trial activities and milestones
  • Recruitment Tracking: Get updates on enrollment status
  • Completion Alerts: Monitor trial completion and results posting

Parameters

Parameter Type Default Required Description
--sponsor string - No Trial sponsor name
--condition string - No Medical condition/disease
--status string - No Trial status (Recruiting, Completed, etc.)
--trials string - No Comma-separated trial IDs (NCT numbers)
--output string json No Output format (json, csv)
--days int 30 No Number of days for monitoring

Usage

from scripts.main import ClinicalTrialsMonitor

# Initialize monitor
monitor = ClinicalTrialsMonitor()

# Search for trials
trials = monitor.search_trials(
    sponsor="Pfizer",
    condition="Diabetes",
    status="Recruiting"
)

# Get trial details
trial = monitor.get_trial("NCT05108922")

# Check for status changes
changes = monitor.check_status_changes(trial_ids=["NCT05108922"])

CLI Usage

# Search trials
python scripts/main.py search --sponsor "Pfizer" --condition "Diabetes"

# Get trial details
python scripts/main.py get NCT05108922

# Monitor status changes
python scripts/main.py monitor --trials NCT05108922,NCT05108923 --output json

# Generate summary report
python scripts/main.py report --sponsor "Pfizer" --days 30

API Methods

Method Description
search_trials() Search trials with filters
get_trial(nct_id) Get detailed trial information
check_status_changes() Check for status updates
get_recruitment_status() Get enrollment updates
generate_summary() Generate competitor summary

Technical Details

  • API: ClinicalTrials.gov API v2
  • Rate Limit: 10 requests/second
  • Data Format: JSON
  • Difficulty: Medium

References

  • See references/api-docs.md for API documentation
  • See references/status-codes.md for trial status definitions
  • See references/examples.md for usage examples

Risk Assessment

Risk Indicator Assessment Level
Code Execution Python scripts with tools High
Network Access External API calls High
File System Access Read/write data Medium
Instruction Tampering Standard prompt guidelines Low
Data Exposure Data handled securely Medium

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • API requests use HTTPS only
  • Input validated against allowed patterns
  • API timeout and retry mechanisms implemented
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized (no internal paths exposed)
  • Dependencies audited
  • No exposure of internal service architecture

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • Successfully executes main functionality
  • Output meets quality standards
  • Handles edge cases gracefully
  • Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
    • Performance optimization
    • Additional feature support
Usage Guidance
This skill appears internally consistent with its stated purpose. Before installing or running: (1) review the full scripts/main.py (CLI portion) to confirm it does not write outside the workspace or call any unexpected endpoints, (2) run it in a sandboxed environment because it performs network calls and executes Python code, (3) audit dependencies (requests is expected; dataclasses is harmless but unnecessary on modern Python), and (4) ensure your use of competitor monitoring complies with your organization’s legal and ethical policies. If you need the agent to run autonomously, consider limiting network access or monitoring outbound traffic to detect any unexpected exfiltration.
Capability Analysis
Type: OpenClaw Skill Name: clinicaltrials-gov-parser Version: 0.1.0 The skill is a legitimate tool designed to monitor clinical trial data using the official ClinicalTrials.gov API v2. The core logic in `scripts/main.py` implements rate-limited GET requests to a hardcoded government endpoint (clinicaltrials.gov) and provides a CLI for searching and summarizing trial statuses. There is no evidence of data exfiltration, unauthorized file access, or malicious code execution; the 'High' risk level mentioned in `SKILL.md` appears to be a conservative self-assessment regarding standard network and script execution capabilities.
Capability Assessment
Purpose & Capability
Name/description match the code and SKILL.md: the package queries ClinicalTrials.gov, parses trial records, and summarizes status changes. No unrelated credentials, binaries, or external services are requested.
Instruction Scope
SKILL.md and examples confine the agent to searching, retrieving, and summarizing trials from the ClinicalTrials.gov API. Instructions do not ask the agent to read unrelated files or environment variables or send data to unexpected endpoints.
Install Mechanism
This is an instruction-only skill with a single Python script and a requirements.txt (requests, dataclasses). There is no installer that downloads arbitrary archives or runs remote installers. The only required action is pip install -r requirements.txt which is proportional.
Credentials
No environment variables, credentials, or config paths are required. The network usage is limited to the documented ClinicalTrials.gov API endpoint (https://clinicaltrials.gov/api/v2), which is appropriate for the stated function.
Persistence & Privilege
Skill is not always-on and does not request elevated platform privileges or modify other skills. It can run network requests but does not declare permanent presence or privileged system changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clinicaltrials-gov-parser
  3. After installation, invoke the skill by name or use /clinicaltrials-gov-parser
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of clinicaltrials-gov-parser. - Monitors and summarizes competitor clinical trial status changes from ClinicalTrials.gov. - Supports trial searching, detailed trial info, and status tracking by sponsor, condition, or status. - Provides CLI and Python API access for trial monitoring, recruitment updates, and completion alerts. - Includes security checklist, risk assessment, and sample usage for pharma competitive intelligence. - Uses ClinicalTrials.gov API v2 with JSON output; supports monitoring over configurable time windows.
Metadata
Slug clinicaltrials-gov-parser
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Clinicaltrials Gov Parser?

Monitor and summarize competitor clinical trial status changes from ClinicalTrials.gov. Trigger: When user asks to track clinical trials, monitor trial statu... It is an AI Agent Skill for Claude Code / OpenClaw, with 238 downloads so far.

How do I install Clinicaltrials Gov Parser?

Run "/install clinicaltrials-gov-parser" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Clinicaltrials Gov Parser free?

Yes, Clinicaltrials Gov Parser is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Clinicaltrials Gov Parser support?

Clinicaltrials Gov Parser is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Clinicaltrials Gov Parser?

It is built and maintained by AIpoch (@aipoch-ai); the current version is v0.1.0.

💬 Comments