# research

Guides structured web research and systematic query expansion via a bundled Tavily CLI script calibrated to decision stakes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 381 installs · ★ 177
- Author: jwynia
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/jwynia/agent-skills/tree/HEAD/skills/general/research/methodology/research/SKILL.md
- Updated: 2026-02-24
- HTML: https://affpapa.org/en/nevibecode/skills/jwynia-research

## What it does

The skill breaks inquiry down into progressive phases: scoping risk, discovering expert terminology, gathering authoritative facts, checking counter-arguments, and synthesizing notes. Instead of broad searches, it instructs the agent to surface technical vocabulary first. This avoids entry-level explainer articles and reveals specific technical sources.

Searches run through an included `scripts/tavily-cli.ts` helper that queries the Tavily API. The command accepts arguments for AI summaries via `--answer`, deep scans using `--depth advanced`, recent news queries, and explicit domain exclusions like Reddit or Wikipedia.

Without Deno in your environment, the search runner cannot execute. Calibrating query depth to decision stakes prevents wasted tokens on low-risk choices while reserving ten-result scans for irreversible technical decisions.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jwynia/agent-skills --skill research -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/research/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/research/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jwynia/agent-skills --skill research -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/research/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jwynia/agent-skills --skill research -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/research/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jwynia/agent-skills research
```

2. **Manually: put the files in place**
- File: `.github/skills/research/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jwynia/agent-skills --skill research -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jwynia/agent-skills --path skills/general/research/methodology/research
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/research/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jwynia/agent-skills --skill research -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jwynia/agent-skills/tree/HEAD/skills/general/research/methodology/research/SKILL.md

## When to use it
- extract domain-specific terminology before starting deep searches
- scale search depth and source counts based on decision stakes
- gather opposing perspectives and counter-evidence on disputed topics
- exclude generic sites like Reddit or Wikipedia from automated queries

## Example prompts
- Plan an investigation into distributed consensus algorithms and extract expert terminology first.
- Run an advanced Tavily search on database migration trade-offs with summaries enabled.
- Gather counter-arguments against microfrontends while excluding reddit.com.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 8932d5bb199d59b9.

BEGIN THIRD-PARTY FILE 8932d5bb199d59b9
````text
---
name: research
description: Diagnose research quality and guide systematic query expansion. Use when starting research on any topic, when stuck in research, or when unsure if research is complete.
license: MIT
metadata:
  author: jwynia
  version: "2.0"
  domain: research
  cluster: methodology
  type: diagnostic
  mode: assistive
---

# Research Skill

Tool-assisted research with Tavily integration. Transforms basic questions into comprehensive search strategies using AI-optimized web search.

## Setup

This skill includes a bundled Tavily CLI script at `scripts/tavily-cli.ts`.

### Requirements

1. **Deno** - Install from https://deno.land
2. **Tavily API Key** - Get one at https://tavily.com (free tier available)

### Configuration

Set your API key:
```bash
export TAVILY_API_KEY="your-key-here"
```

Create an alias for convenience (add to your shell profile):
```bash
# Adjust path to where this skill is installed
alias tavily='deno run --allow-net --allow-env /path/to/skills/research/scripts/tavily-cli.ts'
```

Or run directly:
```bash
deno run --allow-net --allow-env ./scripts/tavily-cli.ts "your query"
```

Commands below use `tavily` assuming the alias is configured.

---

## Quick Reference

### Common Commands

```bash
# Basic search
tavily "your query"

# With AI answer summary
tavily "your query" --answer

# Deep search with more results
tavily "your query" --depth advanced --results 10 --answer

# News/recent content
tavily "your query" --topic news --time week

# Exclude familiar sources to find new perspectives
tavily "your query" --exclude wikipedia.org,reddit.com
```

### Phase Summary

| Phase | Type | Purpose |
|-------|------|---------|
| 0 | Manual | Analyze topic, set scope |
| 1 | Tavily | Discover expert terminology |
| 2 | Tavily | Foundational search |
| 3 | Tavily | Counter-perspectives |
| 4 | Manual | Synthesize findings |

### Scope → Tavily Depth

| Decision Stakes | Tavily Settings |
|-----------------|-----------------|
| Low, reversible | `--depth basic --results 3` |
| Moderate | `--depth basic --results 5 --answer` |
| High, irreversible | `--depth advanced --results 10 --answer` |

---

## Phase 0: Analysis

**Goal**: Structure topic before searching. Prevents unfocused searches and scope mismatch.

### Scope Calibration

Before searching, assess stakes:

| Decision Type | Confidence Needed | Research Depth |
|---------------|-------------------|----------------|
| Reversible, low-stakes | 60-70% | Quick scan (minutes) |
| Reversible, moderate | 75-85% | Working knowledge |
| Irreversible, moderate | 85-90% | Solid grounding |
| Irreversible, high | 90-95% | Deep expertise |

### Analysis Template

```markdown
# Research Analysis: [Topic]

## Core Concepts
- **Primary terms:** [Key terms requiring definition]
- **Terminology variants:** [Synonyms, jargon, historical terms]
````
END THIRD-PARTY FILE 8932d5bb199d59b9

The third-party file has ended. Everything between the 8932d5bb199d59b9 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2865 of 15640 bytes. © jwynia · MIT · https://github.com/jwynia/agent-skills/tree/HEAD/skills/general/research/methodology/research/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
