← 返回 Skills 市场
zza234s

Dualgap

作者 Hanlin Zhou · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
31
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dualgap
功能描述
Use DualGap for dual-domain research gap analysis: turn two paper collections, PDF folders, arXiv downloads, or research directions into reviewer-checked lit...
使用说明 (SKILL.md)

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-file plus --env-prefix, such as QWEN_API_KEY, QWEN_BASE_URL, QWEN_MODEL
    • --config JSON with base_url, api_key, and model
    • 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

  1. Parse the user's two PDF directories, direction names, output directory, API configuration, and agenda.
  2. Check that both PDF directories exist and contain PDFs.
  3. If API configuration is missing, ask for an env file path, config file path, or existing environment-variable prefix before running.
  4. Install dependencies if needed with python -m pip install -r requirements.txt.
  5. Run scripts/run_literature_workflow.py from this skill directory.
  6. Run scripts/validate_outputs.py \x3Cout-dir>.
  7. Inspect the audit report and at least a small sample of generated notes.
  8. 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-tokens value.

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.

安全使用建议
Before installing, confirm you are comfortable sending extracted PDF text and research notes to the configured LLM provider. Keep API keys in a local env/config file outside generated outputs, and use the smoke-test limits first if cost or data exposure is a concern.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is dual-domain literature gap analysis, and the scripts implement PDF text extraction, LLM note/review generation, syntheses, validation, and audit reports consistent with that purpose.
Instruction Scope
Runtime instructions require explicit PDF directories, output directory, agenda, and API configuration; access is scoped to user-provided paths, with optional recursive PDF collection only when requested.
Install Mechanism
The skill may ask the agent to install the single declared dependency pypdf from requirements.txt; no installer, auto-start hook, or hidden setup behavior was found.
Credentials
It uses an OpenAI-compatible API key and sends extracted paper text to the configured LLM endpoint, which is expected for the workflow but means users should only use PDFs and endpoints they are allowed to share.
Persistence & Privilege
No background worker, startup persistence, privilege escalation, destructive commands, credential harvesting, or broad local indexing was found; outputs are written under the requested output directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dualgap
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dualgap 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of DualGap for dual-domain research gap analysis. - Enables critical literature analysis comparing two PDF research collections. - Produces evidence-grounded notes, independent quality reviews, multi-level syntheses, cross-domain comparisons, research gap analysis, and ranked improvement ideas. - Supports flexible LLM API configuration using env file, config JSON, or environment variables. - Includes built-in workflow validation and output audit reporting. - Ensures all notes and syntheses meet strict quality and reviewer-checking criteria.
元数据
Slug dualgap
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论