Agent skill

openrouter-embeddings

Generate text embeddings via OpenRouter using Qwen3-Embedding-8B.

QinghongLingithub.com/QinghongLinGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add QinghongLin/data2story-skill --skill openrouter-embeddings --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 2 KB
Bundled scripts: yes
Path: skills/data2story-pro/designer/scripts/openrouter-embeddings/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 149
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# openrouter-embeddings Text → embedding vector via OpenRouter. Default model: `qwen/qwen3-embedding-8b`. ## Usage 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. ### Single text ```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 ``` ### Batch from JSONL 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: ```bash 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. ## Flags | 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 | | `--bat

What's inside
Steps it walks through
  1. Usage
  2. Single text
  3. Batch from JSONL
  4. Flags
  5. Endpoint
  6. Notes
Ships with 2 files
  • config.json
  • scripts/embed.py
Commands it runs
export OPENROUTER_API_KEY=sk-or-v1-...
python3 TOOL_DIR/scripts/embed.py \
More from data2story-skill
All skills →
About this skill
What does the openrouter-embeddings skill do?

Generate text embeddings via OpenRouter using Qwen3-Embedding-8B.

How do I install it?

Run `npx skills add QinghongLin/data2story-skill --skill openrouter-embeddings --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From QinghongLin/data2story-skill, a repository with 149 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going