Toolverse
All skills

instructor

by davila7

Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Security
Views
1

About this skill

Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library

How to use

  1. Zainstaluj Instructor za pomocą pip install instructor. Jeśli pracujesz z Claude, uruchom pip install "instructor[anthropic]", a dla OpenAI — pip install "instructor[openai]".

  2. Zdefiniuj strukturę danych, którą chcesz otrzymać, używając klasy Pydantic. Na przykład stwórz klasę User z polami name (tekst), age (liczba) i email (tekst).

  3. Utwórz klienta Instructor, łącząc go z dostawcą LLM. Dla Claude użyj instructor.from_anthropic(Anthropic()), dla OpenAI — instructor.from_openai(OpenAI()).

  4. Wyślij wiadomość do modelu, przekazując response_model z definicją Pydantic. Model automatycznie zwróci dane w oczekiwanym formacie.

  5. Otrzymane dane są już zwalidowane i typizowane — możesz bezpośrednio odwoływać się do pól obiektu, np. user.name lub user.age.

  6. Jeśli chcesz przetwarzać wyniki w czasie rzeczywistym, włącz streaming, aby otrzymywać częściowe rezultaty w miarę generowania odpowiedzi.

Related skills

obsidian

by gapmiss

Comprehensive guidelines for Obsidian.md plugin development including all 27 ESLint rules, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, and submission requirements. Use when working with Obsidian plugins, main.ts files,

Security
14111

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260

security-compliance

by davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding

Security
1172

better-auth-best-practices

by novuhq

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

Security
1148

1password

by openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

Security
1174

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777