text2multihopqa-generator

text2multihopqa-generator is a skill for Claude Code, Codex from OpenDCAI/DataFlow-WebUI. It costs 89 tokens per session (943 once invoked), scanned A, original, Apache-2.0.

A data-processing operator that creates question-and-answer pairs requiring several reasoning steps from longer text.

In plain words
What is it for?
Use it to generate multiple question-and-answer pairs per text row, with accompanying metadata, in a chosen language.
Why use it?
It removes the manual work of turning text into training or evaluation questions that combine information from different parts of the text.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/opendcai/dataflow-webui/text2multihopqa-generator
Any agent
npx skills add OpenDCAI/DataFlow-WebUI --skill text2multihopqa-generator
Clone the repo
git clone --depth 1 https://github.com/OpenDCAI/DataFlow-WebUI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text2multihopqa-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/opendcai/dataflow-webui/text2multihopqa-generator.svg)](https://agentmods.dev/skills/opendcai/dataflow-webui/text2multihopqa-generator)
Your own site
<a href="https://agentmods.dev/skills/opendcai/dataflow-webui/text2multihopqa-generator"><img src="https://agentmods.dev/badge/skills/opendcai/dataflow-webui/text2multihopqa-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00089 $0.00943
Opus 5 $0.00044 $0.00472
Sonnet 5 $0.00018 $0.00189
Haiku 4.5 $0.00009 $0.00094

Measured 4d ago against content hash e243500b51ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

text2multihopqa-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/canonical/core_text/generate/text2multihopqa-generator/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Text2MultiHopQAGenerator Operator Reference

Text2MultiHopQAGenerator reads one text column, generates up to num_q multi-hop QA pairs per input row, stores the per-row QA list in output_key, stores metadata in output_meta_key, then filters out rows whose generated QA list is empty.

See examples/good.md for a valid pipeline pattern and examples/bad.md for common failure cases.


1. Import

from dataflow.operators.core_text import Text2MultiHopQAGenerator

2. Constructor

Text2MultiHopQAGenerator(
    llm_serving=llm,
    seed=0,
    lang="en",
    prompt_template=None,
    num_q=5,
)
Parameter Required Default Description
llm_serving Yes None LLM backend passed through to ExampleConstructor, which later calls generate_from_input(...).
seed No 0 Used to initialize random.Random(seed).
lang No "en" Controls prompt construction and sentence splitting logic.
prompt_template No None If omitted, uses Text2MultiHopQAGeneratorPrompt(lang=self.lang).
num_q No 5 Maximum number of QA pairs kept per row after generation.

3. run() Signature

op.run(
    storage=self.storage.step(),
    input_key="cleaned_chunk",
    output_key="QA_pairs",
    output_meta_key="QA_metadata",
)
Parameter Required Default Description
storage Yes None Used as storage.read("dataframe") and storage.write(dataframe).
input_key No "cleaned_chunk" Source text column. This column must already exist.
output_key No "QA_pairs" Output column containing a list of QA dicts for each remaining row. This column must not already exist.
output_meta_key No "QA_metadata" Output column containing metadata dicts for each remaining row.

Return Value

The method returns [output_key].


Read the full file on GitHub · 116 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 116 lines · 89 tokens per session scan A e243500b51ef

Subscribe to this mod's changes

text2multihopqa-generator is a skill published in the GitHub repository OpenDCAI/DataFlow-WebUI (224 stars, last pushed 9d ago), licensed Apache-2.0. It adds 89 tokens to every session and 943 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

article-writing

Write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand guidance. Use when the user wants polished written content longer than a paragraph, especially when voice consistency, structure, and credibility matter.

affaan-m/ECC · 57 tokens

ljg-learn

Deep concept anatomist that deconstructs any concept through 8 exploration dimensions (history, dialectics, phenomenology, linguistics, formalization, existentialism, aesthetics, meta-philosophy) and compresses insights into an epiphany. Use when user asks to explain, dissect, or deeply understand a concept, term, or…

lijigang/ljg-skills · 113 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

code-documenter

Use when adding docstrings, creating API documentation, or building documentation sites. Invoke for OpenAPI/Swagger specs, JSDoc, doc portals, tutorials, user guides.

zebbern/claude-code-guide · 39 tokens

deck-course-module

暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.

nexu-io/html-anything · 25 tokens