research-brainstorm
Generates and cross-validates research ideas using Gemini and Codex in parallel, then synthesizes results with Claude.
Creates tests for research code and generates publication-quality visualizations. Requires implemented code in `src/` of an active research output directory.
$ npx -y skills add Axect/magi-researchers --skill research-test --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/research-testContext preview
The summary Claude sees to decide when to auto-load this skill.
Creates tests for research code and generates publication-quality visualizations. Requires implemented code in `src/` of an active research output directory.
Creates tests for research code and generates publication-quality visualizations. Requires implemented code in `src/` of an active research output directory.
This skill does **not** execute the main research pipeline — that is Phase 3.5's responsibility (`/research-execute`). If `results/` is already populated, tests and visualizations use those artifacts. If not, tests use mocks/fixtures and visualizations use inline-computed values.
**Tool selection**: Claude autonomously chooses testing and visualization tools to match the languages and ecosystems already present in `src/`. No specific framework is mandated.
/research-test [path/to/output/dir]
> **Shared rules**: Read `${CLAUDE_PLUGIN_ROOT}/shared/rules.md` before starting. §MCP, §Claude-Only, §Visualization apply to this skill. > **Inline fallback** (if shared rules unavailable): Gemini models: gemini-3.1-pro-preview → gemini-2.5-pro → Claude. Codex: gpt-5.4. scienceplots `['science','nature']`, 300dpi PNG+PDF, Nature widths (3.5/7.2in). Subagents use `Read` tool.
See §Claude-Only in shared rules.
See §MCP in shared rules. Additionally:
---
Regardless of tool choices, all outputs **must** satisfy the following contracts. These are the interface between Phase 4 and Phase 5 (Report) — violating them breaks the pipeline.
| Restriction | Requirement | Rationale | |:------------|:------------|:----------| | **Plot Manifest** | All visualizations must be registered in `plots/plot_manifest.json` using the fixed schema below | Phase 5 (Report) reads this file to assemble the report | | **Dual Format** | Every plot must be saved as both **PNG** (300 dpi) and **PDF or SVG** | PNG for preview, PDF/SVG for publication | | **Execution Evidence** | At least one test or verification must confirm the code runs without error | Validates implementation correctness | | **Dependency Spec** | Any new test/viz dependencies must be added to the appropriate manifest (`pyproject.toml`, `Cargo.toml`, `DESCRIPTION`, etc.) | Reproducibility |
---
1. Find the active research output directory (from `$ARGUMENTS` or most recent `outputs/*/`). 2. Verify `src/` exists and contains implementation code. 3. Read `plan/research_plan.md` for research context, test strategy guidance, and the YAML frontmatter's `languages`/`ecosystem` fields. 4. Read all source files in `src/` to understand what needs testing. 5. **Workspace Detection** — scan for languages and ecosystems actually present:
**1st signal — Package manager files** (scan project root and `src/`): | File | Ecosystem | |:-----|:----------| | `Cargo.toml` | Rust / cargo | | `pyproject.toml`, `requirements.txt`, `uv.lock` | Python / uv or pip | | `Project.toml` | Julia | | `DESCRIPTION` | R | | `CMakeLists.txt`, `Makefile` | C/C++ | | `package.json` | Node.js |
**2nd signal — File extension distribution** in `src/`: Glob for `src/**/*.rs`, `src/**/*.py`, `src/**/*.r`, `src/**/*.jl`, `src/**/*.cpp`, etc. Note the count and dominant extension.
**Priority rule**: If `research_plan.md` frontmatter says `languages: ["python"]` but `src/` contains `Cargo.toml` and `.rs` files, **the actual files win**. Announce the discrepancy.
6. **Check execution results**:
1. Prepare a workspace summary:
2. Consult Gemini for test suggestions, providing the workspace context:
mcp__gemini-cli__ask-gemini(
prompt: "Given the following research implementation, suggest a comprehensive test strategy.\n\nWorkspace context:\n- Detected languages/ecosystems: {detected}\n- results/ status: {SUCCESS|FAILED|ABSENT}\n\nResearch plan:\n@{output_dir}/plan/research_plan.md\n\nSource files:\n@{output_dir}/src/*\n\nPre-execution status (if available):\n@{output_dir}/results/pre_execution_status.json\n\nSuggest tests in two tiers:\n1. Unit tests (no results/ dependency — use mocks/fixtures; must run even without pre-execution)\n2. Integration/validation tests (may depend on results/ artifacts; mark as skippable if results/ absent)\n\nRecommend appropriate testing tools for the detected languages. Do not prescribe a single framework — choose what fits the codebase.",
model: "gemini-3.1-pro-preview"
)> **If `--claude-only`**: Per §SubagentExec — **A** (CD, test strategist): Read research plan, source files, pre_execution_status. Suggest 2-tier test strategy (unit + integration) with appropriate tools for detected languages. Return structured text.
3. Synthesize the test plan, keeping two tiers explicit:
Three AI models, one synthesis — Claude, Gemini & Codex cross-verify each other for rigorous multi-perspective research
Generates and cross-validates research ideas using Gemini and Codex in parallel, then synthesizes results with Claude.
Executes the research code in `src/` to generate result artifacts in `results/`. This is Phase 3.5 of the research pipeline, sitting between Implementation…
Generates high-quality explanations of concepts using Gemini and Codex in parallel (Phase 1: MAGI strategy exploration), then synthesizes a single-voice…
Implements research code based on an existing research plan. Requires a `research_plan.md` to be present in the active research output directory.
Generates a structured markdown research report from all previous phase outputs. Actively integrates existing plots, generates missing visualizations, and…
Searches academic literature via OpenAlex (240M+ works) and optionally web sources. Standalone skill for quick literature discovery without the full brainstorm…