Extracts clinical trial baseline data (study, region, participants, etc.) from article text or PMID. Checks PubMed for metadata; always falls back to LLM extraction for full details.
52
59%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Data Analysis/baseline-extraction-for-clinical-trials/SKILL.mdThis skill extracts 10 key baseline characteristics from clinical trial articles. It implements a hybrid workflow:
scripts/extract_pdf.py is the most direct path to complete the request.baseline-extraction for clinical trials package behavior rather than a generic answer.scripts/extract_pdf.py.references/ for task-specific guidance.Python: 3.10+. Repository baseline for current packaged skills.Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.cd "20260316/scientific-skills/Data Analytics/baseline-extraction-for-clinical-trials"
python -m py_compile scripts/extract_pdf.py
python scripts/extract_pdf.py --helpExample run plan:
CONFIG block or documented parameters if the script uses fixed settings.python scripts/extract_pdf.py with the validated inputs.See ## Workflow above for related details.
scripts/extract_pdf.py.references/ contains supporting rules, prompts, or checklists.If the user provides a PMID, use the baseline_extractor.py script to check PubMed.
import subprocess
import json
# Replace <PMID> with actual PMID
result = subprocess.run(["python", "scripts/baseline_extractor.py", "<PMID>"], capture_output=True, text=True)
print(result.stdout)Analyze the Script Output:
status is "success": Stop here. Return the data JSON to the user.status is "not_found", "incomplete", or "error" (or if no PMID was provided): Proceed to Step 2.If Step 1 did not yield a complete result, use the LLM to extract the information from the full article text.
Input:
Instructions:
null or an empty string.Return the final result as a Markdown code block containing the JSON object.
{
"study": "...",
"region": "...",
...
}When the user provides a PDF file path, use extract_pdf.py to extract the text content before assessment:
f5ef65b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.