research-brainstorm
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 (Phase 3) and Testing & Visualization (Phase 4).
$ npx -y skills add Axect/magi-researchers --skill research-execute --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/research-executeContext preview
The summary Claude sees to decide when to auto-load this skill.
Executes the research code in `src/` to generate result artifacts in `results/`. This is Phase 3.5 of the research pipeline, sitting between Implementation (Phase 3) and Testing & Visualization (Phase 4).
Executes the research code in `src/` to generate result artifacts in `results/`. This is Phase 3.5 of the research pipeline, sitting between Implementation (Phase 3) and Testing & Visualization (Phase 4).
Reads execution commands deterministically from the YAML frontmatter of `plan/research_plan.md` — no keyword heuristics, no entry-point guessing. The full run command is defined once during planning and executed here.
/research-execute [path/to/output/dir]
When `--claude-only` is active, there are no Gemini/Codex calls in this skill. All steps are performed by Claude directly.
1. Find the active research output directory (from `$ARGUMENTS` or most recent `outputs/*/`). 2. Read `plan/research_plan.md` and parse the YAML frontmatter:
---
languages: ["rust", "python"]
ecosystem: ["cargo", "uv"]
execution_cmd: "bash run_all.sh"
dry_run_cmd: "bash run_all.sh --dry-run"
expected_outputs:
- "results/metrics.csv"
- "results/checkpoint.pt"
estimated_runtime: "~30 minutes"
---3. **Prefer `execution_manifest.json`**: Check if `execution_manifest.json` exists in the output directory root. If it does, read execution fields from this file instead of the YAML frontmatter:
{
"schema_version": "1.0.0",
"languages": ["rust", "python"],
"ecosystem": ["cargo", "uv"],
"execution_cmd": "bash run_all.sh",
"dry_run_cmd": "bash run_all.sh --dry-run",
"expected_outputs": [
{"path": "results/metrics.csv", "required": true},
{"path": "results/checkpoint.pt", "required": false}
],
"estimated_runtime": "~30 minutes"
}If `execution_manifest.json` exists, it takes precedence over YAML frontmatter fields. If it does not exist, fall back to the YAML frontmatter (backward compatibility). 4. If the frontmatter is **missing or has no `execution_cmd`**: announce the problem to the user and ask them to provide the execution command manually. Do not guess. Suggest adding the frontmatter to `research_plan.md` following the schema above. 5. Verify `src/` exists and contains at least one file.
Check if `results/` already exists and contains at least one file that is **not** `run_log.txt`, `pre_execution_status.json`, or `pre_execution_status.md` (legacy):
Glob: results/**/*
**Exclusion**: Exclude `results/.staging/` from the existence check. Files under `.staging/` are incomplete and must not trigger the 'results already exist' early-exit path.
If populated:
{
"state": "EXISTING",
"error_class": null,
"severity": null,
"retryable": false,
"downstream_allowed": true,
"traceback_ref": null,
"next_action": "proceed"
}If `dry_run_cmd` is specified in the frontmatter, run it first as a fast sanity check:
{dry_run_cmd} 2>&1 | tee results/dry_run_log.txtTimeout: **60 seconds**.
| Outcome | Action | |:--------|:-------| | Exit 0 | Continue to Step 3 | | Non-zero exit | Read `results/dry_run_log.txt`, extract the traceback | | Timeout | Kill process; report to user; ask whether to proceed to full run anyway |
**On dry-run failure:** 1. Classify the error:
2. After auto-fix attempt: if dry-run succeeds → continue. If it still fails → stop and report.
If `dry_run_cmd` is **not** specified, skip this step and proceed directly to Step 3.
Before executing the full run, announce:
Ready to execute:
Command: {execution_cmd}
Estimated runtime: {estimated_runtime or "unknown"}
Output will be captured to: results/run_log.txt
Pause for user confirmation before running.If `estimated_runtime` suggests a long job (> 15 minutes), add:
⚠ This job may take a long time. If you prefer to run it manually:
1. Run externally: {execution_cmd}
2. Copy results to the `results/` directory, then call `/research-execute [output_dir]` — the skill will detect existing results and skip re-execution automatically (Step 1 Early Exit).**Wait for explicit user confirmat
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.
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…
Creates tests for research code and generates publication-quality visualizations. Requires implemented code in `src/` of an active research output directory.