Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/foundry-works/foundry-research/deep-researchnpx skills add foundry-works/foundry-research --skill deep-researchgit clone --depth 1 https://github.com/foundry-works/foundry-researchWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/foundry-works/foundry-research/deep-research)<a href="https://agentmods.dev/skills/foundry-works/foundry-research/deep-research"><img src="https://agentmods.dev/badge/skills/foundry-works/foundry-research/deep-research.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.12762 |
| Opus 5 | $0.00023 | $0.06381 |
| Sonnet 5 | $0.00009 | $0.02552 |
| Haiku 4.5 | $0.00005 | $0.01276 |
Grade A, and why
deep-research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deep Research
You are a research agent with access to academic databases, web search, and structured state management. Use the tools below to search, download, read, and synthesize sources into evidence-backed reports.
Activate when: The user asks for deep research, literature review, systematic investigation, or any question requiring multiple sources and synthesis.
You produce: A structured research report backed by on-disk sources (markdown + PDFs), saved in a session directory.
Key principle: You are the reasoning engine. The infrastructure handles search, download, dedup, rate limiting, and PDF conversion. Trust your judgment on what to search, when to stop, and how to synthesize.
Command Execution Rules
These prevent the most common token-wasting failure modes. Follow them strictly.
-
Always launch subagents in the foreground. Never set
run_in_background: trueon Agent calls. Foreground agents block until complete and return results directly. To run multiple agents in parallel, put all Agent calls in the same response message — they execute concurrently and all return before your next turn. Background agents give you control back immediately but no reliable way to wait — you'll end up polling withsleep && ls, burning 5-15 tool calls and often bailing out early with incomplete results. -
Never sleep-poll. Don't use
sleep N && ls,sleep N && cat, orsleep N && state auditto check if agents or commands finished. If you launched agents in the foreground (rule 1), their results are already in your context when they return. If a CLI command is slow, set a longtimeout(up to 600000ms) on the Bash call instead of backgrounding it. -
Never suppress stderr. Don't use
2>/dev/nullon any command. CLI commands print JSON to stdout and logs to stderr — they don't mix. Suppressing stderr hides errors and forces blind retry spirals. -
Don't pipe CLI output through inline Python. CLI commands return structured JSON with documented schemas. If you need a specific field, read the full output and extract what you need from the JSON. Multi-statement inline Python (loops, conditionals, try/except in a
-cstring) means you're guessing at the output shape — and when you guess wrong, the parser crashes and you waste 3-5 tool calls debugging it.
What ships with it
47 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- bootstrap-venv.sh 1.0 KB runs code
- download 316 B
- enrich 313 B
- REFERENCE.md 6.6 KB
- requirements.txt 81 B
- scripts/_shared/__init__.py 0 B runs code
- scripts/_shared/config.py 5.5 KB runs code
- scripts/_shared/doi_utils.py 4.3 KB runs code
- scripts/_shared/evidence_helpers.py 1.4 KB runs code
- scripts/_shared/html_extract.py 3.1 KB runs code
- scripts/_shared/http_client.py 4.7 KB runs code
- scripts/_shared/metadata.py 17 KB runs code
- scripts/_shared/mirrors.py 12 KB runs code
- scripts/_shared/output.py 4.2 KB runs code
- scripts/_shared/pdf_utils.py 16 KB runs code
- scripts/_shared/quality.py 15 KB runs code
- scripts/_shared/rate_limiter.py 6.4 KB runs code
- scripts/_shared/state_client.py 2.6 KB runs code
- scripts/download.py 68 KB runs code
- scripts/enrich.py 17 KB runs code
- scripts/providers/__init__.py 1.4 KB runs code
- scripts/providers/arxiv.py 16 KB runs code
- scripts/providers/biorxiv.py 9.0 KB runs code
- scripts/providers/core.py 8.4 KB runs code
- scripts/providers/crossref.py 7.4 KB runs code
- scripts/providers/dblp.py 7.6 KB runs code
- scripts/providers/edgar.py 15 KB runs code
- scripts/providers/exa.py 5.5 KB runs code
- scripts/providers/gensee.py 3.0 KB runs code
- scripts/providers/github.py 10.0 KB runs code
- scripts/providers/hn.py 5.9 KB runs code
- scripts/providers/linkup.py 5.5 KB runs code
- scripts/providers/openalex.py 11 KB runs code
- scripts/providers/opencitations.py 9.1 KB runs code
- scripts/providers/perplexity.py 5.2 KB runs code
- scripts/providers/pubmed.py 18 KB runs code
- scripts/providers/reddit.py 8.9 KB runs code
- scripts/providers/semantic_scholar.py 9.3 KB runs code
- scripts/providers/tavily.py 6.6 KB runs code
- scripts/providers/yfinance_provider.py 9.8 KB runs code
- scripts/search.py 16 KB runs code
- scripts/state.py 180 KB runs code
- scripts/triage-relevance 9.5 KB
- search 304 B
- setup.sh 265 B runs code
- state 222 B
- triage-relevance 321 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 387 lines · 46 tokens per session scan A 720d59c4d36b
deep-research is a skill published in the GitHub repository foundry-works/foundry-research (2 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 12,762 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
cran-extrachecks
Prepare R packages for CRAN submission by checking for common ad-hoc requirements not caught by devtools::check(). Use when: (1) Preparing a package for first CRAN release, (2) Preparing a package update for CRAN resubmission, (3) Reviewing a package to ensure CRAN compliance, (4) Responding to CRAN reviewer feedback.…
mirai
Help users write correct R code for async, parallel, and distributed computing using mirai. Use when users need to run R code asynchronously or in parallel, write mirai code with correct dependency passing, set up parallel workers, convert from future or parallel, use miraimap, integrate with Shiny or promises, or…
weather-forecast-report
将天气要素(风速、能见度、降雨量等)单站预报系统的项目文档、模型、报告、评估结果整理成符合省级自然科学基金项目编写规范的专题研究报告。适用于:(1) 基于Claude Code + OpenSpec开发的气象预报系统结题报告编写,(2) 将技术文档转换为学术研究报告格式,(3) 生成符合省级自然科学基金规范的专题研究报告,(4) 整合项目代码、模型、评估指标等技术材料为规范化学术报告。触发关键词:"专题研究报告"、"结题报告"、"天气预报系统"、"基金项目报告"、"风速预报"、"能见度预报"、"降雨量预报"、"气象预测"、"单站预报"等。.
paper-opportunity-radar
Run a cumulative daily or retrospective sweep of research papers on a chosen topic, audit their claims, methods, integrity signals, and independent support, then identify overlooked but feasible project or business opportunities in a detailed source-grounded report. Use when asked to monitor papers every day, mine…
arxiv
Skill "arxiv" from 0xmariowu/Autosearch, covering skill attribution, when to choose it, how to search (planned), known quirks and quality bar.
literature-review
Find, verify, and synthesize STEM literature across every field — from "what's the seminal paper for X" through full multi-source reviews. Treats journal articles, arXiv/preprints, and conference proceedings as first-class; grounds every claim in a retrieved source, never fabricates DOIs, checks for…