biomedical-search-strategy-builder
Builds professional search strategies for PubMed. Second polish: Python script rewritten — COMMON_MESH expanded from ~25 to 80+ terms covering glioblastoma, temozolomide, immunotherapy, QoL and 50+ other clinical concepts; NCBI MeSH API fallback added; fallback warning system emits explicit stderr notice when concept not in local dict; validate command now checks square bracket [] balance (P0 critical bug fixed); date filters use dynamic current year; mesh subcommand provides synonyms and Browser guidance for unknown terms; --show-mapping flag enables Step 2b MeSH mapping table check-in.
Veto GatesRequired pass for any deployment consideration
| Dimension | Result | Detail |
|---|---|---|
| Scientific Integrity | PASS | Hard rule against fabricating MeSH terms enforced in all outputs; no fabricated DOIs, PMIDs, or trial data detected across any test execution. |
| Practice Boundaries | PASS | No diagnostic or prescriptive clinical conclusions produced; skill correctly scoped to search strategy construction only. |
| Methodological Ground | PASS | PICO framework correctly applied; no methodological fallacies; MeSH verification note consistently present in SKILL.md instructions. |
| Code Usability | PASS | Script executes correctly via Python 3.9; pico, mesh, and validate subcommands all run without syntax errors or crashes. Logic bug in validate (square bracket balance unchecked) does not prevent execution. |
Core Capability84 / 100 — 8 Categories
Medical TaskExecution Average: 85.8 / 100 — Assertions: 23/23 Passed
All PICO concepts in expanded COMMON_MESH. Dynamic year filter (2021:2026). Richer synonyms for mortality (fatal, death, all-cause mortality). Copy-paste ready output.
cancer→Neoplasms (correct); immunotherapy→Immunotherapy (now in expanded dict, with 6 synonyms including pd-1, pd-l1, checkpoint inhibitor); quality of life→Quality of Life (now in dict, with qol, hrqol, patient-reported outcomes synonyms). No fallback warnings emitted. Prognosis filter correct.
glioblastoma→Glioblastoma (now in COMMON_MESH) with synonyms: gbm, glioblastoma multiforme, grade iv glioma, high-grade glioma. temozolomide→Temozolomide (now in COMMON_MESH) with synonyms: tmz, temodar, temodal. No fallback. Therapy filter correct. No recall loss.
alzheimer→Alzheimer Disease (correct, with synonyms alzheimer's disease, ad, amyloid, cognitive decline). glioblastoma now found in expanded dict; returns MeSH term Glioblastoma with 4 synonyms and guidance. Coverage gap acknowledged with dictionary size note.
CRITICAL BUG FIXED: validate now correctly detects unbalanced square brackets. Query with unclosed [MeSH Terms (missing ]) returns error: 'Unbalanced square brackets: 2 opening [ vs 1 closing ]'. Valid query still passes. Validates both () and [] balance.
Key Strengths
- Hard rule against fabricating MeSH terms with mandatory verification note is a strong scientific integrity safeguard
- PICO decomposition framework correctly structures queries for known concepts, producing copy-paste-ready PubMed output with proper MeSH hierarchy expansion
- Well-structured Python codebase (MeSHMapper, QueryBuilder, SearchConcept, SearchStrategy classes) is maintainable and extensible
- CLI subcommand design (pico, mesh, validate) provides clear entry points aligned to distinct user needs