Skip to content
doc2qra logo

Doc2qra

doc2qra

Convert any document (PDF, URL, text) into Question-Reasoning-Answer pairs with a document summary. Stores to memory for later recall.

SKILL.md

Full skill instructions

doc2qra

Convert any document into Question-Reasoning-Answer pairs with a summary.

Input → Summary + QRA pairs → Memory

Quick Start

# PDF → QRA with summary
./​run.sh --file paper.pdf --scope research

# With domain focus (recommended for better relevance)
./​run.sh --file paper.pdf --scope research --context "ML researcher"

# Preview before storing
./​run.sh --file paper.pdf --dry-run

# URL → QRA
./​run.sh --url https://example.com/​article --scope web

# Text file → QRA
./​run.sh --file notes.txt --scope project

What It Does

  1. Extract content from PDF/​URL/​text
  2. Summarize the document (2-3 paragraph overview)
  3. Split into logical sections
  4. Generate Q&A pairs via LLM (parallel batch)
  5. Validate answers are grounded in source
  6. Store summary + QRAs to memory

Parameters

FlagDescription
--filePDF, markdown, or text file
--urlURL to fetch and convert
--scopeMemory scope (default: research)
--contextDomain focus, e.g. "security expert"
--dry-runPreview without storing
--jsonJSON output (includes summary)
--sections-onlyExtract sections only (no Q&A)
--summary-onlyGenerate only the summary

Output Format

When using --json, output includes:

{
  "summary": "A 2-3 paragraph summary of the document...",
  "extracted": 15,
  "stored": 15,
  "sections": 8,
  "source": "paper.pdf",
  "scope": "research",
  "qra_pairs": [
    {"problem": "What is...", "solution": "The document explains..."},
    ...
  ]
}

Examples

# Research paper with context
./​run.sh --file arxiv_paper.pdf --scope research --context "ML researcher"

# Technical documentation
./​run.sh --file api_docs.md --scope project --context "backend developer"

# Just get the summary
./​run.sh --file paper.pdf --summary-only

# From extractor output (pipeline integration)
./​run.sh --from-extractor /​path/​to/​extractor/​results --scope research

Environment Variables (Optional Tuning)

VariableDefaultDescription
DOC2QRA_PDF_MODEfastPDF mode: fast, accurate, auto
DOC2QRA_CONCURRENCY6Parallel LLM requests
DOC2QRA_GROUNDING_THRESH0.6Grounding similarity threshold
DOC2QRA_NO_GROUNDING-Set to 1 to skip validation

Migration from distill/​qra/​doc-to-qra

This skill consolidates the functionality of:

  • distill → Use doc2qra instead
  • qra → Use doc2qra instead
  • doc-to-qra → Use doc2qra instead

All three legacy skills now redirect to doc2qra with deprecation warnings.

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View