Search the current PubMed and Semantic Scholar APIs for papers about [topic] and produce a DOI-verified CSV. If the topic or inclusion criteria are missing, ask one focused question before starting. Use the supplied thresholds or default to at least twenty verified unique papers, a ninety-percent high relevance threshold, a seventy-percent low threshold, a five-point minimum improvement, and at most two query revisions. Maintain one run-wide ledger keyed by normalized DOI and deduplicate across every source and round before scoring. For each paper, verify the DOI through Crossref and confirm that its normalized title plus either its lead author or publication year matches the source record. Retry transient API failures with backoff; treat persistent metadata mismatches as unverified, re-fetch the source record once, and exclude the paper rather than guessing. Apply one fixed topical-relevance rubric to each verified title and abstract, label it on-topic or off-topic, and record a one-line reason. Never change the rubric during the run. Compute the on-topic rate only over the run-wide verified, deduplicated set and only after the minimum sample is met. Succeed when the set reaches the high threshold. Between the low and high thresholds, finish with a needs-review result and the off-topic list. Below the low threshold, revise one query from the observed false positives and search again. Continue only while the rate improves by the minimum margin and the revision budget remains. Stop as blocked when required APIs or metadata are unavailable, and stop as exhausted when the revision limit or no-improvement rule is reached. Never invent, infer, or autocomplete paper metadata. Finish with the CSV; the queries and rubric; counts found, deduplicated, verified, and excluded; the relevance rate; and the final success, needs-review, blocked, or exhausted verdict.
claude-code · codex
Use this when
Use this when a literature search must produce a high-precision, auditable paper set rather than an unverified list of citations.
How it runs
Define the topic, inclusion rubric, minimum sample, relevance thresholds, improvement margin, and query-revision budget.
Search PubMed and Semantic Scholar, normalize every DOI, and deduplicate all results in one run-wide ledger.
Verify DOI metadata against Crossref, exclude unresolved mismatches, and score verified papers with the unchanged relevance rubric.
Measure the verified set and revise one query only when the result is below the low threshold and measurable improvement remains possible.
Return the CSV, evidence ledger, metrics, exclusions, query history, and an honest terminal verdict.
Done when
✓ The minimum-size literature set clears its relevance gate with matched DOI metadata. Every retained row is unique across the full run, its DOI metadata matches the source record, its relevance decision follows the fixed rubric, and the final verdict follows the recorded sample size, rate, and retry budget.
Why it works
Literature searches can look authoritative while containing duplicate, mistyped, invented, or irrelevant citations. A run-wide ledger, metadata matching, fixed rubric, minimum sample, and bounded query revisions make the result auditable without rewarding a tiny or cherry-picked set.
Implementation note
Use current public bibliographic metadata and respect each API's access and rate limits. Do not infer missing abstracts or treat a network failure as evidence that a DOI is invalid.
A quality-improvement workflow that defines expert scoring dimensions, fixes the lowest score, and requires fresh independent rescoring after every pass.
Bring one artifact to a verified 5 out of 5 on every dimension of an expert scorecard. Name the governing expert perspective and define five to nine scored dimensions, wiring objective checks such as tests, lint, build, accessibility, performance, or security scans to any dimensions they cover. Fix only the lowest-scoring dimension each pass. Then have a fresh independent reviewer rescore the whole artifact and name what remains below 5. Never score your own work, fake a 5, pad dimensions, or weaken checks. Stop when every dimension is 5, the lowest score has not risen for two rounds, the budget is spent, blocked, or approval is required.
Before a meaningful action, build a compact current-state model: known facts, uncertainties, missing evidence, relevant systems, constraints, user goals, and granted authority. Identify the risky assumption the agent is tempted to make, then propose the smallest useful next action. Before acting, predict what should change, what should remain unchanged, what evidence will confirm success, and what would count as surprise or failure. Act only if the action is in scope and verifiable. Afterward, compare predicted and actual state, record the trace, and continue only if the model still holds, risk has not increased, and another bounded pass is justified. Stop at target state, material prediction failure, blocker, approval boundary, or no justified next action.
A product research workflow that observes target personas across the complete user journey, separates usability friction from unmet needs, and ranks evidence-backed feature suggestions.
Define two or three target-audience personas from the product positioning, asking if the positioning is unavailable. For one persona at a time, walk the full journey from landing and signup through core workflow, secondary features, limits, return visit, and offboarding using only what that persona could realistically see. Observe only. Record expected versus actual behavior, friction, confusion, delight, and comparable-product mental models. Split findings into usability friction, unmet needs, and feature suggestions tied to a specific journey moment. Stop after one pass per persona and return the personas, journey map, evidence log, ranked suggestions, and any approval boundaries before roadmap or production changes.