/smith:smith-research <domain> [--depth quick|standard|thorough] [--politeness strict|normal|aggressive] [--resume]from smith
Crawls a target website and indexes it into a local vector store, then runs deep background research (Bing/Reddit) to produce a fully-cited, hallucination-resistant company research report.
Ships in smith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Produce an auditable research dossier on a target site + company. The design separates extraction (deterministic scripts, zero LLM) from interpretation (LLM subagents that see ONLY already-stored, cited chunks). The guarantee is traceability, not omniscience: every published sentence is citation-gated and adversarially entailment-checked, and a deterministic LLM-free gate fails the run rather than ship an uncited claim.
Arguments: $ARGUMENTS (first positional token is the target domain)
Throughout, log significant events to the vault session log. Read the path from
.smith/vault/.current-session. If missing or the vault is not initialized, skip
logging silently. Immediately before every Agent tool call, append a block naming
the phase, subagent_type, and model (the Agent return value does not expose
these to the parent, so this is the only capture point).
nomic-embed-text pulled.All crawling/extraction/indexing/retrieval/verification bookkeeping is done by:
python3 skills/smith-research/scripts/run.py <subcommand> [flags]
Subcommands: check, discover, crawl, index, background, retrieve,
evidence-check, record-claim, verify-report, status. See
skills/smith-research/scripts/README.md and specs/32-smith-research/contracts/cli.md.
The LLM only ever runs in Phases 5–6 below, over retrieved+cited chunks.
SR=skills/smith-research/scripts
# 1. venv (idempotent)
[ -d "$SR/.venv" ] || python3 -m venv "$SR/.venv"
source "$SR/.venv/bin/activate"
pip install -q -r "$SR/requirements.txt"
# 2. Playwright browser (required for screenshots + render fallback + WS server)
python -m playwright install chromium >/dev/null 2>&1
# 3. host-side Playwright WS server on :9224 (idempotent; uses venv python)
bash "$SR/start-playwright-server.sh"
# 4. verify Qdrant + Ollama + Playwright are all reachable
python "$SR/run.py" check --domain "$DOMAIN" --json
If check exits non-zero (2), STOP and surface the remediation lines it printed
(start Qdrant / ollama pull nomic-embed-text / start the WS server). Do not
proceed — correctness depends on all three being up.
macOS note (S5): artifacts write to
~/Documents/smith-research/, which may trigger a one-time "allow Terminal to access Documents" TCC prompt, and syncs to iCloud by default — crawled pages/SERP captures may contain PII. Warn the user once. SetSMITH_RESEARCH_OUTPUT_DIRto override the location.
python "$SR/run.py" discover --domain "$DOMAIN" --json
Builds the URL frontier (sitemap recursion → robots → BFS fallback). Note the
run_dir it prints — every later phase resolves the latest run automatically.
If discovered is 0, STOP (exit 3): the domain has no reachable pages.
python "$SR/run.py" crawl --domain "$DOMAIN" ${RESUME:+--resume} --json
Fetches every URL (static → render fallback), saves markdown + raw HTML + screenshot, checkpoints, and enforces terminal statuses so the run always completes. A non-zero exit (4) means some URLs reached a terminal-unsuccessful state (blocked/failed) — that is an honest partial, NOT a hard failure; note the counts and continue.
python "$SR/run.py" index --domain "$DOMAIN" ${RESUME:+--resume} --json
Chunks + embeds crawled pages into the per-run _site Qdrant collection
(idempotent — safe to re-run).
python "$SR/run.py" background --domain "$DOMAIN" --depth "${DEPTH:-thorough}" --json
Runs Bing-primary SERP + Reddit across the research topics (demographic,
marketing, pr, funding, leadership, competitors, sentiment), assigns a
source_tier per source, deep-fetches and embeds into the _background
collection. Blocked/empty engines are logged as gaps, never fabricated. Note
per_tier — social_unverified sources must be hedged in synthesis.
Write report.md progressively, ONE section at a time, each by a subagent that
sees ONLY retrieved chunks. Report sections (fixed order): Company · Offerings ·
Pricing · ICP/Audience · Marketing Angle · News/PR · Funding · Leadership.
For each section:
python "$SR/run.py" retrieve --domain "$DOMAIN" --query "<section-focused query>" --collection both --k 10 --json
general-purpose subagent (log the Agent call per Vault Logging).
Pass it ONLY the retrieved chunks (text + url + source_tier). Prompt contract:
"Write the
section using ONLY the provided sources. If a fact is not in the sources, do NOT state it. Cite every factual sentence inline as [<url>]. For any source markedsocial_unverified, attribute and hedge ('Per a Reddit thread, …') — never state it as bare fact. Return markdown."
report.md.Run sections in parallel where practical (they are independent). Update
run.json/run_state phase to synthesize with per-section status so a died
run resumes at the next unfinished section (S3).
6a — Adversarial per-claim verification. For each section's draft:
python "$SR/run.py" evidence-check --domain "$DOMAIN" --claim "<atomic claim>" --json
general-purpose subagent (adversarial prompt):
"Default to UNVERIFIED. Mark supported ONLY if a provided chunk directly ENTAILS the claim. Mark contradicted if a chunk refutes it. Topical similarity is NOT support. Return the verdict + which chunk_id(s) support it."
python "$SR/run.py" record-claim --domain "$DOMAIN" --section "<S>" --claim "<c>" \
--verdict supported --source-urls <urls...> --chunk-ids <ids...> \
--chunk-texts "<supporting chunk text...>" --source-tier <tier>
report.md, strip any claim that came back contradicted, and mark any
unverified claim with a trailing [UNVERIFIED] or remove it.6b — Deterministic closing gate (LLM-FREE — the actual enforcement):
python "$SR/run.py" verify-report --domain "$DOMAIN" --json
This parses the FINAL report.md and asserts every declarative sentence maps to
a verdict=supported claim with a resolvable chunk. If it exits 4, it prints the
offending sentences (uncited / cited-but-not-supported). You MUST fix each
(add a real citation from evidence, or remove the sentence) and re-run until it
exits 0. Do not present the report to the user until this gate passes. This is
the guarantee: the shipped report contains zero uncited claims.
verify-report exited 0.run_dir path, report.md, evidence.jsonl, the
crawl/background counts, and any honest gaps (blocked engines, terminal URLs,
[UNVERIFIED] items).kill "$(cat "${TMPDIR:-/tmp}"/smith-research-playwright-9224.pid 2>/dev/null)" 2>/dev/null || true
The vector collections persist. To answer follow-ups from stored evidence:
python "$SR/run.py" retrieve --domain "$DOMAIN" --query "<question>" --collection both --k 8 --json
Answer ONLY from returned chunks + their URLs; if a topic is absent, say so — never fill the gap from model memory.
verify-report is not finished — fix or cut the offending claims.README.md (opens in a new tab)scripts/README.md (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/run.py (opens in a new tab)scripts/smith_research/__init__.py (opens in a new tab)scripts/smith_research/bg_research.py (opens in a new tab)scripts/smith_research/browser.py (opens in a new tab)scripts/smith_research/checkpoint.py (opens in a new tab)scripts/smith_research/chunker.py (opens in a new tab)scripts/smith_research/classifier.py (opens in a new tab)scripts/smith_research/config.py (opens in a new tab)scripts/smith_research/crawler.py (opens in a new tab)scripts/smith_research/discover.py (opens in a new tab)scripts/smith_research/embedder.py (opens in a new tab)scripts/smith_research/extractor.py (opens in a new tab)scripts/smith_research/indexer.py (opens in a new tab)scripts/smith_research/ledger.py (opens in a new tab)scripts/smith_research/logger.py (opens in a new tab)scripts/smith_research/models.py (opens in a new tab)scripts/smith_research/models_research.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, hooks: Invalid string: must start with "./", hooks: Invalid string: must end with ".json", skills: Invalid string: must start with "./"
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, hooks: Invalid string: must start with "./", hooks: Invalid string: must end with ".json", skills: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
36 skills in this plugin
/smithInitialize SpecKit on a new or existing project — scans the codebase, interviews you about project details, and generates CLAUDE.md, constitution.md, and the full .specify/ scaffolding with commands and agents./smith-activityOpen the local Smith activity dashboard — one loopback daemon serving every registered project, showing live workflow phases, sessions, subagents, worktrees, token usage and divergence findings. Start, stop, restart or check the daemon, or open a new tab for the current project./smith-analyzePerform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.Other plugins' skills for the same job