Skip to main content
← Skills
Skill · Code repo

Dig Up Primary Sources for AI Deep Research

Dig into an unfamiliar field by mapping terms, key people, and venues first, then following citations and links to save original sources without early summaries before building verifiable reports.

@MaryCache imozuru
  • Deep research
  • AI agents

Works with Claude Code · Codex

Requirements

  • Python >=3.10
  • pdftotext / pdfminer.six
  • pdftoppm + tesseract
  • yt-dlp
  • ax

Overview

What you get

  • A six-step research workflow that maps field terms, people, and venues into map.md before chasing citations, links, and authors.
  • Saved original sources under ~/research/<topic>/sources/ (filtering out 404s and login walls) with no premature summaries during collection.
  • An extract page (report.html) linking each point to exact source files and line numbers, a reader-level detailed report (digest.html), a dashboard, and an RSS watch mode.

Good fit

  • Catching up on an unfamiliar technical or academic field where you do not yet know the right search terms.
  • Building a verifiable folder of primary papers, articles, and transcripts so both you and your AI agent can check the exact evidence.
  • Monitoring newly published posts from discovered blogs, Qiita/Zenn tags, note, YouTube, and arXiv via RSS.

Not for

  • Single-fact lookups (a release year, a yes/no check, or one API spec) where ordinary web search is faster.
  • Searching local files already on your computer, or expecting fully English-localized skill prompts and script labels (SKILL.md and script outputs are in Japanese).

Tutorial

When to use imozuru

When you ask an AI assistant to research an unfamiliar topic without a structured workflow, it usually reads the top few search results and returns a quick summary. That hides the details you need to judge for yourself, and keeps the search stuck inside whatever words you happened to type first.

imozuru (named after the Japanese idiom imozuru-shiki, pulling up leads one after another on a single vine) applies library and information science search models to fix this:

  1. Frame the question: Writes down the main question and 3–6 specific points needed to answer it.
  2. Map the field (map.md): Runs two search subagents with different strategies to gather domain terms, key people, and venues.
  3. Follow leads: Traces references, citing papers (via the keyless OpenAlex API), article links, and authors.
  4. Save original sources (sources/): Downloads full pages, PDFs, and transcripts without summarizing them during collection, dropping 404 pages and login walls.
  5. Stop on evidence: Ends the loop only when every point has primary sources or new leads saturate.
  6. Build readable outputs: Generates an extract page (report.html) pointing to exact files and line numbers, a reader-level detailed report (digest.html), and a dashboard across all investigations.

Use it when you need primary sources in a new domain. Skip it for single-fact lookups or local file searches.

Install and requirements

Claude Code

Install through the plugin marketplace (updates arrive on versioned releases; enable auto-update in /plugin or run claude plugin marketplace update imozuru):

/plugin marketplace add MaryCache/imozuru
/plugin install imozuru@imozuru

Or install with the skills CLI:

npx skills add MaryCache/imozuru

Codex CLI

Clone the repository and link skills/imozuru/ into ~/.agents/skills/imozuru/ (or .agents/skills/imozuru/ inside one repo):

git clone https://github.com/MaryCache/imozuru ~/src/imozuru
mkdir -p ~/.agents/skills && ln -s ~/src/imozuru/skills/imozuru ~/.agents/skills/imozuru

Runtime and optional tools

The scripts run on Python 3.10+ standard library alone. Install these optional commands when your topic relies on PDFs, scanned documents, or YouTube talks:

ToolPurposeFallback if missing
pdftotext (poppler/Xpdf)Extract text from PDFsUses pdfminer.six if installed; otherwise PDF fetches report FAIL
pdftoppm + tesseractOCR scanned PDFs without a text layerScanned PDFs report FAIL
yt-dlpDownload YouTube captionsVideos report FAIL
axConvert HTML to clean MarkdownFalls back to standard-library plain text extraction

Run your first investigation

  1. Start a research session in Claude Code (or use $imozuru in Codex CLI). Replace the topic after the colon with your own field, and append a path such as Save results to ./research/<topic> if you want to override the default folder:

    /imozuru dig into this field: state management in React
  2. Check the generated workspace (defaults to ~/research/<topic>/):

    • map.md: Review the discovered terms, people, venues, and source table.
    • log.md: Inspect what each search round looked for and why it continued or stopped.
    • sources/: Open the raw saved files whenever you want to verify a claim directly.
  3. Open report.html to read passages grouped by point with exact file and line references, then read digest.html for the narrative explanation tailored to your level. To review every topic folder under ~/research on one page, build the research dashboard:

    python3 skills/imozuru/scripts/dashboard.py ~/research

Watch mode and known boundaries

Once a topic has a map.md, you can track new posts from the venues it discovered (blogs, Qiita/Zenn tags, note, YouTube, arXiv) via RSS:

/imozuru watch react

In Codex CLI, run $imozuru watch react. If you run non-interactively with codex exec, enable both web search and workspace network access so the fetch scripts can download sources:

codex --search exec -s workspace-write -c sandbox_workspace_write.network_access=true '$imozuru dig into this field: state management in React. Save results to ./research/react'

Language boundary: SKILL.md, script messages, and extract page labels are in Japanese, and the skill has only been tested with Japanese prompts. Claude and Codex can read the instructions in other languages, but expect Japanese labels in generated script output.