Deepdive skill for Claude Code — 12-phase research pipeline: plan-review gate, parallel sub-agent search, claims-ledger triangulation with dissent protection, relevance × authority evidence filter, multi-angle red team, four-layer citation verification. 105 blocks, 29 channels, 460+ stat sources, 47 APIs, 1072 verified endpoints.
# Add to your Claude Code skills
git clone https://github.com/Socialpranker/deepdivedeepdive is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Socialpranker. Deepdive skill for Claude Code — 12-phase research pipeline: plan-review gate, parallel sub-agent search, claims-ledger triangulation with dissent protection, relevance × authority evidence filter, multi-angle red team, four-layer citation verification. 105 blocks, 29 channels, 460+ stat sources, 47 APIs, 1072 verified endpoints. It has 252 GitHub stars.
deepdive's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Socialpranker/deepdive" and add it to your Claude Code skills directory (see the Installation section above). deepdive ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
deepdive is primarily written in Python. It is open-source under Socialpranker on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh deepdive against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Источник = файл с дословными цитатами, отчёт = Q&A. Скрипты запускать из ~/.claude/skills/deepdive: uv run scripts/X.py. Проверки печатают первые 15 ошибок и 5 предупреждений; --verbose — только когда чинишь конкретную. N конкурентов по фиксированной матрице — обычная таблица, не deepdive.
По умолчанию medium; shallow или deep — только если тема явно тривиальна или решение high-stakes. Объяви режим с обоснованием, после Genre+Plan — одной строкой model routing (фазы по моделям, цена, как перебить: «всё на opus» / «cheap mode»); model_routing.md.
| Режим | Источников | Fetcher-агентов | Всего суб-агентов за прогон |
|---|---|---|---|
| shallow | 5–7 | 0 | 0 |
| medium | 25–30 (из 60–100 кандидатов) | 3–4 | ≈14–17 (scout, пул кандидатов, Haiku-проходы, синтезатор, red team) |
| deep | 35–45 (из ≥100 кандидатов) | 5–6 | ≈22–27 |
Суб-агент не запускается на то, что главный поток закроет за несколько вызовов или что считает скрипт.
CLAUDE.md и memory/MEMORY.md: не дублируй сделанное.uv run scripts/wiki_query.py --topic "<вопрос>"; непогашенное противоречие идёт в plan.md вопросом. wiki.md.research/, 06_Деск-ресёрч/, docs/research/; иначе research/ (есть манифест), 06_Деск-ресёрч/ (только документы), ~/deepdive/<slug>/ (не git-репо). Slug — латиница, дефисы. Путь покажи один раз.Состав и гейты — phases.yaml (шаг 6.9 не фаза гейта: проверяется артефакт readout.md). Детали фазы — свой файл references/phases/, оглавление в workflow.md; при входе в фазу читай только её файл. Исполнитель: main — главный поток, sub — субагент.
main] — Decision Spec: решение, потребитель→следующий шаг, ≥1 вилка «покажет X → делаю A» (нет вилки ⇒ даунгрейд в shallow вслух); 2–4 опровергаемые гипотезы. question_reframing.mdmain] — жанр и блоки, подтвердить строкой. genres.md, blocks/INDEX.mdmain] — plan.md §0–16. plan_template.md
3.5. Capability Discovery [sub: explore-haiku] (deep) — ключи, API, fallback. capability_discovery.md
3.7. Plan-review gate [main] (shallow пропуск) — показать план до дорогой Фазы 4; deep ждёт «Ок», потому что это единственная точка человека, а субагент спросить не может. plan_gate.mdmain + sub: explore-haiku + sub: deepdive-fetcher] — каналы по Source Dispatch; пул кандидатов candidates.csv по матрице «сфера × позиция» и ≥1 академическому API, отбор на чтение по квотам сфер, второй раунд по переменной решения (гейт validate_phases.py, phases/p4_search.md 4.1); числа сначала через registry/API; fetcher'ам непересекающиеся диапазоны id и разные оси поиска; тонкий ответ WebFetch (<500 знаков, нет цитаты) ⇒ fetch_source.py; state.md перезаписывается перед каждым раундом (≤6 КБ), иначе контекст копит транскрипт. source_dispatch.md, subagents_v2.mdsub: explore-haiku] — claims.csv; статус и потолок уверенности считает score_claims.py --write, не модель (она завышает). source_scoring.md
5.5. Evidence-фильтр [sub: explore-haiku] (medium/deep) — relevance×authority; unknown — карантин. evidence_filter.md
5.7. Сверка с вики [sub: explore-haiku] (medium/deep) — до синтеза; конфликт с прошлым ресёрчем = обе позиции в отчёт. wiki.mdsub: deepdive-synthesizer + sub: deepdive-redteam; shallow — main] — outline.md → отчёт по секциям → numbers.csv → враждебные роли → один раунд ремедиации HIGH → memo.md. Источники и блоки читает синтезатор, главный поток — только его сводку и memo.md. Finder ≠ fixer. phases/p6_synthesis.md «Оркестрация», adversarial_pass.md
6.5. Verify [sub: explore-haiku, effort medium] (medium/deep) — четыре оси → .verify/*.json; чинится отчёт, не ledger. runtime_verification.md
6.9. Человеческая версия [main] (medium/deep) — readout.md, затем humanizer-ru, затем uv run scripts/build_report.py <run>. report_export.mdmain] (medium/deep) — refresh_targets.md, затем collect_observations.py → update_priors.py → promote_candidates.py --track; порядок и флаги в swarm_postprocess.md, читать перед первым вызовом.main] (всегда) — пройти с пользователем по вилкам memo.md; на вилки за него не отвечать. Исход → application.md. decision_walkthrough.mdСтоп: гипотезы подтверждены или опровергнуты ≥3 разнотипными источниками либо помечены «данных мало»; разобран ≥1 поиск оппозиции («X criticism / problems with X»); 4+ типа источников; насыщение — 5 источников подряд без нового claim_id и нового root: (считать по файлам).
Не стоп: источники противоречат (копай причину), все одного типа, контраргумент без разбора.
Бюджет: на medium/deep red team (6), Verify (6.5), readout.md (6.9) и finish.py не пропускаются и не сливаются в одного агента. Задан лимит денег (--max-budget-usd) — до Фазы 4 отложи ~40% на фазы 6–Finish и урезай раунды поиска и число фетчеров, а не поздние фазы; урезание — строкой в Урезано: меморандума. N9 (2026-10-28) потратил бюджет на поиск и остановился до red team с Урезано: —.
Тупик: третий поиск подряд даёт источники с total < 8 ⇒ стоп, в Open Questions «литература слабая», предложи интервью или эксперимент.
uv run scripts/finish.py --research-dir <root>/<slug> (--offline без сети): он сам строит sources.csv, сверяет леджер, гоняет liveness, пишет в вики и последним прогоняет validate_phases.py --strict. Красный ⇒ фаза пропущена: доделай, перезапусти, до зелёного не рапортуй «готово». Шаги по одному не гонять — пропуск флага и есть пропуск фазы.<date>_<slug>.html (desktop: SendUserFile), ниже PDF и папка прогона; memo.md и технический отчёт в чат не выносить.readout.md, без кодов леджера: ответ · что поменяет решение · главный контраргумент · чего не нашли · итог walkthrough.memory/ — 1–3 кандидата в память.Полные формулировки и артефакты прогона — phases/rules.md.
score_claims.py: без primary — не выше medium, непогашенный dissent от сильного источника = contested, root:/discovery_path: не копировать.data_as_of в memo.md не идёт; проценты и доли — только в numbers.csv с formula: оси 6.5 арифметику не проверяют.fetch_source.py, не curl: он читает robots.txt и чистит страницу от prompt injection.humanizer-ru по readout.md не пропускать, технический отчёт им не чистить; memo.md вместо страницы человеку не отдавать.update <slug> / «обнови ресёрч X» — дельта, не replay: diffs/<date>_delta.md, новый отчёт только если дельта существенна (решает пользователь), после дельты wiki_ingest.py и wiki_pair.py build. refresh_protocol.md
Выше названы файлы по фазам. Базовые для medium/deep: файл текущей фазы из phases/, question_reframing.md, plan_gate.md, genres.md (6 жанров), blocks/INDEX.md (106 блоков), channels.md (29 каналов), source_dispatch.md, model_routing.md, wiki.md. По условию: awesome_lists_registry.md (3.5), stat_sources/INDEX.md и api_sources/INDEX.md (47+ endpoints; когда подвопрос количественный, ключи — через env vars), fetch_ladder.md (4.2), NOTES_dated.md (датированные факты).
Stop ad-hoc Googling. Start documented investigation.
Docs · Install · How it works · Contribute
You: investigate the trade-offs between Postgres logical replication and CDC tooling
Claude: ✓ Reframed your question (3 hypotheses) + decision spec: what you'll do with the answer
✓ Picked genre: decision (comparison + validation)
✓ Wrote plan.md (17 sections)
✓ Checked your env: 4 APIs available, 2 fallback to HTML
✓ Launched 4 sub-agents across 12 channels
✓ Saved 23 sources to sources/ with quotes, provenance-checked
✓ Ran adversarial pass (3 counter-arguments + an "execute this" role)
✓ Report ready: research/postgres-replication-vs-cdc/2026-05-21_decision.md
✓ Walked through your decision forks — you picked CDC tooling, logged to application.md
A Claude Code skill that turns "research this topic" into a 13-phase pipeline with hypothesis testing, parallel sub-agent search, source triangulation, and adversarial review.
The output is a folder you can return to in a month. Every claim traces to a specific source file. The plan documents why you made every choice. No re-research needed.
New here? Start with the Quickstart — install → invoke → first result in ~5 min.
One-shot prompt → wall of text
Sources lost in chat history
No way to detect bias
No reuse next time
Generic Google results
Sources include... (vague)
17-section plan.md documents every choice
Each source = file with verbatim quotes
Mandatory adversarial pass + opposition queries
Atomic theses in findings/FN.md reusable
Every claim → [s12] link → specific quote
git clone https://github.com/Socialpranker/deepdive.git \
~/.claude/skills/deepdive
That's it. Now type any of these in a Claude Code session:
# Clone
git clone https://github.com/Socialpranker/deepdive.git
cd deepdive
# Package as .skill bundle
zip -r ../deepdive.skill . -x ".*" -x "*.zip"
# Upload via Claude.app → Settings → Skills → Add Skill
The 13-phase methodology is portable. Load SKILL.md + references/*.md into the LLM's context manually. Skip the sub-agent parts and use separate chat sessions per subtopic.
The skill runs 13 phases in order:
| Phase | Name | What happens |
|---|
| 1 | Reframing | opus / high | | 2 | Genre & block selection | sonnet / medium | | 3 | Plan | opus / medium | | 3.5 | Capability Discovery | sonnet / low | | 3.7 | Plan-review gate | sonnet / low | | 4 | Search | sonnet / medium | | 5 | Claims-ledger + triangulation | haiku / low | | 5.5 | Evidence filter | sonnet / low | | 5.7 | Wiki reconcile | sonnet / low | | 6 | Synthesis + multi-angle red team | sonnet → opus on deep / high | | 6.5 | Verify | haiku / low | | 7 | Refresh targets | sonnet / medium | | 8 | Decision walkthrough | opus / high |
Each phase runs on a model matched to its task — Opus where reasoning multiplies (1/3/6), Haiku for the parallel fan-out (4). The skill announces the routing and an estimated cost up front, once.
Every phase is transparent: you see what's happening, you confirm key decisions, and you get a folder you can return to. Before any search fires, the plan-review gate (3.7) shows you the reframing, hypotheses, genre, and channels and lets you approve or edit them — strictness scales with mode (deep waits for an explicit go-ahead, medium is a soft check, shallow skips it). Editing the plan before execution is the single highest-leverage step in the whole pipeline — Gemini Deep Research calls plan review its "biggest lever over output quality," and a wrong plan executed perfectly still produces a wrong report.
Reframing (1) doesn't just restate the question — a router classifies its profile (factual / multi-step / relational / comparative / landscape) and that classification picks the decomposition method: factual questions get flat independent subquestions, multi-step ones ("X given Y") get least-to-most leveling, comparative ones get a shared axis matrix with mandatory opposition queries per candidate. Picking the wrong decomposition for a question's shape is a silent failure mode — the router makes the choice explicit instead of defaulting to "flat parallel" for everything.
Phase 4 (Search) isn't a single pass — it's a bounded loop with three cheap safeguards so it doesn't quietly waste budget or silently give up:
met / partial / unmet with a one-line reason. This is what the expensive Opus evaluation reads instead of re-deriving the gap from scratch, and it's what targets the next round's dispatch.L1 → L2 instead of dispatched flat in parallel: L1 rounds run first, concrete facts they surface get carried forward, and L2 queries are launched already sharpened by that context. Independent subquestions still run flat.Scoring (5) doesn't stop at the usual Credibility/Recency/Bias rating — it also flags input-level skepticism: a source that measures its own product, self-reports a benchmark, or is directly disputed by another collected source gets a strict caveat: marker (vendor / self-reported / disputed:sNN) before the claim reaches claims.csv, not after synthesis has already built on it. A claim whose key number carries that marker is capped at confidence: medium (or low for an unresolved dispute) — the same rule shape as primary-first sourcing. Vendor benchmarks are the numbers that most often get quietly repeated as fact; catching them on the way in, not in the red team pass at the end, is the point.
For medium/deep depth, the pipeline runs two more machine-checked passes most one-shot research skips entirely:
SUPPORTED / PARTIAL / UNSUPPORTED verdicts to .verify/faithfulness.json. Citation fabrication is common enough industry-wide — the Tow Center found a >60% error rate in AI-generated citations — that checking for it, not just for dead links, is a real differentiator.None of this is enforced by discipline alone: scripts/validate_phases.py reads a finished run's mode: and checks that every phase mandatory for that mode actually left its file artifact (plan.md, claims.csv, evidence/, .verify/*.json, the dated report, ...). A skipped phase fails the check instead of silently passing — the model can't just claim "done." As of finish-up, this check is a blocker, not a suggestion: the skill won't report a research as done on a red gate, symmetrically to how a report isn't "done" without its verification header. sources.csv itself is now built the same deterministic way — scripts/build_sources_csv.py generates it from sources/NN.md frontmatter (with a --check mode for CI) instead of being assembled by hand each run.
A well-cited report that changes nothing is still a failure — the skill's answer to that is a decision spine running through the whole pipeline, not a bolt-on question at the end: