Ideate

From Chanw-research/claude-code-paper-writing · View interactive version

Ideate is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. Multi-phase research idea generation pipeline: landscape scan → dual-model brainstorm → first-pass filter → deep validation → write to wiki

How to use this skill

Skill file

/ideate

Generates high-quality research ideas through a 5-phase pipeline, grounded in the wiki knowledge base and external search.

Phase 1 scans the research landscape (wiki + WebSearch + S2), Phase 2 runs a dual-model brainstorm (Claude + Review LLM independently),

Phase 3 applies a first-pass filter (feasibility + quick novelty check), Phase 4 performs deep validation (calls /novelty + /review),

Phase 5 writes to the wiki (ideas/ + graph edges), including eliminated ideas (failure reasons recorded as anti-repetition memory).

Inputs

Outputs

Wiki Interaction

Reads

Writes

Graph edges created

Workflow

Pre-conditions:

  1. Confirm working directory is the wiki project root (directory containing wiki/, raw/, tools/).
  2. Check wiki maturity:

```bash

python3 tools/research_wiki.py maturity wiki/ --json

```

Adjust subsequent behavior based on maturity level:

skip wiki internal context loading (empty, no value), annotate "cold-start mode: heavier external search"

raise Phase 3 gap_alignment_bonus from +2 to +3, prioritize resolving weak claims already in the wiki

  1. Snapshot wiki state (for the Growth Report at the end):

Save the JSON returned by maturity to memory variable maturity_before

Phase 1: Landscape Scan

Goal: build a comprehensive view of the target domain, including existing work, knowledge gaps, and recent advances.

  1. Load wiki internal context:
  1. External search (run in parallel using Agent tool):

```bash

python3 tools/fetch_s2.py search "<direction-keywords>" --limit 20

```

Fetch details for the top 5 highly-cited papers

```bash

python3 tools/fetch_deepxiv.py search "<direction-keywords>" --mode hybrid --limit 20

```

Fetch TLDR and keywords for top 5 most relevant results:

```bash

python3 tools/fetch_deepxiv.py brief <arxiv_id>

```

Semantic search supplements S2 keyword search for conceptually related papers that keyword search may miss.

```bash

python3 tools/fetch_deepxiv.py trending --days 14

```

Trending papers indicate community focus areas, useful for discovering trend-driven gaps.

  1. Compile landscape report (internal use, not written to wiki):

Phase 2: Dual-Model Brainstorm

Goal: generate ideas independently with Claude and Review LLM, exploiting the diversity that comes from different model perspectives.

Follow shared-references/cross-model-review.md: Claude and Review LLM generate independently without seeing each other's output.

  1. Claude generates 6–10 ideas:
  1. Review LLM independently generates 4–6 ideas (run in parallel):

```

mcpllm-reviewchat:

system: "You are a creative ML researcher brainstorming research ideas.

Generate novel, concrete, and feasible ideas based on the given context.

For each idea, provide: title, hypothesis (1-2 sentences),

approach sketch (3-5 sentences), and feasibility assessment."

message: |

## Research Landscape

{landscape report from Phase 1 — gaps, SOTA, trends}

## Knowledge Gaps

{gap_map entries}

## Banlist (DO NOT revisit these)

{failed ideas with failure_reason}

## Active Ideas (avoid duplicating)

{proposed/in_progress ideas}

Generate 4-6 novel research ideas that address the gaps above.

Focus on ideas that are: (1) genuinely novel, (2) feasible within 3-6 months,

(3) directly address a knowledge gap.

```

  1. Merge and deduplicate:

Phase 3: First-Pass Filter

Goal: quickly eliminate ideas that are clearly infeasible or insufficiently novel.

Apply the following checks to each candidate idea:

  1. Feasibility check:
  1. Quick novelty screening (2–3 WebSearch queries per idea):
  1. Wiki alignment check:
  1. Filter decision:

Phase 4: Deep Validation

(Skip if --skip-validation is set; proceed directly to Phase 5.)

Apply deep validation to the top 3 ideas from Phase 3:

  1. Call /novelty (one at a time):

```

For each top idea:

Skill: novelty

Args: "<idea-title-and-hypothesis>"

```

Record novelty score (1–5) and recommendations

  1. Call /review (for top 2 ideas):

```

Skill: review

Args: "<idea-full-description>" --difficulty hard --focus method

```

Record review score (1–10) and weaknesses

  1. Composite ranking:
  1. If --auto is not set: display ranked results in terminal, wait for user confirmation or adjustment

Phase 5: Write to Wiki

Write the validated ideas to the wiki (including eliminated ideas, with their elimination reasons recorded).

  1. Write top ideas (status: proposed):

For the top --max-ideas ideas:

```bash

# generate slug

python3 tools/research_wiki.py slug "<idea-title>"

```

Create wiki/ideas/{slug}.md following the CLAUDE.md ideas template exactly (all fields required; lint.py enforces status and priority):

```yaml


title: "<idea title>"

slug: "<idea-slug>"

status: proposed

origin: "ideate: <short description of the driving gap / weak claim / paper>"

origin_gaps: [] # [[claim-slug]] list — claims or topics this idea targets

tags: [] # 2-5 topic tags (inherit from target claims / direction)

domain: "" # NLP / CV / ML Systems / Robotics (inherit from direction)

priority: 3 # 1-5 — see Priority computation below

pilot_result: "" # empty until /exp-eval fills it

failure_reason: "" # empty for proposed ideas

linked_experiments: [] # empty until /exp-design creates experiments

date_proposed: YYYY-MM-DD

date_resolved: "" # empty until validated/failed


```

Priority computation (maps Phase 4 signals into the 1-5 scale):

Body sections (exactly match the CLAUDE.md template — do not rename):

```markdown

## Motivation

Which gap / weakly_supported claim / paper limitation drives this idea. Reference wiki pages via [[slug]].

## Hypothesis

1-2 sentences stating the testable proposition.

## Approach sketch

3-5 sentences on the proposed method. Reference [[paper-slug]] or [[concept-slug]] for any component borrowed from existing work.

## Expected outcome

What success looks like (metric / claim status change), plus the Phase 4 novelty & review summary:

## Risks

Feasibility rating (high/medium/low) + top 2-3 risks. Include the main weaknesses surfaced by /review.

## Pilot results

(empty — filled by /exp-eval after running the experiment)

## Lessons learned

(empty — filled by /exp-eval after the idea reaches a terminal status)

```

  1. Write eliminated ideas (status: failed):

For ideas eliminated in Phase 3/4, also create wiki/ideas/{slug}.md using the same template above, with these overrides:

  1. Add graph edges:

```bash

# for each idea

python3 tools/research_wiki.py add-edge wiki/ \

--from "ideas/{slug}" --to "claims/{target-claim}" \

--type addresses_gap --evidence "Generated by ideate"

python3 tools/research_wiki.py add-edge wiki/ \

--from "ideas/{slug}" --to "papers/{source-paper}" \

--type inspired_by --evidence "Inspired by method in {paper-title}"

```

  1. Rebuild derived data:

```bash

python3 tools/research_wiki.py rebuild-context-brief wiki/

python3 tools/research_wiki.py rebuild-open-questions wiki/

```

  1. Append log:

```bash

python3 tools/research_wiki.py log wiki/ \

"ideate | {N} ideas proposed, {M} ideas filtered out | direction: {direction}"

```

  1. Print IDEA_REPORT to terminal:

```markdown

# Idea Generation Report

## Pipeline Summary

## Top Ideas (ranked)

| Rank | Idea | Novelty | Review | Gap Align | Status |

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

| 1 | [[slug]] | 4/5 | 7/10 | +2 | proposed |

| 2 | [[slug]] | 3/5 | 6/10 | +0 | proposed |

## Filtered Out

| Idea | Reason | Status |

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

| [[slug]] | Similar published work exists | failed |

| [[slug]] | GPU requirements too high | failed |

## Suggested Next Steps

## Wiki Growth

| Metric | Before | After | Delta |

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

| Papers | {before} | {after} | +{delta} |

| Claims | {before} | {after} | +{delta} |

| Ideas | {before} | {after} | +{delta} |

| Edges | {before} | {after} | +{delta} |

| Maturity | {before_level} | {after_level} | {unchanged/upgraded} |

(Only rows with delta != 0 are shown. Data is computed by comparing maturity_before from the pre-condition step against a fresh maturity --json call here.)

```

Constraints

Error Handling

Dependencies

Tools(via Bash)

Skills(via Skill tool)

MCP Servers

Claude Code Native

Shared References

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.