Install
openclaw skills install @othmanadi/researchclaw-2Automate setup, configuration, execution, monitoring, and troubleshooting of AutoResearchClaw — the 23-stage autonomous research pipeline that generates conference-grade papers. Use when the user mentions ResearchClaw, wants to write a research paper autonomously, needs to set up or debug the pipeline, or says research paper, autonomous research, or paper generation.
openclaw skills install @othmanadi/researchclaw-2This skill wraps AutoResearchClaw, a 23-stage pipeline that takes a research topic and produces a conference-grade LaTeX paper with real citations, sandbox-executed experiments, multi-agent peer review, and citation verification.
Honesty policy: This skill does not fabricate capabilities. Every command maps to real upstream functionality. If something fails, the skill reports the actual error and suggests concrete fixes — it never pretends the problem does not exist.
| Command | Purpose |
|---|---|
/researchclaw | Show help and available subcommands |
/researchclaw:setup | Check and install all prerequisites (Python, Docker, LaTeX, pip packages) |
/researchclaw:config | Interactive config wizard — generates a working config.yaml |
/researchclaw:run | Start a research pipeline run |
/researchclaw:status | Check the status of a running or completed pipeline |
/researchclaw:resume | Resume a pipeline from the last successful stage |
/researchclaw:diagnose | Auto-detect and explain common failures |
/researchclaw:validate | Validate config, dependencies, and connectivity before running |
When invoked without a subcommand, display this command list and a one-line status summary:
researchclaw CLI is installed: which researchclawconfig.yaml exists in the current directoryMANDATORY: Ask the user before installing anything. Present what is missing and get explicit approval.
Run the prerequisite check script:
bash "${CLAUDE_SKILL_DIR}/scripts/check-prereqs.sh"
The script checks each dependency and outputs a JSON report. Based on the report:
python3 --version. If missing or too old, suggest pyenv install 3.11 or system package manager.pip3 --version or uv --version. Suggest uv if not present (faster).docker info. If Docker daemon is not running, tell the user honestly — this skill cannot start Docker for you on most systems.pdflatex --version. If missing, suggest sudo apt-get install texlive-full (Linux) or brew install --cask mactex (macOS). Be honest: this is a large download (2-4 GB).pip3 show researchclaw. If not installed:
pip3 install researchclaw
git clone https://github.com/aiming-lab/AutoResearchClaw.git
cd AutoResearchClaw
pip3 install -e ".[all]"
After installation, re-run the check script to verify everything passes.
What this skill CANNOT do:
Generate a working config.yaml by asking the user a series of questions. Use AskUserQuestion for each batch.
Batch 1 — Essential settings (MUST ask):
openai, anthropic, azure, deepseek, localOPENAI_API_KEY)gpt-4oclaude-sonnet-4-20250514deepseek-chatBatch 2 — Experiment settings (ask with smart defaults):
simulated (no code execution, fastest), sandbox (local execution), or ssh_remote (GPU server). Default: simulatedtrue for first runartifacts/Batch 3 — Optional advanced settings (offer but don't require):
neurips, icml, iclr, or generic. Default: neurips3arxiv, semantic_scholar, or both. Default: bothAfter collecting answers, generate config.yaml using the template in assets/config-template.yaml. Write it to the current directory and show the user the generated file.
Validation: After generating, run:
researchclaw validate --config config.yaml
If validation fails, explain what went wrong and offer to fix it.
Pre-flight checks (always run before starting):
/researchclaw:validate logic silentlyStart the pipeline:
researchclaw run --topic "$ARGUMENTS" --config config.yaml --auto-approve 2>&1 | tee researchclaw-run.log
If $ARGUMENTS is empty, read the topic from config.yaml.
During execution:
artifacts/<run-id>/stage-N//researchclaw:diagnose logic automaticallyAfter completion:
artifacts/<run-id>/stage-17/paper_draft.md or the final PDF)Check the current state of a pipeline run:
ls -la artifacts/ 2>/dev/null | tail -5
For the most recent run:
artifacts/rc-* directoryls -d artifacts/rc-*/stage-* 2>/dev/null | wc -lpipeline_summary.json — if it exists, the run is completeStage X/23 complete. Current stage: [stage name]. Status: [running/failed/complete]Stage name mapping (for human-readable output):
| Stage | Name |
|---|---|
| 1 | Topic Initialization |
| 2 | Problem Decomposition |
| 3 | Literature Search |
| 4 | Literature Analysis |
| 5 | Research Direction (Gate) |
| 6 | Hypothesis Generation |
| 7 | Experiment Design |
| 8 | Experiment Plan Review |
| 9 | Experiment Approval (Gate) |
| 10 | Code Generation |
| 11 | Code Review |
| 12 | Experiment Execution |
| 13 | Result Collection |
| 14 | Result Analysis |
| 15 | Paper Outline |
| 16 | Section Writing |
| 17 | Paper Draft |
| 18 | Peer Review |
| 19 | Revision |
| 20 | Final Review (Gate) |
| 21 | Citation Verification |
| 22 | Visualization |
| 23 | Final Export |
Resume from the last successful stage:
ls -td artifacts/rc-* | head -1pipeline_summary.json or find the highest-numbered stage-* directory with output filesresearchclaw run --config config.yaml --from-stage STAGE_NAME --output <run-dir> --auto-approve 2>&1 | tee researchclaw-resume.log
Known issue (upstream): The --from-stage flag may not work correctly in all versions. If resume fails, inform the user honestly and suggest:
Read the most recent log and error output to identify the problem:
tail -100 researchclaw-run.log 2>/dev/null || tail -100 researchclaw-resume.log 2>/dev/null
Common failure patterns and fixes:
| Error Pattern | Cause | Fix |
|---|---|---|
HTTP 401 or AuthenticationError | Invalid or expired API key | Check config.yaml → llm.api_key or the env var |
HTTP 429 or RateLimitError | API rate limit hit | Wait 60 seconds and resume, or switch to a different model |
Stage 10 failure | Code generation produced invalid Python | Check artifacts/*/stage-10/experiment.py for syntax errors |
Docker errors | Docker not running or permission denied | Run docker info to verify; may need sudo usermod -aG docker $USER |
pdflatex not found | LaTeX not installed | Install with sudo apt-get install texlive-full |
ModuleNotFoundError | Missing Python dependency | Run pip3 install researchclaw[all] |
quality_score < threshold | Quality gate too strict | Edit config.yaml → lower quality.min_score (default 2.0 is very strict) |
MemoryError or OOM | Insufficient RAM (needs 32GB+) | Use simulated experiment mode or reduce max_concurrent_stages |
ConnectionError to arxiv/semantic_scholar | Network issue | Check internet connectivity; try curl https://api.semanticscholar.org/graph/v1/paper/search?query=test |
YAML parse error in config | Malformed config file | Run python3 -c "import yaml; yaml.safe_load(open('config.yaml'))" to find the error |
After diagnosis, suggest the specific fix. If the fix is automatable (e.g., installing a package), offer to do it with user approval.
Run all checks without starting the pipeline:
bash "${CLAUDE_SKILL_DIR}/scripts/check-prereqs.sh"
Then additionally:
python3 -c "import yaml; yaml.safe_load(open('config.yaml'))"llm.api_key or llm.api_key_env is set, research.topic is non-emptydocker info (if experiment mode is sandbox)df -h . — warn if less than 10 GB freetouch artifacts/.write-test && rm artifacts/.write-testReport results as a checklist with pass/fail for each item.