data2story-pro
Use to turn a dataset into a verifiable multimedia blog (a data story / data-driven article / interactive dashboard from a…
Generate text embeddings via OpenRouter using Qwen3-Embedding-8B.
$ npx -y skills add QinghongLin/data2story-skill --skill openrouter-embeddings --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/openrouter-embeddingsContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate text embeddings via OpenRouter using Qwen3-Embedding-8B.
name: openrouter-embeddings description: Generate text embeddings via OpenRouter using Qwen3-Embedding-8B.
Text → embedding vector via OpenRouter. Default model: `qwen/qwen3-embedding-8b`.
Resolve `TOOL_DIR` = the directory containing this `SKILL.md`. Commands below use `TOOL_DIR` as a symbolic placeholder; replace it with the resolved, quoted path before running Bash.
export OPENROUTER_API_KEY=sk-or-v1-... python3 TOOL_DIR/scripts/embed.py \ --text "The quick brown fox jumps over the lazy dog" \ --output vec.json
Input `records.jsonl` (one JSON per line):
{"id": "row_0", "text": "Every place name in the United States."}
{"id": "row_1", "text": "Nearby stars and potential exoplanets."}Run:
python3 TOOL_DIR/scripts/embed.py \ --jsonl records.jsonl \ --output records_with_embeddings.jsonl \ --batch-size 32
Output is the same JSONL with an added `embedding` field per line.
| Flag | Default | Description | |---|---|---| | `--text` | — | Embed one string (mutually exclusive with `--jsonl`) | | `--jsonl` | — | Embed many; each line must have a `text` field | | `--output` | required | Output path | | `--model` | `qwen/qwen3-embedding-8b` | Any embedding model on OpenRouter | | `--batch-size` | `32` | Records per API call (jsonl mode) | | `--dimensions` | — | Optional: truncate to N dims if supported |
`POST /api/v1/embeddings` — OpenAI-compatible schema.
Request:
{ "model": "qwen/qwen3-embedding-8b", "input": ["text1", "text2", ...] }Response:
{ "data": [ { "embedding": [0.01, -0.02, ...], "index": 0 }, ... ], "model": "...", "usage": {...} }A data-journalist agent skill that turns any dataset into a verifiable, evidence-grounded multimodal story — a self-contained HTML article where every sentence traces back to the data or source that justifies it.
Use to turn a dataset into a verifiable multimedia blog (a data story / data-driven article / interactive dashboard from a…
Exhaustively profile a dataset and list ALL possible analyses — distributions, correlations, rankings, trends, group comparisons,…
Audit a generated Data2Story blog for build correctness across ALL modalities by ACTUALLY RENDERING it in a real headless browser…
Design the MANDATORY cinematic scroll experience (every blog ships one): a full-bleed, scroll-driven background — primarily from…
Name the piece — re-write the masthead (headline + standfirst + kicker), every section title, and every figure/photo/table…
Review a finished Data2Story blog against the 5 quality rubric dimensions (visual_design, narrative_pacing,…