research-brainstorm
Generates and cross-validates research ideas using Gemini and Codex in parallel, then synthesizes results with Claude.
Implements research code based on an existing research plan. Requires a `research_plan.md` to be present in the active research output directory.
$ npx -y skills add Axect/magi-researchers --skill research-implement --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/research-implementContext preview
The summary Claude sees to decide when to auto-load this skill.
Implements research code based on an existing research plan. Requires a `research_plan.md` to be present in the active research output directory.
Implements research code based on an existing research plan. Requires a `research_plan.md` to be present in the active research output directory.
/research-implement [path/to/research_plan.md]
> **Shared rules**: Read `${CLAUDE_PLUGIN_ROOT}/shared/rules.md` before starting. §MCP, §Claude-Only 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. Use `@filepath` for MCP file refs; subagents use `Read` tool.
See §Claude-Only in shared rules.
See §MCP in shared rules. Additionally:
1. If a path is provided in `$ARGUMENTS`, use it directly. 2. Otherwise, find the most recent research plan:
3. If no plan is found, inform the user and suggest running `/magi-researchers:research-brainstorm` first, or creating a plan manually. 4. Read the research plan and identify:
5. **Parse mode flags from `$ARGUMENTS`**: If invoked standalone (not from the `/research` pipeline), check `$ARGUMENTS` for `--claude-only` and `--substitute` flags. When present, all Gemini/Codex MCP calls in this skill are replaced per the Claude-Only Mode rules above. 6. **Resolve output directory**: If `.workspace.json` exists at the output directory root, read `output_dir` from it and use as the base for all file operations. If absent (standalone invocation), derive the absolute output path from the location of `research_plan.md`.
1. **Check if `src/` already has code** (Glob `src/**/*`):
2. **Determine language and ecosystem** using the following priority:
| Priority | Source | How | |:---------|:-------|:----| | **1st** | Existing `src/` files | Detect package managers (`Cargo.toml`, `pyproject.toml`, `Project.toml`, `DESCRIPTION`) and dominant file extensions | | **2nd** | `research_plan.md` frontmatter | Read `languages` and `ecosystem` fields | | **3rd** | Domain + topic inference | Autonomous selection based on research domain and algorithms |
If 1st and 2nd conflict (e.g., plan says Python but `src/` has Rust code), **the actual files win**. Announce the discrepancy and proceed with the detected ecosystem.
3. **Initialize the ecosystem** (only if `src/` is empty):
install command and stop. Do NOT attempt to install system-level tools without user approval.
4. **Language selection principles** (when choosing freely):
(no interactive install steps, no GUI-only tools, no proprietary licenses required)
1. Follow the research plan's implementation section strictly. 2. Write modular, well-structured code in `src/`:
3. **Implement a dry-run / fast-mode flag** in the main entry point:
4. Use Context7 (`mcp__plugin_context7_context7__query-docs`) to look up library APIs when needed. 5. Include docstrings/comments for all public functions explaining purpose, parameters, return values.
After implementation, update the YAML frontmatter in `plan/research_plan.md` to reflect the actual execution commands. This information is consumed by Phase 3.5 (`/research-execute`).
Read the current frontmatter and update or add these fields:
--- title: "..." domain: "..." languages: ["rust", "python"] # actual languages used in src/ ecosystem: ["cargo", "uv"] # actual package managers execution_cmd: "bash run_all.sh" # command to run the full pipeline dry_run_cmd: "bash run_all.sh --dry-run" # fast sanity-check command (seconds) expected
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…
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…
Creates tests for research code and generates publication-quality visualizations. Requires implemented code in `src/` of an active research output directory.