Install
openclaw skills install dualgapUse DualGap for dual-domain research gap analysis: turn two paper collections, PDF folders, arXiv downloads, or research directions into reviewer-checked literature notes, direction-level syntheses, cross-domain comparison, research-gap analysis, and ranked improvement ideas. Use this skill when the user wants critical multi-paper research planning grounded in PDF evidence rather than generic summaries.
openclaw skills install dualgapDualGap performs dual-domain research gap analysis over two PDF corpora. It produces per-paper notes, independent quality reviews, direction-level syntheses, cross-domain comparison, research gaps, ranked improvement ideas, and validation reports.
Use this skill when the user wants to:
Do not use it for single-paper summarization, casual bibliography formatting, or tasks that do not need LLM-based literature analysis.
Collect these before running the workflow:
--env-file plus --env-prefix, such as QWEN_API_KEY, QWEN_BASE_URL, QWEN_MODEL--config JSON with base_url, api_key, and modelNever ask the user to paste a real API key into generated notes, logs, examples, or committed files. Prefer a local env file outside output directories.
python -m pip install -r requirements.txt.scripts/run_literature_workflow.py from this skill directory.scripts/validate_outputs.py <out-dir>.Use $dualgap.
LLM API env file:
<workspace>\config\qwen.env
Env prefix:
QWEN
Direction A PDF directory:
<workspace>\papers\direction_a
Direction A name:
Graph Neural Networks
Direction B PDF directory:
<workspace>\papers\direction_b
Direction B name:
Federated Learning
Output directory:
<workspace>\outputs\dualgap
Agenda:
Find concrete research gaps at the intersection of both directions. Prioritize performance, scalability, communication cost, model quality, and realistic validation plans. Do not focus mainly on privacy, fairness, or poisoning.
python scripts\run_literature_workflow.py `
--dir-a <workspace>\papers\direction_a `
--dir-b <workspace>\papers\direction_b `
--name-a "Direction A" `
--name-b "Direction B" `
--out <workspace>\outputs\dualgap `
--env-file <workspace>\config\qwen.env `
--env-prefix QWEN `
--agenda "Prioritize concrete cross-domain research gaps, mechanisms, validation plans, costs, scalability, and unrealistic assumptions." `
--batch-size 10 `
--api-retries 5 `
--api-timeout 180
For a cheap smoke test, add:
--limit-a 1 --limit-b 1 --batch-size 1
Then validate:
python scripts\validate_outputs.py <workspace>\outputs\dualgap
The workflow writes:
out/
extracted_texts/
notes/
reviews/
synthesis_reviews/
raw/
syntheses/
direction_a_synthesis.md
direction_b_synthesis.md
cross_direction_analysis.md
research_gaps.md
improvement_ideas_ranked.md
audit_report.md
workflow_manifest.json
--max-tokens value.For detailed schemas and review criteria, load references/note_schema.md only when needed. For validation details, load references/validation_protocol.md.
Use:
python scripts\self_validate_skill.py
This checks skill metadata, Python compilation, eval schema, simulated output validation, and accidental key-leak patterns.