Dualgap
/install dualgap
DualGap
DualGap 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.
When To Use
Use this skill when the user wants to:
- compare two research directions from PDF folders
- turn arXiv downloads or paper collections into critical literature notes
- identify research gaps and ranked follow-up ideas
- produce reviewer-checked outputs grounded in PDF evidence
Do not use it for single-paper summarization, casual bibliography formatting, or tasks that do not need LLM-based literature analysis.
Required Inputs
Collect these before running the workflow:
- Direction A PDF directory
- Direction A name
- Direction B PDF directory
- Direction B name
- Output directory
- Research agenda, priorities, and exclusions
- LLM API access through either:
--env-fileplus--env-prefix, such asQWEN_API_KEY,QWEN_BASE_URL,QWEN_MODEL--configJSON withbase_url,api_key, andmodel- already-set environment variables
Never 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.
Agent Workflow
- Parse the user's two PDF directories, direction names, output directory, API configuration, and agenda.
- Check that both PDF directories exist and contain PDFs.
- If API configuration is missing, ask for an env file path, config file path, or existing environment-variable prefix before running.
- Install dependencies if needed with
python -m pip install -r requirements.txt. - Run
scripts/run_literature_workflow.pyfrom this skill directory. - Run
scripts/validate_outputs.py \x3Cout-dir>. - Inspect the audit report and at least a small sample of generated notes.
- Summarize output paths, validation status, failed notes if any, and the most useful synthesis files.
Prompt Invocation Example
Use $dualgap.
LLM API env file:
\x3Cworkspace>\config\qwen.env
Env prefix:
QWEN
Direction A PDF directory:
\x3Cworkspace>\papers\direction_a
Direction A name:
Graph Neural Networks
Direction B PDF directory:
\x3Cworkspace>\papers\direction_b
Direction B name:
Federated Learning
Output directory:
\x3Cworkspace>\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.
Recommended Command
python scripts\run_literature_workflow.py `
--dir-a \x3Cworkspace>\papers\direction_a `
--dir-b \x3Cworkspace>\papers\direction_b `
--name-a "Direction A" `
--name-b "Direction B" `
--out \x3Cworkspace>\outputs\dualgap `
--env-file \x3Cworkspace>\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 \x3Cworkspace>\outputs\dualgap
Output Contract
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
Quality Rules
- Notes must be critical, paper-specific, and grounded in extracted PDF evidence.
- Every note needs an independent reviewer pass record.
- Failed notes are rewritten once using reviewer feedback.
- Synthesis files also receive independent review.
- Research gaps must explain why adjacent papers do not already solve the gap.
- Separate author evidence, model inference, and uncertain hypotheses.
- If notes truncate, rerun with a larger
--max-tokensvalue.
For detailed schemas and review criteria, load references/note_schema.md only when needed. For validation details, load references/validation_protocol.md.
Validation
Use:
python scripts\self_validate_skill.py
This checks skill metadata, Python compilation, eval schema, simulated output validation, and accidental key-leak patterns.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dualgap - After installation, invoke the skill by name or use
/dualgap - Provide required inputs per the skill's parameter spec and get structured output
What is Dualgap?
Use DualGap for dual-domain research gap analysis: turn two paper collections, PDF folders, arXiv downloads, or research directions into reviewer-checked lit... It is an AI Agent Skill for Claude Code / OpenClaw, with 31 downloads so far.
How do I install Dualgap?
Run "/install dualgap" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Dualgap free?
Yes, Dualgap is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Dualgap support?
Dualgap is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Dualgap?
It is built and maintained by Hanlin Zhou (@zza234s); the current version is v0.1.0.