← Back to Skills Marketplace
zza234s

Dualgap

by Hanlin Zhou · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
31
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dualgap
Description
Use DualGap for dual-domain research gap analysis: turn two paper collections, PDF folders, arXiv downloads, or research directions into reviewer-checked lit...
README (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.

Usage Guidance
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dualgap
  3. After installation, invoke the skill by name or use /dualgap
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug dualgap
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments