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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dualgap - 安装完成后,直接呼叫该 Skill 的名称或使用
/dualgap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Dualgap 是什么?
Use DualGap for dual-domain research gap analysis: turn two paper collections, PDF folders, arXiv downloads, or research directions into reviewer-checked lit... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。
如何安装 Dualgap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dualgap」即可一键安装,无需额外配置。
Dualgap 是免费的吗?
是的,Dualgap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dualgap 支持哪些平台?
Dualgap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dualgap?
由 Hanlin Zhou(@zza234s)开发并维护,当前版本 v0.1.0。