/sdg-hub:setup-guidefrom sdg-hub
Sets up synthetic data generation with sdg_hub: detects environment, installs the package, configures API keys and generation parameters (model, temperature, concurrency).
Ships in sdg-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping the user set up synthetic data generation.
"${CLAUDE_PLUGIN_ROOT}/scripts/sdg_detect.sh"
If library=missing:
installer=uv: run uv pip install sdg_hubinstaller=pip: run pip install sdg_hubinstaller=none: tell the user they need Python and pip/uv installed firstAlso check for API keys in the environment:
echo "openai_key=${OPENAI_API_KEY:+found}" "anthropic_key=${ANTHROPIC_API_KEY:+found}"
If an API key was detected, offer a one-question fast path:
"I detected your OpenAI API key. I can set up with these defaults:
- Model:
openai/gpt-4o-mini- Temperature:
0.7- Concurrency:
5Accept these defaults, or would you like to customize?"
If the user accepts, skip to Step 5 using the detected key and defaults.
For Anthropic keys, default to anthropic/claude-sonnet-4-20250514.
If no API key was detected, or the user wants to customize, proceed to Step 4.
Ask these questions one at a time:
openai/gpt-4o-mini, meta-llama/Llama-3.3-70B-Instruct, anthropic/claude-sonnet-4-20250514http://localhost:8000/v1 for vLLM, or leave empty for cloud provider defaults./checkpoints) — allows resuming interrupted runsAPI keys are read from environment variables — never store them in the config file. LiteLLM (used by sdg_hub) reads standard env vars automatically.
If no API key was detected in Step 3, tell the user to set the appropriate environment variable:
"Set your API key as an environment variable before running generation:
export OPENAI_API_KEY="sk-..." # OpenAI models export ANTHROPIC_API_KEY="sk-ant-..." # Anthropic modelsFor local endpoints (vLLM, Ollama) that don't require authentication, no API key is needed. LiteLLM picks up these env vars automatically — no extra configuration required."
Write the config to .sdg-hub/config.json:
{
"model": "<model>",
"api_base": "<endpoint>",
"temperature": 0.7,
"max_concurrency": 5,
"checkpoint_dir": "./checkpoints"
}
Add .sdg-hub/ to .gitignore if not already present.
Confirm the config file was written, then report success:
"Setup complete! To run generation, use the
data-generationskill, or theflow-browserskill to browse available flows.API keys are read from environment variables, not the config file. Make sure the appropriate variable is set in your shell:
export OPENAI_API_KEY="sk-..." # OpenAI models export ANTHROPIC_API_KEY="sk-ant-..." # Anthropic modelsLocal endpoints (vLLM, Ollama) don't need an API key."
List available flows to confirm the installation works:
"${CLAUDE_PLUGIN_ROOT}/scripts/sdg_flows.sh" list
Report success and remind the user they can now use the data-generation skill to run generation, or the flow-browser skill to browse available flows.
If this skill is invoked again and a config already exists, ask: "You already have a configuration. Do you want to update it or start fresh?"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
synthetic-data, sdg-hub, setup-guide, llm-training-data, data-generation
4 skills in this plugin
/data-generationUse when the user wants to run synthetic data generation via scripts — detect environment, execute a flow, and present results. For detailed guidance on approaches, blocks, flow authoring, and troubleshooting, consult the synthetic-data-generation skill./flow-browserUse when the user wants to list, search, or inspect available SDG flows and data generation pipelines. Applies to browsing flow catalogs, finding flows by use case, or understanding what a specific flow does./synthetic-data-generationGenerate synthetic data using sdg_hub with composable blocks and YAML flows. Use when the user wants to create training datasets, generate QA pairs, run data generation pipelines, build custom flows, produce synthetic data from documents, use agent frameworks for data generation, or distill MCP tool-use traces. Supports pre-built flows, custom Python scripts, and YAML flow authoring with 20+ blocks, agent connectors (Langflow, LangGraph), MCP tool-use, and 100+ LLM providers via LiteLLM.npx claudepluginhub red-hat-ai-innovation-team/sdg_hub --plugin sdg-hubOther plugins' skills for the same job