skills/43-wentorai-research-plugins/skills/literature/search/boolean-search-guide/SKILL.md
Master Boolean operators and advanced search syntax for academic databases
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research boolean-search-guideInstall 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.
A skill for constructing precise, reproducible search queries using Boolean operators across major academic databases. Covers AND, OR, NOT logic, proximity operators, truncation, field codes, and strategies for building systematic search strings.
AND — Narrows results. Both terms must appear.
"machine learning" AND "drug discovery"
OR — Broadens results. Either term may appear.
"deep learning" OR "neural network"
NOT — Excludes results. Removes records containing the term.
cancer NOT "lung cancer"
() — Groups terms to control evaluation order.
(COVID-19 OR SARS-CoV-2) AND (vaccine OR vaccination)
Databases evaluate Boolean expressions in this order unless parentheses override:
Always use parentheses to make your intent explicit:
# Ambiguous (results depend on database precedence):
sleep disorders OR insomnia AND cognitive performance
# Clear (intended meaning explicit):
(sleep disorders OR insomnia) AND cognitive performance
* — Truncation (unlimited characters)
therap* matches therapy, therapies, therapeutic, therapeutics
? — Single-character wildcard
wom?n matches woman, women
$ — Optional character (some databases)
behavio$r matches behavior, behaviour
| Database | Operator | Example | Meaning | |----------|----------|---------|---------| | PubMed | Not supported | -- | Use phrase search instead | | Web of Science | NEAR/n | climate NEAR/3 adaptation | Within 3 words | | Scopus | W/n | gene W/5 therapy | Within 5 words, ordered | | Scopus | PRE/n | drug PRE/3 resistance | First term precedes second | | ProQuest | N/n, P/n | poverty N/5 education | Within 5 words | | EBSCO | Nn | mental N3 health | Within 3 words |
PubMed:
"machine learning"[Title]
"Smith J"[Author]
"Nature"[Journal]
"2020/01/01"[Date - Publication] : "2024/12/31"[Date - Publication]
Web of Science:
TI=("deep learning")
AU=(Smith, John)
SO=(Nature)
PY=(2020-2024)
Scopus:
TITLE("deep learning")
AUTH(Smith)
SRCTITLE(Nature)
PUBYEAR > 2019
def build_pico_search(population: str, intervention: str,
comparison: str, outcome: str) -> str:
"""
Construct a Boolean search string from PICO components.
Args:
population: Target population terms (OR-separated)
intervention: Intervention terms (OR-separated)
comparison: Comparator terms (OR-separated, may be empty)
outcome: Outcome terms (OR-separated)
Returns:
Complete Boolean search string
"""
blocks = []
blocks.append(f"({population})")
blocks.append(f"({intervention})")
if comparison:
blocks.append(f"({comparison})")
blocks.append(f"({outcome})")
return " AND ".join(blocks)
# Example: Effect of mindfulness on anxiety in college students
query = build_pico_search(
population='"college students" OR "university students" OR undergraduates',
intervention='mindfulness OR "mindfulness-based stress reduction" OR MBSR',
comparison='"wait list" OR "waitlist" OR "usual care" OR "control group"',
outcome='anxiety OR "generalized anxiety" OR GAD OR "anxiety symptoms"'
)
print(query)
1. Identify key concepts from your research question
2. List synonyms, related terms, and variant spellings for each concept
3. Combine synonyms within each concept using OR
4. Connect concept blocks using AND
5. Test the search in your target database
6. Review the first 50 results for relevance
7. If recall is too low: add more synonyms, use truncation
8. If precision is too low: add more AND blocks, use field limits
9. Document the final search string with date and result count
Language: English, Chinese, Spanish, etc.
Date range: Publication year or date added
Document type: Journal article, review, conference paper
Study design: RCT, cohort, case-control (PubMed clinical queries)
Species: Human, animal (PubMed)
Open access: Free full text available
PubMed provides validated search filters (hedges) for specific study types. Append these to your search:
# Therapy/Intervention (sensitive):
AND (randomized controlled trial[pt] OR controlled clinical trial[pt]
OR randomized[tiab] OR randomly[tiab] OR trial[tiab])
# Diagnosis (specific):
AND (sensitivity and specificity[MeSH] OR predictive value of tests[MeSH]
OR accuracy[tiab])
# Systematic Reviews:
AND (systematic review[pt] OR meta-analysis[pt] OR systematic[sb])
For systematic reviews and reproducible research, always record:
Store search strategies in a version-controlled file alongside your project so they can be independently verified and updated.
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.