CommunityResearch & Data Analysisgithub.com

citation-first-research

Research a question to a defensible, cited answer: search, read primary sources, and escalate to a browser only when a page withholds its text, separating confirmed facts from inferences and gaps. Use when asked to look something up, compare options, check what is true or current, or produce scientific research, R&D feasibility studies, literature/patent reviews, or technical dossiers.

What is citation-first-research?

citation-first-research is a Claude Code agent skill that research a question to a defensible, cited answer: search, read primary sources, and escalate to a browser only when a page withholds its text, separating confirmed facts from inferences and gaps. Use when asked to look something up, compare options, check what is true or current, or produce scientific research, R&D feasibility studies, literature/patent reviews, or technical dossiers.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HasanMfar/citation-first-research/tree/HEAD

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Citation-first research

Prevent confident wrong answers built from memory, stale blog posts, or invented URLs. Every load-bearing claim must trace to evidence gathered in this session.

The contract

  1. Never invent or "fix" a URL. Only cite URLs returned by a search tool, fetched page, or citation block in this session. If a search returns no results, say so and change terms.
  2. Prefer primary sources read directly. Do not summarize an unopened page from its title or slug.
    • Harness adaptation: If your search tool returns grounded snippets/citations and a page blocks direct fetches (403, login wall, JS shell), either escalate to a browser when the claim is load-bearing or explicitly mark it as snippet-only / unreachable.
  3. Separate fact, inference, and gaps. A claim without a source is either labeled inferred or left out. "Not established" is a valid outcome; guessing is not.
  4. Qualify numbers and states. Include denominators, sample sizes, units, currencies, regions, timeframes, and mean vs. median. Show arithmetic for any derived number. State "as of <date>" for anything that changes.

Choose your depth

  • Quick lookup (default): Run 2–4 targeted searches in parallel, open 1–3 primary sources to verify dates and exact wording, and answer concisely (conclusion first, inline links, explicit gaps). Skip heavy tables unless asked.
  • Deep research / comparison: Load references/deep-research.md for multi-route search, evidence ledgers, comparison rules, adversarial checks, and the structured report template.
  • Scientific / R&D dossier (literature or patent reviews, formulation/materials studies, experimental plans, or standalone HTML/PDF reports): Load both references/deep-research.md and references/rd-dossier.md for the 4-wave R&D protocol, Python-verified stoichiometry, reproducible figures, and the mandatory scripts/verify_dossier.py audit gate.

The ladder: Search → Fetch → Browser

Always start at the cheapest tier that can answer:

TierGives youReach for it when
SearchTitles, URLs, snippets, datesAlways first to locate primary sources
FetchFull page textYou know which URL holds the answer
BrowserRendered UI / gated contentFetch fails (login wall, JS-rendered shell, interactive flow)

Search rules:

  • Query in the words a primary document uses ("ERR_MODULE_NOT_FOUND", version numbers, site: on official docs).
  • One question per query; run independent queries in parallel.
  • Do not repeat a failed query with minor spelling tweaks; change terms or switch routes.

Fetch & Browser rules:

  • Prefer canonical primary URLs over mirrors, reposts, or AI summaries. Check the version selector on docs.
  • Read hosted PDFs/spreadsheets at their URL; do not download third-party files into user folders.
  • For browser runs: one site, one goal per run, and specify the exact fields to return (price, date, version, etc.). Do not escalate to a browser for docs a fetch can read.

Evaluate sources like a skeptic

Rank every source by tier:

  1. Primary: Spec, RFC, official docs, peer-reviewed paper, source code.
  2. Official secondary: Changelog, release notes, status page, vendor blog.
  3. Community: GitHub issues, Stack Overflow, independent blogs, forums.
  4. Aggregators: Listicles, content farms, AI summaries (leads only — never cite as evidence).

Apply two checks before trusting a claim:

  • Date & version before content: Check publication/update dates and applicable versions first. When a blog post and current docs disagree, current docs win; when docs disagree with observed behaviour, behaviour wins.
  • Origin before corroboration: Ten reposts tracing to one announcement are one source, not ten.

When sources disagree

Work down this list and stop at the first explanation:

  1. Version (different releases?)
  2. Date (one is simply older?)
  3. Product or namesake (fork, acquired product, similar name?)
  4. Scope (region, plan tier, platform, config?)
  5. Definition (different meaning for the same term?)

If none explains it, rank by tier and date, state both positions, explain which you rely on, and note what would settle it. Never average conflicting facts into a middle value.

Output & pre-send check

Lead with the answer in 1–2 sentences (with key qualifiers: version, region, as-of date), followed by inline links to checked sources and a plain Not established note for any remaining gaps.

Before sending, verify:

  1. Every URL came from a tool output in this session (none from memory).
  2. Every cited claim is no stronger than its source ("supports" ≠ "recommends", "planned" ≠ "shipped").
  3. Dates and versions are attached to moving facts.
  4. Numbers include denominators, units, currency/region, or shown arithmetic.
  5. Unresolved gaps and disagreements are stated plainly.

Related Skills