Przejdź do treści
Biblioteka skilli
AI i agenci · Integracja z narzędziem

setup-guide

/setup-guide

Prowadzi przez pierwszą instalację skalowania wnioskowania (inference-time scaling) w its_hub w bieżącym środowisku.

Repozytorium
its_hub ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
28.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Prowadzi przez pierwszą instalację skalowania wnioskowania (inference-time scaling) w its_hub w bieżącym środowisku.

Oryginalny opis (EN)

Use when the user wants to set up inference-time scaling for the first time, or when its_hub is not yet installed/configured in the current environment.

Jak działa

  1. Step 1: Detect Environment
  2. Step 2: Install if Needed
  3. Step 3: Quick Setup or Custom
  4. Step 4: Collect Configuration
  5. Step 5: Ensure API Key
  6. Step 6: Save Config
  7. Adding More Models
Sekcje z nagłówków SKILL.md, w oryginale · 115 linii, 645 słów
Podgląd SKILL.md
---
name: setup-guide
description: "Use when the user wants to set up inference-time scaling for the first time, or when its_hub is not yet installed/configured in the current environment."
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/its_detect.sh:*)"]
---

# its_hub Setup Guide

You are helping the user set up inference-time scaling.

## Step 1: Detect Environment

```!
"${CLAUDE_PLUGIN_ROOT}/scripts/its_detect.sh"
```

Also check for API keys in the environment:
```!
echo "openai_key=${OPENAI_API_KEY:+found}" "anthropic_key=${ANTHROPIC_API_KEY:+found}" "endpoint=${OPENAI_BASE_URL:-none}"
```

## Step 2: Install if Needed

If `library=missing`:
- Explain: "its_hub is a library for inference-time scaling — it generates multiple LLM responses and selects the best one using voting or scoring algorithms."
- Ask permission: "I can install it for you. Want me to proceed?"
- If yes and `installer=uv`: run `uv pip install "its_hub[lm]"`
- If yes and `installer=pip`: run `pip install "its_hub[lm]"`
- If `installer=none`: tell the user they need Python 3.11+ and pip/uv installed first

## Step 3: Quick Setup or Custom

**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: `gpt-4o-mini`
> - Algorithm: `self-consistency`
> - Budget: `8`
>
> Accept these defaults, or would you like to customize?"

If the user accepts, skip to Step 5 using:
- `endpoint`: `https://api.openai.com/v1` (or `OPENAI_BASE_URL` if set)
- `model`: `gpt-4o-mini`
- `algorithm`: `self-consistency`
- `budget`: `8`

**If no API key was detected**, or the user wants to customize, proceed to Step 4.

## Step 4: Collect Configuration

Ask these questions **one at a time**:

1. **Endpoint**: "What's your model endpoint URL?" — e.g., `http://localhost:8000/v1` for vLLM, `https://api.openai.com/v1` for OpenAI
2. **Model name**: "What's the model identifier?" — e.g., `gpt-4o`, `Qwen/Qwen2.5-32B-Instruct`
3. **Algorithm**: "Which scaling algorithm do you want to use?" — consult the `inference-scaling-guide` skill for guidance if the user is unsure.
   - **Self-consistency** — Votes on the most common answer. No extra setup needed.
   - **Best-of-N** — Scores each with an LLM judge. Requires a judge model.
4. **Budget**: "Which budget do you want to use?" — consult the `inference-scaling-guide` skill for guidance if the user is unsure.

### Algorithm-Specific Config

**Self-consistency:**
- Ask: "Do you need regex patterns for answer extraction? (e.g., `\boxed{...}` for math). If unsure, skip — default voting works for most cases."
- Ask: "Will your prompts involve tool/function calls?" If yes, ask which voting strategy: `tool_name`, `tool_args`, or `tool_hierarchical`

**Best-of-N:**
- Ask: "Which model should be the judge? (This can be the same model or a different one)"
- Collect: judge model name, judge endpoint (default: same as generation model)

## Step 5: Ensure API Key

API keys are read from environment variables — **never store them in the config file**.

If no API key was detected in Step 1, tell the user to set the appropriate environment variable:

> "Set your API key as an environment variable before running scaling:
> ```bash
> export OPENAI_API_KEY="sk-..."        # OpenAI or OpenAI-compatible endpoints
> export ANTHROPIC_API_KEY="sk-ant-..."  # Anthropic endpoints
> ```
> For local vLLM endpoints that don't require authentication, no API key is needed."

## Step 6: Save Config

Write the config to `.its-hub/config.json`:

```json
{
  "models": {
    "default": {
      "endpoint": "<endpoint>",
      "model": "<model_name>"
    }
  },
  "algorithm": "<algorithm>",
  "budget": "<budget>",
  "algorithm_config": {}
}
```

Add `.its-hub/` to `.gitignore` if not already present.

Confirm the config file was written, then report success:

> "Setup complete! To run scaling, use the `inference-scaling` skill.
>
> **API keys** are read from environment variables, not the config file. Make sure the appropriate variable is set in your shell:
> ```bash
> export OPENAI_API_KEY="sk-..."        # OpenAI or OpenAI-compatible endpoints (including vLLM with auth)
> export ANTHROPIC_API_KEY="sk-ant-..."  # Anthropic endpoints
> ```
> Local endpoints (e.g., vLLM without auth) don't need an API key."

## Adding More Models

If this skill is invoked again and a config already exists, ask: "You already have a configuration. Do you want to update it or add another model?"

If adding a model: collect endpoint and model name. Add a new entry to the `models` dict using the model name as key.

Wersje

RepozytoriumWynikLicencja
Ta strona · red-hat-ai-innovation-team/its_hub100Apache-2.0
SchulzWill/weekpost100MIT
red-hat-ai-innovation-team/training_hub100Apache-2.0
red-hat-ai-innovation-team/sdg_hub100Apache-2.0
Azure/sap-automation-qa100MIT
DojoCodingLabs/remotion-superpowers90MIT

Migawka bazy z 13.11.2026 · wersja paczki ff2559ea3dde (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100inference-scaling
    Uruchamia skalowanie czasu inferencji dla promptu: wykrywa środowisko, wykonuje skalowanie i prezentuje wyniki.
  • 100inference-scaling-guide
    Prowadzi przez skalowanie czasu inferencji w its_hub: wybór algorytmu (Self-Consistency, Best-of-N, Beam Search, Particle Filtering), budżet, modele nagrody, wywołania narzędzi, interpretacja wyników i rozwiązywanie problemów.
  • 100setup
    Uruchamia daemon wnioskowania ML oracle z onnxruntime przez uv, do lokalnego wnioskowania modeli ONNX przy ocenie jakości skilli.
  • 100streaming-inference-setup
    Konfiguruje strumieniową inferencję w ramach automatycznie aktywowanej kategorii ML Deployment, reagując na frazy związane z konfiguracją streaming inference.
  • 100configuring-auto-scaling-policies
    Konfiguruje polityki automatycznego skalowania i elastycznego skalowania zasobów, gdy trzeba ustawić skalowanie w chmurze lub infrastrukturze.
  • 100configuring-auto-scaling-policies
    Konfiguruje polityki automatycznego skalowania i elastycznego skalowania zasobów, gdy trzeba ustawić skalowanie w chmurze lub infrastrukturze.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.