Idea

From Alexander-M-Dickerson/ai-asset-pricing · View interactive version

Idea is an AI agent skill from the GitHub repository Alexander-M-Dickerson/ai-asset-pricing. Adversarial research idea generator for empirical asset pricing. Surveys literature via Perplexity, stress-tests hypotheses, maps WRDS data feasibility, and compiles a research plan skeleton. Use when brainstorming new paper ideas, sharpening existing hypotheses, or resuming a prior ideation session

How to use this skill

Skill file

Adversarial Research Idea Generator

Develop publishable research ideas through adversarial dialogue. Surveys the literature, identifies gaps, stress-tests hypotheses against WRDS data feasibility, and compiles an evolvable research plan.

Examples

Adversarial Philosophy

You are a sharp co-author, not a cheerleader. Your job is to make the idea publishable, not agreeable.

Core principles:

Challenge categories (rotate through these each round):

  1. Identification: What is the causal mechanism? What endogeneity threat is fatal?
  2. Existing literature: How is this different from [Author Year]? What has already been done?
  3. Data feasibility: Can we measure the key variable with WRDS? What proxies are available?
  4. Economic mechanism: Why would this pattern exist in equilibrium? Who is on the other side?
  5. External validity: Does this survive out-of-sample, internationally, or in subperiods?
  6. Magnitude: Is the effect economically meaningful, or just statistically significant?

Phase 0: Parse and Route

Parse $ARGUMENTS:

| Input | Mode | Action |

|-------|------|--------|

| Empty | -- | AskUserQuestion: "What topic or idea do you want to explore?" |

| resume {mnemonic} | Resume | Read projects/{mnemonic}_idea/musings.md, reconstruct context, continue loop |

| File path (.md, .txt, .pdf) | From seed | Read file as starting material, extract hypothesis |

| Topic string or quoted hypothesis | From scratch | Proceed to Phase 1 |

For from-seed mode: read the file, extract the core hypothesis or research question, then proceed to Phase 1 with that as the topic. Print what you extracted and confirm with the user.

Phase 1: Initialize Workspace

  1. Derive mnemonic from the topic: lowercase, underscores, max 30 chars (e.g., "corporate bond liquidity" becomes bond_liq)
  2. Confirm with user: "I'll create projects/{mnemonic}_idea/. Good?"
  3. Collision check: if projects/{mnemonic}_idea/ exists, offer: (a) resume from existing musings.md, or (b) pick a new name
  4. Create the folder:

```bash

mkdir -p projects/{mnemonic}_idea

```

  1. Write initial musings.md:

```markdown

# Idea Development: {Topic}

Started: {YYYY-MM-DD}

Status: active

Topic: {user's input}


```

For resume mode: skip folder creation, read existing musings.md in full, identify the last round number and current status, and continue from there. Print a brief summary of where things left off.

Phase 2: Literature Survey

Perplexity tool: perplexity_research (broad survey, worth the 30s wait).

  1. Construct an academic search query from the topic. Include 2-3 keyword variants to cast a wide net.
  2. Execute perplexity_research targeting empirical finance / asset pricing literature.
  3. Parse results into a structured table:

| Paper | Authors | Year | Key Finding | Relevance |

|-------|---------|------|-------------|-----------|

| ... | ... | ... | ... | ... |

  1. Mark ALL papers UNVERIFIED at this stage (verification happens in Phase 4).
  2. Print the table to the user with a 2-3 sentence synthesis: "The literature has done X and Y, but has NOT done Z."
  3. Append to musings.md:

```markdown

## Round 1: Literature Survey

Query: {search query used}

Papers found: {N}

Gap identified: {what has NOT been done}

{structured table}

```

  1. Transition directly to Phase 3, Round 1.

Phase 3: Adversarial Loop

Minimum 3 rounds before offering convergence. Each round has three sub-steps.

3a. Challenge

Print 3-5 pointed questions drawn from the challenge categories (Section: Adversarial Philosophy). Rotate categories across rounds -- do not repeat the same angle twice in a row.

When a challenge references a specific paper or method:

End with AskUserQuestion: let the user address the challenges, push back, or pivot.

3b. Synthesize

After the user responds:

  1. Absorb their arguments. Acknowledge what's strong; press on what's weak.
  2. Produce a sharper version of the idea:
  1. If the idea has pivoted, note the pivot explicitly.
  2. Append round summary to musings.md:

```markdown

## Round {N}: {current angle}

Challenge: {questions asked}

User response: {brief summary of user's key arguments}

Synthesis: {sharpened one-sentence contribution}

Feasibility: {data mapping -- what's available, what's missing}

Status: {continuing | pivoted to X | converging}

```

3c. Feasibility Check

Run every round. Map the current hypothesis against available WRDS data:

Loop Control


Phase 4: Batch Verification

Perplexity tool: perplexity_search with exact title in quotes.

  1. Collect all unique papers referenced across the conversation (from Phase 2 survey + Phase 3 challenges).
  2. For each paper, run perplexity_search with the exact title.
  3. Confirm: all author names, year, journal, volume/pages if published.
  4. Mark each paper:
  1. CRITICAL: Only report what Perplexity explicitly returns. If search confirms authors + title but does NOT mention a journal, write "Journal: UNCONFIRMED." Never fill from training data.
  2. Write projects/{mnemonic}_idea/literature.md:

```markdown

# Literature: {Topic}

Verified on {YYYY-MM-DD} using Perplexity search.

## Papers This Idea Builds On

| Paper | Authors | Year | Journal | Status | Relevance |

|-------|---------|------|---------|--------|-----------|

## Papers This Idea Differentiates From

| Paper | Authors | Year | Journal | Status | How We Differ |

|-------|---------|------|---------|--------|---------------|

## Methodological References

| Paper | Authors | Year | Journal | Status | Method |

|-------|---------|------|---------|--------|--------|

```

Phase 5: Compile Research Plan

  1. Read the template from .claude/skills/idea/research-plan-template.md.
  2. Populate every section from the adversarial loop's convergence point.
  3. Write projects/{mnemonic}_idea/research_plan.md.
  4. Print the full research plan to the user.

Quality gate: The one-sentence contribution must be concrete, specific, and non-trivial. If it reads like a vague abstract, push back before finalizing.

Phase 6: Graduation Offer

After printing the research plan, ask:

"Graduate this idea to a full project? I'll run /new-project {mnemonic} and copy your research plan and literature into it."

If yes:

  1. Invoke /new-project {mnemonic} with the project description derived from the one-sentence contribution
  2. Copy research_plan.md to projects/{mnemonic}/guidance/research_plan.md
  3. Copy literature.md to projects/{mnemonic}/literature/literature.md
  4. Update musings.md: change status from active to graduated → projects/{mnemonic}/
  5. Print: "Project created. Run /build-context projects/{mnemonic}/guidance/research_plan.md to generate paper context, then /setup-paper to scaffold the LaTeX."

If no:

Print next steps:

Next steps when you're ready:
  1. /idea resume {mnemonic} -- continue refining
  2. /new-project {mnemonic} -- graduate manually
  3. Edit projects/{mnemonic}_idea/research_plan.md directly

WRDS Data Quick Reference

| Database | Key Tables | Period | Use For |

|----------|-----------|--------|---------|

| CRSP | dsf_v2, msf_v2 | 1925-- | Equity returns, prices, delisting, CCM linking |

| Compustat | funda, fundq | via CCM | Fundamentals, accounting variables |

| OptionMetrics | opprcd, vsurf, stdopd | 2003-- | Option prices, IV, Greeks, vol surfaces |

| Dickerson Bonds | monthly (140 cols), daily | 2002--2025 | Bond returns, credit spreads, duration, ratings, liquidity, factor betas |

| JKP Global Factor | global_factor | 1926--2025 | 443 pre-computed stock characteristics, 93 countries |

| TAQ | trades, quotes | 2003-- | Tick-level data (requires SSH+SAS, not PostgreSQL) |

| Fama-French | fivefactors | 1963-- | MktRf, SMB, HML, RMW, CMA, UMD, Rf |

Access: psql service=wrds for all databases except TAQ (SSH+SAS). See .claude/agents/ for detailed schema per database.

Perplexity Tool Selection

| Phase | Tool | Use Case |

|-------|------|----------|

| 2 (Survey) | perplexity_research | Broad literature scan (slow, 30s+, but comprehensive) |

| 3a (Challenge) | perplexity_search | Find specific counter-papers or competing results |

| 3c (Feasibility) | perplexity_ask | Quick methodology or data questions |

| 3c (Comparing) | perplexity_reason | Analytical comparison of empirical approaches |

| 4 (Verification) | perplexity_search | Exact-title verification per /research protocol |

Output

After Phase 5, print:

IDEA DEVELOPED: {mnemonic}
========================

One-sentence contribution:
  {Cochrane sentence}

Artifacts:
  projects/{mnemonic}_idea/musings.md        -- {N} rounds of adversarial dialogue
  projects/{mnemonic}_idea/literature.md      -- {M} papers ({V} verified, {U} unverified)
  projects/{mnemonic}_idea/research_plan.md   -- full research skeleton

Status: {active | graduated}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.